
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* CrownGear Signature Habitat Palette (Light Mode Default) */
  --bg: #ffffff;
  --bg-secondary: #fbfbf9;
  --card-bg: #f5f3ee; /* Signature warm limestone container */
  --card-bg-hover: #ebe8e0;
  --card-border: #e6e3da;
  --card-border-subtle: #efece5;
  --card-border-hover: #111111;
  --text-main: #111111;
  --text-muted: #5e6470;
  --text-dim: #949aa8;
  --accent-gold: #c59b27;
  --accent-gold-glow: rgba(197, 155, 39, 0.16);
  --btn-primary-bg: #111111;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #262626;
  --btn-secondary-bg: transparent;
  --btn-secondary-border: #111111;
  --btn-secondary-text: #111111;
  --header-bg: rgba(255, 255, 255, 0.96);
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 16px 36px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  /* CrownGear Obsidian Gold Palette */
  --bg: #090a0f;
  --bg-secondary: #0e111a;
  --card-bg: #131622; /* Dark slate limestone */
  --card-bg-hover: #1b1f2e;
  --card-border: #232734;
  --card-border-subtle: #1a1d28;
  --card-border-hover: #d4af37;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-gold: #d4af37;
  --accent-gold-glow: rgba(212, 175, 55, 0.28);
  --btn-primary-bg: #d4af37;
  --btn-primary-text: #090a0f;
  --btn-primary-hover: #fef08a;
  --btn-secondary-bg: transparent;
  --btn-secondary-border: rgba(255, 255, 255, 0.24);
  --btn-secondary-text: #f8fafc;
  --header-bg: rgba(9, 10, 15, 0.95);
  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(212, 175, 55, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-heading);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #fef08a);
  z-index: 10001;
  transition: width 0.1s ease-out;
}

/* Top Subtle Announcement Bar */
.crown-announcement-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--card-border-subtle);
  padding: 6px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.crown-announcement-bar span.highlight {
  color: var(--accent-gold);
  font-weight: 700;
}

@media (max-width: 768px) {
  .crown-announcement-bar { display: none; }
}

/* Habitat Sticky Header */
.habitat-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Centered Header Layout (For Hub & Index Pages) */
.nav-container.header-centered {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  box-sizing: border-box;
}

.header-spacer-left {
  visibility: hidden;
  pointer-events: none;
}

.brand-logo-centered {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.brand-logo-centered:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.crown-icon-wrapper-large {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.35));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-centered:hover .crown-icon-wrapper-large {
  transform: translateY(-2px) scale(1.08);
}

.nav-actions-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-container.header-centered {
    padding: 0 16px;
    height: 68px;
  }
  .brand-logo-centered {
    font-size: 1.15rem;
    gap: 10px;
  }
  .crown-logo-svg-large {
    width: 32px;
    height: 28px;
  }
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.88;
}

.crown-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.25));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo:hover .crown-icon-wrapper {
  transform: translateY(-2px) scale(1.08);
}

.crown-logo-svg {
  display: block;
}

.brand-radar-pill {
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 7px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--accent-gold);
  margin-left: 2px;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

@media (max-width: 1024px) {
  .nav-menu { display: none; }
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--accent-gold);
}

.nav-divider {
  color: var(--card-border);
  font-size: 0.85rem;
  user-select: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.theme-toggle-btn:hover {
  border-color: var(--text-main);
  transform: translateY(-1px);
}

/* Mobile Category Horizontal Bar */
.mobile-category-bar {
  display: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--card-border-subtle);
  padding: 10px 16px;
  overflow-x: auto;
  white-space: nowrap;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
  .mobile-category-bar {
    display: flex;
  }
}

.mobile-category-bar a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-category-bar a.active, .mobile-category-bar a:hover {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
}

/* Habitat Hero & Filter Bar */
.habitat-hero {
  padding: 60px 0 28px;
  border-bottom: 1px solid var(--card-border-subtle);
}

.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 16px;
  max-width: 920px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 22px;
  border-top: 1px solid var(--card-border-subtle);
  gap: 22px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.filters-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-heading);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filters-pill-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--card-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.12);
}

