/* ============================================================
   ARDEN MOBILYA — Styles principaux
   Police: Josefin Sans (titres) + Montserrat (corps)
   Palette: noir #090909 / blanc #F5F5F3 / gris dégradé
   Mobile-first, responsive
   ============================================================ */

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #090909;
  --surface:     #111111;
  --surface-2:   #181818;
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.12);
  --text-hi:     #F5F5F3;
  --text-md:     #9A9A96;
  --text-lo:     #555552;
  --accent:      #F5F5F3;

  --font-display: 'Josefin Sans', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --nav-h:    72px;
  --r-card:   2px;
  --ease:     cubic-bezier(.22,.68,0,1.2);
  --ease-out: cubic-bezier(0,0,.2,1);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Icon sprite (hidden SVG defs) ────────────────────────── */
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  display: inline-block;
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm   { width: 16px; height: 16px; }
.icon--lg   { width: 24px; height: 24px; }

/* ── Utility ───────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Navigation ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s var(--ease-out), height .3s var(--ease-out),
              backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(9,9,9,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 60px;
  border-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 46px;
  width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.1);
  transition: height .3s;
}
#navbar.scrolled .nav-logo img { height: 38px; }

.nav-links {
  display: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-md);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text-hi); }

.nav-hamburger {
  width: 36px; height: 36px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--text-hi);
  transition: all .35s var(--ease-out);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 44px;
  transform: translateY(-100%);
  transition: transform .45s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 100;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-hi);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s, color .2s;
}
.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .17s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .24s; }
.mobile-menu.open a:hover { color: var(--text-md); }

@media (min-width: 900px) {
  .nav-hamburger { display: none; }
  .nav-links { display: flex; }
  .mobile-menu { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 24px 64px;
  overflow: hidden;
}

.hero-topo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .055;
  pointer-events: none;
  will-change: opacity;
  animation: topoReveal 2.4s ease forwards;
}
@keyframes topoReveal {
  from { opacity: 0; }
  to   { opacity: .055; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--text-md);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .7s .4s var(--ease-out) forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 108px);
  font-weight: 100;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--text-hi);
  margin-bottom: 28px;
  white-space: pre-line;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) forwards;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 300;
  color: var(--text-md);
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp .7s .85s var(--ease-out) forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 36px;
  background: var(--text-hi);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: var(--r-card);
  opacity: 0;
  animation: fadeUp .7s 1.05s var(--ease-out) forwards;
  transition: background .2s, transform .2s;
}
.hero-cta:hover {
  background: #ddd;
  transform: translateY(-2px);
}
.hero-cta svg { transition: transform .2s; }
.hero-cta:hover svg { transform: translateX(4px); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 2s ease forwards;
  cursor: pointer;
}
.hero-scroll span {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-lo);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-lo), transparent);
  animation: scrollLine 2s 2.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0) translateY(0); transform-origin: top; }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Products section ──────────────────────────────────────── */
#products {
  padding: 80px 0 100px;
}

.section-header {
  padding: 0 24px;
  margin-bottom: 48px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--text-md);
}

/* Category block */
.category-block {
  margin-bottom: 72px;
}
.category-block:last-child { margin-bottom: 0; }

.category-header {
  padding: 0 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.category-label {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 100;
  letter-spacing: -.01em;
  color: var(--text-hi);
}
.category-count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .2em;
  color: var(--text-lo);
}

/* Product rail */
.product-rail-wrapper {
  position: relative;
}

.product-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 24px 24px;
  cursor: grab;
}
.product-rail::-webkit-scrollbar { display: none; }
.product-rail.dragging { cursor: grabbing; user-select: none; }

/* Fade edge hint */
.product-rail-wrapper::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: calc(100% - 24px);
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}

