/* =============================================
   MICRON-PRODUCT.CSS
   Micron Products Listing Page
   Zen Interactive Technologies
   ============================================= */

:root {
    --primary-blue: #B8E0FF;
    --theme-yellow: #F5D547;
    --cream-bg: #F8F7F4;
    --dark: #000000;
    --text-muted: #666;
    --micron-blue: #0077C8;
    --micron-dark: #1a1a2e;
    --border-light: #e8e8e8;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.07);
    --card-hover-shadow: 0 12px 40px rgba(0,0,0,0.14);
    --sidebar-width: 270px;
}

/* ===========================
   PAGE HERO BANNER
   =========================== */
.products-page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #9ed0ff 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.products-page-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: rgba(0,119,200,0.08);
    border-radius: 50%;
    animation: heroFloat 8s ease-in-out infinite;
}

.products-page-hero::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(245,213,71,0.12);
    border-radius: 50%;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.products-hero-bg {
    position: relative;
    z-index: 2;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.hero-breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-breadcrumb a:hover {
    color: var(--micron-blue);
}

.hero-breadcrumb i {
    font-size: 10px;
    color: #999;
}

.hero-breadcrumb .active {
    color: var(--micron-blue);
    font-weight: 600;
}

.products-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #000;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.products-hero-title .highlight-yellow {
    background: var(--theme-yellow);
    padding: 0 12px;
    border-radius: 8px;
    display: inline-block;
}

.products-hero-sub {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 560px;
}

.hero-stats-wrap {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    min-width: 110px;
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-4px);
}

.hero-stat .stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--micron-blue);
    line-height: 1;
}

.hero-stat .stat-lbl {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-wave-prod {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave-prod svg {
    display: block;
    width: 100%;
}

/* ===========================
   PRODUCTS LISTING SECTION
   =========================== */
.products-listing-section {
    background: var(--cream-bg);
    padding: 40px 0 80px;
}

/* ===========================
   FILTER SIDEBAR
   =========================== */
.filter-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-right: 8px;
    margin-top: 0;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) transparent;
}

.filter-sidebar::-webkit-scrollbar {
    width: 4px;
}
.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

.filter-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--cream-bg);
}

.filter-header-bar h3 {
    font-size: 16px;
    font-weight: 800;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-header-bar h3 i {
    color: var(--micron-blue);
}

.clear-all-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--micron-blue);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.clear-all-btn:hover {
    background: #e8f4ff;
    color: #005fa3;
}

/* Active Filter Tags */
.active-filters-wrap {
    margin-bottom: 16px;
}

.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000;
    color: var(--theme-yellow);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    animation: tagPop 0.25s ease;
}

@keyframes tagPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.active-tag .remove-tag {
    cursor: pointer;
    opacity: 0.7;
    font-size: 10px;
    line-height: 1;
    transition: opacity 0.2s;
}

.active-tag .remove-tag:hover {
    opacity: 1;
}

/* Filter Group */
.filter-group {
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.filter-group:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    background: #fafafa;
    user-select: none;
    transition: background 0.2s;
}

.filter-group-header:hover {
    background: #f0f0f0;
}

.filter-group-header span {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group-header span i {
    color: var(--micron-blue);
    width: 16px;
}

.toggle-icon {
    font-size: 11px;
    color: #999;
    transition: transform 0.3s ease;
}

.filter-group-header.open .toggle-icon {
    transform: rotate(180deg);
}

.filter-group-body {
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}

.filter-group-body.collapsed {
    display: none;
}

/* Custom Checkbox */
.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding: 4px 0;
    transition: all 0.2s;
}

.filter-checkbox-item:hover .filter-label {
    color: var(--micron-blue);
}

.filter-checkbox-item input[type="checkbox"] {
    display: none;
}

.custom-check {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
    background: #fff;
}

.filter-checkbox-item input:checked ~ .custom-check {
    background: #000;
    border-color: #000;
}

.filter-checkbox-item input:checked ~ .custom-check::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: 2px solid var(--theme-yellow);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    flex: 1;
    transition: color 0.2s;
}

.filter-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--cream-bg);
    color: #888;
    padding: 2px 7px;
    border-radius: 10px;
}

.filter-count.new-badge {
    background: var(--theme-yellow);
    color: #000;
}

.new-arrival-item .filter-label {
    font-weight: 700;
}

/* Sidebar CTA */
.sidebar-cta {
    margin-top: 20px;
    background: linear-gradient(135deg, #000 0%, #1a1a2e 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
}

.sidebar-cta i {
    font-size: 28px;
    color: var(--theme-yellow);
    margin-bottom: 10px;
    display: block;
}

.sidebar-cta h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
}