.filter-center-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ftab {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.ftab:hover {
  color: var(--accent-gold);
}

.ftab.active {
  color: var(--text-main);
  font-weight: 800;
}

.ftab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.ftab.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
}

.filter-right-sort {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

/* Container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  flex: 1;
}

/* 4-Column Habitat Showcase Grid */
.habitat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
  padding: 44px 0 88px;
}

@media (max-width: 1100px) {
  .habitat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}

@media (max-width: 600px) {
  .habitat-grid { grid-template-columns: 1fr; }
}

.habitat-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.product-thumb-container {
  aspect-ratio: 1 / 1;
  background: var(--card-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--card-border-subtle);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-thumb-container img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.habitat-product-card:hover .product-thumb-container img {
  transform: scale(1.07);
}

.habitat-product-card:hover .product-thumb-container {
  border-color: var(--card-border);
  box-shadow: var(--shadow-float);
}

.product-niche-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.product-badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .product-badge-pill {
  background: rgba(19, 22, 34, 0.92);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.product-card-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-brand-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

.product-name {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-top: 1px;
}

.product-variant {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 4px;
  font-family: var(--font-heading);
}

.product-card-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.habitat-product-card:hover .product-card-cta-row {
  color: var(--accent-gold);
}

/* Habitat Product Single / Review Layout */
.single-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 40px;
  margin-bottom: 56px;
  align-items: start;
}

@media (max-width: 960px) {
  .single-hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.single-image-box {
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.05) 0%, transparent 68%),
              radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
              linear-gradient(145deg, #18191e 0%, #0e1014 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.5);
}

.scenic-depth-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 1;
}

.scenic-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.scenic-pedestal-shadow {
  position: absolute;
  bottom: 12px;
  left: 14%;
  right: 14%;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, transparent 75%);
  filter: blur(8px);
  z-index: 1;
}

/* Category-specific scenic stage themes */
.scenic-stage-tech {
  background: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.09) 0%, transparent 55%),
              linear-gradient(145deg, #12141a 0%, #090a0e 100%);
}

.scenic-stage-appliances {
  background: radial-gradient(circle at 50% 25%, rgba(245, 158, 11, 0.12) 0%, transparent 65%),
              radial-gradient(circle at 80% 80%, rgba(234, 88, 12, 0.08) 0%, transparent 55%),
              linear-gradient(145deg, #1c1815 0%, #0d0c0a 100%);
}

.scenic-stage-furniture {
  background: radial-gradient(circle at 45% 20%, rgba(148, 163, 184, 0.10) 0%, transparent 65%),
              radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 55%),
              linear-gradient(145deg, #181920 0%, #0b0c10 100%);
}

.scenic-stage-watches {
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
              linear-gradient(145deg, #171510 0%, #0b0a08 100%);
}

.scenic-stage-apparel {
  background: radial-gradient(circle at 50% 25%, rgba(14, 165, 233, 0.14) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
              linear-gradient(145deg, #0f172a 0%, #080d17 100%);
}

.single-image-box img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
}

.single-image-box:hover img {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.70));
}

.single-image-float-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  backdrop-filter: blur(4px);
  z-index: 3;
}

.single-details {
  display: flex;
  flex-direction: column;
}

.breadcrumb-trail {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb-trail a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-trail a:hover {
  color: var(--text-main);
}

.editorial-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.single-product-title {
  font-size: clamp(1.85rem, 2.9vw, 2.6rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.editorial-quote {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.single-pricing-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.single-price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.single-score-badge {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-score-badge span.crown {
  color: var(--accent-gold);
}

.single-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.dual-store-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

@media (max-width: 640px) {
  .dual-store-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.btn-store:hover {
  background: var(--card-bg);
  transform: translateY(-1px);
}

.btn-store-amazon:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.14);
}

.btn-store-ebay:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.14);
}

.store-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.store-dot-amazon {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.45);
}

.store-dot-ebay {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.45);
}

.store-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 2px;
}

.btn-store:hover .store-arrow, .btn-habitat-secondary:hover .store-arrow {
  transform: translateX(2px);
  color: var(--text-main);
}

