:root {
  --bg: #fdfbf7;
  --surface: #ffffff;
  --stage: #f5f1e8;
  --stage-deep: #ece6d9;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --yellow: #facc15;
  --amber: #f59e0b;
  --accent-grad: linear-gradient(135deg, #facc15 0%, #f97316 100%);
  --accent-soft: #fff7ed;
  --nav-dark: #171412;
  --text: #1c1917;
  --text-muted: #78716c;
  --border: #ebe5d9;
  --danger: #b42318;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(28, 25, 23, 0.04);
  --shadow-float: 0 16px 38px rgba(23, 20, 18, 0.28);
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[data-theme="dark"] {
  --bg: #110f0d;
  --surface: #1b1815;
  --stage: #24201c;
  --stage-deep: #2b2621;
  --accent-soft: #2c1d11;
  --nav-dark: #0a0908;
  --text: #f5efe6;
  --text-muted: #a89f95;
  --border: #2e2924;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .topbar {
  background: rgba(17, 15, 13, 0.88);
  border-bottom-color: rgba(46, 41, 36, 0.9);
}

html[data-theme="dark"] .brand-title {
  color: var(--text);
}

html[data-theme="dark"] .categories-tab-surface {
  background: linear-gradient(180deg, #171411 0%, #110f0d 100%);
}

html[data-theme="dark"] .cat-sub-chip {
  background: #24201c;
  color: var(--text);
}

html[data-theme="dark"] .subpill-btn {
  background: #2c1d11;
  border-color: #5c3416;
  color: #fdba74;
}

html[data-theme="dark"] .stage-icon-btn,
html[data-theme="dark"] .card-heart {
  background: rgba(27, 24, 21, 0.9);
  color: var(--text);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

.product-card,
.pill-btn,
.subpill-btn,
.nav-item,
.cat-editorial-card,
.banner-card {
  user-select: none;
  -webkit-user-select: none;
}

.product-card:active {
  transform: scale(0.98);
}

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

/* Branded Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(circle at 30% 20%, #2a1f14 0%, #14110f 65%, #0c0a09 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.splash-screen.hide {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

.splash-emblem {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.35);
  display: grid;
  place-items: center;
  animation: splashPop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow: 0 0 48px rgba(249, 115, 22, 0.28);
}

.splash-emblem::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 32px;
  border: 2px solid transparent;
  border-top-color: var(--yellow);
  border-right-color: var(--orange);
  animation: splashSpin 1.8s linear infinite;
}

.splash-brand {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: splashFadeUp 0.85s 0.15s ease both;
}

.splash-tagline {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d6cfc7;
  animation: splashFadeUp 0.85s 0.3s ease both;
}

@keyframes splashPop {
  from { opacity: 0; transform: scale(0.76); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes splashSpin {
  to { transform: rotate(360deg); }
}

/* App Shell */
.app-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px 115px;
  min-height: 100vh;
  overflow-x: clip;
}

@media (min-width: 768px) {
  .app-shell {
    padding: 0 28px 124px;
  }
}

/* Full-Page Tabs */
.tab-page {
  display: none;
  animation: tabFade 0.24s ease;
}

.tab-page.active {
  display: block;
}

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

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -16px 18px;
  padding: 12px 16px;
  background: rgba(253, 251, 247, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(235, 229, 217, 0.75);
}

@media (min-width: 768px) {
  .topbar {
    margin: 0 -28px 20px;
    padding: 14px 28px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--nav-dark);
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishlist-trigger {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.wishlist-trigger:active {
  transform: scale(0.95);
}

.wishlist-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange-deep);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

/* Search & Filter */
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 11px 14px 11px 18px;
  box-shadow: var(--shadow-sm);
}

.search-box svg {
  color: var(--orange-deep);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.94rem;
  color: var(--text);
  min-width: 0;
}

.search-clear {
  border: none;
  background: var(--stage);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  place-items: center;
  font-size: 0.85rem;
}

.search-clear.visible {
  display: grid;
}

.filter-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.filter-btn.active {
  background: var(--orange-deep);
  color: #fff;
  border-color: var(--orange-deep);
}

/* Scrollable Category Banners */
.banners-section {
  position: relative;
  margin-bottom: 22px;
}

.banners-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.banners-track::-webkit-scrollbar {
  display: none;
}

.banner-card {
  flex: 0 0 90%;
  scroll-snap-align: start;
  position: relative;
  border-radius: 26px;
  padding: 26px 24px 22px;
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  color: #fff;
  background: #171412;
  box-shadow: 0 16px 36px rgba(20, 16, 12, 0.18);
  transition: transform 0.22s ease;
}

.banner-card:hover {
  transform: translateY(-2px);
}

@media (min-width: 680px) {
  .banner-card {
    flex: 0 0 58%;
    min-height: 235px;
  }
}

@media (min-width: 1080px) {
  .banner-card {
    flex: 0 0 46%;
    min-height: 245px;
  }
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.45s ease;
}

.banner-card:hover .banner-bg {
  transform: scale(1.04);
}

.banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    95deg,
    rgba(16, 13, 10, 0.90) 0%,
    rgba(24, 18, 12, 0.66) 52%,
    rgba(24, 18, 12, 0.16) 100%
  );
}

.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.banner-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #171412;
  background: var(--accent-grad);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.banner-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 82%;
}

