/* MiSAND final — Style A home (dark) + Style C collection/detail (light)
 *
 * Mobile image strategy:
 * 1) Hero: background-size: cover; background-position: center;
 *    min-height: 100svh; @media (max-width: 768px) → 85svh
 * 2) Product images: fixed aspect-ratio containers + object-fit: cover (never distort)
 * 3) White/scene hover swap only under @media (hover: hover) and (pointer: fine);
 *    touch devices show white by default (no broken hover)
 * 4) Prefer loading="lazy" on below-fold images (set in site.js)
 */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; color: inherit; }
ul { list-style: none; }

/* ========== Shared nav (centered links) ========== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
  /* Keep chrome LTR so logo stays left and language switch stays right in Arabic RTL */
  direction: ltr;
}
.nav .brand {
  justify-self: left;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  z-index: 2;
  /* Unified logo: ivory + gold on every page */
  color: #F3EEE6;
}
.nav .brand span { color: #BFA27A; }
.nav-links {
  display: flex;
  gap: 1.35rem;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a { position: relative; white-space: nowrap; }
.nav-links a.active,
.nav-links a:hover { color: var(--ink); }
.nav-right {
  justify-self: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  z-index: 2;
}
.lang-switch {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.35rem 1.6rem 0.35rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  max-width: 9.5rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.4rem 0.65rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* Media stack: white default; scene on hover (fine pointer only) */
.media-stack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.media-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* never distort */
  object-position: center;
}
.media-stack .img-scene { opacity: 0; transition: opacity 0.45s ease; }
.media-stack .img-white { opacity: 1; transition: opacity 0.45s ease; }
/* Touch / coarse pointer: white stays visible; forced scene via .show-scene (detail thumbs) */
.media-stack.show-scene .img-scene { opacity: 1; }
.media-stack.show-scene .img-white { opacity: 0; }
/* Hover swap only on real desktop pointers, and only when .has-hover is present */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .media-stack.has-hover .img-scene,
  .product-media:hover .media-stack.has-hover .img-scene,
  .detail-shot:hover .media-stack.has-hover .img-scene,
  .media-frame:hover .media-stack.has-hover .img-scene {
    opacity: 1;
  }
  .product-card:hover .media-stack.has-hover .img-white,
  .product-media:hover .media-stack.has-hover .img-white,
  .detail-shot:hover .media-stack.has-hover .img-white,
  .media-frame:hover .media-stack.has-hover .img-white {
    opacity: 0;
  }
}

.reveal { opacity: 0; transform: translateY(16px); transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ========== HOME: Style A nocturne ========== */
body[data-page="home"] {
  --bg: #0C0B0A;
  --bg-elev: #161311;
  --ink: #F3EEE6;
  --muted: #A89F93;
  --line: rgba(243, 238, 230, 0.14);
  --accent: #BFA27A;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Sora", "Helvetica Neue", sans-serif;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
body[data-page="home"] .wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
body[data-page="home"] .nav {
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.92), rgba(12, 11, 10, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}
body[data-page="home"] .brand { font-family: var(--font-display); }
body[data-page="home"] .nav-links { font-size: 0.76rem; letter-spacing: 0.12em; }

/* Hero carousel */
body[data-page="home"] .hero-carousel {
  position: relative;
  min-height: 100svh;
  background: #000;
  overflow: hidden;
}
body[data-page="home"] .hero-track { position: relative; min-height: 100svh; }
body[data-page="home"] .hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
  pointer-events: none;
}
body[data-page="home"] .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
body[data-page="home"] .hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  filter: brightness(0.52) contrast(1.05);
}
body[data-page="home"] .hero-slide.is-active .hero-media {
  animation: heroZoom 12s var(--ease) forwards;
}
body[data-page="home"] .hero-media-partner {
  filter: brightness(0.42) contrast(1.08) saturate(0.92);
  background-position: center top;
}
body[data-page="home"] .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.28) 0%, rgba(12, 11, 10, 0.18) 38%, rgba(12, 11, 10, 0.9) 100%);
  pointer-events: none;
}
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
body[data-page="home"] .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 5.5rem;
  width: min(100%, var(--max));
  margin-inline: auto;
}
body[data-page="home"] .hero-slide.is-active .hero-content {
  animation: rise 0.9s var(--ease) both;
}
body[data-page="home"] .hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  font-weight: 400;
  margin-bottom: 1rem;
}
body[data-page="home"] .hero-desc {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
body[data-page="home"] .hero-partner-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0.35rem 0 1.1rem;
  max-width: 18ch;
}
body[data-page="home"] .hero-bullets {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}
body[data-page="home"] .hero-bullets li {
  padding-left: 1rem;
  position: relative;
}
body[data-page="home"] .hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 1px;
  background: var(--accent);
}
body[data-page="home"] .hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.55rem;
}
body[data-page="home"] .hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(243, 238, 230, 0.45);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
body[data-page="home"] .hero-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

