/* /home/gtzhost/public_html/assets/css/function-new.css */

body { overflow: visible !important; overflow-x: hidden !important; overflow-y: visible !important; background-color: #f7f9fa; }
html { overflow-x: hidden !important; }

.primary-section, .g-new-product-pricing-table-container, .container, .table-city, .g-new-product-pricing-table-wrapper, section, .epy-wrapper {
    overflow: visible !important;
}

.category-wise-product-tbl-container {
    max-width: 1700px;
    margin: 0 auto;
    /* padding: 40px 20px; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.g-new-product-pricing-table-wrapper-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 40px;
}
.g-new-product-pricing-table-wrapper-title span.red {
    color: #e32020;
}

.server-location-title { 
    font-size: 24px; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin-bottom: 30px; 
    padding-bottom: 15px; 
    border-bottom: 3px solid #00234a; 
    display: flex;
    align-items: center;
}

#epy-product-count {
    color: #ea580c;
    font-size: 24px;
    font-weight: 800;
    margin-left: 8px;
}

/* ============================================
STICKY FILTER LAYOUT
============================================ */
.filter-and-cards-flex-container {
    display: flex !important;
    gap: 30px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: flex-start !important; 
    position: relative !important;
    overflow: visible !important;
}

.filter-sticky-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 120px !important;
    align-self: flex-start !important; 
    width: 320px !important;
    flex-shrink: 0 !important;
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 99 !important;
    background: #f0f4f8; 
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #d1d9e6;
    will-change: transform;
}

/* Custom Scrollbar for Sidebar */
.filter-sticky-sidebar::-webkit-scrollbar { width: 6px; }
.filter-sticky-sidebar::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 4px; }
.filter-sticky-sidebar::-webkit-scrollbar-thumb { background: #00234a; border-radius: 4px; }

.category-wise-product-tbl-cover {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100%;
}

/* ============================================
FILTER SECTION STYLING
============================================ */
.filter-container { width: 100%; }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #00234a; }
.filter-title { font-size: 20px; font-weight: 800; color: #1a1a1a; margin: 0; }
.filter-reset-btn { background: #d73a27; color: white; border: none; padding: 8px 14px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.3s ease; }
.filter-reset-btn:hover { background: #c12107; transform: translateY(-2px); }

.filter-group { margin-bottom: 25px; padding: 15px; background: white; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); border: 1px solid #e2e8f0;}
.filter-group-title { font-size: 14px; font-weight: 700; color: #1e293b; margin: 0 0 12px 0; }
.filter-buttons-group, .location-grid-container { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-location-btn, .filter-processor-btn, .filter-core-btn, .filter-brand-btn {
    background: #ffffff; 
    border: 1px solid #cbd5e1; 
    padding: 8px 12px; 
    border-radius: 6px; 
    font-size: 13px; 
    font-weight: 600; 
    color: #334155; 
    cursor: pointer; 
    transition: all 0.2s ease;
    flex-grow: 1;
    text-align: center;
}
.filter-location-btn:hover, .filter-processor-btn:hover, .filter-core-btn:hover, .filter-brand-btn:hover { background: #f8fafc; border-color: #94a3b8; }
.filter-location-btn.active, .filter-processor-btn.active, .filter-core-btn.active, .filter-brand-btn.active { 
    background: #00234a; 
    color: white; 
    border-color: #00234a; 
}

.location-search-wrapper { margin-bottom: 12px; width: 100%; }
.location-search-input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; outline: none; box-sizing: border-box; }
.location-search-input:focus { border-color: #00234a; box-shadow: 0 0 0 2px rgba(0, 35, 74, 0.1); }
.filter-show-more-btn { width: 100%; background: white; border: 1px dashed #94a3b8; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; transition: 0.3s; margin-top: 10px; text-align: center; }
.filter-show-more-btn:hover { background: #f8fafc; color: #1e293b; border-color: #64748b; }

.price-range-container { position: relative; padding: 40px 10px 20px; }
.price-range-track { position: relative; width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; }
.range-track-active { position: absolute; height: 100%; background: #00234a; border-radius: 3px; }
.price-range-input { position: absolute; width: 100%; height: 6px; top: 40px; left: 0; pointer-events: none; -webkit-appearance: none; background: transparent; margin: 0;}
.price-range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #00234a; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); border: 2px solid white; }
.price-bubble { position: absolute; top: 0; background: #d73a27; color: white; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; transform: translateX(-50%); white-space: nowrap; }

/* ============================================
SERVER CARDS SECTION
============================================ */
.server-cards-grid { display: flex; flex-direction: column; gap: 15px; }

.server-card-item {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: row;
    min-height: 140px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.server-card-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); border-color: #cbd5e1; }

.server-card-sidebar {width: 90px;display: flex;align-items: center;justify-content: center;flex-shrink: 0;border-radius: 5px 0 0 5px;}

/* Dynamic Brand Colors */
.server-card-item.brand-amd .server-card-sidebar { background: linear-gradient(180deg, #1fa560 0%, #004d26 100%); }
.server-card-item.brand-amd .server-price-large { color: #008751; }
.server-card-item.brand-amd .server-buy-btn { background: #008751; }
.server-card-item.brand-amd .server-buy-btn:hover { background: #006b40; }

.server-card-item.brand-intel .server-card-sidebar { background: linear-gradient(180deg, #0071c5 0%, #003f8c 100%); }
.server-card-item.brand-intel .server-price-large { color: #0062a3; }
.server-card-item.brand-intel .server-buy-btn { background: #0062a3; }
.server-card-item.brand-intel .server-buy-btn:hover { background: #004d82; }

.server-card-item.brand-ampere .server-card-sidebar { background: linear-gradient(180deg, #00b140 0%, #006020 100%); }
.server-card-item.brand-ampere .server-price-large { color: #00b140; }
.server-card-item.brand-ampere .server-buy-btn { background: #00b140; }
.server-card-item.brand-ampere .server-buy-btn:hover { background: #008c32; }

.server-card-item.brand-other .server-card-sidebar { background: linear-gradient(180deg, #64748b 0%, #334155 100%); }
.server-card-item.brand-other .server-price-large { color: #64748b; }
.server-card-item.brand-other .server-buy-btn { background: #64748b; }
.server-card-item.brand-other .server-buy-btn:hover { background: #475569; }

.server-brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.server-brand-logo img { max-width: 45px; object-fit: contain; filter: brightness(0) invert(1); }
.server-brand-text { color: white; font-weight: 800; font-size: 14px; text-transform: uppercase; writing-mode: vertical-rl; text-orientation: mixed; }

.server-card-content { flex: 1; display: flex; flex-direction: row; padding: 20px; gap: 20px; align-items: center; }

.server-price-section { display: flex; flex-direction: column; align-items: flex-start; min-width: 140px; padding-right: 20px; border-right: 1px solid #e2e8f0; }
.server-price-large { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.server-price-subtext {font-size: 11px;color: #000000;font-weight: 700;text-transform: uppercase;margin-top: 6px;}
.server-location-name {display: flex;font-size: 14px;font-weight: 600;color: #00234a;margin-top: 6px;align-items: center;gap: 6px;}
.flag-icon { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }

.server-card-cpanel-row {
    font-size: 13px;
    font-weight: 800;
    color: #e32020; 
    margin-top: 2px;
    line-height: 1.2;
}
.cpanel-orange-text {
    color: #f96c00; 
    font-style: italic;
}

.server-processor-section { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 200px; }

.server-cpu-badge { 
    display: inline-block; 
    color: #ffffff; 
    background: #a1a1aa; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 800; 
    width: fit-content; 
    letter-spacing: 0.5px;
}
.server-processor-name { font-size: 16px; font-weight: 800; color: #1e293b; margin: 0; line-height: 1.3; }

.server-gpu-info { 
    font-size: 13px; 
    font-weight: 800; 
    color: #ea580c; 
    margin-top: 2px; 
}

.server-specs-horizontal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; flex: 2; text-align: center; }
.server-spec-column { display: flex; flex-direction: column; gap: 5px; }
.spec-heading {font-size: 13px;font-weight: 700;color: #8e9aab;text-transform: uppercase;letter-spacing: 0.5px;}
.spec-detail {font-size: 15px;font-weight: 800;color: #1e293b;}

.server-buy-section { display: flex; align-items: center; justify-content: flex-end; padding-left: 10px; min-width: 130px; }
.server-buy-btn {
    color: #ffffff;
    background-color: #c32500;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.server-buy-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }

.no-results { text-align: center; padding: 60px 20px; background: white; border-radius: 8px; border: 1px dashed #cbd5e1; }
.no-results-text { font-size: 16px; font-weight: 600; color: #64748b; margin-bottom: 0; }

/* ============================================
MEDIA QUERIES FOR BREAKPOINTS (RESPONSIVE)
============================================ */

/* Laptops / Smaller Desktops (1200px - 1400px) */
@media (max-width: 1400px) {
    .category-wise-product-tbl-container { padding: 30px 15px; }
    .server-specs-horizontal { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Tablets Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .filter-and-cards-flex-container { gap: 20px !important; }
    .filter-sticky-sidebar { width: 280px !important; padding: 20px; top: 90px !important; }
    .server-card-content { padding: 15px; gap: 15px; }
    .server-price-section { min-width: 120px; }
    .server-price-large { font-size: 32px; }
}

/* Tablets Portrait (768px - 991px) */
@media (max-width: 991px) {
    .filter-and-cards-flex-container { flex-direction: column !important; }
    .filter-sticky-sidebar { 
        position: static !important; 
        width: 100% !important; 
        max-height: none !important; 
        margin-bottom: 25px; 
        overflow-y: visible !important;
    }
    .server-specs-horizontal { grid-template-columns: repeat(4, 1fr); }
    .server-card-content { flex-direction: row; align-items: center; }
}

/* Large Mobile Devices (576px - 767px) */
@media (max-width: 767px) {
    .g-new-product-pricing-table-wrapper-title { font-size: 26px; margin-bottom: 25px; }
    .server-location-title { font-size: 20px; }
    
    .server-card-item { flex-direction: column; }
    .server-card-sidebar { width: 100%; height: 45px; border-radius: 6px 6px 0 0; }
    .server-brand-text { writing-mode: horizontal-tb; font-size: 14px; text-orientation: mixed; }
    .server-brand-logo img { height: 25px; max-width: 60px; }
    
    .server-card-content { flex-direction: column; align-items: stretch; padding: 20px; gap: 20px; }
    .server-price-section { 
        border-right: none; 
        border-bottom: 1px solid #e2e8f0; 
        padding-bottom: 15px; 
        padding-right: 0; 
        align-items: center; 
        text-align: center; 
        min-width: 100%; 
    }
    .server-price-large { font-size: 34px; }
    .server-processor-section { align-items: center; text-align: center; min-width: 100%; }
    
    .server-specs-horizontal { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 5px 0; }
    .server-buy-section { justify-content: center; padding-left: 0; min-width: 100%; }
    .server-buy-btn { width: 100%; text-align: center; padding: 14px; }
}

/* Small Mobile Devices (Up to 575px) */
@media (max-width: 575px) {
    .category-wise-product-tbl-container { padding: 20px 10px; }
    .g-new-product-pricing-table-wrapper-title { font-size: 22px; }
    .filter-sticky-sidebar { padding: 15px; }
    
    .server-price-large { font-size: 28px; }
    .server-processor-name { font-size: 15px; }
    .server-specs-horizontal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .spec-detail { font-size: 13px; }
}

.font-city{
    text-align: center;
    width: 100%;
}