/* ==========================================================================
   NEXUS HARDWARE - MERCULAR STYLE DESIGN SYSTEM
   Clean, Friendly, Ultra-Rounded Consumer E-Commerce Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* ========================================================================
     OBSIDIAN CARBON & CYBER COBALT PALETTE (Crafted for #151716)
     ======================================================================== */
  --bg: #151716;             /* Base Dark Canvas (Requested: #151716) */
  --bg-alt: #1C1F1D;         /* Layer 1: Sub-sections, side promo, search wells */
  --surface-card: #202422;   /* Layer 2: Main product cards, auth box, dialogs */
  --surface-subtle: #272D2A; /* Layer 3: Inner chips, input fills, table hover */
  --line: #2E3632;           /* Crisp dividing hairlines & card borders */
  --line-strong: #3F4A45;    /* Interactive focus & hover borders */
  
  /* Vibrant Accents */
  --blue: #FF00A8;           /* Vivid Cyber Magenta / Neon Pink (Requested: #FF00A8) */
  --blue-deep: #D4008B;      /* Deep Magenta (Gradient anchoring & active state) */
  --blue-tint: rgba(255, 0, 168, 0.14); /* Luminous aura pill backgrounds */
  --sale: #FF5533;           /* Lava Coral / Ember (Discounts & Urgent badges) */
  --green: #10B981;          /* Emerald Jade (In-Stock & Verified Warranty) */
  --warning: #F59E0B;        /* Cyber Amber (Pending / Attention notices) */
  
  /* Text Contrast Hierarchy (WCAG AAA Compliant) */
  --text: #F2F5F3;           /* Crisp Soft Arctic White (Primary text) */
  --text-muted: #93A09A;     /* Titanium Slate (Secondary metadata & labels) */
  --text-dim: #64736C;       /* Subdued hints & breadcrumbs */
  
  /* Typography */
  --font-prompt: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii (Clean, Rounded geometry) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Dark Mode Ambient & Glow Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.65);
  --shadow-modal: 0 24px 50px rgba(0, 0, 0, 0.75);

  /* Compatibility aliases for subpages */
  --border-hairline: var(--line);
  --border-glass: var(--line);
  --bg-glass: var(--bg-alt);
  --canvas-bg: var(--bg);
  --text-main: var(--text);
  --text-body: var(--text);
  --text-white: var(--text);
  --brand-primary: var(--blue);
  --brand-secondary: var(--blue-deep);
  --accent-cyan: var(--blue);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);
  --font-numeric: var(--font-prompt);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-prompt);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. UTILITY BAR (Deep Obsidian Stealth Bar)
   ========================================================================== */
.utility-bar {
  background-color: #0E100F;
  border-bottom: 1px solid #1E2421;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 8px 0;
}

.utility-bar .utility-container,
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.utility-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.utility-group-left {
  justify-content: flex-start;
}

.utility-group-right {
  justify-content: flex-end;
}

.utility-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.utility-item svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.utility-item:hover svg {
  transform: scale(1.1);
}

.utility-link {
  color: var(--text-muted);
  text-decoration: none;
}

.utility-link:hover {
  color: var(--text);
}

.utility-link:hover svg {
  color: #ffffff;
}

/* Backward compatibility aliases */
.utility-items {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500;
}

.utility-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0.9;
}

/* ==========================================================================
   2. STICKY OBSIDIAN HEADER
   ========================================================================== */
.site-header {
  background-color: rgba(21, 23, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

/* Logo: Rounded square badge with blue gradient */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #ffffff;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: none;
}

.brand-names {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FF00A8;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Rounded Search Bar with soft gray --bg-alt */
.header-search {
  flex: 1;
  max-width: 500px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  height: 46px;
  background-color: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  padding: 0 20px 0 46px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  background-color: var(--bg);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(255, 0, 168, 0.2);
}

.search-box .search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Header Navigation & Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-portal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.nav-pill-link:hover {
  background-color: var(--blue-tint);
  color: var(--blue);
  border-color: rgba(255, 0, 168, 0.4);
}

.nav-pill-link.active {
  background-color: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 14px rgba(255, 0, 168, 0.45);
}

/* Cart Button with Orange Count Badge */
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  background-color: var(--blue-tint);
  color: var(--blue);
  border: 1.5px solid rgba(255, 0, 168, 0.45);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
}

.cart-btn:hover {
  background-color: rgba(255, 0, 168, 0.25);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255, 0, 168, 0.4);
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background-color: var(--sale);
  color: #ffffff;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 85, 51, 0.45);
}

/* Account dropdown / login */
.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s ease;
}

.user-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background-color: var(--surface-card);
}

/* ==========================================================================
   3. HORIZONTAL CIRCLE CATEGORY BAR (Scrollable, Stroke Icon, --bg-alt circle)
   ========================================================================== */
.categories-bar-section {
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
  height: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: var(--r-full);
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  width: 90px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--r-full);
  background-color: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-icon-circle svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  stroke-width: 1.8;
  fill: none;
  transition: all 0.2s ease;
}

.category-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.category-item:hover .category-icon-circle {
  background-color: var(--blue-tint);
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 0, 168, 0.25);
}

.category-item:hover .category-label {
  color: var(--blue);
}

.category-item.active .category-icon-circle {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(255, 0, 168, 0.45);
}

.category-item.active .category-icon-circle svg {
  stroke: #ffffff;
}

.category-item.active .category-label {
  color: var(--blue);
  font-weight: 700;
}

/* ==========================================================================
   4. HERO SECTION: 20px ROUNDED GRADIENT BANNER + 2 SIDE CARDS
   ========================================================================== */
.hero-wrapper {
  padding: 24px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.hero-main-banner {
  background: linear-gradient(135deg, #1C0515 0%, #3D092E 45%, #6A0C4E 80%, #FF00A8 100%);
  border: 1px solid rgba(255, 0, 168, 0.35);
  border-radius: var(--r-xl);
  padding: 44px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 0, 168, 0.25);
}

.hero-main-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  border-radius: var(--r-full);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  width: fit-content;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 520px;
}

.hero-desc {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-bottom: 24px;
  max-width: 480px;
  line-height: 1.6;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: #0F172A;
  padding: 13px 32px;
  border-radius: var(--r-full);
  font-size: 1rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-btn:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Side Cards */
.hero-side-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-subtle);
}

.side-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  background-color: var(--surface-subtle);
  box-shadow: var(--shadow-card);
}

.side-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-full);
  background-color: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  stroke-width: 2;
}

.side-card-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.side-card-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   5. BENEFITS BAR: 4 COLUMNS WITH CIRCLE ICONS
   ========================================================================== */
.benefits-section {
  padding: 20px 0 32px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 28px;
  box-shadow: var(--shadow-subtle);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.benefit-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background-color: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon-circle svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
  stroke-width: 2;
  fill: none;
}

.benefit-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.benefit-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   5.5 NEW ARRIVALS ("มาใหม่") SHOWCASE SECTION (Image 2 Card Style)
   ========================================================================== */
.new-arrivals-section {
  margin-bottom: 48px;
}

.section-tag-new {
  background-color: rgba(255, 0, 168, 0.16) !important;
  color: #FF2EB8 !important;
  border-color: rgba(255, 0, 168, 0.35) !important;
}

.new-arrivals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.new-card-box {
  background: linear-gradient(180deg, #370626 0%, #200316 48%, #14020e 100%);
  border: 1px solid rgba(255, 0, 168, 0.22);
  border-radius: 22px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.new-card-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 168, 0.4), transparent);
  pointer-events: none;
}

.new-card-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 168, 0.48);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 0, 168, 0.24);
}

.new-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 0, 139, 0.28);
  border: 1px solid rgba(255, 0, 168, 0.38);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  width: fit-content;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}

.new-badge-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.new-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.new-card-title:hover {
  color: #ff60cc;
}

.new-card-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-card-img-box {
  background-color: #0b020a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 22px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s ease;
}

.new-card-box:hover .new-card-img-box {
  border-color: rgba(255, 0, 168, 0.25);
}

.new-card-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.new-card-box:hover .new-card-img-box img {
  transform: scale(1.06);
}

.new-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.new-card-price-wrap {
  display: flex;
  flex-direction: column;
}

.new-price-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
  font-weight: 500;
}

.new-price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.new-card-btn {
  background-color: #ffffff;
  color: #121212;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.new-card-btn:hover {
  background-color: #f3f4f6;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.new-btn-arrow {
  font-size: 0.88rem;
  transition: transform 0.15s ease;
}

.new-card-btn:hover .new-btn-arrow {
  transform: translateX(3px);
}

@media (max-width: 1200px) {
  .new-arrivals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .new-arrivals-grid {
    grid-template-columns: 1fr;
  }
  .new-card-img-box {
    height: 190px;
  }
}

/* ==========================================================================
   6. SECTION HEADER ("สินค้าขายดี" + "ดูทั้งหมด")
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
}

.section-tag {
  background-color: rgba(255, 85, 51, 0.15);
  color: var(--sale);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 85, 51, 0.3);
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  transition: all 0.15s ease;
}

.section-view-all:hover {
  color: #FF4DC4;
  transform: translateX(3px);
}

/* ==========================================================================
   7. PRODUCT GRID: 4 COLUMNS, 18px ROUNDED, HIGH-CONTRAST CARDBOX
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
  width: 100%;
}

.product-card {
  background-color: #1A1E1C;
  border: 1px solid #2D3732;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 168, 0.55);
  background-color: #1E2320;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(255, 0, 168, 0.22);
}

/* Image frame inside crisp inset well */
.product-image-box {
  background-color: #0E1110;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 200px;
  margin: 12px 12px 8px;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: border-color 0.2s ease;
}

