/* خيط · KHEIT — standalone dark storefront */

:root {
  --bg: #0a0a0b;
  --card: #0f0f11;
  --well-a: #1b1a17;
  --well-b: #0c0c0e;
  --line: rgba(243, 238, 229, 0.12);
  --line-strong: rgba(243, 238, 229, 0.26);
  --ink: #f3eee5;
  --ink-2: rgba(243, 238, 229, 0.66);
  --ink-3: rgba(243, 238, 229, 0.44);
  --accent: #d8b76a;
  --font: "Noto Kufi Arabic", "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
bdi { unicode-bidi: isolate; }

/* ---------- header ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; color: var(--ink); }
.stitch { animation: stitch 9s linear infinite; }
@keyframes stitch { to { stroke-dashoffset: -46; } }
.brand-words { display: inline-flex; align-items: baseline; gap: 8px; }
.brand-words b { font-size: 21px; font-weight: 800; line-height: 1; }
.brand-words i { font-style: normal; font-size: 10px; letter-spacing: 0.3em; color: var(--ink-3); }
.nav { display: flex; gap: 18px; }
.nav a { font-size: 13px; color: var(--ink-3); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--ink); }

/* ---------- the one tee ---------- */
.tee-layer { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.tee-float {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  transform-origin: 0 0;
  will-change: transform;
}
.tee-spin { color: var(--print); }
.tee-spin svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.6)); }
.tee-spin .fabric { transition: fill 0.55s ease, stroke 0.55s ease; }
.tee-tag {
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
body[data-docked="1"] .tee-tag { opacity: 1; }

/* ---------- layout ---------- */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 40px;
  position: relative;
  z-index: 5;
}

section { padding: 64px 0 8px; }

.label { font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 10px; }
h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(25px, 3.6vw, 38px); line-height: 1.2; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 17px; font-weight: 700; margin: 34px 0 12px; }
.lede { font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.fine { font-size: 12.5px; color: var(--ink-3); margin-top: 16px; max-width: 52ch; }

.hero { padding-top: 46px; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 26px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #0a0a0b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

.scroll-hint { display: flex; align-items: center; gap: 10px; margin-top: 40px; font-size: 12px; color: var(--ink-3); }
.scroll-hint span { width: 26px; height: 1px; background: var(--ink-3); display: inline-block; }

/* ---------- colour picker ---------- */
.swatch-list { list-style: none; display: grid; gap: 12px; margin: 26px 0 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.swatch-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.swatch-list button:hover { border-color: var(--line-strong); }
.swatch-list button[aria-pressed="true"] { border-color: var(--ink); background: #15151a; }
.dot { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.swatch-text { display: grid; gap: 2px; }
.swatch-text b { font-weight: 700; font-size: 14px; }
.swatch-text span { font-size: 12px; color: var(--ink-3); }

/* ---------- products ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-well {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px 20px 12px;
  background: radial-gradient(90% 75% at 50% 0%, var(--well-a) 0%, var(--well-b) 78%);
}
.card-well svg { width: 72%; max-width: 190px; height: auto; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55)); transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card-well svg { transform: translateY(-6px) rotate(-2.5deg); }
.card-num { position: absolute; top: 13px; inset-inline-start: 15px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
.card-body { padding: 16px 17px 20px; display: grid; gap: 10px; }
.card-name { font-size: 16px; font-weight: 700; }
.card-note { font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }
.card-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price { font-size: 16px; font-weight: 700; color: var(--accent); }
.tone-name { font-size: 11.5px; color: var(--ink-3); }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.sizes button {
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sizes button[aria-pressed="true"] { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }
.order { font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; justify-self: start; }
.order:hover { border-color: var(--ink); }

/* ---------- brand ---------- */
.specs { display: grid; margin: 24px 0 0; border-top: 1px solid var(--line); }
.specs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 13px; color: var(--ink-3); }
.specs dd { font-size: 14px; font-weight: 700; text-align: end; }

.sizes-table { border-top: 1px solid var(--line); margin-top: 10px; }
.sizes-table .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.sizes-table .row span:first-child { color: var(--ink); font-weight: 700; }
.sizes-table .row.head { font-size: 11px; color: var(--ink-3); }
.sizes-table .row.head span:first-child { color: var(--ink-3); font-weight: 400; }

/* ---------- footer ---------- */
footer { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-brand { font-size: 11px; letter-spacing: 0.18em; color: var(--ink-2); }
.foot-note { font-size: 12px; color: var(--ink-3); }

/* ---------- desktop ---------- */
@media (min-width: 1000px) {
  main { padding-inline-end: 360px; }
  section { padding-top: 96px; }
  .hero { min-height: 92vh; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  main { padding: 0 18px 130px; }
  .hero { padding-top: 430px; min-height: 0; }
  .bar { padding: 12px 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 12px; }
  section { padding-top: 54px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stitch { animation: none; }
  .card-well svg { transition: none; }
}
