/* ==========================================================================
   ROSENGARD STOREFRONT - Components & Responsive Grid
   ========================================================================== */

/* ==========================================================================
   Controls Bar & Category Chips
   ========================================================================== */
/* ==========================================================================
   Left Fixed Sidebar (Pinned to Screen, Identical to Desktop App)
   ========================================================================== */
.catalog-sidebar {
  position: fixed;
  left: 0;
  top: var(--header-height);
  bottom: 0;
  width: 260px;
  background: #060609;
  border-right: 1px solid var(--border-subtle);
  z-index: 90;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
}

.sidebar-header {
  padding: 1.35rem 1.25rem 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #08080c;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sidebar-sigil-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-sigil-tag .sigil-dot {
  width: 5px;
  height: 5px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #dedede;
  text-transform: uppercase;
}

.sidebar-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: #140406;
  color: var(--primary-light);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border-muted);
}

.sidebar-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #140406;
  border: 1px solid var(--border-muted);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-close-btn:hover {
  background: var(--primary);
  border-color: var(--border-highlight);
  color: #ffffff;
}

.sidebar-categories-nav {
  flex: 1;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-cat-btn {
  width: 100%;
  background: #09090d;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  user-select: none;
}

.sidebar-cat-btn:hover {
  background: #110507;
  border-color: var(--border-active);
  transform: translateX(4px);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(138, 3, 3, 0.25);
}

.sidebar-cat-btn .cat-meta-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
}

.sidebar-cat-btn .cat-code {
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.sidebar-cat-btn .cat-name {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-cat-btn .cat-meta-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sidebar-cat-btn .cat-count {
  font-size: 0.65rem;
  font-weight: 700;
  background: #140406;
  color: var(--primary-light);
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--border-muted);
}

.sidebar-cat-btn .cat-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-cat-btn:hover .cat-arrow {
  color: var(--border-highlight);
  transform: translateX(3px);
}

/* Active Category Button */
.sidebar-cat-btn.active {
  background: linear-gradient(90deg, #8a0303 0%, #200508 100%);
  border-color: var(--border-highlight);
  box-shadow: 0 0 20px rgba(138, 3, 3, 0.45);
  color: #ffffff;
}

.sidebar-cat-btn.active .cat-code,
.sidebar-cat-btn.active .cat-name,
.sidebar-cat-btn.active .cat-arrow {
  color: #ffffff;
}

.sidebar-cat-btn.active .cat-count {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-color: transparent;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: #08080c;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sidebar-status-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-status-box .status-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.sidebar-status-box .status-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.04em;
}

.sidebar-reset-btn {
  background: transparent;
  border: 1px dashed var(--border-muted);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.45rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.15s ease;
}

.sidebar-reset-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: rgba(138, 3, 3, 0.12);
}

/* ==========================================================================
   Main Workspace: Full Width Minus Fixed Sidebar
   ========================================================================== */
.catalog-main-area {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: calc(100vh - var(--header-height));
  padding: 2.25rem 3rem 5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

/* Compact Hero inside Workspace */
.site-hero-banner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.site-hero-banner .hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.15;
}

.site-hero-banner .hero-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 820px;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* Search and Filters Bar */
.search-filter-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Mobile Category Toggle Button */
.mobile-category-toggle {
  display: none;
  background: #09090d;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  height: 42px;
  padding: 0.65rem 1rem;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  white-space: nowrap;
}

.mobile-category-toggle:hover {
  border-color: var(--border-active);
  background: #0e0507;
  color: #ffffff;
}

.mobile-cat-pill {
  font-size: 0.68rem;
  background: #140406;
  color: var(--primary-light);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border-muted);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Search Box */
.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  background: #09090d;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 0 1rem 0 2.6rem;
  outline: none;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 16px rgba(138, 3, 3, 0.3);
}