.product-card:hover .product-image-box {
  border-color: rgba(255, 0, 168, 0.2);
}

.product-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-box img {
  transform: scale(1.06);
}

/* Orange discount / sale badge */
.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--sale);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 85, 51, 0.45);
  z-index: 2;
}

/* Favorite heart button */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background-color: rgba(21, 23, 22, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  z-index: 4;
}

.favorite-btn svg {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.2s ease;
}

.favorite-btn:hover {
  color: var(--sale);
  background-color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(255, 85, 51, 0.25);
}

.favorite-btn.active {
  color: #ff3b4e !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 59, 78, 0.45);
  transform: scale(1.06);
}

.favorite-btn.active svg {
  fill: #ff3b4e;
  stroke: #ff3b4e;
  animation: heartPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}


/* Card Body */
.product-info {
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: rgba(255, 0, 168, 0.12);
  border: 1px solid rgba(255, 0, 168, 0.25);
  line-height: 1.3;
}

.product-brand.brand-intel {
  color: #00A3E0;
  background-color: rgba(0, 113, 197, 0.16);
  border-color: rgba(0, 113, 197, 0.35);
}

.product-brand.brand-amd {
  color: #FF5533;
  background-color: rgba(237, 28, 36, 0.16);
  border-color: rgba(237, 28, 36, 0.35);
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.65em;
  transition: color 0.15s ease;
}

.product-name:hover {
  color: var(--blue);
}

/* Small Spec Chips - Perfectly fitted to text (Anti-stretch) */
.product-spec-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 48px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  height: auto;
  line-height: 1.35;
  background-color: #121514;
  color: #93A09A;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid #28322D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

/* Price block: Bold Orange Current Price + Strikethrough Original */
.product-pricing {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.price-current {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sale);
}

.price-original {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Installment text */
.installment-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.installment-note strong {
  color: var(--text);
}

/* Stock Status Dot */
.stock-indicator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.75rem;
}

.stock-dot-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
}

.dot-green {
  background-color: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.dot-orange {
  background-color: var(--sale);
  box-shadow: 0 0 6px var(--sale);
}

.dot-gray {
  background-color: var(--text-muted);
}

.product-stock-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.75rem;
}

.tag-stock-in {
  background-color: rgba(16, 185, 129, 0.16);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tag-stock-low {
  background-color: rgba(255, 85, 51, 0.16);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.35);
}