body[data-page="home"] .cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
body[data-page="home"] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #120f0c;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
body[data-page="home"] .btn:hover { transform: translateY(-2px); }
body[data-page="home"] .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
body[data-page="home"] .btn-ghost:hover { border-color: var(--ink); }

body[data-page="home"] .section { padding: 5.5rem 0; }
body[data-page="home"] .section-head { margin-bottom: 2.5rem; max-width: 40rem; }
body[data-page="home"] .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
body[data-page="home"] .section-head h2,
body[data-page="home"] .factory-copy h2,
body[data-page="home"] .cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
body[data-page="home"] .section-head p,
body[data-page="home"] .factory-copy > p,
body[data-page="home"] .cta-band p { color: var(--muted); }

/* Why partner */
body[data-page="home"] .why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
body[data-page="home"] .why-card {
  background: linear-gradient(180deg, rgba(22, 19, 17, 0.9), rgba(12, 11, 10, 0.4));
  border-top: 1px solid var(--line);
  padding-bottom: 1.25rem;
}
body[data-page="home"] .why-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9);
  margin-bottom: 1rem;
}
body[data-page="home"] .why-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0 1rem;
  margin-bottom: 0.45rem;
}
body[data-page="home"] .why-card p {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0 1rem;
}

/* Featured series — vertical stacks */
body[data-page="home"] .series-block {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
body[data-page="home"] .series-block:last-child { border-bottom: 1px solid var(--line); }
body[data-page="home"] .series-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
body[data-page="home"] .series-head p { color: var(--muted); font-size: 0.9rem; }
body[data-page="home"] .series-stack {
  display: grid;
  gap: 1rem;
}
body[data-page="home"] .series-card {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
body[data-page="home"] .series-card:hover { border-color: var(--line); }
body[data-page="home"] .series-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1714;
}
body[data-page="home"] .series-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-page="home"] .series-card-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
body[data-page="home"] .series-card-plate {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
body[data-page="home"] .series-cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  border: 1px dashed rgba(191, 162, 122, 0.45);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.25rem;
}
body[data-page="home"] .series-cta-card:hover {
  background: rgba(191, 162, 122, 0.08);
}

/* Dealer support */
body[data-page="home"] .dealer-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(191, 162, 122, 0.08), transparent 45%),
    var(--bg-elev);
  padding: clamp(1.75rem, 4vw, 3rem);
}
body[data-page="home"] .dealer-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.75rem;
}
body[data-page="home"] .dealer-outcomes li {
  color: var(--ink);
  font-size: 0.92rem;
  padding-left: 1.1rem;
  position: relative;
}
body[data-page="home"] .dealer-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--accent);
}

