/* Cuir Essalam — public storefront. Warm cream/leather palette matching the
   store's own brand (same accent hues as the ERP), serif headlines for an
   editorial/luxury feel, sans-serif for everything functional. */
:root {
  --bg: #FBF8F3;
  --bg-alt: #F3EEE6;
  --panel: #FFFFFF;
  --text: #241C13;
  --text-soft: #6B5F52;
  --text-faint: #948a7c;
  --accent: #B5763B;
  --accent-deep: #8C5527;
  --border: rgba(30, 22, 14, 0.09);
  --shadow: 0 12px 32px rgba(80, 60, 30, 0.08);
  --radius: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }
h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 760px) { .container { padding: 0 20px; } }

/* Header ------------------------------------------------------------------ */
.site-header { background: var(--panel); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .row { display: flex; align-items: center; gap: 36px; height: 96px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand .name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; letter-spacing: .12em; }
.brand .sub { font-size: 9.5px; letter-spacing: .22em; color: var(--text-faint); margin-top: 2px; }
.main-nav { display: flex; gap: 34px; flex: 1; justify-content: center; }
.main-nav a { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); padding-bottom: 6px; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-soft); position: relative; }
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 1.3; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.menu-btn { display: none; }
.menu-btn-bars { position: relative; width: 18px; height: 13px; display: block; }
.menu-btn-bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.menu-btn-bars span:nth-child(1) { top: 0; }
.menu-btn-bars span:nth-child(2) { top: 5.5px; }
.menu-btn-bars span:nth-child(3) { top: 11px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn-bars span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
  .site-header .row { gap: 8px; height: 76px; }
  .header-actions { gap: 4px; }
  .mobile-nav { display: flex; flex-direction: column; max-height: 0; overflow: hidden;
    background: var(--panel); border-top: 1px solid transparent; transition: max-height .3s ease, border-color .3s ease; }
  .mobile-nav.open { max-height: 420px; border-top-color: var(--border); }
  .mobile-nav a { padding: 15px 24px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-soft); border-bottom: 1px solid var(--border); }
  .mobile-nav a.active { color: var(--text); background: var(--bg-alt); }
}
@media (max-width: 420px) {
  .brand .sub { display: none; }
  .brand .name { font-size: 15px; }
  .icon-btn { width: 32px; height: 32px; }
}

/* Hero ---------------------------------------------------------------------*/
.hero { padding: 32px 0 0; }
.hero-card { background: var(--bg-alt); border-radius: 2px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; overflow: hidden; }
.hero-text { padding: 64px 12px 64px 64px; }
.eyebrow { font-size: 11px; letter-spacing: .28em; font-weight: 600; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.hero-text h1 { font-size: 46px; line-height: 1.14; margin: 0 0 20px; font-weight: 600; letter-spacing: -.005em; }
.divider { width: 40px; height: 1px; background: var(--accent); margin: 22px 0; }
.divider::after { content: none; }
.hero-text p { color: var(--text-soft); font-size: 15px; line-height: 1.7; margin: 0 0 32px; max-width: 380px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 2px; font-weight: 600; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn-ghost:hover { background: var(--text); color: #fff; }
.btn-ghost svg { width: 17px; height: 17px; }
.hero-image { height: 100%; min-height: 420px; position: relative; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 6s ease-out; }
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: opacity 1.2s ease; transform: none !important; } }
@media (max-width: 860px) { .hero-card { grid-template-columns: 1fr; } .hero-text { padding: 40px 24px; } .hero-image { min-height: 260px; } }

/* Repair page hero ----------------------------------------------------------*/
.repair-hero { background: var(--text); border-radius: 2px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; overflow: hidden; margin: 32px 0 60px; }
.repair-hero-text { padding: 70px 24px 70px 64px; }
.repair-hero-text .eyebrow { color: var(--accent); }
.repair-hero-text h1 { color: #F3EFE9; font-size: 42px; line-height: 1.16; margin: 0; font-weight: 600; }
.repair-hero-text .divider { background: var(--accent); }
.repair-hero-text p { color: rgba(243,239,233,0.72); font-size: 15px; line-height: 1.7; margin: 0 0 32px; max-width: 400px; }
.repair-hero-art { position: relative; min-height: 380px; overflow: hidden; }
.repair-hero-art::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(20,14,8,.55) 0%, rgba(20,14,8,0) 45%); }
.repair-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .repair-hero { grid-template-columns: 1fr; } .repair-hero-text { padding: 48px 24px; } .repair-hero-art { min-height: 260px; } }

