/* =========================================================
   SALVARO STORE — styles
   Brand: navy #0C2543 · teal #17B4AA (from the store logo kit)
   ========================================================= */
:root{
  --navy:#0C2543; --navy-2:#13335A; --ink:#152238; --muted:#566579; --line:#DCE3EA; --line-2:#C9D3DD;
  --teal:#17B4AA; --teal-ink:#0A7C75; --teal-soft:#E5F5F3; --teal-mist:#F1FAF9;
  --surface:#F4F7F9; --tray:#E9EFF3; --white:#fff; --danger:#B42318; --wa:#1FA855;
  --radius:10px; --radius-lg:18px;
  --f-display:"Poppins", system-ui, sans-serif;
  --f-body:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap:1240px; --gutter:clamp(16px,4vw,32px);
  --header-h:72px;
}
:root[dir="rtl"]{ --f-display:"IBM Plex Sans Arabic", "Poppins", sans-serif; --f-body:"IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif; }

*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; scroll-padding-top:140px; }
body{ margin:0; font-family:var(--f-body); font-size:15.5px; line-height:1.55; color:var(--ink); background:var(--white); }
img{ max-width:100%; display:block; }
a{ color:var(--teal-ink); }
button,input,select,textarea{ font:inherit; color:inherit; }
h1,h2,h3{ font-family:var(--f-display); color:var(--navy); line-height:1.2; margin:0; }
:focus-visible{ outline:3px solid var(--teal); outline-offset:2px; border-radius:4px; }
.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }
.ltr{ direction:ltr; unicode-bidi:isolate; }
bdi{ unicode-bidi:isolate; }
.skip{ position:absolute; inset-inline-start:-999px; top:8px; background:var(--navy); color:#fff; padding:8px 14px; border-radius:6px; z-index:100; }
.skip:focus{ inset-inline-start:8px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.tabnum{ font-variant-numeric:tabular-nums; }
svg{ width:1em; height:1em; }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 20px; border-radius:999px;
  border:1.5px solid transparent; font-weight:600; font-size:15px; text-decoration:none; cursor:pointer; transition:background .15s, border-color .15s, color .15s; white-space:nowrap; }
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--navy); color:#fff; }
.btn-primary:hover{ background:var(--navy-2); }
.btn-teal{ background:var(--teal); color:#062a27; }
.btn-teal:hover{ background:#14a399; }
.btn-ghost{ background:transparent; border-color:var(--line-2); color:var(--navy); }
.btn-ghost:hover{ border-color:var(--navy); }
.btn-wa{ background:var(--wa); color:#fff; }
.btn-wa:hover{ background:#198f48; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; }
.link-btn{ background:none; border:0; padding:0; color:var(--teal-ink); text-decoration:underline; cursor:pointer; font-weight:500; }

/* ---------- header ---------- */
.site-header{ position:sticky; top:0; z-index:40; background:rgba(255,255,255,.97); backdrop-filter:saturate(1.4) blur(6px); border-bottom:1px solid var(--line); }
.header-row{ display:flex; align-items:center; gap:clamp(12px,2.5vw,28px); height:var(--header-h); }
.brand img{ height:44px; width:auto; }
.search{ flex:1; position:relative; max-width:560px; }
.search .ico{ position:absolute; inset-inline-start:14px; top:50%; translate:0 -50%; width:18px; height:18px; color:var(--muted); pointer-events:none; }
.search input{ width:100%; height:44px; padding-inline:42px 14px; border:1.5px solid var(--line-2); border-radius:999px; background:var(--surface); }
.search input:focus{ outline:none; border-color:var(--teal); background:#fff; box-shadow:0 0 0 3px var(--teal-soft); }
.header-actions{ display:flex; align-items:center; gap:10px; margin-inline-start:auto; }
.lang-btn{ height:40px; padding:0 14px; border-radius:999px; border:1.5px solid var(--line-2); background:#fff; color:var(--navy); font-weight:600; cursor:pointer; }
.lang-btn:hover{ border-color:var(--navy); }
.lang-btn:lang(ar){ font-family:"IBM Plex Sans Arabic", sans-serif; }
.lang-btn:lang(fr){ font-family:"IBM Plex Sans", sans-serif; }
.cart-btn{ position:relative; display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 16px; border-radius:999px; background:var(--navy); color:#fff; text-decoration:none; font-weight:600; }
.cart-btn svg{ width:20px; height:20px; }
.cart-count{ min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:var(--teal); color:#062a27; font-size:12.5px; font-weight:700; display:inline-grid; place-items:center; }
.cart-count.bump{ animation:bump .35s ease; }
@keyframes bump{ 50%{ transform:scale(1.35); } }

.cat-nav{ border-top:1px solid var(--line); background:#fff; }
.cat-nav .wrap{ display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; }
.cat-nav .wrap::-webkit-scrollbar{ display:none; }
.cat-nav a{ flex:none; padding:11px 12px; font-size:14px; font-weight:500; color:var(--ink); text-decoration:none; border-bottom:2px solid transparent; }
.cat-nav a:hover{ color:var(--teal-ink); }
.cat-nav a[aria-current="page"]{ color:var(--navy); border-bottom-color:var(--teal); font-weight:600; }

/* ---------- loading / toast ---------- */
.loading{ display:flex; align-items:center; gap:12px; padding:80px var(--gutter); color:var(--muted); }
.spinner{ width:22px; height:22px; border:3px solid var(--teal-soft); border-top-color:var(--teal); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.toast{ position:fixed; inset-inline:0; bottom:22px; margin:auto; width:max-content; max-width:calc(100% - 32px); background:var(--navy); color:#fff; padding:12px 18px; border-radius:12px;
  display:flex; align-items:center; gap:10px; font-weight:500; opacity:0; translate:0 12px; pointer-events:none; transition:opacity .2s, translate .2s; z-index:60; }
.toast.show{ opacity:1; translate:0 0; pointer-events:auto; }
.toast svg{ width:18px; height:18px; color:var(--teal); flex:none; }
.toast a{ color:#7FE3DA; font-weight:600; }

/* ---------- hero ---------- */
.hero{ background:linear-gradient(180deg, var(--teal-mist), #fff 85%); border-bottom:1px solid var(--line); }
.hero-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:clamp(28px,5vw,64px); align-items:center; padding-block:clamp(36px,6vw,72px); }
.hero h1{ font-size:clamp(1.85rem,3.6vw,2.85rem); font-weight:700; letter-spacing:-.01em; max-width:17ch; }
:root[dir="rtl"] .hero h1{ letter-spacing:0; line-height:1.35; max-width:20ch; }
.hero-sub{ margin:18px 0 26px; font-size:1.06rem; color:var(--muted); max-width:52ch; }
.hero-search{ display:flex; gap:8px; background:#fff; border:1.5px solid var(--line-2); border-radius:16px; padding:6px; box-shadow:0 10px 30px -18px rgba(12,37,67,.35); max-width:560px; }
.hero-search:focus-within{ border-color:var(--teal); }
.hero-search input{ flex:1; min-width:0; border:0; padding:0 12px; height:48px; font-size:16px; background:transparent; }
.hero-search input:focus{ outline:none; }
.hero-search .btn{ border-radius:12px; min-height:48px; }
.quick{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; align-items:center; }
.quick span{ font-size:13.5px; color:var(--muted); margin-inline-end:4px; }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:999px; background:#fff; border:1px solid var(--line-2); color:var(--navy); font-size:14px; font-weight:500; text-decoration:none; }
.chip:hover{ border-color:var(--teal); color:var(--teal-ink); }
.chip.active{ background:var(--navy); border-color:var(--navy); color:#fff; }

/* the instrument tray: real catalogue drawings laid out like a sterile tray */
.tray-wrap{ position:relative; }
.tray{ position:relative; isolation:isolate; display:flex; align-items:flex-end; justify-content:center; gap:clamp(4px,1.4vw,16px);
  height:clamp(300px,34vw,430px); padding:28px clamp(14px,3vw,30px) 26px; border-radius:26px;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(12,37,67,.13) 1.4px, transparent 1.6px) 0 0/18px 18px,
    linear-gradient(160deg,#F3F7F9,#E3EAEF);
  border:1px solid #D3DDE5; box-shadow:inset 0 2px 0 #fff, inset 0 -10px 24px -16px rgba(12,37,67,.35), 0 24px 50px -32px rgba(12,37,67,.45); }
.tray::after{ content:""; position:absolute; inset:12px; z-index:-1; border-radius:18px; border:1.5px dashed rgba(12,37,67,.12); pointer-events:none; }
.tray a{ flex:1 1 0; min-width:0; height:100%; display:flex; align-items:center; justify-content:center; border-radius:10px; mix-blend-mode:multiply; transition:transform .25s ease; }
.tray a:hover, .tray a:focus-visible{ transform:translateY(-8px); }
.tray img{ max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; }
.tray a:nth-child(2){ height:84%; } .tray a:nth-child(4){ height:90%; } .tray a:nth-child(6){ height:86%; }
.tray-caption{ margin-top:12px; text-align:center; font-size:13.5px; color:var(--muted); }

/* ---------- sections ---------- */
.section{ padding-block:clamp(40px,6vw,72px); }
.section + .section{ padding-top:0; }
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.sec-head h2{ font-size:clamp(1.4rem,2.4vw,1.85rem); font-weight:600; }
.sec-head p{ margin:6px 0 0; color:var(--muted); }
.sec-head .more{ font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:4px; }
.sec-head .more svg{ width:16px; height:16px; }
:root[dir="rtl"] .more svg, :root[dir="rtl"] .crumbs svg{ transform:scaleX(-1); }

/* ---------- product cards ---------- */
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; }
.card{ position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--radius); text-decoration:none; color:inherit; overflow:hidden; transition:border-color .15s; }
.card:hover{ border-color:var(--teal); }
.card-media{ aspect-ratio:4/3; display:grid; place-items:center; padding:14px; background:#fff; border-bottom:1px solid var(--line); }
.card-media img{ width:100%; height:100%; object-fit:contain; }
.card-media.set{ padding:0; } .card-media.set img{ object-fit:cover; }
.card-media.ph{ background:linear-gradient(150deg,var(--teal-mist),var(--tray)); color:var(--navy); }
.card-media.ph svg{ width:64px; height:64px; opacity:.8; }
.card-body{ padding:12px 14px 14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-name{ font-weight:600; color:var(--navy); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-meta{ font-size:13px; color:var(--muted); }
.card-price{ margin-top:auto; padding-top:6px; font-weight:600; color:var(--navy); }
.card-price small{ font-weight:500; color:var(--muted); font-size:12.5px; }
.card-price.req{ font-weight:500; font-size:13.5px; color:var(--teal-ink); }
.badge-price{ position:absolute; inset-block-start:10px; inset-inline-start:10px; background:var(--navy); color:#fff; font-size:12px; font-weight:600; padding:3px 9px; border-radius:999px; }

/* ---------- category tiles (home) ---------- */
.tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:10px; }
.tile{ display:flex; align-items:center; gap:14px; padding:10px 14px 10px 10px; border:1px solid var(--line); border-radius:var(--radius); text-decoration:none; color:inherit; background:#fff; }
:root[dir="rtl"] .tile{ padding:10px 10px 10px 14px; }
.tile:hover{ border-color:var(--teal); }
.tile-img{ flex:none; width:64px; height:64px; display:grid; place-items:center; background:var(--surface); border-radius:8px; padding:4px; }
.tile-img img{ width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.tile b{ display:block; color:var(--navy); font-weight:600; line-height:1.3; }
.tile span{ font-size:13px; color:var(--muted); }
.tiles-group + .tiles-group{ margin-top:40px; }
.tiles-group h3{ font-size:1.15rem; font-weight:600; margin-bottom:14px; display:flex; align-items:baseline; gap:10px; }
.tiles-group h3 a{ font-size:14px; font-weight:600; text-decoration:none; font-family:var(--f-body); }

/* ---------- how to order ---------- */
.how{ background:var(--navy); color:#D7E2EC; border-radius:var(--radius-lg); padding:clamp(26px,4vw,44px); }
.how h2{ color:#fff; font-size:clamp(1.35rem,2.2vw,1.7rem); font-weight:600; margin-bottom:26px; }
.how ol{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,3vw,36px); counter-reset:s; }
.how li{ counter-increment:s; position:relative; padding-top:52px; }
.how li::before{ content:counter(s); position:absolute; top:0; inset-inline-start:0; width:38px; height:38px; border-radius:50%; background:var(--teal); color:#062a27; font-weight:700; display:grid; place-items:center; font-family:var(--f-display); }
.how li::after{ content:""; position:absolute; top:19px; inset-inline-start:50px; inset-inline-end:-18px; border-top:1.5px dashed rgba(23,180,170,.45); }
.how li:last-child::after{ display:none; }
.how h3{ color:#fff; font-size:1.05rem; font-weight:600; margin-bottom:6px; }
.how p{ margin:0; font-size:14.5px; }

.strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.strip > *{ display:flex; align-items:center; gap:12px; padding:16px 18px; border-radius:var(--radius); background:var(--surface); color:var(--navy); font-weight:600; font-size:14.5px; text-decoration:none; }
.strip svg{ width:24px; height:24px; color:var(--teal-ink); flex:none; }
.strip small{ display:block; font-weight:500; color:var(--muted); }
a.strip-wa svg{ color:var(--wa); }

/* ---------- category / search page ---------- */
.page-head{ padding-block:26px 18px; border-bottom:1px solid var(--line); background:var(--surface); }
.crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:13.5px; color:var(--muted); margin-bottom:10px; }
.crumbs a{ color:var(--muted); text-decoration:none; }
.crumbs a:hover{ color:var(--teal-ink); text-decoration:underline; }
.crumbs svg{ width:14px; height:14px; }
.page-head h1{ font-size:clamp(1.5rem,3vw,2.1rem); font-weight:600; }
.page-head .count{ color:var(--muted); margin-top:4px; }
.toolbar{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin:18px 0; }
.subcats{ display:flex; flex-wrap:wrap; gap:8px; }
.filter{ position:relative; width:min(320px,100%); }
.filter input{ width:100%; height:40px; border:1.5px solid var(--line-2); border-radius:999px; padding-inline:38px 14px; background:#fff; }
.filter input:focus{ outline:none; border-color:var(--teal); }
.filter svg{ position:absolute; inset-inline-start:13px; top:50%; translate:0 -50%; width:16px; height:16px; color:var(--muted); }
.more-wrap{ display:flex; flex-direction:column; align-items:center; gap:8px; margin:28px 0 8px; color:var(--muted); font-size:14px; }
.empty{ padding:48px 0; text-align:center; color:var(--muted); }
.empty p{ max-width:52ch; margin:8px auto 18px; }
.empty h2{ font-size:1.25rem; }

/* ---------- product page ---------- */
.product{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:clamp(24px,4vw,56px); padding-block:28px 56px; align-items:start; }
.gallery{ position:sticky; top:150px; }
.gallery-main{ aspect-ratio:1; border:1px solid var(--line); border-radius:var(--radius-lg); display:grid; place-items:center; padding:24px; background:#fff; }
.gallery-main img{ width:100%; height:100%; object-fit:contain; }
.gallery-main.set{ padding:0; overflow:hidden; aspect-ratio:4/3; height:auto; background:#E9EFF3; } .gallery-main.set img{ object-fit:contain; }
.illus{ font-size:12.5px; color:var(--muted); margin-top:8px; }
.gallery-main.ph{ background:linear-gradient(150deg,var(--teal-mist),var(--tray)); color:var(--navy); }
.gallery-main.ph svg{ width:120px; height:120px; opacity:.75; }
.thumbs{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.thumbs button{ width:64px; height:64px; padding:4px; border:1.5px solid var(--line); border-radius:8px; background:#fff; cursor:pointer; display:grid; place-items:center; }
.thumbs button[aria-pressed="true"]{ border-color:var(--teal); }
.thumbs img{ width:100%; height:100%; object-fit:contain; }
.p-cat{ font-size:14px; font-weight:500; text-decoration:none; }
.product h1{ font-size:clamp(1.5rem,2.8vw,2.05rem); font-weight:600; margin:6px 0 10px; }
.p-refs{ color:var(--muted); font-size:14px; }
.p-price{ margin:18px 0; padding:16px 18px; border-radius:var(--radius); background:var(--surface); }
.p-price .big{ font-family:var(--f-display); font-size:1.7rem; font-weight:700; color:var(--navy); }
.p-price .sub{ color:var(--muted); font-size:14px; }
.p-price.req{ background:var(--teal-soft); }
.p-price.req strong{ color:var(--navy); display:block; margin-bottom:4px; }
.p-price.req p{ margin:0; font-size:14px; color:#2f4a5f; }
.buy-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:4px; }
.qty{ display:inline-flex; align-items:center; border:1.5px solid var(--line-2); border-radius:999px; height:44px; background:#fff; }
.qty button{ width:40px; height:100%; border:0; background:none; cursor:pointer; color:var(--navy); display:grid; place-items:center; border-radius:999px; }
.qty button:hover{ background:var(--surface); }
.qty button svg{ width:16px; height:16px; }
.qty input{ width:44px; text-align:center; border:0; height:100%; -moz-appearance:textfield; appearance:textfield; font-weight:600; background:transparent; }
.qty input::-webkit-inner-spin-button{ display:none; }
.qty.sm{ height:36px; }
.qty.sm button{ width:32px; }
.qty.sm input{ width:36px; }

.variants{ width:100%; border-collapse:collapse; margin-top:20px; font-size:14.5px; }
.variants caption{ text-align:start; font-family:var(--f-display); font-weight:600; color:var(--navy); font-size:1.05rem; padding-bottom:10px; }
.variants th{ text-align:start; font-size:12.5px; font-weight:600; color:var(--muted); padding:8px 10px; border-bottom:1.5px solid var(--line-2); }
.variants td{ padding:10px; border-bottom:1px solid var(--line); vertical-align:middle; }
.variants tr.sel td{ background:var(--teal-mist); }
.variants .ref{ font-weight:600; color:var(--navy); white-space:nowrap; }
.variants .vimg{ width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--line); border-radius:6px; background:#fff; cursor:pointer; padding:2px; }
.variants .vimg img{ width:100%; height:100%; object-fit:contain; }
.variants .act{ white-space:nowrap; text-align:end; }
.variants .act > *{ vertical-align:middle; }
.variants .act .btn{ min-height:36px; padding:0 14px; font-size:14px; margin-inline-start:6px; }
.price-cell{ white-space:nowrap; font-weight:600; }
.price-cell.req{ font-weight:500; color:var(--teal-ink); font-size:13px; white-space:normal; }
.p-desc{ margin-top:28px; }
.p-desc h2{ font-size:1.1rem; font-weight:600; margin-bottom:10px; }
.p-desc p{ margin:0; color:#33465b; }
.contents{ columns:2 240px; column-gap:28px; margin:0; padding:0; list-style:none; font-size:14px; }
.contents li{ break-inside:avoid; padding:5px 0; border-bottom:1px dotted var(--line-2); }
.contents b{ color:var(--navy); font-weight:600; margin-inline-end:6px; }

/* ---------- cart & checkout ---------- */
.cart-layout{ display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:clamp(20px,4vw,44px); padding-block:28px 64px; align-items:start; }
.cart-list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.cart-line{ display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); align-items:center; }
.cart-line .thumb{ width:72px; height:72px; border:1px solid var(--line); border-radius:8px; display:grid; place-items:center; padding:4px; background:#fff; }
.cart-line .thumb img{ width:100%; height:100%; object-fit:contain; }
.cart-line .thumb.ph{ background:var(--teal-mist); color:var(--navy); }
.cart-line .thumb.ph svg{ width:34px; height:34px; }
.cart-line a.nm{ font-weight:600; color:var(--navy); text-decoration:none; }
.cart-line a.nm:hover{ text-decoration:underline; }
.cart-line .meta{ font-size:13px; color:var(--muted); }
.cart-line .ctrl{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.cart-line .lp{ text-align:end; font-weight:600; white-space:nowrap; }
.cart-line .lp.req{ font-weight:500; font-size:13px; color:var(--teal-ink); white-space:normal; max-width:120px; }
.icon-btn{ width:36px; height:36px; display:grid; place-items:center; border:0; background:none; border-radius:50%; color:var(--muted); cursor:pointer; }
.icon-btn:hover{ background:#FDECEC; color:var(--danger); }
.icon-btn svg{ width:18px; height:18px; }
.summary{ position:sticky; top:150px; border:1px solid var(--line); border-radius:var(--radius-lg); padding:20px; background:#fff; }
.summary h2{ font-size:1.15rem; font-weight:600; margin-bottom:14px; }
.sum-row{ display:flex; justify-content:space-between; gap:10px; padding:6px 0; font-size:14.5px; }
.sum-row.total{ border-top:1.5px solid var(--line-2); margin-top:8px; padding-top:12px; font-weight:700; color:var(--navy); font-size:16px; }
.note-unpriced{ margin:12px 0 4px; padding:10px 12px; border-radius:8px; background:var(--teal-soft); font-size:13.5px; color:#244258; }
.summary .btn{ margin-top:14px; }
.summary .link-row{ text-align:center; margin-top:12px; font-size:14px; }
.mini-lines{ list-style:none; padding:0; margin:0 0 12px; max-height:260px; overflow:auto; border-bottom:1px solid var(--line); }
.mini-lines li{ display:flex; justify-content:space-between; gap:10px; padding:7px 0; font-size:13.5px; border-bottom:1px dotted var(--line); }
.mini-lines li:last-child{ border-bottom:0; }
.mini-lines span:last-child{ white-space:nowrap; font-weight:600; }

.form-card{ border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(18px,3vw,28px); }
.form-card + .form-card{ margin-top:16px; }
.form-card h2{ font-size:1.1rem; font-weight:600; margin-bottom:16px; }
.fields{ display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:14px; font-weight:600; color:var(--navy); }
.field input,.field textarea{ height:46px; padding:0 14px; border:1.5px solid var(--line-2); border-radius:10px; background:#fff; }
.field textarea{ height:auto; min-height:84px; padding:10px 14px; resize:vertical; }
.field input:focus,.field textarea:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-soft); }
.field .err{ display:none; color:var(--danger); font-size:13px; margin:0; }
.field.invalid input,.field.invalid textarea{ border-color:var(--danger); }
.field.invalid .err{ display:block; }
.err-box{ margin:12px 0 0; padding:10px 12px; border-radius:10px; background:#fdecec; color:var(--danger); font-size:14px; line-height:1.45; }
.btn:disabled{ opacity:.6; cursor:progress; }
.pay-opt{ display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border:1.5px solid var(--teal); border-radius:12px; background:var(--teal-mist); }
.pay-opt svg{ width:26px; height:26px; color:var(--teal-ink); flex:none; margin-top:2px; }
.pay-opt b{ color:var(--navy); display:block; }
.pay-opt span{ font-size:14px; color:var(--muted); }
.legal{ font-size:12.5px; color:var(--muted); margin:12px 0 0; }

.done{ max-width:640px; margin:0 auto; padding-block:48px 72px; text-align:center; }
.done .ok{ width:64px; height:64px; margin:0 auto 18px; border-radius:50%; background:var(--teal-soft); color:var(--teal-ink); display:grid; place-items:center; }
.done .ok svg{ width:32px; height:32px; }
.done h1{ font-size:clamp(1.5rem,3vw,2rem); font-weight:600; }
.order-no{ display:inline-block; margin:14px 0 4px; padding:8px 16px; border-radius:999px; background:var(--surface); font-weight:600; color:var(--navy); }
.done p{ color:var(--muted); }
.done .btn-wa{ min-height:52px; padding:0 26px; font-size:16px; margin:12px 0 6px; }
.done .btn-wa svg{ width:22px; height:22px; }
.done .summary{ position:static; text-align:start; margin-top:28px; }

/* ---------- footer ---------- */
.site-footer{ background:#0C2543; color:#B9C7D6; margin-top:24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-block:48px 32px; }
.footer-brand img{ width:220px; height:auto; margin-inline-start:-12px; }
.footer-brand p{ font-size:14px; max-width:36ch; }
.group-link a{ color:#7FE3DA; font-weight:600; }
.site-footer h2{ font-family:var(--f-body); color:#fff; font-size:13.5px; font-weight:600; margin:10px 0 12px; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; font-size:14px; }
.site-footer a{ color:#D7E2EC; text-decoration:none; }
.site-footer a:hover{ color:#fff; text-decoration:underline; }
.footer-bottom{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-block:18px 26px; border-top:1px solid rgba(255,255,255,.1); font-size:13px; }

.wa-float{ position:fixed; inset-inline-end:18px; bottom:18px; width:54px; height:54px; border-radius:50%; background:var(--wa); color:#fff; display:grid; place-items:center; box-shadow:0 10px 24px -8px rgba(0,0,0,.35); z-index:30; }
.wa-float svg{ width:28px; height:28px; }

/* ---------- responsive ---------- */
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
  .product, .cart-layout{ grid-template-columns:1fr; }
  .gallery, .summary{ position:static; }
  .gallery-main{ max-height:380px; aspect-ratio:auto; height:340px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:760px){
  :root{ --header-h:auto; }
  .header-row{ flex-wrap:wrap; padding-block:10px; gap:10px; }
  .brand img{ height:36px; }
  .search{ order:3; flex-basis:100%; max-width:none; }
  .cart-label{ display:none; }
  .cart-btn{ padding:0 12px; }
  .how ol{ grid-template-columns:1fr; }
  .how li::after{ display:none; }
  .strip{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .card-body{ padding:10px 11px 12px; }
  .card-name{ font-size:14px; }
  .tray{ height:270px; }
  .tray a:nth-child(n+6){ display:none; }
  .fields{ grid-template-columns:1fr; }
  .subcats{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin-inline:calc(-1 * var(--gutter)); padding-inline:var(--gutter); width:calc(100% + 2 * var(--gutter)); }
  .subcats::-webkit-scrollbar{ display:none; }
  .subcats .chip{ flex:none; }
  .variants thead{ display:none; }
  .variants caption{ display:block; width:100%; }
  .variants, .variants tbody, .variants tr, .variants td{ display:block; }
  .variants tr{ display:grid; grid-template-columns:auto 1fr; gap:4px 12px; padding:12px 0; border-bottom:1px solid var(--line); }
  .variants td{ border:0; padding:0; }
  .variants td.vi{ grid-row:span 3; }
  .variants td.act{ text-align:start; grid-column:2; margin-top:6px; }
  .footer-grid{ grid-template-columns:1fr; gap:20px; }
  .cart-line{ grid-template-columns:60px minmax(0,1fr); }
  .cart-line .thumb{ width:60px; height:60px; }
  .cart-line .lp{ grid-column:2; text-align:start; }
  html{ scroll-padding-top:170px; }
  .gallery{ top:0; }
}
@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; animation:none !important; }
}

/* image frames: block layout so percentage heights resolve (placeholders stay centered with grid) */
.card-media, .tile-img, .gallery-main, .thumbs button, .cart-line .thumb, .variants .vimg{ display:block; overflow:hidden; }
.card-media.ph, .gallery-main.ph, .cart-line .thumb.ph{ display:grid; }
.tile-img svg{ width:100%; height:100%; padding:10px; color:var(--navy); }