.sidebar-cta p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    line-height: 1.5;
}

.btn-sidebar-cta {
    display: inline-block;
    background: var(--theme-yellow);
    color: #000;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-sidebar-cta:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: var(--theme-yellow);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 999;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-filter-btn:hover {
    background: var(--theme-yellow);
    color: #000;
}

.filter-active-dot {
    width: 8px;
    height: 8px;
    background: var(--theme-yellow);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Filter overlay for mobile */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}

/* ===========================
   PRODUCTS MAIN AREA
   =========================== */
.products-main-area {
    padding-left: 16px;
}

/* Top Bar */
.products-top-bar {
    background: #fff;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    flex-wrap: wrap;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.results-info span {
    font-size: 14px;
    color: #555;
}

.results-info strong {
    font-weight: 800;
    color: #000;
}

.category-crumb {
    background: var(--cream-bg);
    color: var(--micron-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--primary-blue);
}

.topbar-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-wrap label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.sort-select {
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    background: #fafafa;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.sort-select:focus {
    border-color: var(--micron-blue);
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--cream-bg);
    border-radius: 10px;
    padding: 4px;
}

.view-btn {
    background: none;
    border: none;
    padding: 7px 10px;
    border-radius: 7px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.view-btn.active,
.view-btn:hover {
    background: #fff;
    color: var(--micron-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===========================
   PRODUCT GRID
   =========================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: all 0.3s ease;
}

/* List view */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .prod-card {
    flex-direction: row;
    align-items: stretch;
}

.products-grid.list-view .prod-img-area {
    width: 180px;
    min-height: 160px;
    border-radius: 16px 0 0 16px;
    flex-shrink: 0;
}

.products-grid.list-view .prod-info {
    flex: 1;
}

/* ===========================
   PRODUCT CARD
   =========================== */
.prod-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1.5px solid transparent;
    animation: cardIn 0.4s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.prod-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-6px);
    border-color: var(--primary-blue);
}

/* Card Badges */
.prod-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
}

.badge-popular {
    background: #000;
    color: var(--theme-yellow);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-new {
    background: var(--theme-yellow);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    animation: newPulse 2s ease-in-out infinite;
}

@keyframes newPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,213,71,0.5); }
    50% { box-shadow: 0 0 0 4px rgba(245,213,71,0); }
}