.banner-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 78%;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.banners-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d6cfc3;
  transition: width 0.2s ease, background 0.2s ease;
}

.banner-dot.active {
  width: 22px;
  background: var(--orange-deep);
}

/* Category Pills */
.pills-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.pills-scroll::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--orange);
}

.pill-btn.active {
  background: var(--accent-grad);
  color: var(--nav-dark);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.subpills-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.subpills-scroll:empty {
  display: none;
}

.subpill-btn {
  border: 1px solid #fed7aa;
  background: var(--accent-soft);
  color: #9a3412;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.subpill-btn.active {
  background: var(--nav-dark);
  color: var(--yellow);
  border-color: var(--nav-dark);
}

/* Results meta */
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 680px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
}

.card-stage {
  position: relative;
  background: var(--stage);
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.card-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--nav-dark);
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  max-width: 66%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-heart.saved {
  color: var(--orange-deep);
}

.card-body {
  padding: 2px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.card-colors {
  display: flex;
  align-items: center;
  gap: 4px;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  display: inline-block;
}

.card-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--accent-grad);
  color: var(--nav-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.card-action.saved {
  background: var(--nav-dark);
  color: var(--yellow);
}

/* Full-Page Categories & Wishlist Tab Views */
.categories-tab-surface {
  background: linear-gradient(180deg, #fffaf0 0%, #fdfbf7 45%, #f7f2e7 100%);
  border-radius: 26px;
  padding: 14px;
  border: 1px solid var(--border);
  min-width: 0;
  overflow: hidden;
}

.page-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px;
  border-radius: 22px;
  background: linear-gradient(125deg, #171412 0%, #3b1c0a 60%, #ea580c 100%);
  color: #fff;
  margin-bottom: 18px;
  overflow: hidden;
}

.page-hero-collections {
  min-height: 148px;
  background: #171412;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(16, 13, 10, 0.88) 0%, rgba(24, 18, 12, 0.6) 60%, rgba(24, 18, 12, 0.25) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.15;
}

.page-hero p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
}

.categories-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .categories-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.cat-editorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(23, 20, 18, 0.05);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cat-editorial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(23, 20, 18, 0.09);
}

.cat-editorial-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #171412;
  overflow: hidden;
  cursor: pointer;
}

.cat-editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.cat-editorial-card:hover .cat-editorial-media img {
  transform: scale(1.04);
}

.cat-editorial-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(23, 20, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--yellow);
  border: 1px solid rgba(250, 204, 21, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
}

.cat-editorial-body {
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cat-editorial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.cat-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cat-page-subtitle {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-enter-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--nav-dark);
  color: var(--yellow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cat-enter-btn:hover {
  background: var(--orange-deep);
  color: #fff;
}

.cat-sub-divider {
  border-top: 1px solid var(--border);
  padding-top: 11px;
  min-width: 0;
}

.cat-sub-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.cat-sub-scroll::-webkit-scrollbar {
  display: none;
}

.cat-sub-chip {
  border: 1px solid var(--border);
  background: #f8f4ec;
  color: var(--text);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-sub-chip:hover {
  border-color: var(--orange);
  background: var(--accent-soft);
  color: #9a3412;
}

.wishlist-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .wishlist-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wishlist-card-full {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.wishlist-card-full img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--stage);
  flex-shrink: 0;
}

.wishlist-remove-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: var(--danger);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.wishlist-remove-btn:active {
  transform: scale(0.93);
  background: #fee2e2;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 24px;
  color: var(--text-muted);
}

.empty-state h3 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}

/* Gradual Scroll Loader */
.scroll-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 12px 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.scroll-loader.visible {
  display: flex;
}

.scroll-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--orange-deep);
  border-right-color: var(--yellow);
  animation: splashSpin 0.75s linear infinite;
}