.btn-habitat-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.btn-habitat-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  transform: translateY(-1px);
}

.btn-habitat-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.btn-habitat-secondary:hover {
  background: var(--card-bg);
}

.guarantee-microcopy {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Crown Sovereign Verdict Callout Box */
.crown-verdict-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 6px 6px 0;
  padding: 24px 28px;
  margin: 36px 0;
}

.crown-verdict-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.crown-verdict-title span.crown {
  color: var(--accent-gold);
}

.crown-verdict-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.crown-verdict-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Habitat Specifications & Advisory Grid */
.habitat-specs-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border-subtle);
  border-radius: 8px;
  padding: 32px 36px;
  margin-bottom: 48px;
}

.specs-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 840px) {
  .specs-grid-2col { grid-template-columns: 1fr; gap: 32px; }
  .habitat-specs-section { padding: 24px 20px; }
}

.specs-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border-subtle);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--card-border-subtle);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 10px 0;
  font-size: 0.88rem;
}

.specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 42%;
}

.specs-table td:last-child {
  color: var(--text-main);
  font-weight: 600;
}

.specs-note-item {
  margin-bottom: 16px;
}

.specs-note-item:last-child {
  margin-bottom: 0;
}

.specs-note-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.specs-note-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Dual-Card Pros & Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0 48px;
}

@media (max-width: 768px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}

.pro-card {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 24px 28px;
}

.con-card {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 24px 28px;
}

.pro-card h3 {
  color: #059669;
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .pro-card h3 {
  color: #34d399;
}

.con-card h3 {
  color: #dc2626;
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .con-card h3 {
  color: #f87171;
}

.pro-card ul, .con-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-card li, .con-card li {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pro-icon {
  color: #059669;
  font-weight: 800;
  flex-shrink: 0;
}

.con-icon {
  color: #dc2626;
  font-weight: 800;
  flex-shrink: 0;
}

/* Geo BuyBox Multi-Store Comparison */
.geo-buybox-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 28px;
  margin: 40px 0;
}

.geo-buybox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.geo-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.geo-globe-icon {
  font-size: 1.6rem;
}

.geo-buybox-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.geo-detected-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.geo-country-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.geo-tab-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.geo-tab-btn.active, .geo-tab-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
}

.geo-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.geo-store-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.geo-store-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.geo-buybox-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border-subtle);
  padding-top: 14px;
}

/* Floating Sticky Buy Bar */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px 0;
}

.sticky-buy-bar.visible {
  transform: translateY(0);
}

.sticky-bar-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sticky-product-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sticky-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 2px;
  flex-shrink: 0;
}

.sticky-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.sticky-rating {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.sticky-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.sticky-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
}

.sticky-btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.sticky-btn-amazon, .sticky-btn-ebay {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--card-border);
  font-weight: 600;
  transition: all 0.2s ease;
}

.sticky-btn-amazon:hover {
  background: var(--card-bg);
  border-color: #f59e0b;
  color: var(--text-main);
}

.sticky-btn-ebay:hover {
  background: var(--card-bg);
  border-color: #3b82f6;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .sticky-title { max-width: 180px; font-size: 0.85rem; }
  .sticky-rating { display: none; }
  .sticky-price { font-size: 1.1rem; }
  .sticky-btn-secondary { display: none; }
}

/* Article Body Typography */
.article-body {
  max-width: 880px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 48px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border-subtle);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 32px 0 14px;
}

.article-body p {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 22px;
}

.article-body ul {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.6;
}

.article-body blockquote, .disclosure {
  background: var(--card-bg);
  border-left: 3px solid var(--accent-gold);
  padding: 16px 20px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.img-wrapper {
  margin: 36px 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border-subtle);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}

.img-wrapper img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.table-responsive {
  overflow-x: auto;
  margin: 32px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--card-border-subtle);
}

th {
  background: var(--card-bg);
  font-weight: 600;
  color: var(--text-main);
}

/* "Others You Might Like" Showcase */
.related-showcase-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--card-border-subtle);
}