.search-input::placeholder {
  color: #555555;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Custom Dropdown Component (Animated, Dark Cyber Velvet, NO Windows Blue)
   ========================================================================== */
.custom-dropdown {
  position: relative;
  user-select: none;
}

.dropdown-trigger {
  background: #09090d;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.65rem 0.95rem;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  white-space: nowrap;
}

.dropdown-trigger:hover {
  border-color: var(--border-active);
  background: #0f0608;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(138, 3, 3, 0.25);
}

.dropdown-label-prefix {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dropdown-current-val {
  color: #dedede;
  font-weight: 600;
  text-transform: uppercase;
}

.dropdown-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  margin-left: 0.2rem;
  flex-shrink: 0;
}

.custom-dropdown.open .dropdown-trigger {
  border-color: var(--border-highlight);
  background: #110507;
  box-shadow: 0 0 20px rgba(138, 3, 3, 0.4);
}

.custom-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--border-highlight);
}

/* Dropdown Menu Popup with Smooth Micro-Animation */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  background: rgba(8, 8, 12, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-active);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.95), 0 0 24px rgba(138, 3, 3, 0.3);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  z-index: 500;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem 0;
  
  /* Initial hidden state with slide & scale animation */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Dropdown Item */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.dropdown-item .item-sigil {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(138, 3, 3, 0.2);
  color: #ffffff;
  border-left-color: rgba(255, 30, 30, 0.6);
  padding-left: 1.15rem;
}

.dropdown-item:hover .item-sigil {
  color: var(--border-highlight);
  transform: scale(1.25);
}

/* Selected item: Crimson velvet glow (NO BLUE) */
.dropdown-item.selected {
  background: linear-gradient(90deg, rgba(138, 3, 3, 0.5) 0%, rgba(20, 4, 7, 0.9) 100%);
  color: #ffffff;
  border-left-color: #ff1e1e;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 30, 30, 0.4);
}

.dropdown-item.selected .item-sigil {
  color: #ff1e1e;
  text-shadow: 0 0 8px #ff1e1e;
}

.catalog-toolbar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.25rem 0 0.5rem 0;
}