/* Factory */
body[data-page="home"] .factory-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
body[data-page="home"] .factory-media {
  aspect-ratio: 5 / 4;
  background-size: cover;
  background-position: center;
  filter: brightness(0.78) saturate(0.92);
}
body[data-page="home"] .factory-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
body[data-page="home"] .factory-stats li {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* Clients / styles / testimonials */
body[data-page="home"] .style-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
body[data-page="home"] .style-row figure { overflow: hidden; }
body[data-page="home"] .style-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: brightness(0.75);
}
body[data-page="home"] .style-row figcaption {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
body[data-page="home"] .testimonial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
body[data-page="home"] .testimonial-row blockquote {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 0;
}
body[data-page="home"] .testimonial-row p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  font-style: italic;
  margin: 0.5rem 0 1rem;
}
body[data-page="home"] .testimonial-row cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* CTA band */
body[data-page="home"] .cta-band {
  padding-top: 0;
}
body[data-page="home"] .cta-band-inner {
  border: 1px solid rgba(191, 162, 122, 0.35);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(191, 162, 122, 0.14), transparent 55%),
    var(--bg-elev);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
body[data-page="home"] .cta-band-inner .section-head,
body[data-page="home"] .cta-band-inner p { margin-inline: auto; max-width: 36rem; }
body[data-page="home"] .cta-band-inner .cta-row { justify-content: center; margin-top: 1.5rem; }

/* FAQ */
body[data-page="home"] .faq-list { display: grid; gap: 0; }
body[data-page="home"] .faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
body[data-page="home"] .faq-item:last-child { border-bottom: 1px solid var(--line); }
body[data-page="home"] .faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.75rem 1.1rem 0;
  font-size: 0.95rem;
  position: relative;
}
body[data-page="home"] .faq-item summary::-webkit-details-marker { display: none; }
body[data-page="home"] .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.05rem;
  color: var(--accent);
  font-size: 1.1rem;
}
body[data-page="home"] .faq-item[open] summary::after { content: "–"; }
body[data-page="home"] .faq-item p {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 0 1.2rem;
  max-width: 42rem;
}

/* Footer */
body[data-page="home"] .footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}
body[data-page="home"] .footer .brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: 0.14em;
  margin-bottom: 0.35rem;
}
body[data-page="home"] .footer-contact { margin-top: 0.75rem; line-height: 1.7; }
body[data-page="home"] .footer-contact a:hover { color: var(--accent); }

