/* DIRBALK — assets/site.css
   Shared look for every page except home.html (which keeps its own).
   Dark by default; add class="light" on <body> for the light pages
   (cart, checkout, account, help, legal) — same as the design board. */

:root {
  --bg: #0a0a0a;
  --bg2: #111214;
  --line: rgba(255,255,255,0.09);
  --ink: #f2efe8;
  --muted: rgba(242,239,232,0.6);
  --faint: rgba(242,239,232,0.38);
  --amber: #C9A84C;
  --pad: clamp(18px, 4vw, 44px);
  --max: 1240px;
  --btn-bg: #f2efe8;
  --btn-ink: #0a0a0a;
}
body.light {
  --bg: #f6f4ef;
  --bg2: #ffffff;
  --line: rgba(0,0,0,0.1);
  --ink: #141414;
  --muted: rgba(20,20,20,0.62);
  --faint: rgba(20,20,20,0.42);
  --amber: #9a7a2c;
  --btn-bg: #0a0a0a;
  --btn-ink: #f6f4ef;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: 'Jost', Arial, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.ar { font-family: 'Cairo', Arial, sans-serif; font-weight: 700; direction: rtl; unicode-bidi: isolate; }

/* type */
.eyebrow { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.t-xl { font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.t-l { font-weight: 400; font-size: clamp(20px, 2vw, 28px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; }
.t-m { font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .02em; }
.t-s { font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.lead { font-size: 14px; line-height: 1.75; color: var(--muted); font-weight: 300; }
.small { font-size: 12px; color: var(--muted); }
.arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.arrow::after { content: "→"; letter-spacing: 0; font-size: 13px; transition: transform .25s; }
.arrow:hover { color: var(--amber); }
.arrow:hover::after { transform: translateX(4px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-ink); cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #0a0a0a; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.btn.block { width: 100%; }

/* photo slots */
.ph { position: relative; overflow: hidden; background: var(--bg2); }
.ph > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.zoom:hover .ph > img, a.ph:hover > img { transform: scale(1.04); }

/* ---------- header ---------- */
.sh { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
body:not(.light) .sh { background: rgba(10,10,10,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sh-in { display: flex; align-items: center; gap: 34px; height: 58px; padding: 0 var(--pad); }
.sh-logo img { height: 18px; width: auto; }
body.light .sh-logo img { filter: invert(1); }
.sh-nav { display: flex; gap: 26px; font-size: 12px; letter-spacing: .04em; }
.sh-nav a { opacity: .85; }
.sh-nav a:hover, .sh-nav a.on { opacity: 1; color: var(--amber); }
.sh-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.sh-ic { background: none; border: none; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; position: relative; padding: 4px; }
.sh-ic svg { width: 18px; height: 18px; }
.sh-ic:hover { color: var(--amber); }
.sh-count { position: absolute; top: -4px; right: -6px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--amber); color: #0a0a0a; font-size: 9.5px; font-weight: 500; display: none; align-items: center; justify-content: center; padding: 0 3px; }
.sh-menu { display: none; }
.search-bar { display: none; border-top: 1px solid var(--line); padding: 12px var(--pad); }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 10px; max-width: 560px; }
.search-bar input { flex: 1; background: transparent; border: none; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 14px; padding: 8px 2px; outline: none; }

/* mobile side menu */
.sm-ov { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.sm-ov.open { opacity: 1; pointer-events: auto; }
.sm { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 84vw); background: #0d0d0e; color: #f2efe8; transform: translateX(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: 100; padding: 22px 28px; display: flex; flex-direction: column; }
.sm.open { transform: none; }
.sm .x { align-self: flex-end; background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; }
.sm nav { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.sm nav a:hover { color: #C9A84C; }
.sm .ar { margin-top: auto; color: #C9A84C; }

/* ---------- footer ---------- */
.sf { border-top: 1px solid var(--line); padding: 30px var(--pad) 34px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 26px; }
.sf-brand { display: flex; align-items: center; gap: 16px; }
.sf-brand img { height: 18px; width: auto; }
body.light .sf-brand img { filter: invert(1); }
.sf-brand .ar { color: var(--amber); font-size: 14px; }
.sf nav { justify-self: center; display: flex; flex-wrap: wrap; gap: 14px 34px; font-size: 11px; }
.sf nav a:hover { color: var(--amber); }
.sf-social { display: flex; gap: 14px; }
.sf-social svg { width: 17px; height: 17px; }
.sf-city { font-size: 10.5px; color: var(--muted); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.field input, .field select, .field textarea { background: var(--bg2); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 14px; padding: 12px 13px; border-radius: 0; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }

/* swatches from catalog.js, tuned for both themes */
body.light .swatch { border-color: rgba(0,0,0,.25); }
body.light .swatch.selected { box-shadow: 0 0 0 2px #f6f4ef, 0 0 0 3px #141414; }

/* silhouette for colours that have no photos yet */
.sil { width: 62%; height: 72%; position: absolute; left: 19%; top: 14%; }

/* breadcrumb */
.crumbs { font-size: 11px; color: var(--muted); letter-spacing: .04em; padding: 22px 0 0; }
.crumbs a:hover { color: var(--amber); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* product card (shop + "you may also like") */
.pcard { display: block; position: relative; }
.pcard .ph { aspect-ratio: 4 / 5; display: block; }
.pcard .ph > img { position: absolute; inset: 0; }
.pcard .ph > img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s, transform 1s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .ph > img.alt { opacity: 1; }
.pcard .meta { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 14px 2px 0; align-items: start; }
.pcard .code { font-size: 9.5px; letter-spacing: .14em; color: var(--faint); }
.pcard .name { font-size: 13.5px; }
.pcard .price { font-size: 13.5px; color: var(--amber); text-align: right; }
.pcard .cname { font-size: 11px; color: var(--muted); }
.pcard .sizes { display: flex; gap: 16px; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.pcard .sizes .out { opacity: .35; text-decoration: line-through; }
.pcard .swatches { margin: 0; justify-self: end; gap: 8px; }
.pcard .swatch { width: 13px; height: 13px; }
.pcard .badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; padding: 5px 8px; background: rgba(10,10,10,.75); color: #f2efe8; }
.pcard .wish { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* wishlist heart */
.wish { background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; display: inline-flex; }
.wish svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: fill .2s; }
.wish.on svg { fill: currentColor; color: var(--amber); }
.pcard .wish { color: #f2efe8; background: rgba(10,10,10,.38); border-radius: 50%; padding: 7px; }
.pcard .wish svg { width: 16px; height: 16px; }

/* section head shared */
.sec { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }

@media (max-width: 860px) {
  .sh-in { gap: 0; display: grid; grid-template-columns: 1fr auto 1fr; }
  .sh-menu { display: inline-flex; justify-self: start; }
  .sh-logo { justify-self: center; }
  .sh-nav, .sh-right .lbl, .sh-right .acc { display: none; }
  .sh-right { justify-self: end; margin-left: 0; gap: 12px; }
  .sf { grid-template-columns: 1fr auto; }
  .sf nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; gap: 14px 22px; }
  .sf-city { grid-column: 1 / -1; }
}