.related-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.related-title {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.related-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn-view-all-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-view-all-outline:hover {
  border-color: var(--text-main);
  background: var(--card-bg);
}

/* Habitat Newsletter & 4-Column Footer */
.habitat-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border-subtle);
  padding: 68px 0 32px;
  margin-top: auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  margin-bottom: 56px;
}

@media (max-width: 960px) {
  .footer-top-row { grid-template-columns: 1fr; gap: 40px; }
}

.footer-brand-newsletter {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 14px;
}

.newsletter-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 400px;
}

.newsletter-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 420px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text-main);
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: var(--font-heading);
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-input:focus {
  border-color: var(--text-main);
}

.newsletter-submit-btn {
  padding: 12px 20px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: var(--font-heading);
}

.newsletter-submit-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 680px) {
  .footer-nav-columns { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

.footer-col h4 {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-main);
}

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

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--text-main);
}

.crafted-badge {
  color: var(--accent-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.brand-short {
  font-weight: 700;
}

.brand-long {
  font-weight: 500;
}

/* Mobile Category Bar Scrollbar Hide */
.mobile-category-bar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-category-bar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .habitat-header .nav-container {
    padding: 0 16px;
    height: 60px;
  }
  .brand-logo {
    font-size: 1.05rem;
    gap: 8px;
  }
  .brand-radar-pill {
    display: none;
  }
  .brand-long {
    display: none;
  }
  .hero-inner {
    padding: 0 16px;
  }
  .filter-controls-bar {
    padding: 14px 0 16px;
    gap: 12px;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .filters-pill-btn {
    font-size: 0.8rem;
    padding: 7px 16px;
  }
  .filter-center-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 4px 6px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .filter-center-tabs::-webkit-scrollbar {
    display: none;
  }
  .ftab {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    border-radius: 9999px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .ftab.active {
    background: var(--text-main);
    color: var(--bg);
    border-color: var(--text-main);
    font-weight: 700;
  }
  .filter-right-sort {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }
}

@media (max-width: 680px) {
  .habitat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 12px !important;
    padding: 24px 0 60px !important;
  }
  .container {
    padding: 0 16px !important;
  }
  .product-name {
    font-size: 0.88rem !important;
  }
  .product-brand-kicker {
    font-size: 0.7rem !important;
  }
  .product-variant {
    font-size: 0.72rem !important;
  }
  .product-price {
    font-size: 0.98rem !important;
  }
  .product-badge-pill {
    font-size: 0.65rem !important;
    padding: 3px 7px !important;
  }
  .product-niche-tag {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
  }
  .product-card-cta-row {
    font-size: 0.74rem !important;
  }
  .sticky-buy-bar {
    padding: 10px 0 !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
  .sticky-bar-container {
    padding: 0 14px !important;
    gap: 10px !important;
  }
  .sticky-product-info {
    max-width: 58% !important;
    gap: 10px !important;
  }
  .sticky-thumb {
    width: 36px !important;
    height: 36px !important;
  }
  .sticky-title {
    max-width: 130px !important;
    font-size: 0.8rem !important;
  }
  .sticky-rating { display: none !important; }
  .sticky-price { font-size: 1.02rem !important; }
  .sticky-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
  .sticky-btn-secondary { display: none !important; }
}

@media (max-width: 360px) {
  .habitat-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Filter & Search Modal */
.filter-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.filter-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.filter-modal-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-modal-backdrop.open .filter-modal-card {
  transform: translateY(0);
}

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--card-border-subtle);
}

.filter-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-modal-close:hover {
  color: var(--text-main);
  background: var(--card-bg);
}

.filter-modal-body {
  padding: 24px;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 22px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.modal-search-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: var(--font-heading);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.modal-filter-pills-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.modal-niche-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.niche-filter-pill {
  padding: 7px 15px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.niche-filter-pill:hover,
.niche-filter-pill.active {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
}

.filter-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border-subtle);
  font-size: 0.85rem;
}

.filter-results-count {
  color: var(--text-muted);
  font-weight: 600;
}

.filter-modal-actions {
  display: flex;
  gap: 12px;
}

.btn-filter-reset {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-reset:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

.btn-filter-done {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Sort Dropdown */
.filter-right-sort {
  position: relative;
  user-select: none;
}

.sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  min-width: 195px;
  z-index: 100;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sort-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  padding: 9px 16px;
  font-size: 0.84rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}

.sort-option:hover {
  background: var(--card-bg);
}

.sort-option.active {
  font-weight: 700;
  color: var(--accent-gold);
}

.sort-option.active::after {
  content: '✓';
  font-weight: 800;
}

/* Body sticky padding */
body.has-sticky-bar {
  padding-bottom: 74px;
}

@media (max-width: 680px) {
  body.has-sticky-bar {
    padding-bottom: 84px;
  }
  .filter-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .filter-modal-card {
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
  }
  .filter-modal-backdrop.open .filter-modal-card {
    transform: translateY(0);
  }
}

/* Subcategory Filter Bar & Pills */
.subcat-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 0 8px;
}
.subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.subcat-pill:hover {
  background: var(--card-bg-hover);
  color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-1px);
}
.subcat-pill.active {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.subcat-pill-count {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  opacity: 0.85;
  background: rgba(125, 125, 125, 0.18);
  padding: 1px 6px;
  border-radius: 10px;
}
.subcat-pill.active .subcat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--bg);
}
[data-theme="dark"] .subcat-pill.active .subcat-pill-count {
  background: rgba(0, 0, 0, 0.35);
  color: #090a0f;
}
.modal-subcat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.subcat-modal-pill {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}
.subcat-modal-pill:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}
.subcat-modal-pill.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #090a0f;
  font-weight: 700;
}