/* Dealer modal */
body[data-page="home"] .dealer-modal[hidden] { display: none !important; }
body[data-page="home"] .dealer-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}
body[data-page="home"] .dealer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(4px);
}
body[data-page="home"] .dealer-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(92svh, 40rem);
  overflow: auto;
  background: #161311;
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
body[data-page="home"] .dealer-modal-x {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
body[data-page="home"] .dealer-modal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}
body[data-page="home"] .dealer-modal-intro {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
body[data-page="home"] .dealer-form {
  display: grid;
  gap: 0.85rem;
}
body[data-page="home"] .dealer-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
body[data-page="home"] .dealer-form input,
body[data-page="home"] .dealer-form select {
  background: #0c0b0a;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.7rem 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}
body[data-page="home"] .dealer-form-error { color: #c9a27a; font-size: 0.82rem; }
body[data-page="home"] .dealer-form-success { color: var(--accent); font-size: 0.88rem; line-height: 1.5; }
body[data-page="home"] .dealer-form-actions { margin-top: 0.35rem; }

/* ========== COLLECTION + DETAIL: Style C light ========== */
body.theme-c {
  --bg: #F4F2EC;
  --ink: #141414;
  --muted: #5A5852;
  --line: rgba(20, 20, 20, 0.12);
  --accent: #3E6B5B;
  --deep: #1A1A1A;
  --wash: #E7E3D8;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-en: "Outfit", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-en);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(20, 20, 20, 0.025) 48px),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
body.theme-c .wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
body.theme-c .nav {
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 238, 230, 0.14);
}
body.theme-c .nav .brand {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  color: #F3EEE6;
}
body.theme-c .nav .brand span { color: #BFA27A; }
body.theme-c .nav-links {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
  color: #A89F93;
}
body.theme-c .nav-links a.active,
body.theme-c .nav-links a:hover { color: #F3EEE6; }
body.theme-c .nav-links a.active::after,
body.theme-c .nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: #BFA27A;
}
body.theme-c .lang-switch,
body.theme-c .nav-toggle {
  color: #F3EEE6;
  border-color: rgba(243, 238, 230, 0.22);
}

body.theme-c .page-hero {
  padding: 8rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
body.theme-c .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
body.theme-c .page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}
body.theme-c .page-hero p {
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 34rem;
}

body.theme-c .product-grid { display: grid; gap: 0; padding: 2rem 0 4.5rem; }
body.theme-c .product-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
body.theme-c .product-card:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
body.theme-c .product-card:nth-child(even) .product-media { order: 2; }
body.theme-c .product-media {
  aspect-ratio: 5 / 4; /* fixed ratio, never distort */
  overflow: hidden;
  background: var(--wash);
}
body.theme-c .product-body { display: grid; gap: 0.4rem; }
body.theme-c .product-en {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
body.theme-c .product-zh {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin: 0.25rem 0;
}
body.theme-c .product-plate,
body.theme-c .product-concept { color: var(--muted); font-size: 0.92rem; }
body.theme-c .product-link {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Product detail */
body.theme-c .detail-page { padding: 7.5rem 0 4rem; }
body.theme-c .back-link {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
body.theme-c .back-link:hover { color: var(--ink); }
body.theme-c .detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}
body.theme-c .media-frame {
  aspect-ratio: 4 / 5;
  background: var(--wash);
  overflow: hidden;
  position: relative;
}
body.theme-c .media-frame .img-option {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: var(--wash);
}
body.theme-c .media-frame .img-option[hidden],
body.theme-c .media-frame:not(.showing-option) .img-option {
  display: none !important;
}
body.theme-c .media-frame.showing-option .media-stack {
  opacity: 0;
}
body.theme-c .detail-shot figcaption {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
body.theme-c .detail-shot .sep { margin: 0 0.35rem; opacity: 0.5; }
body.theme-c .detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
body.theme-c .thumb-btn {
  width: 72px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--wash);
  cursor: pointer;
  overflow: hidden;
}
body.theme-c .thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.theme-c .thumb-btn.is-active { border-color: var(--accent); }
body.theme-c .detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0.2rem 0 0.35rem;
}
body.theme-c .detail-zh {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1.4rem;
}
body.theme-c .detail-meta { display: grid; gap: 1.1rem; }
body.theme-c .detail-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
body.theme-c .detail-meta dd { color: var(--muted); font-size: 0.95rem; }
body.theme-c .detail-meta ul { margin: 0.25rem 0 0 1rem; list-style: disc; }
body.theme-c .detail-missing { color: var(--muted); margin-bottom: 1rem; }

body.theme-c .detail-block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
body.theme-c .detail-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
}
body.theme-c .detail-highlights ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
body.theme-c .detail-highlights li {
  position: relative;
  padding-inline-start: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
body.theme-c .detail-highlights li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
}
body.theme-c .detail-custom-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.15rem;
  line-height: 1.5;
}
body.theme-c .custom-layout {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 42%);
  gap: 1.25rem 1.5rem;
  align-items: start;
}
body.theme-c .custom-controls {
  display: grid;
  gap: 0.25rem;
}
body.theme-c .custom-group { margin-bottom: 1.15rem; }
body.theme-c .custom-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
body.theme-c .custom-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.theme-c .choice-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
body.theme-c .choice-chip:hover { border-color: var(--accent); }
body.theme-c .choice-chip.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--ink);
}
body.theme-c .option-preview {
  position: sticky;
  top: 5.5rem;
}
body.theme-c .option-preview-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
body.theme-c .option-preview-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--wash);
  border: 1px solid var(--line);
  overflow: hidden;
}
body.theme-c .option-preview.has-image .option-preview-frame {
  cursor: crosshair;
}
body.theme-c .option-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
body.theme-c .option-preview-frame.is-zooming img {
  opacity: 0.92;
}
body.theme-c .option-zoom-lens {
  position: absolute;
  z-index: 3;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 70%, #fff);
  box-shadow:
    0 0 0 1px rgba(18, 15, 12, 0.18),
    0 10px 28px rgba(18, 15, 12, 0.28);
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: var(--wash);
}
body.theme-c .option-zoom-lens[hidden] {
  display: none !important;
}
@media (hover: none), (pointer: coarse) {
  body.theme-c .option-preview.has-image .option-preview-frame {
    cursor: default;
  }
  body.theme-c .option-zoom-lens {
    display: none !important;
  }
}
body.theme-c .option-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
body.theme-c .option-preview.has-image .option-preview-empty { display: none; }
body.theme-c .option-preview-caption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
body.theme-c .detail-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #120f0c;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.35s var(--ease), filter 0.2s;
}
body.theme-c .detail-inquire:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