.badge-highperf {
    background: #ff4f00;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-ai {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Product Image Area */
.prod-img-area {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.prod-card:hover .prod-img-area {
    height: 170px;
}

.prod-icon {
    font-size: 52px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.prod-card:hover .prod-icon {
    transform: scale(1.1) rotate(-5deg);
}

.prod-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.3;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

/* Color Themes for image areas */
.ssd-color {
    background: linear-gradient(135deg, #B8E0FF 0%, #0077C8 100%);
    color: #fff;
}
.ssd-color .prod-glow { background: #fff; }

.ssd-alt-color {
    background: linear-gradient(135deg, #d4efff 0%, #5baeff 100%);
    color: #003d6e;
}
.ssd-alt-color .prod-glow { background: #0077C8; }

.nvme-color {
    background: linear-gradient(135deg, #fff3cd 0%, #F5D547 100%);
    color: #5a4200;
}
.nvme-color .prod-glow { background: #f0a500; }

.memory-color {
    background: linear-gradient(135deg, #e0f0ff 0%, #4dabf7 100%);
    color: #004080;
}
.memory-color .prod-glow { background: #0066cc; }

.memory-alt-color {
    background: linear-gradient(135deg, #f0f4ff 0%, #aab8ff 100%);
    color: #1a237e;
}
.memory-alt-color .prod-glow { background: #3949ab; }

.client-color {
    background: linear-gradient(135deg, #e8fce8 0%, #69db7c 100%);
    color: #1a5c2a;
}
.client-color .prod-glow { background: #40c057; }

.nand-color {
    background: linear-gradient(135deg, #fff0f6 0%, #f783ac 100%);
    color: #6d1c37;
}
.nand-color .prod-glow { background: #e64980; }

.net-color {
    background: linear-gradient(135deg, #f3f0ff 0%, #9775fa 100%);
    color: #3b0076;
}
.net-color .prod-glow { background: #7048e8; }

.crucial-color {
    background: linear-gradient(135deg, #fff8e1 0%, #ffca28 100%);
    color: #5a3800;
}
.crucial-color .prod-glow { background: #ffa000; }

/* Product Info */
.prod-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-category-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--micron-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: block;
}

.crucial-tag {
    color: #d4a017;
}

.prod-name {
    font-size: 14px;
    font-weight: 800;
    color: #000;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.2s;
}

.prod-card:hover .prod-name {
    color: var(--micron-blue);
}

.prod-sku {
    font-size: 10px;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.prod-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
}

.prod-rating i {
    font-size: 11px;
    color: var(--theme-yellow);
}

.prod-rating span {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    margin-left: 4px;
}

.prod-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.prod-specs span {
    background: var(--cream-bg);
    border: 1px solid var(--border-light);
    color: #444;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.prod-card:hover .prod-specs span {
    background: #e8f4ff;
    border-color: var(--primary-blue);
    color: var(--micron-blue);
}

.prod-specs span i {
    font-size: 9px;
}

/* Footer row */
.prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.prod-avail {
    font-size: 11px;
    font-weight: 700;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prod-avail i {
    font-size: 11px;
}

.prod-avail.prod-order {
    color: #fd7e14;
}

.prod-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-get-quote {
    background: #000;
    color: var(--theme-yellow);
    font-size: 11px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
    border: 2px solid #000;
    display: inline-block;
}

.btn-get-quote:hover {
    background: var(--theme-yellow);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-wishlist {
    background: var(--cream-bg);
    border: 1.5px solid var(--border-light);
    color: #ccc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.25s;
    flex-shrink: 0;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: #fff0f6;
    border-color: #f783ac;
    color: #e64980;
    transform: scale(1.1);
}

/* ===========================
   NO RESULTS
   =========================== */
.no-results-msg {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    grid-column: 1/-1;
}

.no-results-msg i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.no-results-msg h4 {
    font-size: 20px;
    font-weight: 800;
    color: #555;
    margin-bottom: 8px;
}

.no-results-msg p {
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-clear-filters {
    background: #000;
    color: var(--theme-yellow);
    border: none;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s;
}

.btn-clear-filters:hover {
    background: var(--theme-yellow);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===========================
   HIDDEN / FILTERED CARDS
   =========================== */
.prod-card.hidden {
    display: none;
}

.prod-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-hero-title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .products-hero-title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-main-area {
        padding-left: 0;
    }

    .filter-sidebar {
        position: fixed;
        left: -110%;
        top: 0;
        bottom: 0;
        z-index: 1000;
        width: 300px;
        max-height: 100vh;
        border-radius: 0 20px 20px 0;
        transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
        margin-right: 0;
        padding-top: 80px;
    }

    .filter-sidebar.open {
        left: 0;
    }

    .filter-overlay.open {
        display: block;
    }

    .mobile-filter-btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .products-page-hero {
        padding: 120px 0 60px;
    }

    .products-hero-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .products-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats-wrap {
        justify-content: flex-start;
    }
}
/* ===========================
   TOPBAR INLINE FILTERS
   =========================== */
.products-top-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.topbar-inline-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

/* Dropdown wrapper */
.topbar-filter-dropdown {
    position: relative;
}

/* Trigger button */
.topbar-filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 30px;
    background: #f8f8f8;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.topbar-filter-btn:hover,
.topbar-filter-dropdown.open .topbar-filter-btn {
    border-color: var(--micron-blue);
    background: #e8f3ff;
    color: var(--micron-blue);
}

.tfd-arrow {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.25s;
}

.topbar-filter-dropdown.open .tfd-arrow {
    transform: rotate(180deg);
}

/* Panel */
.topbar-filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 10px 0;
    z-index: 999;
}

.topbar-filter-dropdown.open .topbar-filter-panel {
    display: block;
    animation: tfdFadeIn 0.18s ease;
}

@keyframes tfdFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Checkbox rows inside panel */
.tfd-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: background 0.15s;
}

.tfd-checkbox-item:hover {
    background: #f5f9ff;
}

.tfd-checkbox-item input[type="checkbox"] {
    display: none;
}

.tfd-custom-check {
    width: 17px;
    height: 17px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #fff;
}

.tfd-checkbox-item input[type="checkbox"]:checked + .tfd-custom-check {
    background: var(--micron-blue);
    border-color: var(--micron-blue);
}

.tfd-checkbox-item input[type="checkbox"]:checked + .tfd-custom-check::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.tfd-count {
    margin-left: auto;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.tfd-new-badge {
    background: #FFF3CD;
    color: #c97c00;
}

/* Active filter highlight on button */
.topbar-filter-dropdown.has-active .topbar-filter-btn {
    border-color: var(--theme-yellow);
    background: #fffbe6;
    color: #8a6800;
}

/* Responsive */
@media (max-width: 768px) {
    .topbar-inline-filters {
        width: 100%;
    }
    .products-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