/* "Ce que nous réparons" — real workshop photos instead of small icons ------*/
.repair-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.repair-card { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.repair-card-photo { aspect-ratio: 1; overflow: hidden; }
.repair-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.repair-card:hover .repair-card-photo img { transform: scale(1.06); }
.repair-card h4 { font-size: 13.5px; font-weight: 600; letter-spacing: .02em; margin: 18px 20px 8px; }
.repair-card p { font-size: 12.5px; color: var(--text-soft); line-height: 1.6; margin: 0 20px 20px; }
.repair-card--cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--bg-alt); padding: 28px; }
.repair-card--cta .ico { color: var(--accent); margin-bottom: 14px; }
.repair-card--cta .ico svg { width: 26px; height: 26px; }
.repair-card--cta h4 { margin: 0 0 8px; }
.repair-card--cta p { margin: 0; }
@media (max-width: 860px) { .repair-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .repair-cards { grid-template-columns: 1fr; } }

/* Category strip ------------------------------------------------------------*/
.cat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 60px 0; background: var(--border); }
.cat-card { background: var(--bg); padding: 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cat-card .left { display: flex; align-items: center; gap: 18px; }
.cat-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.cat-icon svg { width: 21px; height: 21px; stroke-width: 1.3; }
.cat-card h3 { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; margin: 0 0 3px; letter-spacing: .01em; }
.cat-card .link { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.cat-thumb { width: 60px; height: 60px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
@media (max-width: 860px) { .cat-strip { grid-template-columns: 1fr; } }

/* Atelier — "Le fil de notre savoir-faire" storytelling section --------------*/
.atelier { padding: 72px 0 0; margin-bottom: 8px; }
.atelier-intro { text-align: center; max-width: 480px; margin: 0 auto 56px; padding: 0 24px; }
.atelier-needle { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 18px; display: block; }
.atelier-needle path, .atelier-needle circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.atelier-needle-thread { stroke-dasharray: 3 3.5; opacity: .7; }
.atelier-intro .eyebrow { justify-content: center; }
.atelier-intro h2 { font-size: 26px; line-height: 1.32; margin: 0 0 16px; }
.atelier-intro p { color: var(--text-soft); font-size: 14.5px; line-height: 1.75; margin: 0; }

.atelier-stages { list-style: none; margin: 0; padding: 0; position: relative; }
.atelier-thread { position: absolute; left: 50%; top: 0; width: 3px; height: 100%; transform: translateX(-50%); z-index: 0; }
.atelier-thread-path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 3 5; vector-effect: non-scaling-stroke;
  stroke-dashoffset: 100; transition: stroke-dashoffset .1s linear; }

.atelier-stage { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; padding: 0 24px; margin-bottom: 64px;
  opacity: 0; transform: translateY(24px); will-change: opacity, transform; }
.no-js .atelier-stage, .atelier-stage.in-view { opacity: 1; transform: translateY(0); }

.atelier-visual { position: relative; aspect-ratio: 6 / 5; border-radius: 3px; overflow: hidden; z-index: 1; background: var(--bg-alt); }
.atelier-visual::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(165deg, rgba(168,104,58,.16), rgba(90,48,24,.24)); mix-blend-mode: multiply; }
.atelier-media { position: absolute; inset: 0; }
.atelier-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.atelier-num { font-family: 'Playfair Display', serif; font-size: 13px; color: var(--accent); letter-spacing: .08em; display: block; margin-bottom: 12px; }
.atelier-copy { position: relative; z-index: 1; padding: 4px 24px 0; }
.atelier-copy h3 { font-size: 20px; margin: 0 0 10px; line-height: 1.3; }
.atelier-copy p { color: var(--text-soft); font-size: 14px; line-height: 1.7; margin: 0; }
.atelier-hint { display: block; margin-top: 14px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }

/* Stage 01 — magnifier lens follows pointer over the leather grain */
.atelier-lens { position: absolute; width: 96px; height: 96px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 6px 18px rgba(0,0,0,.35);
  background: radial-gradient(120% 140% at 25% 15%, #E0A468 0%, #B87A46 42%, #7A4426 100%);
  background-size: 600% 600%; opacity: 0; transition: opacity .2s ease; left: 0; top: 0; z-index: 2; }
.atelier-visual--leather:hover .atelier-lens, .atelier-visual--leather:focus-visible .atelier-lens,
.atelier-visual--leather.lens-active .atelier-lens { opacity: 1; }

/* Stage 02 — pattern outline traces itself once in view */
.atelier-outline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.atelier-outline-path, .atelier-outline-ruler { fill: none; stroke: #F3EFE9; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)); }
.atelier-outline-path { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s ease .2s; }
.atelier-outline-ruler { stroke-dasharray: 60; stroke-dashoffset: 60; opacity: .8; transition: stroke-dashoffset 1s ease .1s; }
.atelier-stage.in-view .atelier-outline-path, .atelier-stage.in-view .atelier-outline-ruler { stroke-dashoffset: 0; }

/* Stage 03 — stitch marks appear progressively */
.atelier-stitches { position: absolute; left: 0; right: 0; bottom: 20px; width: 100%; height: 32px; z-index: 2; }
.atelier-stitch-mark { stroke: #F3EFE9; stroke-width: 3; stroke-linecap: round; opacity: 0; transform: scaleY(0); transform-origin: center;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)); transition: opacity .3s ease, transform .3s ease; }
.atelier-stage.in-view .atelier-stitch-mark { opacity: 1; transform: scaleY(1); }
.atelier-stage.in-view .atelier-stitch-mark:nth-child(1) { transition-delay: .1s; }
.atelier-stage.in-view .atelier-stitch-mark:nth-child(2) { transition-delay: .25s; }
.atelier-stage.in-view .atelier-stitch-mark:nth-child(3) { transition-delay: .4s; }
.atelier-stage.in-view .atelier-stitch-mark:nth-child(4) { transition-delay: .55s; }
.atelier-stage.in-view .atelier-stitch-mark:nth-child(5) { transition-delay: .7s; }

/* Stage 04 — before / after finish comparison slider */
.atelier-visual--finish { cursor: ew-resize; }
.atelier-media--after { clip-path: inset(0 0 0 var(--compare, 50%)); }
.atelier-compare-slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; z-index: 2; }
.atelier-compare-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 100%; height: 100%; }
.atelier-compare-handle { position: absolute; top: 0; bottom: 0; left: var(--compare, 50%); width: 2px; background: #F3EFE9;
  pointer-events: none; z-index: 1; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.atelier-compare-handle::before { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 30px; height: 30px; border-radius: 50%; background: #F3EFE9; color: var(--accent-deep); font-size: 13px;
  display: flex; align-items: center; justify-content: center; }

.atelier-finale { position: relative; margin-top: 8px; padding: 0 24px; }
.atelier-finale-media { position: relative; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--bg-alt); }
.atelier-finale-media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(165deg, rgba(168,104,58,.14), rgba(90,48,24,.2)); mix-blend-mode: multiply; }
.atelier-finale-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atelier-finale-copy { text-align: center; padding: 30px 12px 0; }
.atelier-finale-copy h3 { font-size: 22px; margin: 0 0 20px; }
.atelier-cta { position: relative; overflow: hidden; }
.atelier-cta::after { content: ''; position: absolute; inset: 0; border: 1px dashed rgba(243,239,233,0.6); border-radius: 2px;
  opacity: 0; transform: scale(1.15); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.atelier-cta:hover::after { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .atelier-stage { opacity: 1; transform: none; transition: none; }
  .atelier-outline-path, .atelier-outline-ruler { transition: none; stroke-dashoffset: 0; }
  .atelier-stitch-mark { transition: none; opacity: 1; transform: scaleY(1); }
  .atelier-thread-path { transition: none; }
}

@media (min-width: 761px) {
  .atelier-stage { grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; max-width: 1080px; margin-left: auto; margin-right: auto; }
  .atelier-visual { aspect-ratio: 4 / 3; }
  .atelier-copy { padding-top: 46px; max-width: 380px; }
  .atelier-stage--right .atelier-visual { order: 2; }
  .atelier-stage--right .atelier-copy { order: 1; }
  .atelier-hint { display: none; }
  .atelier-finale-media { max-width: 720px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .atelier-thread { left: 40px; transform: none; }
  .atelier-stage { padding-left: 64px; padding-right: 20px; }
  .atelier-num { position: absolute; left: -64px; top: 6px; width: 40px; text-align: center; }
}

/* Products ----------------------------------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-size: 24px; margin: 0; font-weight: 600; }
.section-head .view-all { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 72px; }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { position: relative; }
.product-thumb { position: relative; border-radius: 2px; overflow: hidden; background: var(--bg-alt); aspect-ratio: 1; margin-bottom: 16px;
  transition: transform .12s ease-out; will-change: transform; transform-style: preserve-3d; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.5), transparent 55%);
  mix-blend-mode: soft-light; }
.product-thumb.tilting .thumb-sheen { opacity: 1; }
.wish-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center; color: var(--text-soft); }
.wish-btn svg { width: 16px; height: 16px; }
.wish-btn.on { color: #d8483f; }
.out-badge { position: absolute; bottom: 12px; left: 12px; background: var(--text); color: #fff; font-size: 10px; font-weight: 600;
  padding: 5px 11px; border-radius: 1px; letter-spacing: .08em; text-transform: uppercase; }
.product-name { font-size: 13.5px; font-weight: 500; margin: 0 0 6px; letter-spacing: .01em; }
.product-price { font-size: 13.5px; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }

/* Footer --------------------------------------------------------------------*/
.site-footer { background: var(--text); color: #F3EFE9; margin-top: 40px; padding: 60px 0 30px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer .brand .name, .site-footer .brand .sub { color: #F3EFE9; }
.site-footer small { color: rgba(255,255,255,0.5); display: block; margin-top: 24px; font-size: 11.5px; letter-spacing: .04em; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }

/* Shop page -------------------------------------------------------------*/
.shop-head { padding: 48px 0 8px; }
.shop-head h1 { font-size: 32px; margin: 6px 0 0; font-family: 'Playfair Display', serif; font-weight: 600; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; }
.filter-chip { padding: 9px 18px; border-radius: 2px; border: 1px solid var(--border); background: transparent; color: var(--text-soft); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.filter-chip:hover { color: var(--text); border-color: var(--text); }
.filter-chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.shop-subfilters { display: flex; flex-wrap: wrap; gap: 32px; margin: -12px 0 28px; }
.subfilter-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.subfilter-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.subfilter-group .shop-filters { margin: 0; }
.color-filter-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-filter-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.color-filter-swatch.active { border-color: var(--accent); }

.price-slider-group { align-items: center; }
.price-slider { position: relative; width: 200px; height: 20px; display: flex; align-items: center; }
.price-slider-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--border); }
.price-slider-fill { position: absolute; height: 100%; background: var(--accent); border-radius: 4px; }
.price-slider input[type="range"] { position: absolute; left: 0; right: 0; width: 100%; margin: 0; background: none;
  -webkit-appearance: none; appearance: none; pointer-events: none; }
.price-slider input[type="range"]::-webkit-slider-runnable-track { -webkit-appearance: none; background: none; height: 4px; }
.price-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto;
  width: 17px; height: 17px; border-radius: 50%; background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; margin-top: 0; }
.price-slider input[type="range"]::-moz-range-track { background: none; height: 4px; }
.price-slider input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.price-slider-value { font-size: 13px; font-weight: 600; color: var(--text-soft); white-space: nowrap; }

/* About page --------------------------------------------------------------*/
.about-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 40px 0 70px; }
.about-story-text p { color: var(--text-soft); font-size: 15px; line-height: 1.85; margin: 0 0 18px; }
.about-story-panel { background: var(--bg-alt); border-radius: 2px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 50px; }
.about-story-panel img { width: 100%; max-width: 220px; object-fit: contain; }
.about-values { padding-bottom: 20px; }
.about-cta { text-align: center; background: var(--bg-alt); border-radius: 2px; padding: 64px 30px; margin: 20px 0 70px; }
.about-cta h2 { font-size: 24px; margin: 0 0 12px; font-weight: 600; }
.about-cta p { color: var(--text-soft); font-size: 14px; margin: 0 0 28px; max-width: 440px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .about-story { grid-template-columns: 1fr; } }

/* Contact page --------------------------------------------------------------*/
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 40px 0 80px; background: var(--border); }
.contact-card { background: var(--bg); padding: 36px; display: flex; gap: 18px; align-items: flex-start; }
.contact-card .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-alt); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .ico svg { width: 19px; height: 19px; stroke-width: 1.3; }
.contact-card h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; font-weight: 600; }
.contact-card p, .contact-card a.value { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.6; }
.contact-card a.value { display: inline-block; margin-top: 2px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--accent); }
.contact-card a.value:hover { color: var(--accent-deep); }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