body.theme-c .footer {
  background: var(--deep);
  color: #C9C4B8;
  padding: 2.5rem 1.25rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  font-size: 0.86rem;
}
body.theme-c .footer .brand {
  font-family: var(--font-display);
  color: #F4F2EC;
  letter-spacing: 0.22em;
  margin-bottom: 0.35rem;
}
body.theme-c .footer-contact { margin-top: 0.75rem; line-height: 1.7; }
body.theme-c .footer-contact a:hover { color: #BFA27A; }

/* ========== RTL basics (page content only; nav stays LTR) ========== */
[dir="rtl"] body.theme-c .product-card:nth-child(even) .product-media { order: 0; }
[dir="rtl"] body.theme-c .detail-meta ul { margin: 0.25rem 1rem 0 0; }
[dir="rtl"] body.theme-c .detail-highlights li { padding-inline-start: 1rem; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  body[data-page="home"] .why-grid { grid-template-columns: 1fr 1fr; }
  body[data-page="home"] .series-block { grid-template-columns: 1fr; gap: 1rem; }
  body[data-page="home"] .factory-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .style-row { grid-template-columns: 1fr 1fr; }
  body[data-page="home"] .testimonial-row { grid-template-columns: 1fr; }
  body[data-page="home"] .dealer-outcomes { grid-template-columns: 1fr; }
  body.theme-c .product-card,
  body.theme-c .product-card:nth-child(even) { grid-template-columns: 1fr; }
  body.theme-c .product-card:nth-child(even) .product-media { order: 0; }
  body.theme-c .detail-grid { grid-template-columns: 1fr; }
  body.theme-c .custom-layout { grid-template-columns: 1fr; }
  body.theme-c .option-preview { position: static; order: -1; }
}

@media (max-width: 768px) {
  body[data-page="home"] .hero-carousel,
  body[data-page="home"] .hero-track { min-height: 85svh; }
  body[data-page="home"] .hero-content { padding-bottom: 4rem; }

  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: start;
  }
  body[data-page="home"] .nav-links { background: rgba(12, 11, 10, 0.96); }
  body.theme-c .nav-links { background: rgba(12, 11, 10, 0.96); }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  body.theme-c .nav-links a.active::after,
  body.theme-c .nav-links a:hover::after { display: none; }
  .nav-toggle { display: inline-block; }
  body.theme-c .product-media { aspect-ratio: 4 / 3; }
  body.theme-c .media-frame { aspect-ratio: 1; }
}

@media (max-width: 560px) {
  body[data-page="home"] .why-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .series-card { grid-template-columns: 6.5rem 1fr; }
  body[data-page="home"] .style-row { grid-template-columns: 1fr 1fr; }
  .lang-switch { max-width: 7.5rem; font-size: 0.68rem; }
}