.view-mode-toggle {
  display: none;
  align-items: center;
  gap: 0.2rem;
  background: rgba(14, 14, 20, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-btn:hover {
  color: var(--text-primary);
  border-color: rgba(60, 12, 18, 0.5);
}

.view-btn.active {
  background: rgba(138, 3, 3, 0.45);
  border-color: var(--primary);
  color: #ffffff;
}

.items-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: auto;
  white-space: nowrap;
}

/* Responsive Grid in Main Area: Expands to fit 4, 5, 6 items per row */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Responsive Breakpoint for Sidebar & Mobile Layout (< 992px) */
@media (max-width: 991px) {
  .catalog-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 320px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1050 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.95);
    visibility: hidden;
  }

  .catalog-sidebar.mobile-open {
    transform: translateX(0) !important;
    visibility: visible;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .catalog-main-area {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1.25rem 1rem 4rem 1rem;
    gap: 1.25rem;
  }

  .mobile-category-toggle {
    display: inline-flex;
  }

  .site-hero-banner {
    padding-bottom: 1.25rem;
    gap: 0.65rem;
  }

  .site-hero-banner .hero-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: 0.06em;
  }

  .site-hero-banner .hero-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Search and Filters Layout on Mobile & Tablets */
  .search-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
  }

  .search-box {
    flex: 1 1 100%;
    min-width: 0;
    order: 1;
  }

  .search-input {
    height: 40px;
    font-size: 0.8rem;
  }

  .mobile-category-toggle {
    flex: 1 1 100%;
    order: 2;
    height: 40px;
    justify-content: space-between;
    padding: 0 0.85rem;
    font-size: 0.76rem;
  }

  #brand-dropdown {
    flex: 1 1 calc(50% - 0.35rem);
    order: 3;
    min-width: 0;
  }

  #sort-dropdown {
    flex: 1 1 calc(50% - 0.35rem);
    order: 4;
    min-width: 0;
  }

  .dropdown-trigger {
    width: 100%;
    height: 40px;
    padding: 0 0.65rem;
    font-size: 0.72rem;
    justify-content: space-between;
  }

  .dropdown-label-prefix {
    font-size: 0.65rem;
  }

  .dropdown-current-val {
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dropdown-menu {
    max-width: calc(100vw - 2rem);
    min-width: 170px;
  }

  #sort-dropdown .dropdown-menu {
    left: auto;
    right: 0;
  }

  .items-counter {
    margin-left: auto;
    font-size: 0.68rem;
    padding: 0.1rem 0;
  }

  .view-mode-toggle {
    display: inline-flex;
  }

  /* Sleek Streetwear Grid on Tablets (< 992px) */
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 540px) {
  .catalog-main-area {
    padding: 0.85rem 0.75rem 3rem 0.75rem;
    gap: 0.85rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
  }

  .site-hero-banner {
    padding-top: 0.4rem;
    padding-bottom: 0.75rem;
    gap: 0.45rem;
  }

  .site-hero-banner .hero-title {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
    line-height: 1.22;
    letter-spacing: 0.04em;
    word-break: break-word;
  }

  .site-hero-banner .hero-description {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .site-hero-banner .hero-sigil-tag {
    font-size: 0.6rem;
  }

  /* Product Grid: By standard default 2 columns on mobile */
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    width: 100%;
    margin: 0;
  }

  /* Optional 1-column mode when toggled */
  .store-grid.cols-1 {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    max-width: 440px;
    margin: 0 auto;
  }

  /* Base mobile card styles (Standard 2-column mode: ZERO CLIPPING) */
  .store-card {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-subtle);
    background: rgba(8, 8, 12, 0.88);
    overflow: hidden;
  }

  .card-media-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
  }

  .card-badges {
    top: 0.35rem;
    left: 0.35rem;
    right: 0.35rem;
    gap: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .card-badge {
    font-size: 0.52rem;
    padding: 0.12rem 0.35rem;
    letter-spacing: 0.04em;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-overlay-hover {
    display: none; /* Disable hover overlay on mobile touch screens */
  }

  .card-info {
    padding: 0.55rem 0.5rem;
    gap: 0.35rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  .card-title {
    font-size: 0.76rem;
    line-height: 1.25;
    min-height: 2.5em;
    -webkit-line-clamp: 2;
    word-break: break-word;
  }

  .card-bottom-row {
    padding-top: 0.4rem;
    gap: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .card-price-group {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .price-label {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }

  .price-value {
    font-size: clamp(0.72rem, 2.7vw, 0.88rem);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    min-width: 0;
  }

  .card-order-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .card-order-btn svg {
    width: 12px;
    height: 12px;
  }

  /* 1-column overrides when .cols-1 is active */
  .store-grid.cols-1 .card-badges {
    top: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
    gap: 0.25rem;
  }

  .store-grid.cols-1 .card-badge {
    font-size: 0.6rem;
    padding: 0.18rem 0.42rem;
    max-width: 85%;
  }

  .store-grid.cols-1 .card-info {
    padding: 0.85rem 0.75rem;
    gap: 0.6rem;
  }

  .store-grid.cols-1 .card-title {
    font-size: 0.92rem;
    min-height: unset;
    line-height: 1.35;
  }

  .store-grid.cols-1 .card-bottom-row {
    padding-top: 0.65rem;
    gap: 0.5rem;
  }

  .store-grid.cols-1 .price-label {
    font-size: 0.58rem;
  }

  .store-grid.cols-1 .price-value {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  }

  .store-grid.cols-1 .card-order-btn {
    width: 34px;
    height: 34px;
  }

  .store-grid.cols-1 .card-order-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 480px) {
  .dropdown-label-prefix {
    display: none !important;
  }

  .dropdown-current-val {
    max-width: 100% !important;
    font-size: 0.72rem;
  }
}


/* Card with Glassmorphism */
.store-card {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  animation: cardFadeIn 0.25s ease both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.store-card:hover {
  border-color: var(--border-active);
  background: rgba(18, 8, 12, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(138, 3, 3, 0.25);
}

/* 1:1 Media Container */
.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #040406;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-card:hover .card-image {
  transform: scale(1.04);
}

.card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: #060609;
}

.card-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  pointer-events: none;
  z-index: 2;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid transparent;
}

.card-badge.brand {
  background: rgba(5, 5, 7, 0.88);
  border-color: var(--border-active);
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}

.card-badge.category {
  background: rgba(14, 4, 6, 0.9);
  border-color: #3b070b;
  color: var(--primary-light);
}

.card-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.store-card:hover .card-overlay-hover {
  opacity: 1;
}

.overlay-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #dedede;
  background: #0d0406;
  border: 1px solid var(--border-active);
  padding: 0.45rem 0.85rem;
  letter-spacing: 0.08em;
}

/* Card Info Body */
.card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.card-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.card-price-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.price-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #dedede;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.card-order-btn {
  background: #0c0406;
  border: 1px solid var(--border-active);
  color: var(--primary-light);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.store-card:hover .card-order-btn {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--border-highlight);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  gap: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #dedede;
  letter-spacing: 0.08em;
}

.empty-desc {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 450px;
}

/* ==========================================================================
   Quick-View Modal (Product Detail)
   ========================================================================== */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-wrapper.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  background: #07070a;
  border: 1px solid var(--border-active);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: #0e0507;
  border: 1px solid var(--border-active);
  color: var(--text-secondary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}

.modal-close-button:hover {
  background: var(--primary);
  color: #fff;
}

.modal-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .modal-grid-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-photo-column {
  background: #040406;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (min-width: 720px) {
  .modal-photo-column {
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }
}

.modal-main-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  filter: contrast(1.08) brightness(0.96);
}