/* Product detail page ----------------------------------------------------*/
.breadcrumb { padding: 22px 0 0; font-size: 13px; color: var(--text-soft); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 24px 0 70px; align-items: start; }
.product-photo { border-radius: 2px; overflow: hidden; background: var(--bg-alt); aspect-ratio: 1; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .18s ease; }
.product-photo img.swapping { opacity: 0; }
.product-info h1 { font-size: 28px; margin: 8px 0 12px; font-family: 'Playfair Display', serif; font-weight: 600; }
.product-info .product-price { font-size: 19px; margin-bottom: 22px; font-weight: 600; }
.product-info .out-of-stock { color: #a5342a; font-weight: 600; font-size: 13.5px; margin-bottom: 18px; }
.option-group { margin-bottom: 24px; }
.option-group label { display: block; font-size: 11.5px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.option-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.option-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; position: relative; cursor: pointer; }
.option-swatch.selected { border-color: var(--accent); }
.option-swatch.unavailable { opacity: .3; cursor: not-allowed; }
.option-swatch.unavailable::after { content: ''; position: absolute; inset: -2px; background: linear-gradient(to top right, transparent 47%, #a5342a 48%, #a5342a 52%, transparent 53%); border-radius: 50%; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 40px; font-size: 17px; color: var(--text-soft); }
.qty-stepper button:hover { background: var(--bg-alt); }
.qty-stepper span { width: 40px; text-align: center; font-weight: 600; }
.product-info .desc { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; margin-bottom: 26px; }
.btn-full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; gap: 28px; } }

/* Size comparison widget ---------------------------------------------------*/
.size-compare { max-width: 900px; margin: 0 auto 70px; background: var(--bg-alt); border-radius: 2px; padding: 34px; text-align: center; }
.size-compare h3 { font-size: 20px; margin: 0 0 8px; font-family: 'Playfair Display', serif; }
.size-intro { color: var(--text-soft); font-size: 13.5px; max-width: 480px; margin: 0 auto 20px; line-height: 1.6; }
.size-compare-3d { position: relative; width: 100%; max-width: 280px; aspect-ratio: 3 / 4; margin: 0 auto 24px;
  background: var(--panel); border-radius: 12px; overflow: hidden; }
.size-3d-tag { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 11px;
  font-weight: 700; letter-spacing: .04em; color: var(--accent-deep); pointer-events: none; }
.size-compare-stage { position: relative; width: 100%; max-width: 260px; aspect-ratio: 220 / 520; margin: 0 auto; touch-action: none; }
.size-figure { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--text-faint); }
.size-guide-line { stroke: var(--border); stroke-width: 2; stroke-dasharray: 5 6; transition: stroke .15s, stroke-width .15s; }
.size-guide-line.near { stroke: var(--accent); stroke-width: 3; }
.size-drag-item { position: absolute; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center;
  border: 2px solid var(--accent); box-shadow: 0 10px 22px rgba(0,0,0,.18); cursor: grab; touch-action: none; }