.tag-stock-out {
  background-color: rgba(239, 68, 68, 0.16);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Add to Cart Button: friendly pill */
.btn-add-cart {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, #FF1AB3 0%, #E60096 100%);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-add-cart:disabled {
  background: var(--surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--line);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   BUTTONS (Pill & Ultra-rounded)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF1AB3 0%, #E60096 100%);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-secondary {
  background-color: var(--surface-subtle);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: var(--surface-card);
  border-color: var(--line-strong);
  color: var(--blue);
}

.btn-sale {
  background-color: var(--sale);
  color: #ffffff;
}

.btn-sale:hover {
  background-color: #e64528;
  box-shadow: 0 4px 16px rgba(255, 85, 51, 0.45);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   PRODUCT DETAIL VIEW (Mercular Clean Style)
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  margin: 20px 0 48px;
  box-shadow: var(--shadow-card);
}

.detail-gallery {
  background-color: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.detail-gallery img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-brand-badge {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.detail-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.detail-price-box {
  background: transparent;
  border: none;
  padding: 0;
  margin: 16px 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-price-num {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.detail-price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ==========================================================================
   QUANTITY STEPPER & PRODUCT DETAIL ACTIONS (Mercular / Modern Style)
   ========================================================================== */
.qty-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 22px;
}

.qty-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.qty-btn:hover:not(:disabled) {
  background-color: var(--blue-tint);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(255, 0, 168, 0.35);
}

.qty-btn:active:not(:disabled) {
  transform: translateY(0);
}

.qty-btn:disabled {
  border-color: var(--line);
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: 0.45;
}

.qty-input {
  width: 50px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
}

/* Detail Action Buttons Row (Add to Cart + Buy Now) */
.detail-actions-row {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 480px;
  margin-bottom: 28px;
}

.btn-detail-cart {
  flex: 1;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-detail-cart:hover {
  background-color: var(--blue-tint);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-detail-buynow {
  flex: 1;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.btn-detail-buynow:hover {
  background: linear-gradient(135deg, #FF1AB3 0%, #E60096 100%);
  transform: translateY(-1px);
  box-shadow: none;
}

/* Cart Table Step Buttons */
.cart-step-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.cart-step-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background-color: var(--blue-tint);
}

.specs-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.specs-data-table th,
.specs-data-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.specs-data-table th {
  width: 32%;
  color: var(--text-muted);
  font-weight: 600;
  background-color: var(--bg-alt);
}

.specs-data-table td {
  color: var(--text);
  font-weight: 500;
}

/* ==========================================================================
   CART & CHECKOUT TABLES
/* Layout grids for cart & checkout */
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

.inventory-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr auto;
  gap: 12px;
  align-items: flex-end;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.data-table th {
  background-color: var(--bg-alt);
  font-weight: 700;
  color: var(--text);
}

.data-table tbody tr:hover {
  background-color: var(--surface-subtle);
}

.data-table .col-num {
  text-align: right;
  font-weight: 700;
}

/* Summary Card */
.order-summary-card {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.summary-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row strong {
  color: var(--text);
}

.summary-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sale);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

/* ==========================================================================
   FORMS & INPUTS (Soft, Rounded)
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea, .form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-prompt);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

select option,
.form-select option,
.form-control option,
select optgroup,
.form-select optgroup {
  color: #000000;
  background-color: #ffffff;
}

select option:disabled,
.form-select option:disabled {
  color: #888888;
  background-color: #f8f9fa;
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder,
.form-control::placeholder {
  color: var(--text-dim);
  opacity: 0.75;
  font-family: var(--font-prompt);
  font-size: 0.88rem;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover,
.form-control:hover {
  border-color: var(--line-strong);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-control:focus {
  outline: none;
  background-color: var(--surface-subtle);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(255, 0, 168, 0.16);
}

textarea.form-control,
textarea.form-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* Quick Symptom Chips */
.symptom-chip {
  background: var(--surface-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-family: var(--font-prompt);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.symptom-chip:hover {
  background: var(--surface-subtle);
  border-color: var(--blue);
  color: var(--text);
  transform: translateY(-1px);
}

.symptom-chip:active {
  transform: translateY(0);
}

/* Auth Cards & Login Page */
.auth-page-container {
  min-height: calc(100vh - 240px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 16px;
  background: var(--bg);
  width: 100%;
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header .brand-badge {
  margin: 0 auto 16px;
  width: 52px;
  height: 52px;
  font-size: 1.35rem;
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px -4px rgba(255, 0, 168, 0.4);
}

.auth-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.auth-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  text-align: left;
}

.auth-form .form-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-size: 0.95rem;
  box-sizing: border-box;
  background-color: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-input:focus {
  outline: none;
  border-color: var(--blue);
  background-color: var(--surface-subtle);
  box-shadow: 0 0 0 3px var(--blue-tint);
}

.auth-submit-btn {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border-radius: var(--r-full);
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 0, 168, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(255, 0, 168, 0.5);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-footer-link {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-footer-link a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Demo Account Quick Selector */
.demo-accounts-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.demo-box-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.quick-login-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-login-btn {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text);
  font-family: inherit;
  width: 100%;
}

.quick-login-btn:hover {
  border-color: var(--blue);
  background-color: var(--blue-tint);
  transform: translateY(-2px);
  box-shadow: none;
}

.quick-role-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 2px;
}

.quick-role-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.quick-role-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Auth Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 22px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--line);
  z-index: 1;
}

.auth-divider span {
  position: relative;
  z-index: 2;
  background-color: var(--surface-card);
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Stat & Portal Cards */
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.portal-title h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}

.portal-title p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.stat-card .stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.stat-card .stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   FOOTER (Friendly, Clean, Informative)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 48px 0 28px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col-title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-link-list {
  list-style: none;
}

.footer-link-list li {
  margin-bottom: 8px;
}

.footer-link-list a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-link-list a:hover {
  color: var(--blue);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert {
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.35);
}

.alert-error {
  background-color: rgba(255, 85, 51, 0.15);
  color: var(--sale);
  border-color: rgba(255, 85, 51, 0.35);
}

.alert-info {
  background-color: var(--blue-tint);
  color: var(--blue);
  border-color: rgba(255, 0, 168, 0.35);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (Desktop, iPad/Tablet & Mobile Phones)
   ========================================================================== */

/* Tablet & iPad (Landscape & Portrait: max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  .utility-bar .utility-container,
  .utility-bar .container {
    max-width: 100%;
    padding: 0 16px;
    gap: 12px;
  }

  .utility-group {
    gap: 16px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-side-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 20px;
  }
  
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .inventory-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inventory-form-grid .form-group:first-child,
  .inventory-form-grid .btn {
    grid-column: 1 / -1;
  }

  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }
}

/* Mobile & Small Tablets / iPad Mini Portrait (max-width: 768px) */
@media (max-width: 768px) {
  /* Utility Bar */
  .utility-bar {
    padding: 6px 0;
    font-size: 0.75rem;
  }
  .utility-bar .utility-container,
  .utility-bar .container {
    justify-content: center;
    padding: 0 12px;
  }
  .utility-group-right,
  .utility-contact {
    display: none;
  }
  .utility-group-left,
  .utility-items {
    justify-content: center;
    width: 100%;
    gap: 12px;
  }
  .utility-item:nth-child(n+3) {
    display: none;
  }

  /* Header & Navigation */
  .header-inner {
    height: auto;
    padding: 10px 0 8px;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 12px;
  }
  
  .brand-logo {
    order: 1;
    gap: 8px;
  }
  .brand-badge {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: var(--r-sm);
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.8px;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
    gap: 8px;
  }
  
  .cart-btn {
    height: 40px;
    padding: 0 12px;
    font-size: 0.82rem;
    gap: 6px;
  }
  .cart-btn .cart-label-text {
    display: none;
  }
  
  .user-btn {
    height: 40px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 2px;
  }
  .search-box input {
    height: 42px;
    font-size: 0.86rem;
    padding-left: 40px;
  }
  .search-icon {
    left: 12px;
  }

  /* Mobile Portal Strip (Staff / Manager / Orders) */
  .nav-portal-links {
    order: 4;
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 4px 0 2px;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-portal-links::-webkit-scrollbar {
    display: none;
  }
  .nav-pill-link {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* Circle Categories Bar */
  .categories-bar-section {
    padding: 12px 0 16px;
  }
  .categories-scroll {
    gap: 12px;
    padding: 4px 0;
  }
  .category-item {
    width: 74px;
    gap: 6px;
  }
  .category-icon-circle {
    width: 52px;
    height: 52px;
  }
  .category-label {
    font-size: 0.72rem;
  }

  /* Hero Section */
  .hero-main-banner {
    padding: 24px 18px;
    border-radius: var(--r-lg);
    min-height: auto;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .hero-subtitle {
    font-size: 0.84rem;
    margin-bottom: 16px;
  }
  .hero-btn {
    height: 40px;
    padding: 0 20px;
    font-size: 0.85rem;
  }
  .hero-side-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .side-card {
    padding: 16px 18px;
    border-radius: var(--r-lg);
    gap: 14px;
  }
  .side-card-title {
    font-size: 0.92rem;
  }
  .side-card-desc {
    font-size: 0.78rem;
  }

  /* Product Grid: Modern E-Commerce Standard 2-Columns on Mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    border-radius: var(--r-md);
  }
  .product-image-box {
    height: 140px;
    margin: 8px;
    border-radius: var(--r-sm);
  }
  .product-content {
    padding: 8px 10px 14px;
  }
  .product-brand {
    font-size: 0.72rem;
    margin-bottom: 3px;
  }
  .product-title {
    font-size: 0.82rem;
    line-height: 1.35;
    height: 2.7em;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
  }
  .product-price-current {
    font-size: 1.05rem;
  }
  .product-price-installment {
    font-size: 0.7rem;
    margin-top: 2px;
  }
  .stock-indicator-row {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  .btn-add-cart {
    height: 36px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .sale-badge {
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    font-size: 0.65rem;
  }

  /* Product Detail */
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-gallery {
    height: 280px;
    padding: 16px;
  }
  .detail-title {
    font-size: 1.25rem;
  }
  .detail-price-current {
    font-size: 1.6rem;
  }
  .detail-purchase-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .detail-purchase-row .btn-add-cart-lg {
    width: 100%;
    justify-content: center;
  }
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Benefits Grid */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px 12px;
    border-radius: var(--r-lg);
  }
  .benefit-item {
    gap: 10px;
  }
  .benefit-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
  }
  .benefit-title {
    font-size: 0.82rem;
  }
  .benefit-desc {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  /* Tables & Portals */
  .table-responsive {
    border-radius: var(--r-md);
  }
  .data-table {
    min-width: 580px;
  }
  .portal-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
    margin-bottom: 20px !important;
  }
  .portal-header .btn {
    width: 100%;
    justify-content: center;
  }
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 16px;
  }

  .inventory-form-grid {
    grid-template-columns: 1fr;
  }
  .inventory-form-grid .btn {
    width: 100%;
  }

  /* Auth Pages */
  .auth-page-container {
    padding: 24px 16px;
    min-height: calc(100vh - 200px);
  }
  .auth-wrapper {
    padding: 30px 20px;
    border-radius: var(--r-xl);
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Extra Small Phones (max-width: 380px) */
@media (max-width: 380px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-image-box {
    height: 170px;
  }
}

/* ==========================================================================
   RECOMMENDED & BEST SELLERS CAROUSEL (Apple Store Cardbox Style)
   ========================================================================== */
.rec-section {
  position: relative;
  width: 100%;
  margin-top: 48px;
  margin-bottom: 60px;
}

.rec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: rgba(26, 29, 36, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.rec-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rec-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.rec-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.rec-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rec-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background-color: var(--surface-card);
  border: 1.5px solid var(--line);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.rec-nav-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: #ffffff;
  background-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 0, 168, 0.4);
}

.rec-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

/* Scroll Track */
.rec-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rec-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Individual Cardbox (Deep Plum Wine Gradient matching user reference) */
.rec-card {
  flex: 0 0 310px;
  width: 310px;
  height: 480px;
  scroll-snap-align: start;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(150deg, #2D0821 0%, #4D0A39 50%, #24061C 75%, #171918 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.rec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.rec-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 0, 168, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 0, 168, 0.25);
}

.rec-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  /* Image 1 style: Deep plum wine / magenta frosted pill with glowing border & white text */
  background: rgba(166, 11, 113, 0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(239, 26, 165, 0.5) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 0, 168, 0.18);
  color: #ffffff !important;
  transition: all 0.25s ease;
}

.rec-card-badge:hover {
  background: rgba(166, 11, 113, 0.75) !important;
  border-color: rgba(239, 26, 165, 0.75) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 0, 168, 0.35);
  transform: translateY(-1px);
}

.rec-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Liquid Glass Text Shimmer / Glow */
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 0, 168, 0.25);
  letter-spacing: -0.01em;
}

.rec-card-category {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Image Wrap with Floating Effect */
.rec-card-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.rec-card-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.rec-card-img {
  max-width: 200px;
  max-height: 175px;
  object-fit: contain;
  border-radius: var(--r-md);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rec-card:hover .rec-card-img {
  transform: scale(1.08) translateY(-4px);
}

/* Card Bottom */
.rec-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rec-card-price-row {
  display: flex;
  flex-direction: column;
}

.rec-price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.rec-price-val {
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.rec-card-btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: #0E100F;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rec-card-btn-shop:hover {
  background-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 0, 168, 0.4);
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .rec-card {
    flex: 0 0 260px;
    width: 260px;
    height: 420px;
    padding: 20px 18px;
  }
  .rec-card-title {
    font-size: 1.05rem;
  }
  .rec-card-img {
    max-width: 150px;
    max-height: 140px;
  }
}

/* ==========================================================================
   CPU BRAND & SERIES LISTBOX COMPONENT (Intel & AMD)
   Crafted with Obsidian Carbon & Cyber Accents
   ========================================================================== */
.cpu-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cpu-filter-toolbar:focus-within {
  border-color: rgba(255, 0, 168, 0.4);
}

.cpu-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Listbox Wrapper */
.cpu-listbox-wrapper {
  position: relative;
  display: inline-flex;
}

/* Visually Hidden Native Select */
.cpu-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Listbox Trigger Button */
.cpu-listbox-btn {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 18px 8px 12px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-height: 52px;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.cpu-listbox-btn:hover {
  background-color: #1F2421;
  border-color: var(--line-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.cpu-listbox-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cpu-listbox-btn.open {
  border-color: var(--blue);
  background-color: #222825;
  box-shadow: 0 0 20px rgba(255, 0, 168, 0.22);
}

.cpu-listbox-btn.active-filter {
  border-color: rgba(255, 0, 168, 0.55);
}

/* Icon / Brand Badge in Trigger */
.cpu-btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background-color: rgba(255, 0, 168, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-pill-mini {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 5px;
  line-height: 1;
}

.brand-pill-mini.intel {
  background-color: #0071C5;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 113, 197, 0.55);
}

.brand-pill-mini.amd {
  background-color: #ED1C24;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(237, 28, 36, 0.55);
}

.cpu-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cpu-btn-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.cpu-btn-val {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.cpu-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.cpu-count-pill {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.cpu-btn-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.cpu-listbox-btn.open .cpu-btn-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

/* Rich Cyber Glass Listbox Dropdown */
.cpu-listbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 700px;
  max-width: calc(100vw - 40px);
  background: #171B19;
  border: 1px solid #36423B;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(255, 0, 168, 0.14);
  z-index: 120;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
}

.cpu-listbox-dropdown.open {
  display: block;
  animation: cpuDropdownOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cpuDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Top Bar */
.cpu-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  gap: 12px;
}

.cpu-dropdown-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.cpu-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.cpu-reset-btn:hover {
  background-color: rgba(255, 0, 168, 0.14);
  border-color: var(--blue);
  color: #ffffff;
}

/* 2 Brands Grid */
.cpu-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cpu-brand-column {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.brand-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.intel-badge {
  color: #00A3E0;
}

.amd-badge {
  color: #FF5533;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.intel-badge .brand-dot {
  background-color: #0071C5;
  box-shadow: 0 0 8px #0071C5;
}

.amd-badge .brand-dot {
  background-color: #ED1C24;
  box-shadow: 0 0 8px #ED1C24;
}

.brand-all-link {
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.brand-all-link:hover,
.brand-all-link.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--line-strong);
}

.brand-all-link .count-tag {
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* Models List */
.cpu-models-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Option Items */
.cpu-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cpu-option-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.cpu-option-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* Selected states */
.intel-column .cpu-option-item.selected {
  background-color: rgba(0, 113, 197, 0.22);
  border-color: #0071C5;
  box-shadow: 0 0 16px rgba(0, 113, 197, 0.26);
}

.amd-column .cpu-option-item.selected {
  background-color: rgba(237, 28, 36, 0.22);
  border-color: #ED1C24;
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.26);
}

.option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Intel Gradients */
.tier-badge.intel-i9 {
  background: linear-gradient(135deg, #0071C5, #00376B);
  color: #ffffff;
}
.tier-badge.intel-i7 {
  background: linear-gradient(135deg, #00A3E0, #005A9C);
  color: #ffffff;
}
.tier-badge.intel-i5 {
  background: linear-gradient(135deg, #2D9CDB, #0288D1);
  color: #ffffff;
}
.tier-badge.intel-i3 {
  background: linear-gradient(135deg, #56CCF2, #2F80ED);
  color: #ffffff;
}

/* AMD Gradients */
.tier-badge.amd-r9 {
  background: linear-gradient(135deg, #ED1C24, #9E0000);
  color: #ffffff;
}
.tier-badge.amd-r7 {
  background: linear-gradient(135deg, #FF5533, #D42B00);
  color: #ffffff;
}
.tier-badge.amd-r5 {
  background: linear-gradient(135deg, #FF7A00, #E65100);
  color: #ffffff;
}
.tier-badge.amd-r3 {
  background: linear-gradient(135deg, #FFA726, #FB8C00);
  color: #ffffff;
}

.option-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.option-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.option-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.option-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  background-color: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.check-icon {
  display: none;
  font-size: 0.85rem;
  font-weight: 800;
}

.intel-column .cpu-option-item.selected .check-icon {
  display: inline-block;
  color: #00A3E0;
}

.amd-column .cpu-option-item.selected .check-icon {
  display: inline-block;
  color: #FF5533;
}

/* Quick Brand Pills */
.cpu-quick-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cpu-pill {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
}

.cpu-pill:hover {
  background-color: #1F2421;
  color: var(--text);
  border-color: var(--line-strong);
}

.cpu-pill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cpu-pill.active {
  background-color: rgba(255, 0, 168, 0.15);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 0, 168, 0.25);
}

.cpu-pill.pill-intel.active {
  background-color: rgba(0, 113, 197, 0.24);
  border-color: #0071C5;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 113, 197, 0.32);
}

.cpu-pill.pill-amd.active {
  background-color: rgba(237, 28, 36, 0.24);
  border-color: #ED1C24;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.32);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pill-dot.intel {
  background-color: #0071C5;
}

.pill-dot.amd {
  background-color: #ED1C24;
}

.pill-badge {
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: var(--r-full);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Filter Status Row */
.cpu-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.status-text strong {
  color: var(--text);
  font-weight: 700;
}

.status-divider {
  margin: 0 4px;
  color: var(--text-dim);
}

.cpu-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.cpu-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Smooth Card Filter Animations */
.product-card.card-fade-in {
  animation: cpuCardFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-card.card-fade-out {
  display: none !important;
}

@keyframes cpuCardFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsiveness for CPU */
@media (max-width: 840px) {
  .cpu-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .cpu-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .cpu-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
  .cpu-brands-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cpu-quick-pills {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   GPU BRAND & SERIES LISTBOX COMPONENT (NVIDIA & AMD)
   Clean Name-Only Minimal Cyber Design
   ========================================================================== */
.gpu-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gpu-filter-toolbar:focus-within {
  border-color: rgba(118, 185, 0, 0.45);
}

.gpu-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Listbox Wrapper */
.gpu-listbox-wrapper {
  position: relative;
  display: inline-flex;
}

/* Visually Hidden Native Select */
.gpu-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Listbox Trigger Button */
.gpu-listbox-btn {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 18px 8px 12px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-height: 52px;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.gpu-listbox-btn:hover {
  background-color: #1F2421;
  border-color: var(--line-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.gpu-listbox-btn:focus-visible {
  outline: 2px solid #76B900;
  outline-offset: 2px;
}

.gpu-listbox-btn.open {
  border-color: #76B900;
  background-color: #222825;
  box-shadow: 0 0 20px rgba(118, 185, 0, 0.25);
}

.gpu-listbox-btn.active-filter {
  border-color: rgba(118, 185, 0, 0.55);
}

/* Icon / Brand Badge in Trigger */
.gpu-btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background-color: rgba(118, 185, 0, 0.14);
  color: #76B900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-pill-mini.nvidia {
  background-color: #76B900;
  color: #0E100F;
  box-shadow: 0 0 10px rgba(118, 185, 0, 0.55);
}

.gpu-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gpu-btn-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.gpu-btn-val {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.gpu-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.gpu-count-pill {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.gpu-btn-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.gpu-listbox-btn.open .gpu-btn-chevron {
  transform: rotate(180deg);
  color: #76B900;
}

/* Rich Cyber Glass Listbox Dropdown */
.gpu-listbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 680px;
  max-width: calc(100vw - 40px);
  background: #171B19;
  border: 1px solid #36423B;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(118, 185, 0, 0.15);
  z-index: 120;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
}

.gpu-listbox-dropdown.open {
  display: block;
  animation: gpuDropdownOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gpuDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Top Bar */
.gpu-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  gap: 12px;
}

.gpu-dropdown-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.gpu-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.gpu-reset-btn:hover {
  background-color: rgba(118, 185, 0, 0.15);
  border-color: #76B900;
  color: #ffffff;
}

/* 2 Brands Grid */
.gpu-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gpu-brand-column {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.brand-column-header.nvidia-hdr {
  border-bottom-color: rgba(118, 185, 0, 0.2);
}

.nvidia-badge {
  color: #76B900;
}

.nvidia-badge .brand-dot {
  background-color: #76B900;
  box-shadow: 0 0 8px #76B900;
}

.brand-column-header.amd-hdr {
  border-bottom-color: rgba(237, 28, 36, 0.2);
}

.amd-badge {
  color: #ED1C24;
}

.amd-badge .brand-dot {
  background-color: #ED1C24;
  box-shadow: 0 0 8px #ED1C24;
}

/* Models List */
.gpu-models-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Option Items (Clean Name-only) */
.gpu-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gpu-option-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.gpu-option-item:focus-visible {
  outline: 2px solid #76B900;
  outline-offset: 1px;
}

/* Selected states */
.nvidia-column .gpu-option-item.selected {
  background-color: rgba(118, 185, 0, 0.22);
  border-color: #76B900;
  box-shadow: 0 0 16px rgba(118, 185, 0, 0.26);
}

.amd-column .gpu-option-item.selected {
  background-color: rgba(237, 28, 36, 0.22);
  border-color: #ED1C24;
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.26);
}

/* Tier Badges for NVIDIA */
.tier-badge.nvidia-5090 {
  background: linear-gradient(135deg, #76B900, #3A5C00);
  color: #ffffff;
}
.tier-badge.nvidia-4080 {
  background: linear-gradient(135deg, #87D300, #4C7700);
  color: #ffffff;
}
.tier-badge.nvidia-4070 {
  background: linear-gradient(135deg, #99E600, #5C8F00);
  color: #0E100F;
}
.tier-badge.nvidia-4060 {
  background: linear-gradient(135deg, #AAFA05, #6BA600);
  color: #0E100F;
}

/* Tier Badges for AMD Radeon */
.tier-badge.amd-7900 {
  background: linear-gradient(135deg, #ED1C24, #9E0000);
  color: #ffffff;
}
.tier-badge.amd-7800 {
  background: linear-gradient(135deg, #FF5533, #D42B00);
  color: #ffffff;
}
.tier-badge.amd-7700 {
  background: linear-gradient(135deg, #FF7A00, #E65100);
  color: #ffffff;
}
.tier-badge.amd-7600 {
  background: linear-gradient(135deg, #FFA726, #FB8C00);
  color: #ffffff;
}

/* Clean Name Only */
.gpu-option-item .option-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.nvidia-column .gpu-option-item.selected .check-icon {
  display: inline-block;
  color: #76B900;
}

.amd-column .gpu-option-item.selected .check-icon {
  display: inline-block;
  color: #FF5533;
}

/* Quick Brand Pills for GPU */
.gpu-quick-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gpu-pill {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
}

.gpu-pill:hover {
  background-color: #1F2421;
  color: var(--text);
  border-color: var(--line-strong);
}

.gpu-pill:focus-visible {
  outline: 2px solid #76B900;
  outline-offset: 2px;
}

.gpu-pill.active {
  background-color: rgba(255, 0, 168, 0.15);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 0, 168, 0.25);
}

.gpu-pill.pill-nvidia.active {
  background-color: rgba(118, 185, 0, 0.24);
  border-color: #76B900;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(118, 185, 0, 0.35);
}

.gpu-pill.pill-amd.active {
  background-color: rgba(237, 28, 36, 0.24);
  border-color: #ED1C24;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.32);
}

.pill-dot.nvidia {
  background-color: #76B900;
}

/* Filter Status Row */
.gpu-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.gpu-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.gpu-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Mobile Responsiveness for GPU */
@media (max-width: 840px) {
  .gpu-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .gpu-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .gpu-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
  .gpu-brands-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gpu-quick-pills {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   MOTHERBOARD FILTER LISTBOX (Obsidian Cyber Style - Intel & AMD, No Sub-topics)
   ========================================================================== */
.mb-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mb-filter-toolbar:focus-within {
  border-color: rgba(0, 199, 253, 0.45);
}

.mb-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Listbox Wrapper */
.mb-listbox-wrapper {
  position: relative;
  display: inline-flex;
}

/* Hidden Native Select */
.mb-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Listbox Trigger Button */
.mb-listbox-btn {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 18px 8px 12px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-height: 52px;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.mb-listbox-btn:hover {
  background-color: #1F2421;
  border-color: var(--line-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.mb-listbox-btn:focus-visible {
  outline: 2px solid #00C7FD;
  outline-offset: 2px;
}

.mb-listbox-btn.open {
  border-color: #00C7FD;
  background-color: #222825;
  box-shadow: 0 0 20px rgba(0, 199, 253, 0.25);
}

.mb-listbox-btn.active-filter {
  border-color: rgba(0, 199, 253, 0.55);
}

/* Icon / Brand Badge in Trigger */
.mb-btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background-color: rgba(0, 199, 253, 0.14);
  color: #00C7FD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mb-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mb-btn-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.mb-btn-val {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.mb-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.mb-count-pill {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.mb-btn-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.mb-listbox-btn.open .mb-btn-chevron {
  transform: rotate(180deg);
  color: #00C7FD;
}

/* Dropdown Panel (Intel & AMD 2 Columns, No Sub-topics) */
.mb-listbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 640px;
  max-width: calc(100vw - 40px);
  background: #171B19;
  border: 1px solid #36423B;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(0, 199, 253, 0.15);
  z-index: 120;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
}

.mb-listbox-dropdown.open {
  display: block;
  animation: mbDropdownOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mbDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Header */
.mb-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  gap: 12px;
}

.mb-dropdown-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.mb-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.mb-reset-btn:hover {
  background-color: rgba(0, 199, 253, 0.15);
  border-color: #00C7FD;
  color: #ffffff;
}

/* 2 Topics Grid: Intel & AMD, No Sub-topics */
.mb-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Big Interactive Brand Option Cards */
.mb-brand-option {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.mb-brand-option:hover {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.mb-brand-option:focus-visible {
  outline: 2px solid #00C7FD;
  outline-offset: 2px;
}

/* Intel Card Specifics */
.mb-brand-option.intel-option:hover {
  border-color: #00C7FD;
  box-shadow: 0 8px 28px rgba(0, 199, 253, 0.22);
}

.mb-brand-option.intel-option.selected {
  background: linear-gradient(145deg, rgba(0, 113, 197, 0.25) 0%, rgba(0, 199, 253, 0.12) 100%);
  border-color: #00C7FD;
  box-shadow: 0 0 24px rgba(0, 199, 253, 0.35);
}

/* AMD Card Specifics */
.mb-brand-option.amd-option:hover {
  border-color: #ED1C24;
  box-shadow: 0 8px 28px rgba(237, 28, 36, 0.22);
}

.mb-brand-option.amd-option.selected {
  background: linear-gradient(145deg, rgba(237, 28, 36, 0.25) 0%, rgba(255, 85, 51, 0.12) 100%);
  border-color: #ED1C24;
  box-shadow: 0 0 24px rgba(237, 28, 36, 0.35);
}

.mb-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mb-brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mb-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mb-brand-option.intel-option .mb-brand-title {
  color: #00C7FD;
}

.mb-brand-option.amd-option .mb-brand-title {
  color: #FF5533;
}

.mb-brand-option .brand-dot.intel {
  background-color: #00C7FD;
  box-shadow: 0 0 8px #00C7FD;
}

.mb-brand-option .brand-dot.amd {
  background-color: #ED1C24;
  box-shadow: 0 0 8px #ED1C24;
}

.mb-brand-socket-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-md);
  width: fit-content;
}

.mb-brand-option.intel-option .mb-brand-socket-badge {
  background-color: rgba(0, 199, 253, 0.15);
  color: #00C7FD;
  border: 1px solid rgba(0, 199, 253, 0.3);
}

.mb-brand-option.amd-option .mb-brand-socket-badge {
  background-color: rgba(237, 28, 36, 0.15);
  color: #FF5533;
  border: 1px solid rgba(237, 28, 36, 0.3);
}

.mb-brand-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mb-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
}

.mb-brand-footer .check-icon {
  font-weight: 800;
  display: none;
}

.mb-brand-option.selected .mb-brand-footer .check-icon {
  display: inline-block;
}

.mb-brand-option.intel-option.selected .check-icon {
  color: #00C7FD;
}

.mb-brand-option.amd-option.selected .check-icon {
  color: #FF5533;
}

/* Quick Brand Pills for Motherboard */
.mb-quick-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mb-pill {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
}

.mb-pill:hover {
  background-color: #1F2421;
  color: var(--text);
  border-color: var(--line-strong);
}

.mb-pill:focus-visible {
  outline: 2px solid #00C7FD;
  outline-offset: 2px;
}

.mb-pill.active {
  background-color: rgba(255, 0, 168, 0.15);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 0, 168, 0.25);
}

.mb-pill.pill-intel.active {
  background-color: rgba(0, 199, 253, 0.24);
  border-color: #00C7FD;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 199, 253, 0.35);
}

.mb-pill.pill-amd.active {
  background-color: rgba(237, 28, 36, 0.24);
  border-color: #ED1C24;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.32);
}

/* Filter Status Row */
.mb-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.mb-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.mb-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Mobile Responsiveness for Motherboard */
@media (max-width: 840px) {
  .mb-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .mb-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .mb-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
  .mb-brands-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mb-quick-pills {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   RAM FILTER LISTBOX (Obsidian Cyber Style - DDR4 & DDR5, No Sub-topics)
   ========================================================================== */
.ram-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ram-filter-toolbar:focus-within {
  border-color: rgba(255, 0, 168, 0.45);
}

.ram-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Listbox Wrapper */
.ram-listbox-wrapper {
  position: relative;
  display: inline-flex;
}

/* Hidden Native Select */
.ram-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Listbox Trigger Button */
.ram-listbox-btn {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 18px 8px 12px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-height: 52px;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.ram-listbox-btn:hover {
  background-color: #1F2421;
  border-color: var(--line-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.ram-listbox-btn:focus-visible {
  outline: 2px solid #FF00A8;
  outline-offset: 2px;
}

.ram-listbox-btn.open {
  border-color: #FF00A8;
  background-color: #222825;
  box-shadow: 0 0 20px rgba(255, 0, 168, 0.25);
}

.ram-listbox-btn.active-filter {
  border-color: rgba(255, 0, 168, 0.55);
}

/* Icon / Badge in Trigger */
.ram-btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background-color: rgba(255, 0, 168, 0.14);
  color: #FF00A8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-pill-mini.ddr4 {
  background-color: #FFA726;
  color: #0E100F;
  box-shadow: 0 0 10px rgba(255, 167, 38, 0.55);
}

.brand-pill-mini.ddr5 {
  background-color: #FF00A8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 0, 168, 0.55);
}

.ram-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ram-btn-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.ram-btn-val {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ram-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.ram-count-pill {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.ram-btn-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.ram-listbox-btn.open .ram-btn-chevron {
  transform: rotate(180deg);
  color: #FF00A8;
}

/* Dropdown Panel (DDR4 & DDR5 2 Columns, No Sub-topics) */
.ram-listbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 640px;
  max-width: calc(100vw - 40px);
  background: #171B19;
  border: 1px solid #36423B;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(255, 0, 168, 0.15);
  z-index: 120;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
}

.ram-listbox-dropdown.open {
  display: block;
  animation: ramDropdownOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ramDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Header */
.ram-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  gap: 12px;
}

.ram-dropdown-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.ram-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ram-reset-btn:hover {
  background-color: rgba(255, 0, 168, 0.15);
  border-color: #FF00A8;
  color: #ffffff;
}

/* 2 Topics Grid: DDR4 & DDR5 (No Sub-topics) */
.ram-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Big Interactive Brand Option Cards */
.ram-brand-option {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.ram-brand-option:hover {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.ram-brand-option:focus-visible {
  outline: 2px solid #FF00A8;
  outline-offset: 2px;
}

/* DDR4 Specifics */
.ram-brand-option.ddr4-option:hover {
  border-color: #FFA726;
  box-shadow: 0 8px 28px rgba(255, 167, 38, 0.22);
}

.ram-brand-option.ddr4-option.selected {
  background: linear-gradient(145deg, rgba(255, 167, 38, 0.25) 0%, rgba(255, 167, 38, 0.1) 100%);
  border-color: #FFA726;
  box-shadow: 0 0 24px rgba(255, 167, 38, 0.35);
}

/* DDR5 Specifics */
.ram-brand-option.ddr5-option:hover {
  border-color: #FF00A8;
  box-shadow: 0 8px 28px rgba(255, 0, 168, 0.22);
}

.ram-brand-option.ddr5-option.selected {
  background: linear-gradient(145deg, rgba(255, 0, 168, 0.25) 0%, rgba(168, 85, 247, 0.12) 100%);
  border-color: #FF00A8;
  box-shadow: 0 0 24px rgba(255, 0, 168, 0.35);
}

.ram-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ram-brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ram-brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ram-brand-option.ddr4-option .ram-brand-title {
  color: #FFA726;
}

.ram-brand-option.ddr5-option .ram-brand-title {
  color: #FF00A8;
}

.ram-brand-option .brand-dot.ddr4 {
  background-color: #FFA726;
  box-shadow: 0 0 8px #FFA726;
}

.ram-brand-option .brand-dot.ddr5 {
  background-color: #FF00A8;
  box-shadow: 0 0 8px #FF00A8;
}

.ram-brand-bus-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-md);
  width: fit-content;
}

.ram-brand-option.ddr4-option .ram-brand-bus-badge {
  background-color: rgba(255, 167, 38, 0.15);
  color: #FFA726;
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.ram-brand-option.ddr5-option .ram-brand-bus-badge {
  background-color: rgba(255, 0, 168, 0.15);
  color: #FF00A8;
  border: 1px solid rgba(255, 0, 168, 0.3);
}

.ram-brand-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ram-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
}

.ram-brand-footer .check-icon {
  font-weight: 800;
  display: none;
}

.ram-brand-option.selected .ram-brand-footer .check-icon {
  display: inline-block;
}

.ram-brand-option.ddr4-option.selected .check-icon {
  color: #FFA726;
}

.ram-brand-option.ddr5-option.selected .check-icon {
  color: #FF00A8;
}

/* Quick Pills for RAM */
.ram-quick-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ram-pill {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
}

.ram-pill:hover {
  background-color: #1F2421;
  color: var(--text);
  border-color: var(--line-strong);
}

.ram-pill:focus-visible {
  outline: 2px solid #FF00A8;
  outline-offset: 2px;
}

.ram-pill.active {
  background-color: rgba(255, 0, 168, 0.15);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 0, 168, 0.25);
}

.ram-pill.pill-ddr4.active {
  background-color: rgba(255, 167, 38, 0.24);
  border-color: #FFA726;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 167, 38, 0.35);
}

.ram-pill.pill-ddr5.active {
  background-color: rgba(255, 0, 168, 0.24);
  border-color: #FF00A8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 0, 168, 0.35);
}

.pill-dot.ddr4 {
  background-color: #FFA726;
}

.pill-dot.ddr5 {
  background-color: #FF00A8;
}

/* Filter Status Row */
.ram-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.ram-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ram-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Mobile Responsiveness for RAM */
@media (max-width: 840px) {
  .ram-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .ram-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .ram-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
  .ram-brands-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ram-quick-pills {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   STORAGE FILTER LISTBOX (Obsidian Cyber Style - SSD & HDD, No Sub-topics)
   ========================================================================== */
.storage-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.storage-filter-toolbar:focus-within {
  border-color: rgba(0, 229, 255, 0.45);
}

.storage-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Listbox Wrapper */
.storage-listbox-wrapper {
  position: relative;
  display: inline-flex;
}

/* Hidden Native Select */
.storage-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Listbox Trigger Button */
.storage-listbox-btn {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 18px 8px 12px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-height: 52px;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.storage-listbox-btn:hover {
  background-color: #1F2421;
  border-color: var(--line-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.storage-listbox-btn:focus-visible {
  outline: 2px solid #00E5FF;
  outline-offset: 2px;
}

.storage-listbox-btn.open {
  border-color: #00E5FF;
  background-color: #222825;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.storage-listbox-btn.active-filter {
  border-color: rgba(0, 229, 255, 0.55);
}

/* Icon / Badge in Trigger */
.storage-btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background-color: rgba(0, 229, 255, 0.12);
  color: #00E5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-pill-mini.ssd {
  background-color: #00E5FF;
  color: #0E100F;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
}

.brand-pill-mini.hdd {
  background-color: #FFA726;
  color: #0E100F;
  box-shadow: 0 0 10px rgba(255, 167, 38, 0.55);
}

.storage-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.storage-btn-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.storage-btn-val {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.storage-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.storage-count-pill {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.storage-btn-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.storage-listbox-btn.open .storage-btn-chevron {
  transform: rotate(180deg);
  color: #00E5FF;
}

/* Dropdown Panel (SSD & HDD 2 Columns, No Sub-topics) */
.storage-listbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 640px;
  max-width: calc(100vw - 40px);
  background: #171B19;
  border: 1px solid #36423B;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(0, 229, 255, 0.15);
  z-index: 120;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
}

.storage-listbox-dropdown.open {
  display: block;
  animation: storageDropdownOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes storageDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Header */
.storage-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  gap: 12px;
}

.storage-dropdown-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.storage-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.storage-reset-btn:hover {
  background-color: rgba(0, 229, 255, 0.15);
  border-color: #00E5FF;
  color: #ffffff;
}

/* 2 Topics Grid: SSD & HDD (No Sub-topics) */
.storage-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Big Interactive Brand Option Cards */
.storage-brand-option {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.storage-brand-option:hover {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.storage-brand-option:focus-visible {
  outline: 2px solid #00E5FF;
  outline-offset: 2px;
}

/* SSD Specifics (Neon Cyan) */
.storage-brand-option.ssd-option:hover {
  border-color: #00E5FF;
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.22);
}

.storage-brand-option.ssd-option.selected {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.22) 0%, rgba(0, 229, 255, 0.08) 100%);
  border-color: #00E5FF;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

/* HDD Specifics (Amber/Gold) */
.storage-brand-option.hdd-option:hover {
  border-color: #FFA726;
  box-shadow: 0 8px 28px rgba(255, 167, 38, 0.22);
}

.storage-brand-option.hdd-option.selected {
  background: linear-gradient(145deg, rgba(255, 167, 38, 0.25) 0%, rgba(255, 167, 38, 0.1) 100%);
  border-color: #FFA726;
  box-shadow: 0 0 24px rgba(255, 167, 38, 0.35);
}

.storage-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.storage-brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.storage-brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.storage-brand-option.ssd-option .storage-brand-title {
  color: #00E5FF;
}

.storage-brand-option.hdd-option .storage-brand-title {
  color: #FFA726;
}

.storage-brand-option .brand-dot.ssd {
  background-color: #00E5FF;
  box-shadow: 0 0 8px #00E5FF;
}

.storage-brand-option .brand-dot.hdd {
  background-color: #FFA726;
  box-shadow: 0 0 8px #FFA726;
}

.storage-brand-type-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-md);
  width: fit-content;
}

.storage-brand-option.ssd-option .storage-brand-type-badge {
  background-color: rgba(0, 229, 255, 0.15);
  color: #00E5FF;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.storage-brand-option.hdd-option .storage-brand-type-badge {
  background-color: rgba(255, 167, 38, 0.15);
  color: #FFA726;
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.storage-brand-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.storage-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
}

.storage-brand-footer .check-icon {
  font-weight: 800;
  display: none;
}

.storage-brand-option.selected .storage-brand-footer .check-icon {
  display: inline-block;
}

.storage-brand-option.ssd-option.selected .check-icon {
  color: #00E5FF;
}

.storage-brand-option.hdd-option.selected .check-icon {
  color: #FFA726;
}

/* Quick Pills for Storage */
.storage-quick-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.storage-pill {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
}

.storage-pill:hover {
  background-color: #1F2421;
  color: var(--text);
  border-color: var(--line-strong);
}

.storage-pill:focus-visible {
  outline: 2px solid #00E5FF;
  outline-offset: 2px;
}

.storage-pill.active {
  background-color: rgba(0, 229, 255, 0.15);
  border-color: #00E5FF;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.storage-pill.pill-ssd.active {
  background-color: rgba(0, 229, 255, 0.22);
  border-color: #00E5FF;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.storage-pill.pill-hdd.active {
  background-color: rgba(255, 167, 38, 0.24);
  border-color: #FFA726;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 167, 38, 0.35);
}

.pill-dot.ssd {
  background-color: #00E5FF;
}

.pill-dot.hdd {
  background-color: #FFA726;
}

/* Filter Status Row */
.storage-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.storage-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.storage-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Mobile Responsiveness for Storage */
@media (max-width: 840px) {
  .storage-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .storage-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .storage-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
  .storage-brands-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .storage-quick-pills {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   POWER SUPPLY (PSU) FILTER LISTBOX (Obsidian Cyber Style - Single Column Stack)
   ========================================================================== */
.psu-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.psu-filter-toolbar:focus-within {
  border-color: rgba(255, 0, 168, 0.45);
}

.psu-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Listbox Wrapper */
.psu-listbox-wrapper {
  position: relative;
  display: inline-flex;
}

/* Hidden Native Select */
.psu-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Listbox Trigger Button */
.psu-listbox-btn {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 18px 8px 12px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-height: 52px;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.psu-listbox-btn:hover {
  background-color: #1F2421;
  border-color: var(--line-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.psu-listbox-btn:focus-visible {
  outline: 2px solid #FF00A8;
  outline-offset: 2px;
}

.psu-listbox-btn.open {
  border-color: #FF00A8;
  background-color: #222825;
  box-shadow: 0 0 20px rgba(255, 0, 168, 0.25);
}

.psu-listbox-btn.active-filter {
  border-color: rgba(255, 0, 168, 0.6);
}

/* Icon / Badge in Trigger */
.psu-btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background-color: rgba(255, 0, 168, 0.14);
  color: #FF00A8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-pill-mini.psu {
  background: linear-gradient(135deg, #FF00A8, #E65100);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 0, 168, 0.55);
}

.psu-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.psu-btn-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.psu-btn-val {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.psu-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.psu-count-pill {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.psu-btn-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.psu-listbox-btn.open .psu-btn-chevron {
  transform: rotate(180deg);
  color: #FF00A8;
}

/* Dropdown Panel (Single Column Vertical Stack - แถวเดียวเรียงลงมา) */
.psu-listbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 520px;
  max-width: calc(100vw - 40px);
  background: #171B19;
  border: 1px solid #36423B;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(255, 0, 168, 0.15);
  z-index: 120;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
}

.psu-listbox-dropdown.open {
  display: block;
  animation: psuDropdownOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes psuDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Header */
.psu-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  gap: 12px;
}

.psu-dropdown-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.psu-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.psu-reset-btn:hover {
  background-color: rgba(255, 0, 168, 0.15);
  border-color: #FF00A8;
  color: #ffffff;
}

/* Single Column Vertical Stack of Wattage Items (แถวเดียวเรียงลงมา) */
.psu-watt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual Watt Option Card */
.psu-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.psu-option-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 0, 168, 0.3);
  transform: translateX(4px);
}

.psu-option-item:focus-visible {
  outline: 2px solid #FF00A8;
  outline-offset: 1px;
}

.psu-option-item.selected {
  background: linear-gradient(90deg, rgba(255, 0, 168, 0.18) 0%, rgba(255, 0, 168, 0.04) 100%);
  border-color: #FF00A8;
  box-shadow: 0 0 16px rgba(255, 0, 168, 0.25);
}

.psu-option-item .option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Wattage Tier Badges */
.tier-badge.psu-600w {
  background: linear-gradient(135deg, #FFB300, #F57C00);
  color: #121212;
  font-weight: 800;
  width: 52px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
}

.tier-badge.psu-650w {
  background: linear-gradient(135deg, #FF7043, #D84315);
  color: #ffffff;
  font-weight: 800;
  width: 52px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 112, 67, 0.3);
}

.tier-badge.psu-750w {
  background: linear-gradient(135deg, #00E5FF, #0091EA);
  color: #0E100F;
  font-weight: 800;
  width: 52px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.3);
}

.tier-badge.psu-850w {
  background: linear-gradient(135deg, #FFA726, #E65100);
  color: #ffffff;
  font-weight: 800;
  width: 52px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 167, 38, 0.35);
}

.tier-badge.psu-1000w {
  background: linear-gradient(135deg, #FF00A8, #8E24AA);
  color: #ffffff;
  font-weight: 800;
  width: 52px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255, 0, 168, 0.4);
}

.psu-option-item .option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.psu-option-item .option-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.psu-option-item.selected .option-name {
  color: #ffffff;
}

.psu-option-item .option-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.psu-option-item .option-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.psu-option-item .item-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.psu-option-item .check-icon {
  font-weight: 800;
  color: #FF00A8;
  display: none;
}

.psu-option-item.selected .check-icon {
  display: inline-block;
}

/* Quick Watt Pills for PSU */
.psu-quick-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.psu-pill {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
}

.psu-pill:hover {
  background-color: #1F2421;
  color: var(--text);
  border-color: var(--line-strong);
}

.psu-pill:focus-visible {
  outline: 2px solid #FF00A8;
  outline-offset: 2px;
}

.psu-pill.active {
  background-color: rgba(255, 0, 168, 0.2);
  border-color: #FF00A8;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 0, 168, 0.3);
}

/* Filter Status Row */
.psu-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.psu-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.psu-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Mobile Responsiveness for PSU */
@media (max-width: 840px) {
  .psu-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .psu-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .psu-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
  .psu-quick-pills {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   CASE & COOLING FILTER LISTBOX (Obsidian Cyber Style - Case & Cooling, No Sub-topics)
   ========================================================================== */
.case-cool-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-cool-filter-toolbar:focus-within {
  border-color: rgba(168, 85, 247, 0.45);
}

.case-cool-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Listbox Wrapper */
.case-cool-listbox-wrapper {
  position: relative;
  display: inline-flex;
}

/* Hidden Native Select */
.case-cool-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Listbox Trigger Button */
.case-cool-listbox-btn {
  background-color: #171B19;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 18px 8px 12px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-height: 52px;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.case-cool-listbox-btn:hover {
  background-color: #1F2421;
  border-color: var(--line-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.case-cool-listbox-btn:focus-visible {
  outline: 2px solid #A855F7;
  outline-offset: 2px;
}

.case-cool-listbox-btn.open {
  border-color: #A855F7;
  background-color: #222825;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.case-cool-listbox-btn.active-filter {
  border-color: rgba(168, 85, 247, 0.65);
}

/* Icon / Badge in Trigger */
.case-cool-btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background-color: rgba(168, 85, 247, 0.14);
  color: #A855F7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-pill-mini.case {
  background-color: #A855F7;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.55);
}

.brand-pill-mini.cooling {
  background-color: #00F0FF;
  color: #0E100F;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
}

.case-cool-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-cool-btn-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.case-cool-btn-val {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.case-cool-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.case-cool-count-pill {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.case-cool-btn-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.case-cool-listbox-btn.open .case-cool-btn-chevron {
  transform: rotate(180deg);
  color: #A855F7;
}

/* Dropdown Panel (Case & Cooling 2 Columns, No Sub-topics) */
.case-cool-listbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 640px;
  max-width: calc(100vw - 40px);
  background: #171B19;
  border: 1px solid #36423B;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(168, 85, 247, 0.15);
  z-index: 120;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
}

.case-cool-listbox-dropdown.open {
  display: block;
  animation: caseCoolDropdownOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes caseCoolDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Header */
.case-cool-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  gap: 12px;
}

.case-cool-dropdown-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.case-cool-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.case-cool-reset-btn:hover {
  background-color: rgba(168, 85, 247, 0.15);
  border-color: #A855F7;
  color: #ffffff;
}

/* 2 Topics Grid: Case & Cooling (No Sub-topics) */
.case-cool-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Big Interactive Option Cards */
.case-cool-brand-option {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.case-cool-brand-option:hover {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.case-cool-brand-option:focus-visible {
  outline: 2px solid #A855F7;
  outline-offset: 2px;
}

/* Case Specifics (Obsidian Violet) */
.case-cool-brand-option.case-option:hover {
  border-color: #A855F7;
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.25);
}

.case-cool-brand-option.case-option.selected {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.08) 100%);
  border-color: #A855F7;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.38);
}

/* Cooling Specifics (Ice Cyan) */
.case-cool-brand-option.cooling-option:hover {
  border-color: #00F0FF;
  box-shadow: 0 8px 28px rgba(0, 240, 255, 0.22);
}

.case-cool-brand-option.cooling-option.selected {
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.22) 0%, rgba(0, 240, 255, 0.08) 100%);
  border-color: #00F0FF;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.case-cool-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-cool-brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-cool-brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.case-cool-brand-option.case-option .case-cool-brand-title {
  color: #A855F7;
}

.case-cool-brand-option.cooling-option .case-cool-brand-title {
  color: #00F0FF;
}

.case-cool-brand-option .brand-dot.case {
  background-color: #A855F7;
  box-shadow: 0 0 8px #A855F7;
}

.case-cool-brand-option .brand-dot.cooling {
  background-color: #00F0FF;
  box-shadow: 0 0 8px #00F0FF;
}

.case-cool-brand-type-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-md);
  width: fit-content;
}

.case-cool-brand-option.case-option .case-cool-brand-type-badge {
  background-color: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.case-cool-brand-option.cooling-option .case-cool-brand-type-badge {
  background-color: rgba(0, 240, 255, 0.15);
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.case-cool-brand-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.case-cool-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
}

.case-cool-brand-footer .check-icon {
  font-weight: 800;
  display: none;
}

.case-cool-brand-option.selected .case-cool-brand-footer .check-icon {
  display: inline-block;
}

.case-cool-brand-option.case-option.selected .check-icon {
  color: #A855F7;
}

.case-cool-brand-option.cooling-option.selected .check-icon {
  color: #00F0FF;
}

/* Filter Status Row */
.case-cool-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.case-cool-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.case-cool-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Mobile Responsiveness for Case & Cooling */
@media (max-width: 840px) {
  .case-cool-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .case-cool-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .case-cool-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
  .case-cool-brands-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   GAMING GEAR RICH LISTBOX (4 FAMOUS BRANDS - SINGLE COLUMN STACK)
   Obsidian Glassmorphism & Cyber Hot Pink Neon Accent
   ========================================================================== */

.gear-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gear-filter-toolbar:focus-within {
  border-color: rgba(236, 72, 153, 0.4);
}

.gear-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Quick Pills on the right (ปุ่ม "ทั้งหมด") */
.gear-quick-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gear-pill {
  background-color: #171B19;
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
  user-select: none;
}

.gear-pill:hover {
  background-color: #1F2421;
  color: var(--text);
  border-color: var(--line-strong);
}

.gear-pill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.gear-pill.active {
  background-color: rgba(255, 0, 168, 0.15);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 0, 168, 0.3);
}

.gear-pill .pill-badge {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--r-full);
  line-height: 1.25;
}

.gear-pill.active .pill-badge {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.gear-listbox-wrapper {
  position: relative;
  z-index: 60;
  user-select: none;
}

.gear-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom Trigger Button */
.gear-listbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: #121615;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 10px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
  position: relative;
  min-height: 52px;
}

.gear-listbox-btn:hover {
  background-color: #19201D;
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32), 0 0 12px rgba(236, 72, 153, 0.2);
  transform: translateY(-1px);
}

.gear-listbox-btn:focus-visible {
  outline: 2px solid #EC4899;
  outline-offset: 2px;
}

.gear-listbox-btn.active-filter {
  border-color: #EC4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.28);
}

.gear-btn-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background-color: rgba(236, 72, 153, 0.12);
  color: #EC4899;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.brand-pill-mini.logitech {
  background: linear-gradient(135deg, #00A8FF, #0066CC);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
}

.brand-pill-mini.razer {
  background: linear-gradient(135deg, #00FF66, #00B344);
  color: #000000;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
}

.brand-pill-mini.steelseries {
  background: linear-gradient(135deg, #FF5500, #CC3300);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
}

.brand-pill-mini.corsair {
  background: linear-gradient(135deg, #FACC15, #EAB308);
  color: #000000;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
}

.gear-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.gear-btn-caption {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}

.gear-btn-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.gear-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.gear-count-pill {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
}

.gear-btn-chevron {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.gear-listbox-btn[aria-expanded="true"] .gear-btn-chevron {
  transform: rotate(180deg);
  color: #EC4899;
}

/* Custom Dropdown Panel */
.gear-listbox-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 540px;
  max-width: 95vw;
  background-color: rgba(18, 22, 21, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(236, 72, 153, 0.15);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.gear-listbox-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown Header */
.gear-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.gear-dropdown-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.gear-dropdown-title svg {
  color: #EC4899;
}

.gear-reset-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #EC4899;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: background 0.15s ease;
}

.gear-reset-btn:hover {
  background-color: rgba(236, 72, 153, 0.15);
}

/* Single Column Stack (แถวเดียวเรียงลงมา) */
.gear-brand-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual Brand Option Card */
.gear-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gear-option-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(236, 72, 153, 0.35);
  transform: translateX(4px);
}

.gear-option-item:focus-visible {
  outline: 2px solid #EC4899;
  outline-offset: 1px;
}

.gear-option-item.selected {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0.04) 100%);
  border-color: #EC4899;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.25);
}

.gear-option-item .option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand Badges */
.tier-badge.brand-logitech {
  background: linear-gradient(135deg, #00A8FF, #0066CC);
  color: #ffffff;
  font-weight: 800;
  width: 58px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 168, 255, 0.35);
}

.tier-badge.brand-razer {
  background: linear-gradient(135deg, #00FF66, #00B344);
  color: #000000;
  font-weight: 800;
  width: 58px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 255, 102, 0.35);
}

.tier-badge.brand-steelseries {
  background: linear-gradient(135deg, #FF5500, #CC3300);
  color: #ffffff;
  font-weight: 800;
  width: 58px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.35);
}

.tier-badge.brand-corsair {
  background: linear-gradient(135deg, #FACC15, #EAB308);
  color: #000000;
  font-weight: 800;
  width: 58px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
}

.gear-option-item .option-info {
  display: flex;
  align-items: center;
}

.gear-option-item .option-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.25;
}

.gear-option-item.selected .option-name {
  color: #ffffff;
}

.gear-option-item .option-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gear-option-item .item-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.gear-option-item .check-icon {
  font-weight: 800;
  color: #EC4899;
  display: none;
}

.gear-option-item.selected .check-icon {
  display: inline-block;
}

/* Filter Status Row */
.gear-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.gear-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.gear-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Mobile Responsiveness for Gaming Gear */
@media (max-width: 840px) {
  .gear-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .gear-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .gear-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   GAMING MONITOR RICH LISTBOX (SCREEN SIZES - SINGLE COLUMN STACK)
   Obsidian Glassmorphism & Cyber Hot Pink Neon Accent
   ========================================================================== */

.monitor-filter-toolbar {
  background-color: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 50;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.monitor-filter-toolbar:focus-within {
  border-color: rgba(236, 72, 153, 0.4);
}

.monitor-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Quick Pills on the right (ปุ่ม "ทั้งหมด") */
.monitor-quick-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.monitor-pill {
  background-color: #171B19;
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
  user-select: none;
}

.monitor-pill:hover {
  background-color: #1F2421;
  color: var(--text);
  border-color: var(--line-strong);
}

.monitor-pill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.monitor-pill.active {
  background-color: rgba(255, 0, 168, 0.15);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 0, 168, 0.3);
}

.monitor-pill .pill-badge {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--r-full);
  line-height: 1.25;
}

.monitor-pill.active .pill-badge {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.monitor-listbox-wrapper {
  position: relative;
  z-index: 60;
  user-select: none;
}

.monitor-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom Trigger Button */
.monitor-listbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: #121615;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 10px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
  position: relative;
  min-height: 52px;
}

.monitor-listbox-btn:hover {
  background-color: #19201D;
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32), 0 0 12px rgba(236, 72, 153, 0.2);
  transform: translateY(-1px);
}

.monitor-listbox-btn:focus-visible {
  outline: 2px solid #EC4899;
  outline-offset: 2px;
}

.monitor-listbox-btn.active-filter {
  border-color: #EC4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.28);
}

.monitor-btn-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background-color: rgba(236, 72, 153, 0.12);
  color: #EC4899;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.brand-pill-mini.size {
  background: linear-gradient(135deg, #EC4899, #BE185D);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
}

.monitor-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.monitor-btn-caption {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}

.monitor-btn-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.monitor-btn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.monitor-count-pill {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
}

.monitor-btn-chevron {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.monitor-listbox-btn[aria-expanded="true"] .monitor-btn-chevron {
  transform: rotate(180deg);
  color: #EC4899;
}

/* Custom Dropdown Panel */
.monitor-listbox-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 500px;
  max-width: 95vw;
  background-color: rgba(18, 22, 21, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(236, 72, 153, 0.15);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.monitor-listbox-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown Header */
.monitor-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.monitor-dropdown-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.monitor-dropdown-title svg {
  color: #EC4899;
}

.monitor-reset-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #EC4899;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: background 0.15s ease;
}

.monitor-reset-btn:hover {
  background-color: rgba(236, 72, 153, 0.15);
}

/* Single Column Stack (แถวเดียวเรียงลงมา) */
.monitor-size-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual Option Item */
.monitor-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.monitor-option-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(236, 72, 153, 0.35);
  transform: translateX(4px);
}

.monitor-option-item:focus-visible {
  outline: 2px solid #EC4899;
  outline-offset: 1px;
}

.monitor-option-item.selected {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0.04) 100%);
  border-color: #EC4899;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.25);
}

.monitor-option-item .option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Screen Size Badges */
.tier-badge.size-24 {
  background: linear-gradient(135deg, #06B6D4, #0284C7);
  color: #ffffff;
  font-weight: 800;
  width: 58px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
}

.tier-badge.size-27 {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #ffffff;
  font-weight: 800;
  width: 58px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.tier-badge.size-32 {
  background: linear-gradient(135deg, #EC4899, #BE185D);
  color: #ffffff;
  font-weight: 800;
  width: 58px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

.monitor-option-item .option-info {
  display: flex;
  align-items: center;
}

.monitor-option-item .option-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.25;
}

.monitor-option-item.selected .option-name {
  color: #ffffff;
}

.monitor-option-item .option-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.monitor-option-item .item-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.monitor-option-item .check-icon {
  font-weight: 800;
  color: #EC4899;
  display: none;
}

.monitor-option-item.selected .check-icon {
  display: inline-block;
}

/* Filter Status Row */
.monitor-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.monitor-clear-chip {
  background-color: rgba(255, 85, 51, 0.14);
  color: var(--sale);
  border: 1px solid rgba(255, 85, 51, 0.32);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.monitor-clear-chip:hover {
  background-color: var(--sale);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 85, 51, 0.4);
}

/* Mobile Responsiveness for Gaming Monitor */
@media (max-width: 840px) {
  .monitor-filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  .monitor-listbox-btn {
    width: 100%;
    justify-content: space-between;
  }
  .monitor-listbox-dropdown {
    width: 100%;
    max-width: 100%;
  }
}






/* Custom Additions */
.categories-nav-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.cat-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background-color: #1e2320;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 0, 168, 0.3), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.cat-nav-btn:hover {
  background-color: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 0 22px rgba(255, 0, 168, 0.65), 0 4px 16px rgba(0, 0, 0, 0.6);
}

.cat-nav-prev {
  margin-right: 12px;
}

.cat-nav-next {
  margin-left: 12px;
}

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   NEXUS CUSTOM PAGINATION DESIGN (Obsidian Carbon & Cyber Magenta)
   ========================================================================== */
.nexus-pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 24px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-subtle);
}

.nexus-pagination-wrapper.only-info {
  justify-content: center;
  padding: 12px 20px;
}

.nexus-pagination-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nexus-pagination-info span {
  color: var(--text);
  font-weight: 700;
}

.nexus-pagination-nav {
  display: flex;
  align-items: center;
}

.nexus-pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nexus-page-item {
  display: inline-block;
}

.nexus-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

a.nexus-page-link:hover {
  background: var(--surface-subtle);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 12px var(--blue-tint);
  transform: translateY(-1px);
}

.nexus-page-item.active .nexus-page-link {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-color: var(--blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 0, 168, 0.4);
  cursor: default;
}

.nexus-page-item.disabled .nexus-page-link {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
}

.nexus-page-link.ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  min-width: 24px;
  padding: 0;
  color: var(--text-dim);
}

/* Universal SVG size guard for pagination across the entire app */
nav[role="navigation"] svg,
.pagination svg,
.nexus-pagination svg,
.nexus-pagination-wrapper svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

@media (max-width: 640px) {
  .nexus-pagination-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 14px 12px;
  }
  .nexus-pagination-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nexus-page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   GUEST AUTH MODAL (Obsidian Carbon & Cyber Neon Theme)
   ========================================================================== */
body.guest-modal-open {
  overflow: hidden;
}

.guest-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 11, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.guest-auth-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.guest-auth-modal {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 0, 168, 0.12);
  width: 100%;
  max-width: 480px;
  padding: 36px 28px 30px;
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.guest-auth-backdrop.is-open .guest-auth-modal {
  transform: scale(1) translateY(0);
}

.guest-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guest-auth-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
  transform: rotate(90deg);
}

.guest-auth-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 168, 0.4);
}

.guest-auth-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-auth-icon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--r-full);
  background: radial-gradient(circle, rgba(255, 0, 168, 0.35) 0%, rgba(255, 0, 168, 0) 70%);
  animation: guestPulse 2.4s infinite ease-in-out;
}

@keyframes guestPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.guest-auth-icon-box {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(255, 0, 168, 0.2), rgba(212, 0, 139, 0.08));
  border: 1.5px solid rgba(255, 0, 168, 0.45);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 0, 168, 0.25);
}

.guest-auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.guest-auth-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 26px;
  padding: 0 8px;
}

.guest-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guest-auth-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: var(--r-full);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 0, 168, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.guest-auth-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 0, 168, 0.5);
  filter: brightness(1.06);
}

.guest-auth-btn-login:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 168, 0.5), 0 6px 20px rgba(255, 0, 168, 0.4);
}

.guest-auth-btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: var(--surface-subtle);
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-full);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: all 0.2s ease;
  cursor: pointer;
}

.guest-auth-btn-register:hover {
  background: rgba(255, 0, 168, 0.1);
  border-color: rgba(255, 0, 168, 0.4);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.guest-auth-btn-register:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 168, 0.4);
}

.guest-auth-btn-dismiss {
  margin-top: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.18s ease;
}

.guest-auth-btn-dismiss:hover {
  color: var(--text);
  text-decoration: underline;
}

.guest-auth-btn-dismiss:focus-visible {
  outline: 2px solid var(--text-muted);
}


