:root {
  --color-primary: #1c1917;
  --color-on-primary: #ffffff;
  --color-secondary: #57534e;
  --color-accent: #a16207;
  --color-accent-soft: #d4a017;
  --color-background: #fafaf9;
  --color-foreground: #0c0a09;
  --color-muted: #f5f5f4;
  --color-border: #e7e5e4;
  --color-destructive: #dc2626;
  --color-ring: #1c1917;
  --color-hero: #0b1220;
  --color-teal: #0f766e;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 10px 30px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 25, 23, 0.12);

  --radius: 16px;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-foreground);
  background: var(--color-background);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

a, button, .btn, .product-card, .category-tile, .thumb, .nav-toggle, .cart-link {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.container.narrow { width: min(720px, calc(100% - 2rem)); }

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(161, 98, 7, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(15, 118, 110, 0.05), transparent 50%);
}

.page-home .page-glow { display: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.page-home .site-header {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #fafaf9;
}

.page-home .site-header.is-scrolled {
  background: rgba(250, 250, 249, 0.94);
  border-bottom-color: var(--color-border);
  color: var(--color-foreground);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e0b34d, #a16207);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1rem; }
.brand-tag { font-size: 0.7rem; opacity: 0.65; }

.header-search {
  flex: 1;
  max-width: 280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.page-home .site-header:not(.is-scrolled) .header-search {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

.page-home .site-header:not(.is-scrolled) .header-search input::placeholder {
  color: rgba(255,255,255,0.6);
}

.header-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: inherit;
}

.search-icon {
  opacity: 0.45;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.header-search:focus-within {
  border-color: #d6d3d1;
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.12);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.header-nav > a:not(.cart-link) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.header-nav > a:not(.cart-link):hover {
  background: rgba(28, 25, 23, 0.06);
}

.page-home .site-header:not(.is-scrolled) .header-nav > a:not(.cart-link):hover {
  background: rgba(255, 255, 255, 0.12);
}

.header-nav i {
  font-size: 0.82rem;
  opacity: 0.75;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.25rem;
  font-weight: 600;
}

.mobile-nav i {
  width: 1.25rem;
  text-align: center;
  color: var(--color-accent);
}

.nav-login {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cart-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #d6d3d1;
}

.cart-link i { font-size: 0.95rem; }

.page-home .site-header:not(.is-scrolled) .cart-link {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  margin-right: auto;
}

.page-home .site-header:not(.is-scrolled) .nav-toggle {
  border-color: rgba(255,255,255,0.3);
}
.page-home .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-foreground);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.75rem 1rem 1.2rem;
  background: #fff;
  color: var(--color-foreground);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav.open { display: flex; }
.mobile-nav[hidden] { display: none !important; }

.mobile-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-muted);
}
.mobile-search i { color: #78716c; font-size: 0.9rem; }
.mobile-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
}

/* Hero — clean cinematic */
.hero { position: relative; }

.hero-cinematic {
  min-height: 82vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  color: #fafaf9;
  overflow: hidden;
  background: var(--color-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 20% 60%, rgba(15, 118, 110, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 55% at 78% 70%, rgba(161, 98, 7, 0.38), transparent 62%),
    linear-gradient(165deg, #070b12 0%, #101827 48%, #17120e 100%);
}

.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 620px;
  animation: fadeUp 0.8s var(--ease) both;
}

.brand-signal {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #e8c27a;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hero-copy .lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: rgba(250, 250, 249, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
}

.hero-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding: 0.72rem 0.95rem;
  font-size: 0.88rem;
}

/* Slider hero */
.hero-slider,
.hero-swiper {
  position: relative;
  height: min(78vh, 640px);
  min-height: 420px;
  overflow: hidden;
  background: var(--color-hero);
}

.hero-slide {
  display: block;
  position: relative;
  height: min(78vh, 640px);
  min-height: 420px;
  overflow: hidden;
}

.hero-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-cinematic {
  display: grid;
  align-items: center;
  color: #fafaf9;
}

.hero-slide-cinematic .hero-stage {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + 1.5rem) 2.5rem;
}