/* ── Product card ───────────────────────────────────────────── */
.product-card {
  scroll-snap-align: start;
  flex: 0 0 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.product-card:hover {
  border-color: var(--border-md);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
}

/* Card image */
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.product-card:hover .card-img img { transform: scale(1.04); }

.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.placeholder-icon {
  opacity: .12;
  width: 64px; height: 64px;
}

/* Card body */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-hi);
  line-height: 1.3;
}
.product-price {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .05em;
  color: var(--text-md);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Details toggle */
.details-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-lo);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: left;
  transition: color .2s;
}
.details-toggle:hover { color: var(--text-md); }
.details-toggle .toggle-arrow {
  margin-left: auto;
  transition: transform .3s var(--ease-out);
  font-size: 12px;
}
.details-toggle.open .toggle-arrow { transform: rotate(180deg); }

/* Details panel */
.details-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease-out), opacity .35s;
  opacity: 0;
}
.details-panel.open {
  max-height: 600px;
  opacity: 1;
}

.product-desc {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-md);
  line-height: 1.7;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.attr-row {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.attr-label {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-bottom: 4px;
}
.attr-value {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-md);
}

/* Selectable chips */
.attr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.chip {
  padding: 5px 12px;
  border: 1px solid var(--border-md);
  border-radius: 1px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-md);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--text-hi);
}
.chip.selected {
  background: var(--text-hi);
  border-color: var(--text-hi);
  color: var(--bg);
}
.chip-group.required .chip { border-color: rgba(220,60,60,.5); }

/* WhatsApp CTA */
.btn-commander {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  padding-bottom: 2px;
}
.btn-commander-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  width: 100%;
  justify-content: center;
  background: var(--text-hi);
  color: var(--bg);
  border-radius: var(--r-card);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
  cursor: pointer;
}
.btn-commander-inner:hover {
  background: #e0e0de;
  transform: translateY(-1px);
}
.btn-commander-inner svg {
  width: 16px; height: 16px;
  fill: var(--bg);
  stroke: none;
}

/* Validation warning */
.validation-msg {
  font-size: 11px;
  color: #e05555;
  text-align: center;
  padding: 8px 0 4px;
  display: none;
}
.validation-msg.show { display: block; }

/* ── Contact section ────────────────────────────────────────── */
#contact {
  padding: 80px 24px 100px;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 48px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color .2s, background .2s, transform .25s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.contact-card:hover {
  border-color: var(--border-md);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.contact-card-icon {
  width: 32px; height: 32px;
  color: var(--text-md);
  flex-shrink: 0;
}
.contact-card-icon svg {
  width: 100%; height: 100%;
}
.contact-card-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-lo);
}
.contact-card-value {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-md);
  word-break: break-word;
  line-height: 1.5;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo img {
  height: 36px;
  mix-blend-mode: screen;
  filter: brightness(.6);
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.footer-admin-link {
  font-size: 10px;
  color: var(--text-lo);
  opacity: .4;
  transition: opacity .2s;
  letter-spacing: .1em;
}
.footer-admin-link:hover { opacity: .8; }

/* ── Toast ──────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  z-index: 9999;
  background: var(--text-hi);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: var(--r-card);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .35s var(--ease-out), opacity .35s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
#toast.error {
  background: #c93535;
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 600px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card { flex: 0 0 320px; }
}

@media (min-width: 900px) {
  #hero { padding: calc(var(--nav-h) + 60px) 60px 80px; }
  #products { padding: 100px 0 120px; }
  .section-header,
  .category-header { padding: 0 60px; }
  .product-rail { padding: 4px 60px 32px; gap: 20px; }
  #contact { padding: 100px 60px 120px; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  footer { flex-direction: row; justify-content: space-between; text-align: left; }
  .product-card { flex: 0 0 340px; }
}

@media (min-width: 1400px) {
  .product-card { flex: 0 0 360px; }
  .product-rail { padding: 4px 80px 40px; gap: 24px; }
  #hero { padding: calc(var(--nav-h) + 80px) 80px 100px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero-topo { opacity: .055 !important; animation: none; }
}

/* ============================================================
   MODAL OVERLAY — Produit avec carrousel 4 images
   ============================================================ */

.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out);
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}

.modal-container {
  position: relative;
  width: 100%; min-height: 100svh; min-height: 100vh;
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateY(16px);
  transition: transform .35s var(--ease-out);
}
.modal-overlay.open .modal-container { transform: translateY(0); }

