/* =========================================================
   IMÉNA — Hijab & Wear · storefront (mobile-first)
   ========================================================= */
:root {
  --burgundy: #5A0F2D;
  --burgundy-2: #74183C;
  --burgundy-soft: #F3E6EA;
  --ivory: #FAF7F2;
  --cream: #F2EBE1;
  --gold: #C9A66B;
  --gold-soft: #EADBC0;
  --ink: #171515;
  --muted: #7A706A;
  --line: #E7DED3;
  --white: #fff;
  --ok: #2F6B4F;
  --warn: #9A5B12;
  --danger: #A3122F;

  --serif: 'Cormorant Garamond', 'Noto Naskh Arabic', Georgia, serif;
  --sans: 'Manrope', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --shadow: 0 1px 2px rgba(23, 21, 21, .05), 0 8px 24px rgba(90, 15, 45, .07);
  --shadow-lg: 0 -10px 40px rgba(23, 21, 21, .18);
  --topbar: 58px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html[lang="ar"] { --sans: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--burgundy); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.serif { font-family: var(--serif); }
.num { font-family: 'Manrope', system-ui, sans-serif; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: calc(var(--topbar) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ivory); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s;
}
.topbar.solid { background: rgba(250, 247, 242, .94); color: var(--burgundy); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.logo { grid-column: 2; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; line-height: 1; direction: ltr; }
.logo-word { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 27px; letter-spacing: .2em; margin-inline-start: .2em; }
.logo-sub { font-size: 7.5px; letter-spacing: .42em; margin-top: 4px; opacity: .85; font-family: 'Manrope', sans-serif; font-weight: 600; }
.icon-btn { grid-column: 1; justify-self: start; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: inherit; }
.icon-btn svg { width: 24px; height: 24px; }
.lang { grid-column: 3; justify-self: end; display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); direction: ltr; }
.topbar.solid .lang { background: var(--white); border-color: var(--line); }
.lang button { min-width: 32px; height: 28px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: inherit; opacity: .85; font-family: 'Manrope', 'IBM Plex Sans Arabic', sans-serif; }
.lang button[aria-pressed="true"] { background: var(--burgundy); color: #fff; opacity: 1; }
.topbar:not(.solid) .lang button[aria-pressed="true"] { background: var(--ivory); color: var(--burgundy); }

/* ---------- Feed (horizontal discovery) ---------- */
.feed-wrap { position: relative; }
.feed {
  display: flex; height: 100svh; min-height: 560px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: none;
}
.feed::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden; }

/* Hero slide */
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.swipe-cta {
  margin-top: 22px; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 360px; height: 60px; padding-inline: 6px 22px;
  border-radius: 999px; border: 1px solid rgba(201, 166, 107, .8); background: rgba(40, 6, 20, .35); color: #fff; font-weight: 600; font-size: 15px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.swipe-cta .knob { width: 48px; height: 48px; border-radius: 50%; background: var(--ivory); color: var(--burgundy); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); animation: nudge 2.4s var(--ease) infinite; }
.swipe-cta .knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .swipe-cta .knob svg { transform: scaleX(-1); }
@keyframes nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(8px); } }
html[dir="rtl"] .swipe-cta .knob { animation-name: nudge-rtl; }
@keyframes nudge-rtl { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(-8px); } }

/* Product slide */
.product { background: var(--ivory); display: flex; flex-direction: column; padding-top: calc(var(--topbar) + env(safe-area-inset-top, 0px)); }
.p-badges { position: absolute; top: 22px; inset-inline-start: 12px; z-index: 3; display: flex; gap: 6px; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--ivory); color: var(--burgundy); }
.badge.gold { background: var(--burgundy); color: var(--gold-soft); }
.p-arrow svg, .feed-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .p-arrow svg, html[dir="rtl"] .feed-arrow svg { transform: scaleX(-1); }