/* =====================================================================
   CROWNGEAR UNIVERSAL SEARCH BAR (WITH CATEGORY DROPDOWN)
   ===================================================================== */
.universal-search-section {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: center;
}

.crown-universal-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  min-height: 42px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  padding: 3px 4px 3px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 8px;
  box-sizing: border-box;
}

.crown-universal-search-bar:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 6px 24px rgba(197, 155, 39, 0.18), 0 0 0 1px var(--accent-gold);
  background: var(--bg);
}

.search-category-dropdown-wrapper {
  position: relative;
  flex-shrink: 0;
  border-right: 1px solid var(--card-border-subtle);
  padding: 0 10px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.search-category-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  text-align-last: center;
  padding: 4px 20px 4px 6px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  border-radius: 6px;
  transition: color 0.2s ease;
  line-height: 1.2;
}

.search-category-select:hover {
  color: var(--accent-gold);
}

.crown-search-input-wrapper {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 8px;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
}

.crown-search-input-wrapper .search-lens-icon {
  position: static !important;
  transform: none !important;
  stroke: var(--text-dim);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.crown-universal-search-bar:focus-within .crown-search-input-wrapper .search-lens-icon {
  stroke: var(--accent-gold);
}

.crown-search-input-wrapper .search-text-input {
  width: 100%;
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 6px 0;
  line-height: 1.2;
}

.crown-search-input-wrapper .search-text-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.crown-search-input-wrapper .search-text-input:focus::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  height: 34px;
  padding: 0 16px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.search-submit-btn:hover {
  background: var(--accent-gold);
  color: #090a0f;
  transform: translateY(-0.5px);
}

@media (max-width: 768px) {
  .universal-search-section {
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .crown-universal-search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    min-height: 44px;
    flex-wrap: nowrap;
    border-radius: 9999px;
    padding: 3px 4px 3px 10px;
    gap: 6px;
    box-sizing: border-box;
  }
  .search-category-dropdown-wrapper {
    flex-shrink: 0;
    width: auto;
    max-width: 125px;
    height: 100%;
    padding: 0 8px 0 0;
    border-right: 1px solid var(--card-border-subtle);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-category-select {
    width: 100%;
    max-width: 115px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 2px 14px 2px 2px;
    background-position: right 1px center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .crown-search-input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
    height: 100%;
    gap: 6px;
    padding: 0 2px;
  }
  .crown-search-input-wrapper .search-lens-icon {
    width: 15px;
    height: 15px;
    margin-left: 2px;
  }
  .crown-search-input-wrapper .search-text-input {
    width: 100%;
    font-size: 0.82rem;
    padding: 4px 0;
  }
  .search-submit-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
    border-radius: 9999px;
  }
}

@media (max-width: 440px) {
  .crown-universal-search-bar {
    height: 42px;
    min-height: 42px;
    padding: 2px 3px 2px 8px;
    gap: 4px;
  }
  .search-category-dropdown-wrapper {
    max-width: 105px;
    padding-right: 4px;
  }
  .search-category-select {
    max-width: 98px;
    font-size: 0.72rem;
    padding-right: 12px;
  }
  .crown-search-input-wrapper .search-lens-icon {
    width: 13px;
    height: 13px;
    margin-left: 1px;
  }
  .crown-search-input-wrapper .search-text-input {
    font-size: 0.78rem;
  }
  .search-submit-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 0.74rem;
  }
}