.hero-slide-cinematic.tone-a .hero-bg {
  background:
    radial-gradient(ellipse 55% 50% at 20% 60%, rgba(15, 118, 110, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 55% at 78% 70%, rgba(161, 98, 7, 0.38), transparent 62%),
    linear-gradient(165deg, #070b12 0%, #101827 48%, #17120e 100%);
}

.hero-slide-cinematic.tone-b .hero-bg {
  background:
    radial-gradient(ellipse 50% 45% at 80% 30%, rgba(15, 118, 110, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 50% at 15% 75%, rgba(212, 160, 23, 0.22), transparent 60%),
    linear-gradient(165deg, #0a1018 0%, #12202a 50%, #1a1510 100%);
}

.hero-slide-cinematic.tone-c .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(161, 98, 7, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 20%, rgba(15, 118, 110, 0.18), transparent 50%),
    linear-gradient(165deg, #05080e 0%, #0e1620 45%, #1c1410 100%);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,18,0.25), rgba(7,11,18,0.7));
}

.hero-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 16%;
  z-index: 2;
  color: #fff;
}

.hero-caption h1 {
  margin: 0.35rem 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 900;
}

.hero-caption .hero-actions { margin-top: 1rem; }

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  background: rgba(12, 10, 9, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-nav:hover {
  background: rgba(161, 98, 7, 0.85);
  border-color: transparent;
}

.hero-nav-prev { right: 1rem; }
.hero-nav-next { left: 1rem; }

.hero-swiper .swiper-pagination {
  bottom: 1.1rem !important;
  z-index: 5;
}

.hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
  width: 8px;
  height: 8px;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #e8c27a;
  opacity: 1;
  width: 22px;
  border-radius: 999px;
}

/* Sections */
.section { padding: 4rem 0; }
.section-cats { padding-top: 3.25rem; }
.section-latest { background: #f5f5f4; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.section-kicker i {
  font-size: 0.78rem;
  opacity: 0.9;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--color-teal);
}
.text-link:hover { color: var(--color-accent); }

.icon-rtl { transform: scaleX(-1); }

/* Categories fill available width cleanly */
.category-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.category-tile {
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.25s var(--ease);
}
.category-tile:hover { transform: translateY(-4px); }

.category-tile-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #e7e5e4;
  box-shadow: var(--shadow-sm);
}

.category-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.category-tile:hover .category-tile-media img { transform: scale(1.05); }

.category-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(155deg, #111827, #0f766e);
}

.category-fallback.cat-lighting {
  background: linear-gradient(155deg, #1c1917, #a16207);
}
.category-fallback.cat-smart {
  background: linear-gradient(155deg, #0f172a, #0f766e);
}
.category-fallback svg {
  width: 42px;
  height: 42px;
  opacity: 0.95;
}

.category-tile-label {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-tile-label i {
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  color: var(--color-accent);
}

.category-tile:hover .category-tile-label i {
  opacity: 1;
  transform: none;
}

.category-fallback i {
  font-size: 2rem;
  opacity: 0.95;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.product-card {
  display: block;
  transition: transform 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); }

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #e7e5e4;
  box-shadow: var(--shadow-sm);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}
.product-card:hover .product-card-media img {
  transform: scale(1.06);
  filter: brightness(0.92);
}
.product-card:hover .product-card-media { box-shadow: var(--shadow-md); }

.product-card-peek {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.94);
  color: var(--color-foreground);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.product-card-peek i { color: var(--color-accent); font-size: 0.78rem; }

.product-card:hover .product-card-peek {
  opacity: 1;
  transform: none;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 1rem;
}

.product-placeholder.tone-1 {
  background: linear-gradient(155deg, #1f2937, #0f766e);
}
.product-placeholder.tone-2 {
  background: linear-gradient(155deg, #1c1917, #a16207);
}
.product-placeholder.tone-3 {
  background: linear-gradient(155deg, #0f172a, #334155);
}
.product-placeholder.tone-4 {
  background: linear-gradient(155deg, #134e4a, #78716c);
}

.ph-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  backdrop-filter: blur(6px);
}
.ph-label {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 12rem;
  line-height: 1.4;
}

.badge-discount,
.badge-stockout {
  position: absolute;
  top: 12px;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(8px);
}

.badge-discount {
  right: 12px;
  background: rgba(161, 98, 7, 0.94);
  color: #fff;
  box-shadow: 0 6px 16px rgba(161, 98, 7, 0.28);
}

.badge-stockout {
  left: 12px;
  background: rgba(12, 10, 9, 0.75);
  color: #fff;
}

.product-card-body { padding: 0.9rem 0.1rem 0.2rem; }
.product-cat {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: #78716c;
  font-weight: 600;
}
.product-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.price {
  font-weight: 800;
  color: var(--color-teal);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.price small { font-size: 0.72rem; font-weight: 600; opacity: 0.8; }
.price-old {
  text-decoration: line-through;
  color: #a8a29e;
  font-size: 0.86rem;
}
.price-row.large .price { font-size: 1.4rem; color: var(--color-foreground); }

/* Promise */
.promise-band {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem;
  border-radius: 24px;
  background: #0c0a09;
  color: #fafaf9;
}

.promise-band .section-kicker { color: #e8c27a; }
.promise-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
}
.promise-lead {
  margin: 0;
  opacity: 0.72;
  max-width: 22rem;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.promise-list li {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.promise-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  background: rgba(212, 160, 23, 0.15);
  color: #e8c27a;
}

.promise-list strong { display: block; margin-bottom: 0.25rem; }
.promise-list span { opacity: 0.7; font-size: 0.85rem; }

/* Catalog / product detail */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-toolbar {
  align-items: end;
}

.catalog-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn.catalog-filter-btn {
  display: none;
  gap: 0.4rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.catalog-backdrop {
  display: none;
}

.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 1.5rem);
  padding: 0;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.catalog-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}

.catalog-sidebar-head h3 {
  margin: 0;
  font-size: 1rem;
}

.catalog-sidebar-close {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  border-radius: 8px;
  color: var(--color-foreground);
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 1rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-muted);
  color: #78716c;
}

.catalog-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--color-foreground);
}

.catalog-sidebar-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0.65rem 1rem;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
}

.catalog-tree,
.catalog-tree ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalog-tree > li { margin: 0.15rem 0; }

.catalog-tree a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.catalog-tree a i {
  width: 1rem;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.55;
  color: var(--color-accent);
}

.catalog-tree a.active i { opacity: 1; }

.catalog-tree a:hover { background: var(--color-muted); }
.catalog-tree a.active {
  background: rgba(161, 98, 7, 0.1);
  color: var(--color-accent);
  font-weight: 700;
}

.catalog-tree ul {
  padding-right: 0.75rem;
  margin-top: 0.1rem;
}

.catalog-tree ul a {
  font-size: 0.88rem;
  color: #57534e;
}

.catalog-empty {
  margin: 0.75rem;
  color: #78716c;
  font-size: 0.9rem;
}

.catalog-main { min-width: 0; }

.catalog-sidebar li[hidden],
.catalog-tree li[hidden] { display: none !important; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: #78716c;
  font-size: 0.88rem;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  transition: color 0.15s var(--ease);
}

.breadcrumb a:hover { color: var(--color-accent); }

.crumb-sep {
  font-size: 0.55rem;
  opacity: 0.45;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-main-image {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e7e5e4;
  box-shadow: var(--shadow-md);
}

.thumb-row { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.thumb {
  border: 1px solid var(--color-border);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 64px;
  height: 64px;
  background: #fff;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.stock-in,
.stock-out {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stock-in { color: var(--color-teal); font-weight: 700; }
.stock-out { color: var(--color-destructive); font-weight: 600; }
.muted { color: #78716c; }
.lead { font-size: 1.05rem; }

.add-to-cart-form {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.product-description {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

/* Forms & buttons */
.form-input, select, textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  background: #fff;
}
.form-input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.15);
}

.form-input.qty { width: 96px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.has-error .form-input { border-color: var(--color-destructive); }
.field-error { color: var(--color-destructive); font-size: 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary,
.btn-amber {
  background: linear-gradient(135deg, #d4a017, #a16207);
  color: #fff;
  box-shadow: 0 8px 22px rgba(161, 98, 7, 0.28);
}
.btn-primary:hover,
.btn-amber:hover { filter: brightness(1.05); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
}
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fafaf9;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }
.btn-danger-ghost { background: transparent; color: var(--color-destructive); }
.btn-block { width: 100%; }

/* Cart / checkout / auth */
.cart-table-wrap { overflow-x: auto; }
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.cart-table th, .cart-table td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
}
.cart-product { display: flex; align-items: center; gap: 0.75rem; }
.cart-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.cart-summary {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
}

.checkout-summary,
.auth-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.checkout-summary ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkout-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.auth-box { padding: 2rem; }
.text-center { text-align: center; }
.inline-form { display: flex; gap: 0.4rem; align-items: center; }
.prose { line-height: 1.9; }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.messages { margin-top: 1rem; }
.page-home .messages { margin-top: calc(var(--header-h) + 0.75rem); }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
}
.alert-success { border-color: #86efac; background: #f0fdf4; }
.alert-error, .alert-danger { border-color: #fca5a5; background: #fef2f2; }
.alert-warning, .alert-info { border-color: #fcd34d; background: #fffbeb; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.25rem;
  background: #0c0a09;
  color: #fafaf9;
}

.footer-aurora { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-kicker {
  margin: 0 0 0.35rem;
  color: #e8c27a;
  font-weight: 700;
  font-size: 0.85rem;
}

.footer-brand h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-grid h4 { margin: 0 0 0.75rem; color: #e8c27a; }
.footer-grid a { display: block; opacity: 0.8; margin: 0.35rem 0; }
.footer-grid a:hover { opacity: 1; color: #e8c27a; }
.footer-address { opacity: 0.75; max-width: 18rem; }

.footer-social {
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e8c27a;
  font-weight: 600;
}

.footer-social a:hover {
  color: #fff;
}

.footer-social a + a {
  margin-inline-start: 0.85rem;
}

.footer-trust .enamad-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer-trust .enamad-box a,
.footer-trust .enamad-box img,
.footer-trust .enamad-box iframe {
  max-width: 125px;
  height: auto;
  display: inline-block;
}

.sort-form select { width: auto; min-width: 140px; }

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: #78716c;
}

.sort-wrap select {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.45rem 0.5rem;
  min-width: 120px;
  width: auto;
}

.sort-wrap select:focus {
  box-shadow: none;
  border: 0;
}

.catalog-sidebar-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.catalog-sidebar-head h3 i {
  color: var(--color-accent);
  font-size: 0.9rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.alert i { margin-top: 0.15rem; color: var(--color-accent); }

.empty-state {
  color: #78716c;
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
  font-weight: 600;
}

.empty-state i {
  color: var(--color-accent);
  font-size: 1.15rem;
}

.site-footer h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer h4 i,
.footer-kicker i,
.footer-brand + div p i,
.site-footer .footer-grid > div:last-child p i {
  color: #e8c27a;
  width: 1rem;
  text-align: center;
  opacity: 0.9;
}

.site-footer .footer-grid > div:last-child p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.promise-icon i { font-size: 1rem; }

.promise-list li {
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.promise-list li:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
}

.hero-actions .btn i { font-size: 0.85rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail,
  .checkout-layout,
  .footer-grid,
  .promise-band { grid-template-columns: 1fr; }
  .promise-list { grid-template-columns: 1fr; }
  .header-nav, .header-search { display: none; }
  .nav-toggle { display: flex; }
  .hero-cinematic {
    min-height: auto;
    padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  }
  .hero-copy h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-slider,
  .hero-swiper,
  .hero-slide {
    height: min(68vh, 520px);
    min-height: 360px;
  }
  .hero-nav {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .hero-nav-prev { right: 0.55rem; }
  .hero-nav-next { left: 0.55rem; }
  .hero-actions .btn {
    padding: 0.65rem 0.7rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  .hero-actions .btn i { font-size: 0.72rem; }

  .section { padding: 2.5rem 0; }
  .section-cats { padding-top: 2rem; }

  .product-card-peek { display: none; }

  .btn.catalog-filter-btn {
    display: inline-flex !important;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .catalog-toolbar-actions {
    width: 100%;
  }

  .catalog-toolbar-actions .btn.catalog-filter-btn {
    flex: 1;
    justify-content: center;
  }

  .sort-form {
    flex: 1;
  }

  .sort-wrap {
    width: 100%;
  }

  .sort-form select,
  .sort-wrap select {
    width: 100%;
    min-width: 0;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(12, 10, 9, 0.45);
  }
  .catalog-backdrop[hidden] { display: none !important; }

  .catalog-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    max-height: min(82vh, 640px);
    border-radius: 20px 20px 0 0;
    transform: translateY(110%);
    transition: transform 0.28s var(--ease);
    box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
  }

  .catalog-sidebar.is-open {
    transform: translateY(0);
  }

  .catalog-sidebar-close { display: inline-flex; }

  body.catalog-filter-open {
    overflow: hidden;
  }

  .add-to-cart-form {
    flex-wrap: wrap;
  }
  .add-to-cart-form .btn {
    width: 100%;
  }

  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) {
    display: none;
  }

  .cart-summary {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-summary .btn { width: 100%; }

  .auth-box { padding: 1.35rem; }
  .promise-band { padding: 1.35rem; }
  .footer-grid { gap: 1.5rem; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .brand-tag { display: none; }
  .brand-name { font-size: 0.9rem; }
  .category-rail { grid-template-columns: 1fr; }
  .container { width: min(1120px, calc(100% - 1.25rem)); }
  .product-card-body h3 { font-size: 0.88rem; }
  .price { font-size: 0.9rem; }
  .section-head h1,
  .section-head h2 { font-size: 1.25rem; }
  .hero-actions {
    width: 100%;
    flex-wrap: nowrap;
  }
  .hero-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.62rem 0.55rem;
    font-size: 0.76rem;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