.modal-close {
  position: fixed; top: 14px; right: 14px; z-index: 10;
  width: 38px; height: 38px;
  background: rgba(9,9,9,.8);
  border: 1px solid var(--border-md);
  border-radius: 50%;
  color: var(--text-hi);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: #000; }

/* ── Gallery ── */
.modal-gallery {
  display: flex; flex-direction: column;
  background: #050505; flex-shrink: 0;
  position: relative;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #050505;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}

.gallery-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .22s ease;
  display: block;
}

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: var(--text-hi); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  transition: background .2s; border: 1px solid rgba(255,255,255,.12);
}
.gallery-nav:hover { background: rgba(0,0,0,.88); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-thumbs {
  display: flex; gap: 6px;
  padding: 10px 14px 8px;
  background: #030303;
  overflow-x: auto; scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 68px; height: 52px;
  object-fit: cover; border-radius: 2px; flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer; opacity: .45;
  transition: opacity .2s, border-color .2s;
}
.gallery-thumb.active { border-color: var(--text-hi); opacity: 1; }
.gallery-thumb:hover  { opacity: .75; }

.gallery-dots {
  display: flex; justify-content: center; gap: 7px;
  padding: 7px 0 10px; background: #030303;
}
.gallery-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  cursor: pointer; transition: background .2s, transform .2s;
}
.gallery-dot.active {
  background: var(--text-hi); transform: scale(1.3);
}

/* ── Info panel ── */
.modal-info {
  flex: 1; padding: 28px 24px 100px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}

.modal-product-header { display: flex; flex-direction: column; gap: 4px; }

.modal-product-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-hi);
}
.modal-product-price {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 300;
  letter-spacing: .05em; color: var(--text-md);
}
.modal-product-desc {
  font-size: 13.5px; font-weight: 300;
  color: var(--text-md); line-height: 1.75;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.modal-attr-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.modal-attrs    { display: flex; flex-direction: column; }

/* Commander button in modal — fixed bottom bar */
.modal-commander-wrap {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 14px 20px; background: var(--surface);
  border-top: 1px solid var(--border); z-index: 5;
}
.btn-modal-commander {
  width: 100%; padding: 15px 24px;
  background: var(--text-hi); color: var(--bg);
  border-radius: var(--r-card);
  font-family: var(--font-display); font-size: 11px;
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: background .2s, transform .2s;
}
.btn-modal-commander:hover { background: #e0e0de; transform: translateY(-1px); }
.btn-modal-commander svg { width: 18px; height: 18px; fill: var(--bg); }

/* ── Card updates for modal-first design ── */
.product-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* View hint overlay */
.card-view-hint {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.card-view-hint span {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-hi);
}
.card-view-hint .icon { color: var(--text-hi); }
.product-card:hover .card-view-hint { opacity: 1; }

/* Image dots row */
.card-img-dots {
  display: flex; gap: 5px; align-items: center;
  padding: 2px 0 4px;
}
.card-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.18); flex-shrink: 0;
}
.card-dot.active { background: rgba(255,255,255,.6); }

/* Desktop layout */
@media (min-width: 768px) {
  .modal-overlay { padding: 32px 20px; align-items: center; }

  .modal-container {
    max-width: 940px;
    min-height: 0; height: auto;
    max-height: calc(100svh - 64px);
    flex-direction: row;
    border: 1px solid var(--border-md);
    border-radius: 3px;
    overflow: hidden;
  }

  .modal-close { position: absolute; top: 14px; right: 14px; }

  .modal-gallery {
    width: 54%; height: 100%;
    flex-direction: column;
  }

  .gallery-main {
    flex: 1; aspect-ratio: unset;
    height: 0; /* grow via flex */
  }

  .modal-info {
    width: 46%;
    padding: 32px 28px 24px;
    height: 100%; overflow-y: auto;
  }

  .modal-commander-wrap {
    position: static; padding: 0;
    border-top: none; background: none;
    margin-top: auto; padding-top: 20px;
  }
}

@media (min-width: 1200px) {
  .modal-container { max-width: 1060px; }
  .modal-gallery   { width: 58%; }
  .modal-info      { width: 42%; }
  .gallery-thumb   { width: 80px; height: 60px; }
}