@media (max-width: 360px) {
  .search-category-dropdown-wrapper {
    max-width: 88px;
  }
  .search-category-select {
    max-width: 82px;
    font-size: 0.68rem;
  }
  .search-submit-btn span {
    display: none;
  }
  .search-submit-btn {
    padding: 0 8px;
  }
}

/* =====================================================================
   BIG SLIDING WINDOW (CATEGORY FLAGSHIP SHOWCASE CAROUSEL)
   ===================================================================== */
.crown-showcase-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 55px;
  padding: 0 20px;
  box-sizing: border-box;
}

.crown-showcase-wrapper {
  position: relative;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.showcase-slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  width: 500%; /* 5 categories */
}

.showcase-slide {
  width: 20%;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding: 50px 60px;
  gap: 50px;
  min-height: 520px;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .showcase-slide {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 28px;
    min-height: auto;
  }
}

.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.showcase-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg-hover);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  width: fit-content;
}

.showcase-title {
  font-size: 2.2rem;
  line-height: 1.18;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
}

@media (max-width: 640px) {
  .showcase-title {
    font-size: 1.6rem;
  }
}

.showcase-specs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0;
}

.showcase-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-heading);
}

.showcase-score {
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid rgba(197, 155, 39, 0.3);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.showcase-subcat {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.showcase-verdict {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 580px;
}

.showcase-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.btn-showcase-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-showcase-primary:hover {
  background: var(--accent-gold);
  color: #090a0f;
  transform: translateY(-2px);
}

.btn-showcase-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--card-border);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-showcase-secondary:hover {
  border-color: var(--text-main);
  background: var(--card-bg-hover);
}

.showcase-cat-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  padding: 8px 4px;
  transition: opacity 0.2s ease;
}

.showcase-cat-link:hover {
  text-decoration: underline;
}

.showcase-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-img-link {
  display: block;
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.showcase-img-link:hover {
  transform: scale(1.02);
}

.showcase-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.showcase-float-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Slider Navigation Arrows */
.showcase-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  line-height: 1;
}

.showcase-nav-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
}

.showcase-nav-btn.prev {
  left: 18px;
}

.showcase-nav-btn.next {
  right: 18px;
}

@media (max-width: 640px) {
  .showcase-nav-btn {
    display: none;
  }
}

/* Category Progress Indicator Tabs */
.showcase-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 22px;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border-subtle);
}

.showcase-ind-pill {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-heading);
}

.showcase-ind-pill:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.showcase-ind-pill.active {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* =====================================================================
   HOMEPAGE DEPARTMENT PORTALS & VIEW ALL BANNER
   ===================================================================== */
.home-portals-section {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.home-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.home-section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

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

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: 150px;
}

.portal-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.portal-icon {
  font-size: 1.8rem;
}

.portal-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(197, 155, 39, 0.1);
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid rgba(197, 155, 39, 0.25);
}

.portal-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.portal-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.portal-arrow {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Explore View All Banner */
.explore-all-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #111111 0%, #1e2430 100%);
  color: #ffffff;
  padding: 34px 44px;
  border-radius: 18px;
  margin-top: 40px;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.explore-all-content h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #ffffff;
}

.explore-all-content p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.95rem;
}

.btn-explore-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #090a0f;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-explore-all:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}