/* Floating Bottom Navigation Pill */
.bottom-nav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 40;
  padding: 0 16px;
}

.bottom-nav {
  pointer-events: auto;
  background: var(--nav-dark);
  color: #c2bab2;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(250, 204, 21, 0.18);
  max-width: 460px;
  width: 100%;
  justify-content: space-around;
}

.nav-item {
  border: none;
  background: transparent;
  color: #b8b0a7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-item.active,
.nav-item:hover {
  color: var(--yellow);
  background: rgba(249, 115, 22, 0.16);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 10, 0.62);
  backdrop-filter: blur(5px);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

@media (min-width: 768px) {
  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }
}

/* Product Detail Sheet */
.detail-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 960px;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

@media (min-width: 768px) {
  .detail-sheet {
    height: auto;
    border-radius: 28px;
    flex-direction: row;
    max-height: 86vh;
  }
}

.detail-stage {
  position: relative;
  background: var(--stage-deep);
  flex: 0 0 auto;
  height: 40dvh;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .detail-stage {
    flex: 1 1 50%;
    height: auto;
    max-height: none;
    min-height: 480px;
  }
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-top-bar {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.stage-icon-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stage-icon-btn.saved {
  color: var(--orange-deep);
}

.stage-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.78);
  padding: 5px 10px;
  border-radius: 999px;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8a29e;
}

.stage-dot.active {
  width: 16px;
  border-radius: 999px;
  background: var(--orange-deep);
}

.stage-swipe-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.detail-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 20px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
}

.detail-content > * {
  flex-shrink: 0;
}

.thumb-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  min-height: 64px;
  padding: 2px 0 4px;
  position: relative;
  z-index: 2;
}

.thumb-btn {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: var(--stage);
  cursor: pointer;
  flex-shrink: 0;
}

.thumb-btn.active {
  border-color: var(--orange-deep);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.detail-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-cat-chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.detail-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.detail-section-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spec-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
}

.spec-key {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-val {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 700;
  margin-top: 2px;
}

.detail-cta {
  margin-top: auto;
  padding-top: 8px;
}

.btn-primary-pill {
  width: 100%;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: var(--nav-dark);
  padding: 15px 22px;
  font-size: 0.96rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.btn-primary-pill.saved {
  background: var(--nav-dark);
  color: var(--yellow);
}

.btn-danger-outline {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: var(--danger);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.drawer-panel {
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .drawer-panel {
    border-radius: 24px;
  }
}

.drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.drawer-body {
  padding: 16px 20px;
  overflow-y: auto;
}

/* Half-Screen Filter Sheet */
.filter-backdrop {
  align-items: flex-end !important;
  padding: 0 !important;
}

.filter-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 720px;
  height: 52vh;
  min-height: 320px;
  max-height: 62vh;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.22);
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-foot {
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

/* Fancy Confirmation Modal */
.confirm-backdrop {
  align-items: center !important;
  padding: 20px !important;
  z-index: 80;
}

.confirm-dialog {
  background: var(--surface);
  width: 100%;
  max-width: 390px;
  border-radius: 26px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  animation: splashPop 0.22s ease both;
}

.confirm-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--orange-deep);
  border: 1px solid #fed7aa;
  display: grid;
  place-items: center;
}

.confirm-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.confirm-msg {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

/* Sync Status Dot & Install Banner */
.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
}

.sync-dot.offline {
  background: #ef4444;
}

.sync-dot.syncing {
  background: var(--yellow);
  animation: splashSpin 1s linear infinite;
}

.install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 88px;
  max-width: 460px;
  margin: 0 auto;
  z-index: 38;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 12px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 36px rgba(18, 14, 10, 0.22);
}

.install-banner.show {
  display: flex;
}

.install-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.95);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  touch-action: pinch-zoom;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