.modal-details-column {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  justify-content: space-between;
}

.modal-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-title-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: #dedede;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-category-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-price-box {
  background: #090406;
  border: 1px solid var(--border-active);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.modal-price-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-price-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.modal-actions-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.modal-action-btn.primary {
  background: var(--primary);
  border: 1px solid var(--border-highlight);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(184, 13, 13, 0.4);
}

.modal-action-btn.primary:hover {
  background: var(--primary-light);
  box-shadow: 0 0 30px rgba(255, 30, 30, 0.6);
}

.modal-action-btn.secondary {
  background: #0b0507;
  border: 1px solid var(--border-muted);
  color: var(--text-secondary);
}

.modal-action-btn.secondary:hover {
  border-color: var(--border-active);
  color: #fff;
  background: #140407;
}

.modal-action-btn.ghost {
  background: transparent;
  border: 1px dashed var(--border-muted);
  color: var(--text-muted);
  font-size: 0.74rem;
  padding: 0.5rem;
}

.modal-action-btn.ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

/* Modal Mobile Responsive Layout */
@media (max-width: 719px) {
  .modal-wrapper {
    padding: 0.65rem;
  }

  .modal-dialog {
    max-height: 94vh;
    max-height: 94dvh;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }

  .modal-close-button {
    top: 0.65rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }

  .modal-photo-column {
    max-height: 250px;
    overflow: hidden;
  }

  .modal-main-img {
    max-height: 250px;
  }

  .modal-details-column {
    padding: 1.15rem 0.9rem;
    gap: 0.9rem;
  }

  .modal-brand-tag {
    font-size: 0.7rem;
  }

  .modal-title-text {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .modal-category-badge {
    font-size: 0.65rem;
  }

  .modal-price-box {
    padding: 0.75rem 0.9rem;
  }

  .modal-price-num {
    font-size: 1.45rem;
  }

  .modal-action-btn {
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
  }
}

/* Toast */
.store-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  background: #0d0406;
  border: 1px solid var(--border-active);
  color: #dedede;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  animation: toastSlideUp 0.25s ease both;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   CINEMATIC CYBER PRELOADER (RosenGard Archive Protocol)
   ========================================================================== */

html.preloader-active,
body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
}

