/* ============================================================
   BADR Furniture  Design System
   ============================================================ */

:root {
  /* Brand Colors — derived from BADR logo */
  --badr-primary:        #0E7B73;   /* deep teal */
  --badr-primary-2:      #1BA39C;   /* brand cyan-teal */
  --badr-primary-soft:   #E6F4F2;   /* mint wash */
  --badr-accent:         #C8A572;   /* warm brass */
  --badr-accent-2:       #8B5A3C;   /* walnut brown */

  /* Neutrals */
  --ink-900:  #1B1F23;
  --ink-800:  #2A2D34;
  --ink-700:  #3D4148;
  --ink-500:  #6B7079;
  --ink-400:  #9099A1;
  --ink-300:  #C7CCD2;
  --ink-200:  #E1E4E8;
  --ink-100:  #EFF1F3;
  --ink-50:   #F7F4EE;   /* ivory */
  --pure:     #FFFFFF;

  /* Semantic */
  --bg:         var(--ink-50);
  --surface:    var(--pure);
  --surface-2:  #FAF7F1;
  --text:       var(--ink-800);
  --text-mute:  var(--ink-500);
  --border:     var(--ink-200);

  /* Type */
  --font-sans: "Poppins", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif:"Playfair Display", "Songti SC", "Source Han Serif SC", serif;

  /* Layout */
  --maxw:  1320px;
  --gap:   clamp(16px, 2vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Shadow */
  --shadow-1: 0 2px 6px rgba(20, 25, 35, .05);
  --shadow-2: 0 8px 30px rgba(20, 25, 35, .08);
  --shadow-3: 0 20px 60px rgba(20, 25, 35, .14);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin:0; padding:0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Typography */
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900); margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--badr-primary-2);
  margin-bottom: 12px;
}
.muted { color: var(--text-mute); }

/* Layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 70px) 0; }

/* Button */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-size: .92rem; font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-900);
  color: var(--pure);
}
.btn-primary:hover { background: var(--badr-primary); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-300);
}
.btn-ghost:hover { border-color: var(--ink-900); }
.btn-accent {
  background: var(--badr-primary-2);
  color: var(--pure);
}
.btn-accent:hover { background: var(--badr-primary); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
}
.nav {
  display: flex; align-items: center; gap: 36px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand .word {
  font-family: var(--font-serif);
  font-weight: 700; font-size: 1.2rem; letter-spacing: .15em;
  color: var(--ink-900);
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-700);
  position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--badr-primary); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--badr-primary-2);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--ink-200); background: var(--pure);
  transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink-900); }
.cart-badge {
  position: relative;
}
.cart-badge .count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--badr-primary-2); color: var(--pure);
  border-radius: 999px;
}
.menu-toggle { display: none; }

/* Banner backgrounds ---------------------------------------------------------
   The source JPGs are 1.7-2.6MB each and were being served into boxes that
   render at ~530px (`.feature .img` is aspect-ratio 4/3 in a 1fr column).
   WebP variants (full + @768w) had already been generated by
   deploy/tools/optimize-images.cjs but nothing referenced them, so the JPGs
   were shipped instead. Full WebP is used down to 768px; below that the
   @768w variant cuts mobile transfer to 14-58KB.
   URLs live in custom properties so one media query can swap them all. */
:root {
  --bnr-hero:  url('../assets/images/banners/banner_07-08.webp');
  --bnr-07-08: url('../assets/images/banners/banner_07-08.webp');
  --bnr-11-12: url('../assets/images/banners/banner_11-12.webp');
  --bnr-15-16: url('../assets/images/banners/banner_15-16.webp');
  --bnr-49-50: url('../assets/images/banners/banner_49-50.webp');
  --bnr-81-82: url('../assets/images/banners/banner_81-82.webp');
}
.bnr-07-08 { background-image: var(--bnr-07-08); }
.bnr-11-12 { background-image: var(--bnr-11-12); }
.bnr-15-16 { background-image: var(--bnr-15-16); }
.bnr-49-50 { background-image: var(--bnr-49-50); }
.bnr-81-82 { background-image: var(--bnr-81-82); }
@media (max-width: 768px) {
  :root {
    --bnr-hero:  url('../assets/images/banners/banner_07-08@768w.webp');
    --bnr-07-08: url('../assets/images/banners/banner_07-08@768w.webp');
    --bnr-11-12: url('../assets/images/banners/banner_11-12@768w.webp');
    --bnr-15-16: url('../assets/images/banners/banner_15-16@768w.webp');
    --bnr-49-50: url('../assets/images/banners/banner_49-50@768w.webp');
    --bnr-81-82: url('../assets/images/banners/banner_81-82@768w.webp');
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background: linear-gradient(120deg, #1B1F23 0%, #2A2D34 60%, #1B1F23 100%);
  color: var(--pure);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--bnr-hero);
  background-position: center; background-size: cover;
  opacity: .25;
  filter: contrast(1.05) saturate(.95);
}
.hero .wrap { position: relative; z-index: 1; padding: 100px 24px; }
.hero h1 { color: var(--pure); }
.hero p.lead { max-width: 540px; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.hero .actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--badr-primary-2); }
.hero .btn-ghost { color: var(--pure); border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--pure); }