.size-drag-item:active { cursor: grabbing; }
.size-caption { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--accent-deep); min-height: 20px; }
.size-note { margin-top: 6px; font-size: 11.5px; color: var(--text-faint); }

/* Cart page ---------------------------------------------------------------*/
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 24px 0 80px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 18px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: 16px; }
.cart-line .thumb { width: 88px; height: 88px; border-radius: 2px; overflow: hidden; background: var(--bg-alt); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .name { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.cart-line .unit-price { font-size: 12.5px; color: var(--text-soft); }
.cart-line .line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-line .line-total { font-weight: 600; color: var(--text); }
.cart-line .remove-btn { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.cart-line .remove-btn:hover { color: #a5342a; }
.cart-summary { background: var(--bg-alt); border-radius: 2px; padding: 30px; position: sticky; top: 108px; }
.cart-summary h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 22px; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-soft); margin-bottom: 12px; }
.summary-row.total { font-size: 16px; font-weight: 600; color: var(--text); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
@media (max-width: 760px) { .cart-layout { grid-template-columns: 1fr; } .cart-line { grid-template-columns: 64px 1fr; } .cart-line .thumb { width: 64px; height: 64px; } .cart-line .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

/* Checkout page ------------------------------------------------------------*/
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 24px 0 80px; align-items: start; }
.checkout-form { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: 32px; }
.checkout-form h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 20px; font-weight: 600; }
.checkout-form .field { margin-bottom: 16px; }
.checkout-form label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.checkout-form input, .checkout-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 2px; padding: 12px 14px; font-family: inherit; font-size: 14px; background: var(--bg); color: var(--text); }
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--accent); }
.checkout-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-stub { border: 1px dashed var(--border); border-radius: 2px; padding: 20px; text-align: center; color: var(--text-soft); font-size: 13.5px; margin: 24px 0; background: var(--bg-alt); }
.payment-stub .ico { margin-bottom: 8px; display: flex; justify-content: center; }
.payment-stub .ico svg { width: 22px; height: 22px; }
.order-summary { background: var(--bg-alt); border-radius: 2px; padding: 30px; position: sticky; top: 108px; }
.order-summary h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 20px; font-weight: 600; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 12px; }
.order-line .qty { color: var(--text-faint); }
@media (max-width: 760px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-form .row-2 { grid-template-columns: 1fr; } }