.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #050507;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-preloader.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
  pointer-events: none;
}

/* Ambient Background (Deep Pure Obsidian Black, Zero Muddy Glare) */
.preloader-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

/* Central Cluster */
.preloader-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  width: 90%;
  padding: 2rem 1.5rem;
}

/* Top Telemetry Tag */
.preloader-sigil-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8c8886;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.preloader-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff1e1e;
  box-shadow: 0 0 10px #ff1e1e;
  animation: preloaderDotPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderDotPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

/* Brand Group: High-Res Rose & Wordmark */
.preloader-brand-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.preloader-emblem-wrap {
  position: relative;
  width: 170px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.preloader-rose-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.95));
  animation: preloaderRoseBreath 2.6s ease-in-out infinite;
}

@keyframes preloaderRoseBreath {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.95)) brightness(1);
  }
  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.95)) brightness(1.08);
  }
}

.preloader-brand-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #ffffff;
  line-height: 1;
  text-transform: uppercase;
}

.preloader-brand-title span {
  color: #ff1e1e;
  text-shadow: 0 0 16px rgba(255, 30, 30, 0.65);
}

.preloader-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: #736f6d;
  text-transform: uppercase;
}

/* Dynamic Percentage Counter & Telemetry Stream */
.preloader-metric-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.preloader-percent-display {
  font-family: var(--font-sans);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.2), 0 0 40px rgba(224, 24, 24, 0.45);
  transition: text-shadow 0.15s ease, color 0.15s ease;
}

.site-preloader.is-complete .preloader-percent-display {
  color: #ffffff;
  text-shadow: 0 0 35px #ffffff, 0 0 70px #ff1e1e, 0 0 100px rgba(255, 30, 30, 0.85);
}

.preloader-status-stream {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: #a19d9b;
  text-transform: uppercase;
  min-height: 1.2rem;
}

.status-marker {
  color: #ff1e1e;
  font-weight: 700;
}

/* Skip Hint */
.preloader-skip-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: #4a4746;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-preloader:hover .preloader-skip-hint {
  color: #8c8886;
}

/* Full-Width Bottom Laser Track */
.preloader-laser-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: visible;
  z-index: 10;
}

.preloader-laser-fill {
  height: 100%;
  width: 0%;
  position: relative;
  background: linear-gradient(90deg, rgba(138, 10, 15, 0) 0%, rgba(184, 13, 13, 0.7) 40%, #ff1e1e 100%);
  box-shadow: 0 0 16px #ff1e1e, 0 0 32px rgba(255, 30, 30, 0.6);
  transition: width 0.05s linear;
}

.preloader-laser-spark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 24px #ff1e1e;
}

/* Main Page Reveal Transition */
body:not(.site-ready) .site-header,
body:not(.site-ready) .catalog-main-area {
  opacity: 0;
}