/* Section header */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.sec-head h2 { margin: 0; }
.sec-head p { color: var(--text-mute); margin: 6px 0 0; max-width: 560px; }
.sec-head .link { font-weight: 600; color: var(--badr-primary); }

/* Category grid */
.cat-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cat-card {
  position: relative;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-100);
  display: flex; align-items: flex-end;
  padding: 24px;
  color: var(--pure);
  transition: transform .4s var(--ease);
}
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.7) 100%);
}
.cat-card .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.cat-card:hover .img { transform: scale(1.06); }
.cat-card .body { position: relative; z-index: 1; }
.cat-card h3 { color: var(--pure); font-size: 1.5rem; margin-bottom: 4px; }
.cat-card .meta { font-size: .85rem; opacity: .8; }
.cat-card .arrow {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.cat-card:hover .arrow { transform: rotate(-45deg); }

/* Product card */
.prod-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.prod-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  transition: all .3s var(--ease);
  position: relative;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.prod-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink-100);
  overflow: hidden;
}
.prod-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.prod-card:hover .thumb img { transform: scale(1.06); }
.prod-card .tag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  background: var(--ink-900); color: var(--pure);
  border-radius: 999px;
}
.prod-card .tag.hot { background: #E76F51; }
.prod-card .tag.new { background: var(--badr-primary-2); }
.prod-card .body { padding: 18px 20px 22px; }
.prod-card .cat { font-size: .75rem; color: var(--text-mute); letter-spacing: .15em; text-transform: uppercase; }
.prod-card h4 { margin: 6px 0 8px; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: var(--ink-900); }
.prod-card .model { font-size: .8rem; color: var(--text-mute); margin-bottom: 12px; }
.prod-card .row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.prod-card .price { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--badr-primary); }
.prod-card .price small { font-size: .75rem; color: var(--text-mute); font-family: var(--font-sans); font-weight: 400; }

/* Feature row */
.feature {
  display: grid; gap: 32px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}
.feature.reverse { grid-template-columns: 1fr 1.2fr; }
.feature.reverse .text { order: 2; }
.feature .text h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.feature .text p { color: var(--text-mute); }
.feature .img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-2);
}
.feature-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 12px;
  font-size: .95rem;
}
.feature-list li::before {
  content: "";
  display: inline-block; flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--badr-primary-soft);
  background-image: linear-gradient(135deg, var(--badr-primary-2) 0%, var(--badr-primary) 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/14px no-repeat;
}

/* Stats */
.stats {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink-900); color: var(--pure);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
}
.stats .n { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; color: var(--badr-accent); }
.stats .l { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* Testimonials */
.testi {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--ink-200);
}
.testi-card .stars { color: var(--badr-accent); margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p { color: var(--ink-700); font-size: .95rem; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-card .avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--badr-primary-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--badr-primary); font-weight: 700; }
.testi-card .who .name { font-weight: 600; color: var(--ink-900); }
.testi-card .who .role { font-size: .8rem; color: var(--text-mute); }

/* Footer */
.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.78);
  padding: 70px 0 30px;
  margin-top: 80px;
}
.footer a:hover { color: var(--pure); }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  margin-bottom: 50px;
}
.footer h5 {
  font-family: var(--font-sans);
  font-size: .9rem; font-weight: 600; letter-spacing: .15em;
  color: var(--pure); text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: .9rem; }
.footer .brand .word { color: var(--pure); }
.footer .about { font-size: .9rem; line-height: 1.7; max-width: 320px; }
.footer .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .9rem; }
.footer .contact-line svg { flex: 0 0 auto; margin-top: 2px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.footer-bottom .socials a:hover { background: var(--badr-primary-2); }

/* Page hero (sub page) */
.page-hero {
  background: linear-gradient(135deg, #1B1F23, #2A2D34);
  color: var(--pure);
  padding: 100px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(27,163,156,.25), transparent);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--pure); }
.page-hero .crumbs { font-size: .85rem; opacity: .7; }
.page-hero .crumbs a:hover { color: var(--badr-accent); }

/* Forms */
.form { display: grid; gap: 16px; max-width: 520px; }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-700); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-200);
  background: var(--pure);
  font-size: .95rem;
  color: var(--ink-900);
  transition: border-color .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--badr-primary-2);
  box-shadow: 0 0 0 3px rgba(27,163,156,.12);
}
.form .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .help { font-size: .8rem; color: var(--text-mute); }
.form .err { color: #C0392B; font-size: .82rem; margin-top: 4px; }

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
  padding: 24px;
}
.card h4 { margin: 0 0 12px; }