/* Toast ---------------------------------------------------------------------*/
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff;
  padding: 12px 22px; border-radius: 2px; font-size: 13px; font-weight: 500; letter-spacing: .02em; box-shadow: var(--shadow); z-index: 200;
  opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Header search overlay ------------------------------------------------------*/
.search-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(20,14,8,0.5);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 90px;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.search-overlay.show { opacity: 1; pointer-events: auto; }
.search-panel { background: var(--panel); border-radius: 2px; width: 100%; max-width: 560px; max-height: 70vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.search-input-row input { flex: 1; border: none; background: none; font-size: 15px; color: var(--text); font-family: inherit; }
.search-input-row input:focus { outline: none; }
.search-input-row [data-search-close] { font-size: 20px; line-height: 1; color: var(--text-faint); flex-shrink: 0; }
.search-results { overflow-y: auto; padding: 8px; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.search-result:hover { background: var(--bg-alt); }
.search-result-thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--bg-alt); flex-shrink: 0; }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-name { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.search-result-price { font-size: 12.5px; color: var(--accent-deep); font-weight: 700; }
.search-results .empty-state { padding: 30px 20px; }

/* Order confirmation stamp ---------------------------------------------------*/
.stamp-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(20,14,8,0.55); opacity: 0; transition: opacity .35s; }
.stamp-overlay.show { opacity: 1; }
.stamp-overlay.leave { opacity: 0; }
.stamp-card { background: var(--panel); border-radius: 2px; padding: 44px 40px 34px; text-align: center; max-width: 340px;
  transform: translateY(10px) scale(.97); opacity: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1.2), opacity .4s; }
.stamp-overlay.show .stamp-card { transform: translateY(0) scale(1); opacity: 1; }
.stamp-seal { position: relative; width: 108px; height: 108px; margin: 0 auto 22px; color: var(--accent);
  transform: scale(1.8) rotate(-14deg); opacity: 0; }
.stamp-overlay.show .stamp-seal { animation: stampDown .55s cubic-bezier(.3,1.6,.5,1) .1s forwards; }
.stamp-seal svg { width: 100%; height: 100%; }
.stamp-flourish { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; color: var(--accent-deep);
  opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(0) scale(.5); }
.stamp-flourish svg { width: 100%; height: 100%; }
.stamp-overlay.show .stamp-flourish { animation: stampFlourish .8s ease-out .45s forwards; }
.stamp-card h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 0 0 10px; }
.stamp-card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; margin: 0; }
@keyframes stampDown {
  0% { transform: scale(1.8) rotate(-14deg); opacity: 0; }
  60% { transform: scale(0.92) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes stampFlourish {
  0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(0) scale(.5); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(-52px) scale(1); }
}