@media (min-width: 992px) {
  body:not(.site-ready) .catalog-sidebar {
    opacity: 0;
  }
  body.site-ready .catalog-sidebar {
    animation: storefrontEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@media (max-width: 991px) {
  body:not(.site-ready) .catalog-sidebar,
  body.site-ready .catalog-sidebar {
    opacity: 1 !important;
    animation: none !important;
  }
}

body.site-ready .site-header,
body.site-ready .catalog-main-area {
  animation: storefrontEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes storefrontEntrance {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .preloader-emblem-wrap {
    width: 120px;
    height: 75px;
  }
  .preloader-brand-title {
    font-size: 1.45rem;
  }
  .preloader-brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }
  .preloader-percent-display {
    font-size: 3.4rem;
  }
  .preloader-status-stream {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
  .preloader-sigil-tag {
    font-size: 0.65rem;
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   DEV Background Switcher Widget (Interactive Sandbox Tool)
   ========================================================================== */
.bg-switcher-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  font-family: var(--font-mono);
}

.bg-switcher-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(12, 4, 6, 0.94);
  border: 1px solid var(--border-active);
  color: #dedede;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 0 14px rgba(138, 3, 3, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.bg-switcher-toggle-btn:hover {
  background: #1a060a;
  border-color: var(--border-highlight);
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(138, 3, 3, 0.5);
  transform: translateY(-2px);
}

.switcher-icon {
  color: var(--primary-light);
  font-size: 0.85rem;
  animation: pulseGlow 2.5s infinite;
}

.bg-switcher-panel {
  position: absolute;
  bottom: calc(100% + 0.65rem);
  right: 0;
  width: 290px;
  background: rgba(9, 9, 13, 0.96);
  border: 1px solid var(--border-active);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(138, 3, 3, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.bg-switcher-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bg-switcher-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.1em;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bg-switcher-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bg-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(16, 16, 22, 0.6);
  border: 1px solid rgba(44, 9, 14, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.bg-option-btn:hover {
  background: rgba(30, 8, 12, 0.8);
  border-color: var(--border-active);
  color: var(--text-primary);
}

.bg-option-btn.active {
  background: rgba(26, 6, 9, 0.95);
  border-color: var(--border-highlight);
  color: #ffffff;
}

.bg-opt-indicator {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  transition: color 0.15s ease;
}

.bg-option-btn.active .bg-opt-indicator {
  color: var(--primary-light);
}

.bg-opt-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bg-opt-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bg-option-btn.active .bg-opt-title {
  color: #ffffff;
}

.bg-opt-desc {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.bg-intensity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.65rem;
}

.intensity-label {
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Slider Row */
.bg-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
}

.bg-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
}

.slider-label {
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-light);
  background: #140406;
  border: 1px solid var(--border-muted);
  padding: 0.1rem 0.45rem;
  min-width: 42px;
  text-align: center;
}

/* Custom Cyberpunk Range Slider */
.slider-track-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
}

.cyber-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #150508;
  border: 1px solid var(--border-muted);
  outline: none;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cyber-range-slider:hover,
.cyber-range-slider:active {
  border-color: var(--border-highlight);
}

/* Webkit (Chrome / Safari / iOS / Android) */
.cyber-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #dedede;
  border: 2px solid var(--primary);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(138, 3, 3, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.cyber-range-slider::-webkit-slider-thumb:hover,
.cyber-range-slider::-webkit-slider-thumb:active {
  background: #ffffff;
  border-color: var(--border-highlight);
  transform: scale(1.2);
  box-shadow: 0 0 14px var(--border-highlight);
}

/* Firefox */
.cyber-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #dedede;
  border: 2px solid var(--primary);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(138, 3, 3, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.cyber-range-slider::-moz-range-thumb:hover,
.cyber-range-slider::-moz-range-thumb:active {
  background: #ffffff;
  border-color: var(--border-highlight);
  transform: scale(1.2);
  box-shadow: 0 0 14px var(--border-highlight);
}

.cyber-range-slider::-moz-range-progress {
  background: var(--primary);
}

.bg-parallax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.65rem;
}

.parallax-label {
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.parallax-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.parallax-toggle-btn .parallax-dot {
  width: 5px;
  height: 5px;
  background: #555555;
  border-radius: 50%;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.parallax-toggle-btn.active {
  background: #140406;
  border-color: var(--border-active);
  color: #ffffff;
  font-weight: 700;
}

.parallax-toggle-btn.active .parallax-dot {
  background: var(--border-highlight);
  box-shadow: 0 0 6px var(--border-highlight);
}

@media (max-width: 540px) {
  .bg-switcher-widget {
    bottom: 0.85rem;
    right: 0.85rem;
  }

  .bg-switcher-toggle-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.68rem;
  }

  .bg-switcher-panel {
    width: calc(100vw - 1.7rem);
    right: 0;
  }
}