/* Filter bar */
.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem; font-weight: 500;
  background: var(--ink-100);
  color: var(--ink-700);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--badr-primary); }
.chip.active { background: var(--ink-900); color: var(--pure); }
.series-chip { border: 1px solid var(--ink-200); }
.series-chip:hover { border-color: var(--badr-primary); color: var(--badr-primary); }
.series-chip.active { border-color: var(--badr-primary); box-shadow: 0 0 0 2px rgba(14,123,115,.15); background: var(--primary-soft); }

/* Product detail */
.pd {
  display: grid; gap: 40px;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
.pd .gallery .main {
  aspect-ratio: 1/1; border-radius: var(--radius-lg);
  background: var(--ink-100);
  overflow: hidden;
  position: relative;
}
.pd .gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pd .gallery .thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 14px;
}
.pd .gallery .thumbs button {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-100);
  aspect-ratio: 1/1;
  padding: 0;
}
.pd .gallery .thumbs button.active { border-color: var(--ink-900); }
.pd .gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 3D viewer: photo / 3D toggle on the product detail gallery ---- */
.pd .gallery .viewtabs { display: flex; gap: 8px; margin-bottom: 12px; }
.pd .gallery .viewtabs button {
  border: 1px solid var(--ink-200); background: transparent; color: var(--ink-700);
  padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; cursor: pointer; transition: all .2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.pd .gallery .viewtabs button:hover { border-color: var(--ink-400); }
.pd .gallery .viewtabs button.active { background: var(--ink-900); border-color: var(--ink-900); color: var(--pure); }
.pd .gallery .viewtabs button.is-unavailable { opacity: .45; cursor: not-allowed; }
.pd .gallery .mv-boot {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 20px;
  background-color: var(--ink-100);
  background-repeat: no-repeat; background-position: center; background-size: contain;
  transition: opacity .2s ease;
}
.pd .gallery .mv-boot-msg {
  font-size: .82rem; color: var(--text-mute);
  background: rgba(255,255,255,.94); padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); text-align: center;
}
.pd .gallery .mv-boot-msg.is-error { color: var(--danger, #a32d2d); max-width: 80%; }
.pd .gallery .stage { position: relative; }
.pd .gallery .stage .main[hidden] { display: none; }
.pd .gallery .main.is-3d { background: var(--surface-2); }
.pd .gallery model-viewer {
  width: 100%; height: 100%; display: block;
  --poster-color: var(--surface-2);
  --progress-bar-color: var(--badr-primary);
  --progress-bar-height: 3px;
}
/* Hide the light-DOM slots (AR button, hint) until the custom element upgrades,
   otherwise they flash as raw inline elements while the CDN script loads. */
.pd .gallery model-viewer:not(:defined) { visibility: hidden; }
/* Door models are ~1:2.4 tall — a square stage would waste most of its width,
   so door products get a taller stage and the photo is letterboxed (these shots
   are on white anyway) rather than cropped. */
.pd .gallery.is-door .main { aspect-ratio: 3 / 4; }
.pd .gallery.is-door .main img { object-fit: contain; }
.pd .gallery.is-door .thumbs button { aspect-ratio: 3 / 4; }
.pd .gallery.is-door .thumbs button img { object-fit: contain; }

.pd .gallery .ar-btn {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--ink-900); color: var(--pure); border: 0;
  padding: 11px 18px; border-radius: 999px; font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow-2);
}
.pd .gallery .ar-btn:hover { background: var(--badr-primary); }
.pd .gallery .mv-hint {
  position: absolute; left: 16px; bottom: 16px;
  font-size: .74rem; color: var(--ink-400); pointer-events: none;
}
/* Door models: the hint is now the primary affordance, so it gets weight. */
.pd .gallery .mv-hint.is-door {
  left: 50%; bottom: 14px; transform: translateX(-50%);
  white-space: nowrap; padding: 9px 18px; border-radius: 999px;
  background: rgba(27, 31, 35, .74); color: var(--pure);
  font-size: .76rem; letter-spacing: .01em;
  transition: opacity .45s var(--ease);
}
.pd .gallery .mv-hint.is-door.used { opacity: 0; }
@media (max-width: 600px) {
  .pd .gallery .mv-hint.is-door {
    white-space: normal; max-width: 86%; text-align: center;
    font-size: .74rem; padding: 8px 14px;
  }
}
.pd .gallery .mv-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 24px; font-size: .88rem; color: var(--text-mute);
  background: var(--surface-2);
}
.pd h1 { font-size: 2rem; margin-bottom: 8px; }
.pd .model { color: var(--text-mute); font-size: .9rem; margin-bottom: 18px; }
.pd .price { font-family: var(--font-serif); font-size: 2rem; color: var(--badr-primary); font-weight: 600; margin: 14px 0; }
.pd .opts { margin: 24px 0; }
.pd .opts .opt-label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-700); margin-bottom: 8px; }
.pd .swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.pd .swatch {
  width: 32px; height: 32px; border-radius: 999px;
  border: 2px solid var(--ink-200); cursor: pointer;
  transition: transform .2s var(--ease);
}
.pd .swatch.active { border-color: var(--ink-900); transform: scale(1.1); }
.pd .qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink-200); border-radius: 999px;
  overflow: hidden;
}
.pd .qty button { width: 40px; height: 40px; background: transparent; border: 0; font-size: 1.1rem; color: var(--ink-700); }
.pd .qty input { width: 50px; text-align: center; border: 0; background: transparent; font-weight: 600; }
.pd .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pd .features { margin-top: 32px; }
.pd .features li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ink-200); }
.pd .features li:last-child { border-bottom: 0; }
.pd .features strong { display: block; min-width: 110px; color: var(--ink-900); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--ink-900); color: var(--pure);
  padding: 14px 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-3);
  transform: translateY(20px); opacity: 0;
  transition: all .3s var(--ease);
  pointer-events: none;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--badr-primary); }