.p-info { flex: 0 0 auto; padding: 14px 16px calc(12px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.p-name { font: 600 30px/1 var(--serif); color: var(--burgundy); margin: 0; letter-spacing: .04em; }
html[lang="ar"] .p-name { font-family: 'Noto Naskh Arabic', var(--serif); font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.p-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.p-price { text-align: end; white-space: nowrap; }
.p-price b { font-size: 19px; font-weight: 800; color: var(--ink); }
.p-price s { display: block; color: var(--muted); font-size: 12.5px; }
.opt-row { display: flex; align-items: center; gap: 10px; }
.opt-label { font-size: 12px; color: var(--muted); font-weight: 600; min-width: 46px; }
.opt-label em { font-style: normal; color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s var(--ease); }
.swatch::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color .2s; }
.swatch[aria-pressed="true"]::after, .swatch[aria-checked="true"]::after { border-color: var(--burgundy); }
.swatch:active { transform: scale(.9); }
.swatch.out { opacity: .35; }
.sizes { display: flex; gap: 8px; flex: 1; }
.size-btn {
  flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 14px; position: relative;
  transition: background .2s, color .2s, border-color .2s; font-family: 'Manrope', sans-serif;
}
.size-btn[aria-pressed="true"], .size-btn[aria-checked="true"] { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.size-btn:disabled { color: #BDB4AC; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.size-btn .low { position: absolute; top: 5px; inset-inline-end: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 14px;
  font-weight: 700; font-size: 16px; transition: transform .15s var(--ease), background .2s, box-shadow .2s; width: 100%;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--burgundy); color: #fff; box-shadow: 0 8px 20px -8px rgba(90, 15, 45, .6); }
.btn-primary:hover { background: var(--burgundy-2); }
.btn-primary:disabled { background: #B79AA5; box-shadow: none; cursor: wait; }
.btn-ghost { height: 46px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14.5px; justify-content: space-between; }
.btn-ghost .l { display: inline-flex; align-items: center; gap: 10px; }
.btn-ghost .chev { width: 18px; height: 18px; color: var(--muted); }
html[dir="rtl"] .btn-ghost .chev { transform: scaleX(-1); }
.btn-ghost .rec { color: var(--burgundy); font-weight: 800; }
.btn-link { color: var(--burgundy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.feed-ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.feed-arrow { pointer-events: auto; position: absolute; top: 45%; width: 48px; height: 48px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); display: none; place-items: center; }
.feed-arrow.prev { inset-inline-start: 20px; } .feed-arrow.next { inset-inline-end: 20px; }
.feed-count { position: absolute; top: calc(var(--topbar) + env(safe-area-inset-top, 0px) + 14px); inset-inline-end: 24px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .9); letter-spacing: .08em; display: none; color: var(--muted); }
.filter-chip { position: absolute; z-index: 6; top: calc(var(--topbar) + env(safe-area-inset-top, 0px) + 18px); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: var(--burgundy); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 8px 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.filter-chip button { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 14px; line-height: 1; }

/* ---------- Sections below the feed ---------- */
.section { padding: 44px 18px; max-width: 1180px; margin: 0 auto; }
.kicker { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 13px; }
.h2 { font: 600 30px/1.15 var(--serif); color: var(--burgundy); margin: 6px 0 12px; }
html[lang="ar"] .h2 { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; font-size: 25px; line-height: 1.4; }
.points { display: flex; flex-wrap: wrap; gap: 8px; }
.points span { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(201, 166, 107, .6); color: var(--gold-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--white); border-radius: var(--r-lg); padding: 18px 10px; box-shadow: var(--shadow); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 6px 2px; }
.trust-item svg { width: 34px; height: 34px; color: var(--burgundy); fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(23, 10, 15, .45); opacity: 0; transition: opacity .3s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 41; inset: auto 0 0 0; max-height: 94svh; display: flex; flex-direction: column;
  background: var(--ivory); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .38s var(--ease);
}
.sheet.open { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet-handle { padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-handle span { width: 42px; height: 5px; border-radius: 3px; background: #D7CCC1; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 18px calc(18px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.sheet-head h2 { margin: 0; font: 700 20px/1.25 var(--sans); color: var(--burgundy); flex: 1; }
.sheet-head .x { width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.sheet-head .x svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2; }
.back { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.back svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .back svg { transform: scaleX(-1); }

.seg { display: flex; padding: 4px; background: var(--cream); border-radius: 14px; gap: 4px; }
.seg button { flex: 1; height: 40px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--burgundy); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg.small { width: 130px; padding: 3px; }
.seg.small button { height: 30px; font-size: 12px; font-weight: 700; }

/* Size guide */
.mline { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 3 3; opacity: .55; transition: opacity .3s, stroke .3s; }
.mline.on { stroke: var(--burgundy); stroke-width: 2.4; stroke-dasharray: 240; stroke-dashoffset: 240; opacity: 1; animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 6px; }
.field > label small { color: var(--muted); font-weight: 500; }
.input-wrap { position: relative; display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(90, 15, 45, .1); }
.input-wrap.err { border-color: var(--danger); }
.input-wrap input, .input-wrap select, .input-wrap textarea { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 50px; padding: 0 14px; font-size: 16px; }
.input-wrap textarea { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px; cursor: pointer; }
.input-wrap .chev { position: absolute; inset-inline-end: 12px; width: 16px; height: 16px; pointer-events: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.input-wrap .unit { padding-inline-end: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.input-wrap .ico { padding-inline-start: 12px; color: var(--muted); display: grid; }
.input-wrap .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.input-wrap .prefix { padding-inline-start: 12px; font-weight: 700; font-size: 14px; color: var(--ink); display: flex; gap: 6px; align-items: center; direction: ltr; border-inline-end: 1px solid var(--line); padding-inline-end: 10px; height: 28px; }
.input-wrap input[type=tel] { direction: ltr; text-align: start; }
html[dir="rtl"] .input-wrap input[type=tel] { text-align: right; }
.ferr { color: var(--danger); font-size: 12px; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; min-width: 50px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 13.5px; font-family: 'Manrope', sans-serif; }
.chip[aria-pressed="true"] { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.note { display: flex; gap: 10px; background: #FBF3E4; color: #6C4A12; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; margin: 12px 0; line-height: 1.45; }
.note svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; margin-top: 1px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.conf { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.conf-bar { display: flex; gap: 3px; }
.conf-bar i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.conf-bar i.on { background: var(--ok); }
.conf-bar.low i.on { background: var(--warn); }
.alt { margin-top: 10px; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.alt .tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--cream); color: var(--muted); }
.warn { margin-top: 10px; font-size: 12.5px; color: var(--warn); }
.btn-soft { background: var(--burgundy-soft); color: var(--burgundy); }
details.chart { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.chart summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--burgundy); list-style: none; display: flex; justify-content: space-between; }
details.chart summary::-webkit-details-marker { display: none; }
.table-scroll { overflow-x: auto; margin-top: 10px; }
table.sizes-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sizes-table th, .sizes-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sizes-table th { color: var(--muted); font-weight: 600; }
.sizes-table td:first-child { font-weight: 800; color: var(--burgundy); }
.sizes-table tr.hl td { background: var(--burgundy-soft); }

/* Order */
.stepper { display: flex; align-items: flex-start; justify-content: center; margin: 2px 0 16px; }
.stepper .st { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; font-size: 11.5px; color: var(--muted); font-weight: 600; position: relative; }
.stepper .st i { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; font-family: 'Manrope', sans-serif; z-index: 1; }
.stepper .st.on { color: var(--burgundy); }
.stepper .st.on i { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.stepper .st + .st::before { content: ''; position: absolute; top: 14px; inset-inline-end: 50%; width: 100%; height: 1.5px; background: var(--line); }
.stepper .st.on + .st.on::before { background: var(--burgundy); }
.sum-card { display: flex; gap: 12px; background: var(--white); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); }
.sum-card img { width: 82px; height: 104px; border-radius: 12px; object-fit: cover; object-position: 50% 15%; }
.sum-card .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sum-card .nm { font: 600 21px/1.1 var(--serif); color: var(--burgundy); letter-spacing: .04em; }
html[lang="ar"] .sum-card .nm { font-family: 'Noto Naskh Arabic', serif; font-size: 18px; }
.sum-card .pr { font-weight: 800; }
.sum-card .meta { font-size: 12.5px; color: var(--muted); }
.mini-opts { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; background: var(--white); border-radius: var(--r); padding: 12px; }
.mini-opts .swatch { width: 28px; height: 28px; }
.mini-opts .size-btn { height: 38px; flex: 0 0 auto; min-width: 46px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; direction: ltr; }
.qty button { width: 38px; height: 36px; font-size: 18px; font-weight: 600; }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.cod-box { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--gold-soft); border-radius: var(--r); padding: 12px 14px; }
.cod-box svg { width: 30px; height: 30px; color: var(--burgundy); fill: none; stroke: currentColor; stroke-width: 1.5; }
.cod-box b { display: block; font-size: 14px; }
.cod-box small { color: var(--muted); font-size: 12px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.secure svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sticky-cta { position: sticky; bottom: calc(-18px - var(--safe-b)); margin: 14px -18px calc(-18px - var(--safe-b)); padding: 12px 18px calc(14px + var(--safe-b)); background: linear-gradient(180deg, rgba(250, 247, 242, 0), var(--ivory) 30%); }
.lines { background: var(--white); border-radius: var(--r); padding: 6px 14px; margin-top: 12px; }
.lines .ln { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.lines .ln:last-child { border-bottom: 0; }
.lines .ln span:first-child { color: var(--muted); }
.lines .ln.total { font-size: 17px; font-weight: 800; padding: 12px 0; }
.lines .ln.total span:first-child { color: var(--ink); }
.lines .ln.total span:last-child { color: var(--burgundy); }
.addr { font-size: 13.5px; line-height: 1.55; }
.addr b { display: block; }
.card-title { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.success { text-align: center; padding: 10px 4px 4px; }
.check { width: 84px; height: 84px; margin: 6px auto 16px; border-radius: 50%; background: var(--burgundy); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--burgundy-soft); animation: pop .5s var(--ease) both; }
.check svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .3s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 21px; margin: 0 0 6px; color: var(--burgundy); }
.success p { margin: 2px 0; color: var(--muted); }
.success .thanks { color: var(--ink); font-weight: 600; }
.order-no { margin: 18px auto 6px; display: inline-flex; align-items: center; gap: 12px; background: var(--white); border: 1px dashed var(--gold); border-radius: 14px; padding: 10px 10px 10px 16px; }
.order-no .k { font-size: 11.5px; color: var(--muted); font-weight: 600; display: block; text-align: start; }
.order-no .v { font: 800 19px/1.2 'Manrope', sans-serif; letter-spacing: .04em; color: var(--ink); direction: ltr; }
.order-no button { height: 34px; padding: 0 12px; border-radius: 10px; background: var(--burgundy-soft); color: var(--burgundy); font-weight: 700; font-size: 12.5px; }
.success .btn { margin-top: 10px; }
.btn-wa { background: #1F7A4D; color: #fff; }

/* Viewer */

.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; max-width: calc(100% - 32px); transition: all .3s var(--ease); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, var(--cream) 25%, #F7F1E9 50%, var(--cream) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Short phones: tighten product info so image keeps presence */
@media (max-height: 700px) {
  .p-name { font-size: 26px; }
  .size-btn { height: 40px; }
  .btn { height: 50px; }
  .btn-ghost { height: 42px; }
  .swatch { width: 30px; height: 30px; }
}

/* ---------- Desktop / tablet ---------- */
@media (min-width: 900px) {
  .topbar { padding-inline: 32px; }
  .feed { height: 100vh; min-height: 640px; }
  .p-name { font-size: 46px; }
  html[lang="ar"] .p-name { font-size: 38px; }
  .p-desc { display: block !important; color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
  .feed-arrow { display: grid; }
  .feed-arrow[disabled] { opacity: 0; pointer-events: none; }
  .feed-count { display: block; }
  .trust-grid { grid-template-columns: repeat(6, 1fr); padding: 26px 10px; }
  .sheet { left: 50%; right: auto; bottom: 50%; width: 520px; max-height: 88vh; border-radius: 26px; transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
  .sheet.open { transform: translate(-50%, 50%); opacity: 1; }
  .sheet-handle { visibility: hidden; height: 10px; padding: 0; }
  .sticky-cta { position: static; margin: 16px 0 0; padding: 0; background: none; }
}
.p-desc { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html[dir="rtl"] { --flip: -1; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.sheet-body { overflow-x: hidden; }

/* =========================================================
   v2 — photography-first layout (full model always visible)
   ========================================================= */
.center { justify-content: center !important; }

/* Hero: the photo is shown whole (contain), text sits below it */
.hero { background: var(--ivory); color: var(--ink); display: flex; flex-direction: column; padding-top: calc(var(--topbar) + env(safe-area-inset-top, 0px)); }
.hero-media { position: relative; flex: 1 1 auto; min-height: 0; margin: 4px 12px 0; border-radius: var(--r-lg); overflow: hidden; background: var(--bg, #E6DDD2); }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: contain; object-position: 50% 50%; animation: heroIn 1.2s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.hero-content { padding: 14px 20px 6px; display: flex; flex-direction: column; gap: 6px; }
.hero-title { font: 600 clamp(28px, 7.6vw, 44px)/1.1 var(--serif); margin: 0; color: var(--burgundy); text-wrap: balance; letter-spacing: .005em; }
html[lang="ar"] .hero-title { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; line-height: 1.3; font-size: clamp(26px, 7vw, 40px); }
.made-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .made-badge { letter-spacing: 0; font-size: 13.5px; }
.made-badge svg { width: 15px; height: 15px; color: var(--gold); }
.hero .swipe-cta { margin-top: 8px; height: 54px; border-color: var(--burgundy); background: var(--burgundy); color: #fff; backdrop-filter: none; max-width: none; }
.hero .swipe-cta .knob { width: 42px; height: 42px; }
.cats { background: var(--ivory); color: var(--ink); padding: 8px 12px calc(12px + var(--safe-b)); display: flex; justify-content: space-around; gap: 6px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 25%; max-width: 92px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; }
.cat img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #E6DDD2; border: 2px solid var(--ivory); box-shadow: 0 0 0 1.5px var(--gold-soft); transition: transform .25s var(--ease); }
.cat:active img { transform: scale(.94); }
.cat[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--burgundy); }

/* Product media: swipe gallery, image never cropped nor stretched */
.p-mediawrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.p-media { position: relative; flex: 1 1 auto; min-height: 0; margin: 0 12px; border-radius: var(--r-lg); overflow: hidden; background: var(--bg, #E6DDD2); transition: background-color .4s var(--ease); }
.p-media.swapping .p-track { opacity: 0; }
.p-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; transition: opacity .16s ease; }
.p-track::-webkit-scrollbar { display: none; }
.p-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; cursor: zoom-in; padding: 4px 0; }
.p-slide picture { display: block; width: 100%; height: 100%; }
.p-slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; -webkit-user-drag: none; user-select: none; }
.p-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; padding: 5px 8px; border-radius: 999px; background: rgba(250, 247, 242, .7); }
.p-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(23, 21, 21, .25); transition: all .25s; }
.p-dots span.on { background: var(--burgundy); width: 16px; border-radius: 3px; }
.p-zoom { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(250, 247, 242, .88); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.p-zoom svg { width: 19px; height: 19px; }
.p-badges { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; display: flex; gap: 6px; pointer-events: none; }
.p-arrow { position: absolute; top: 50%; z-index: 4; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: rgba(250, 247, 242, .9); display: none; place-items: center; box-shadow: var(--shadow); }
.p-arrow.prev { inset-inline-start: 12px; } .p-arrow.next { inset-inline-end: 12px; }
.p-thumbs { display: none; }
.btn-ghost .spark { color: var(--gold); font-size: 15px; }

/* Home sections */
.story-card { border-radius: var(--r-lg); overflow: hidden; background: var(--burgundy); color: #fff; display: grid; grid-template-columns: 1fr; }
.story-img { aspect-ratio: 4 / 3; overflow: hidden; background: #DCCFC2; }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-in { padding: 22px; }
.story-in .h2 { color: #fff; }
.story-in p { margin: 0 0 14px; opacity: .9; max-width: 460px; }
.looks-row { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.looks-row::-webkit-scrollbar { display: none; }
.look { scroll-snap-align: start; text-align: start; }
.look-img { display: block; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg, #E6DDD2); }
.look-img picture, .look-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.look b { display: block; margin-top: 8px; font: 600 18px/1.1 var(--serif); color: var(--burgundy); letter-spacing: .04em; }
html[lang="ar"] .look b { font-family: 'Noto Naskh Arabic', serif; font-size: 16px; }
.look span { font-size: 13px; color: var(--muted); }
.contact-card { display: grid; gap: 14px; background: var(--white); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.contact-card p { margin: 0; color: var(--muted); }
.contact-actions { display: grid; gap: 10px; }
.contact-actions .btn { height: 50px; font-size: 14.5px; }
.contact-actions .btn svg { width: 20px; height: 20px; }
.btn-ghost.center { justify-content: center; gap: 8px; }

/* Footer */
.footer { background: var(--burgundy); color: var(--gold-soft); padding: 34px 18px calc(24px + var(--safe-b)); text-align: center; display: grid; gap: 18px; justify-items: center; }
.footer .logo-word { color: var(--ivory); }
.f-brand p { margin: 8px 0 0; font-size: 13px; letter-spacing: .04em; }
.f-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; }
.f-links li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.f-links svg { width: 17px; height: 17px; color: var(--gold); }
.f-links a { color: var(--ivory); text-decoration: none; }
.f-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-lang { display: flex; gap: 6px; align-items: center; font-size: 12.5px; direction: ltr; }
.f-lang span { opacity: .35; }
.f-lang button { color: var(--gold-soft); font-weight: 700; padding: 4px 6px; border-radius: 6px; font-family: 'Manrope', sans-serif; }
.f-lang button[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.f-bottom { display: grid; gap: 6px; border-top: 1px solid rgba(234, 219, 192, .15); padding-top: 14px; width: 100%; max-width: 520px; }
.f-bottom small { font-size: 11.5px; opacity: .65; }
.f-bottom .credit { opacity: .55; letter-spacing: .02em; }
.gep { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: .22em; color: var(--gold); text-decoration: none; margin-inline-start: 2px; }

/* Order summary thumbnail (contain) */
.sum-img { width: 82px; height: 110px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--bg, #E6DDD2); display: grid; }
.sum-img img { width: 100%; height: 100%; object-fit: contain; }
.sum-card > img { display: none; }

/* Fullscreen viewer with pinch / double-tap zoom */
.viewer { position: fixed; inset: 0; z-index: 60; background: #161213; display: flex; flex-direction: column; color: #fff; }
.v-top { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 18px; }
.v-name { font: 600 20px var(--serif); letter-spacing: .06em; flex: 1; }
.vc { font-size: 12px; font-weight: 700; opacity: .75; }
.viewer .x { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.viewer .x svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2; }
.v-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; display: grid; place-items: center; background: var(--bg, #E6DDD2); cursor: zoom-in; }
.viewer.zoomed .v-stage { cursor: grab; }
.v-stage picture { display: contents; }
.v-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: 50% 50%; will-change: transform; user-select: none; -webkit-user-drag: none; }
.v-nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(250, 247, 242, .9); display: grid; place-items: center; z-index: 2; }
.v-nav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .v-nav svg { transform: scaleX(-1); }
.v-nav.prev { inset-inline-start: 12px; } .v-nav.next { inset-inline-end: 12px; }
.v-hint { position: absolute; bottom: calc(18px + var(--safe-b)); left: 50%; transform: translateX(-50%); background: rgba(23, 21, 21, .75); padding: 7px 14px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; pointer-events: none; animation: fadeHint 3.2s ease forwards; }
@keyframes fadeHint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.viewer.zoomed .v-hint, .viewer.zoomed .v-nav { display: none; }

/* Smart size guide v2 */
.sg-intro { margin: 2px 0 14px; }
.sg-intro h3 { margin: 0 0 4px; font: 600 26px/1.15 var(--serif); color: var(--burgundy); }
html[lang="ar"] .sg-intro h3 { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; font-size: 21px; }
.sg-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.opt-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; padding: 16px; margin-bottom: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.opt-card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); }
.opt-card > span:nth-child(2) { flex: 1; }
.opt-card b { display: block; font-size: 15px; }
.opt-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.opt-card .oc-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--burgundy-soft); color: var(--burgundy); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.opt-card .oc-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.opt-card.saved { border-color: var(--gold); background: #FFFCF6; }
.opt-card .chev { width: 18px; height: 18px; color: var(--muted); }
html[dir="rtl"] .opt-card .chev { transform: scaleX(-1); }
.sg-progress { display: flex; gap: 5px; margin: 0 0 16px; }
.sg-progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.sg-progress i.done { background: var(--gold); }
.sg-progress i.on { background: var(--burgundy); }
.sg-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.sg-figure { background: linear-gradient(180deg, var(--white), var(--cream)); border-radius: var(--r); padding: 8px 4px; }
.sg-figure svg { width: 100%; height: auto; display: block; }
.mline { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: .35; }
.mline.on { stroke: var(--burgundy); stroke-width: 2.6; stroke-dasharray: 400; stroke-dashoffset: 400; opacity: 1; animation: draw 1.1s var(--ease) forwards; }
.sg-q .kicker { display: block; margin-bottom: 4px; }
.sg-q h3, .sg-h { margin: 0 0 4px; font-size: 22px; color: var(--burgundy); }
.sg-q p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.measure { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 10px; direction: ltr; }
.measure:focus-within { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(90, 15, 45, .1); }
.measure button { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); font-size: 20px; font-weight: 600; color: var(--burgundy); flex-shrink: 0; }
.measure input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; text-align: center; font: 800 22px 'Manrope', sans-serif; height: 40px; -moz-appearance: textfield; }
.measure.big input { font-size: 28px; }
.measure input::-webkit-outer-spin-button, .measure input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.measure .u { font-weight: 700; color: var(--muted); font-size: 13px; }
.mini-lbl { display: block; font-size: 13px; font-weight: 700; margin: 4px 0 6px; }
.sg-sub { margin: 18px 0 8px; font-size: 15px; }
.pref { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.pref-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; display: grid; gap: 3px; }
.pref-card b { font-size: 14px; }
.pref-card small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.pref-card[aria-pressed="true"] { border-color: var(--burgundy); background: var(--burgundy-soft); box-shadow: inset 0 0 0 1px var(--burgundy); }
.pref-card[aria-pressed="true"] b { color: var(--burgundy); }
.remember { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.remember input { width: 20px; height: 20px; accent-color: var(--burgundy); margin-top: 1px; flex-shrink: 0; }
.remember b { display: block; font-size: 13.5px; }
.remember small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.muted { color: var(--muted); }
.note.err { background: #FBE9EC; color: var(--danger); }
.sticky-cta.two { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.res { text-align: center; padding: 6px 0 4px; animation: rise .45s var(--ease); }
.res-k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .res-k { letter-spacing: 0; font-size: 13px; }
.res-k.small { margin-top: 18px; color: var(--muted); }
.size-bubble { width: 76px; height: 76px; border-radius: 50%; background: var(--burgundy); color: #fff; display: grid; place-items: center; font: 700 30px/1 'Manrope', sans-serif; flex-shrink: 0; box-shadow: 0 0 0 6px var(--burgundy-soft); }
.size-bubble.big { width: 96px; height: 96px; font-size: 38px; margin: 12px auto 4px; box-shadow: 0 0 0 8px var(--burgundy-soft); }
.checks { list-style: none; margin: 10px auto 0; padding: 0; max-width: 340px; background: var(--white); border-radius: 14px; }
.checks li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li b { font-weight: 700; color: var(--ok); }
.checks li.snug b, .checks li.roomy b, .checks li.short b, .checks li.long b { color: var(--warn); }
.checks li.tight b { color: var(--danger); }
.res-fit { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.res-fit b { color: var(--ink); }
.res-text { margin: 10px auto 0; max-width: 360px; font-size: 15px; line-height: 1.5; }
.res-alt { margin: 8px auto 0; max-width: 360px; font-size: 13.5px; color: var(--muted); }
.res-links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 13px; flex-wrap: wrap; }
.help-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 4px; font-size: 13px; color: #1F7A4D; font-weight: 700; text-decoration: none; }
.help-link svg { width: 18px; height: 18px; }

@media (max-width: 360px) {
  .sg-card { grid-template-columns: 88px minmax(0, 1fr); }
  .pref-card small { display: none; }
  .cat img { width: 48px; height: 48px; }
}

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); grid-template-rows: 1fr auto; column-gap: 56px; padding: calc(var(--topbar) + 24px) 7vw 32px; }
  .hero-media { grid-row: 1 / span 2; margin: 0; }
  .hero-content { align-self: end; padding: 0; gap: 12px; }
  .hero .swipe-cta { max-width: 360px; }
  .cats { align-self: start; padding: 24px 0 0; justify-content: flex-start; gap: 18px; }
  .product { flex-direction: row; padding: calc(var(--topbar) + 24px) 6vw 32px; gap: 48px; align-items: stretch; }
  .p-mediawrap { flex: 1 1 58%; flex-direction: row-reverse; gap: 12px; }
  html[dir="rtl"] .p-mediawrap { flex-direction: row-reverse; }
  .p-media { margin: 0; }
  .p-arrow { display: grid; }
  .p-thumbs { display: flex; flex-direction: column; gap: 8px; width: 68px; overflow-y: auto; }
  .p-thumb { width: 68px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); border: 2px solid transparent; flex-shrink: 0; }
  .p-thumb img { width: 100%; height: 100%; object-fit: contain; }
  .p-thumb[aria-pressed="true"] { border-color: var(--burgundy); }
  .p-info { flex: 0 0 min(420px, 36%); justify-content: center; gap: 18px; padding: 0; }
  .looks-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-columns: auto; }
  .story-card { grid-template-columns: 1fr 1fr; }
  .story-img { aspect-ratio: auto; min-height: 340px; }
  .story-in { padding: 40px; align-self: center; }
  .contact-card { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 28px 32px; }
  .footer { grid-template-columns: 1fr auto 1fr; text-align: start; align-items: center; }
  .f-links { justify-content: center; }
  .f-lang { justify-self: end; }
  .f-bottom { grid-column: 1 / -1; max-width: none; grid-template-columns: 1fr auto; text-align: start; }
}

a.btn { text-decoration: none; }