.toast.error { background: #C0392B; }

/* Cart */
.cart-wrap {
  display: grid; gap: 30px;
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
}
.cart-row {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 18px;
  align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--ink-200);
}
.cart-row img { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-row .info h5 { margin: 0 0 4px; font-size: 1rem; font-family: var(--font-sans); }
.cart-row .info .model { font-size: .82rem; color: var(--text-mute); }
.cart-row .info .price { color: var(--badr-primary); font-weight: 600; margin-top: 6px; }
.cart-row .ctrl { display: flex; align-items: center; gap: 16px; }
.cart-row .ctrl .qty { transform: scale(.9); }
.cart-row .remove { background: transparent; border: 0; color: var(--ink-500); font-size: .85rem; }
.cart-row .remove:hover { color: #C0392B; }

.summary { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.summary h4 { margin: 0 0 16px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.summary .line.total { border-top: 1px solid var(--ink-200); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 1.15rem; }
.summary .line.total .v { color: var(--badr-primary); font-family: var(--font-serif); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ink-200); font-size: .92rem; }
.tbl th { background: var(--surface-2); font-weight: 600; color: var(--ink-700); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.tbl tbody tr:hover { background: var(--ink-50); }
.tbl .status { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; display: inline-block; }
.tbl .status.pending { background: #FFF3CD; color: #856404; }
.tbl .status.processing { background: #D1ECF1; color: #0C5460; }
.tbl .status.completed { background: #D4EDDA; color: #155724; }
.tbl .status.cancelled { background: #F8D7DA; color: #721C24; }

/* Mobile nav drawer */
.mobile-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: none; }
.mobile-drawer.open { display: block; }
.mobile-drawer .panel {
  width: 80%; max-width: 320px; height: 100%;
  background: var(--pure); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-drawer a { padding: 12px 0; border-bottom: 1px solid var(--ink-200); font-weight: 500; }
.mobile-drawer .close { align-self: flex-end; background: transparent; border: 0; font-size: 1.5rem; }
.mobile-drawer .drawer-lang { display: flex; gap: 8px; padding-top: 16px; }
.mobile-drawer .drawer-lang button {
  flex: 1; padding: 10px 0; border: 1px solid var(--ink-200); border-radius: 8px;
  background: var(--pure); color: var(--ink-900); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.mobile-drawer .drawer-lang button.active { background: var(--badr-primary); border-color: var(--badr-primary); color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links, .nav-actions .hide-mobile { display: none; }
  .menu-toggle { display: inline-flex; }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: 1fr; }
  .cart-wrap { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; }
}

/* Lang switch */
.lang-switch { position: relative; }
.lang-switch .lang-label {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--ink-200); background: var(--pure);
  font-size: .8rem; font-weight: 700; color: var(--ink-900); cursor: pointer;
  text-align: center; line-height: 1; user-select: none;
}
.lang-switch .lang-drop {
  position: absolute; top: 48px; right: 0; z-index: 60;
  background: var(--pure); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2); border: 1px solid var(--ink-200);
  display: none; min-width: 110px; overflow: hidden;
}
.lang-switch.open .lang-drop { display: block; }
.lang-switch .lang-option {
  display: block; width: 100%; padding: 10px 16px; border: 0; background: transparent;
  font-size: .88rem; text-align: left; cursor: pointer; color: var(--ink-700);
  transition: background .15s;
}
.lang-switch .lang-option:hover { background: var(--ink-50); }
.lang-switch .lang-option.active { color: var(--badr-primary); font-weight: 600; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s var(--ease) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
