/* Loubag is a paid font (Creativemedialab); the licensed variable font lives in fonts/. Fraunces stays as the fallback. */
@font-face { font-family: "Loubag"; font-weight: 100 900; font-display: swap;
  src: local("Loubag"), local("Loubag Regular"), url(fonts/Loubag-Variable.ttf) format("truetype"); }

:root {
  --ink: #1d1d1f; --mute: #6e6e73; --line: #d2d2d7; --panel: #f5f5f7; --card: #f1f0ee;
  --brand: #6a2027; --cream: #f7ecc8; --g: 20px;
  --display: "Loubag", "Fraunces", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: 44px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header (Loewe layout, Apple glass) ---------- */
.top { position: sticky; top: 0; z-index: 10; height: 56px; padding: 0 var(--g);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a:hover, .links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mini { display: block; line-height: 0; opacity: 0; transform: translateY(6px); transition: .35s; pointer-events: none; }
.mini img { width: 44px; height: 44px; }
.past .mini, .pdp .mini { opacity: 1; transform: none; pointer-events: auto; }
.tools { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
.search { width: 150px; border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 4px 0; outline: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.bag { position: relative; display: flex; }
.bag span { position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.bag span:empty, .bag span[data-n="0"] { display: none; }

/* ---------- wordmark with yarn-ball O ---------- */
.wordmark { position: relative; z-index: 2; margin: .1em var(--g) -.36em; font: 500 clamp(34px, 11.3vw, 200px)/.82 var(--display); letter-spacing: -.01em; white-space: nowrap; color: var(--brand); }
.wordmark .o { display: inline-block; height: .9em; width: .9em; margin: 0 .03em; vertical-align: -.05em; object-fit: contain; }
@supports (animation-timeline: scroll()) {
  .wordmark .o { animation: roll linear both; animation-timeline: scroll(root); }
}
@keyframes roll { to { transform: rotate(540deg); } }
.ball { overflow: visible; }

/* ---------- editorial blocks (Loewe) ---------- */
section { margin: 0 0 120px; }
.hero { margin: 0 var(--g) 120px; }
.hero .ph { height: min(80vh, 920px); }
.cap { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0 0; font-size: 18px; }
.cap small { font-size: 14px; color: var(--mute); }
.cap a { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.duo { display: grid; grid-template-columns: 1fr 1fr; margin-inline: var(--g); }
.duo .ph { aspect-ratio: 1 / 1.02; }
.duo figure { margin: 0; }
.duo figcaption { padding: 8px 0 0; font-size: 13px; }
.edit { margin-inline: var(--g); max-width: 380px; }
.edit h3 { font-size: 20px; font-weight: 400; margin-bottom: 14px; }
.edit p { font-size: 13px; margin-bottom: 14px; }
.links { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2; }
.links li::before { content: "▸"; font-size: 8px; margin-right: 8px; vertical-align: 2px; }

/* product grid: 1 tall + 4 short, copy fills the gap (Loewe) */
.grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); margin-inline: var(--g); }
.grid .card:first-child { grid-row: span 2; }
.grid .card:first-child .ph { aspect-ratio: 2 / 3; }
.card .ph { aspect-ratio: 2 / 3; background: var(--card); overflow: hidden; }
.card .ph img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .ph img { transform: scale(1.04); }
.card p { font-size: 13px; padding: 8px 0 0; }
.card .price { color: var(--mute); padding: 0; }
.grid .note { grid-column: 2 / -1; align-self: end; padding: 0 0 0 28px; }

/* ---------- Apple-style shade picker ---------- */
.picker { margin: 0 var(--g) 120px; background: var(--panel); padding: 90px 20px 80px; text-align: center; }
.eyebrow { font-size: 15px; color: var(--mute); margin-bottom: 8px; }
.h2 { font: 400 clamp(36px, 5.4vw, 72px)/1.02 var(--display); letter-spacing: -.01em; }
.stage { position: relative; width: min(340px, 64vw); aspect-ratio: 1; margin: 56px auto 34px; }
.stage .ball { width: 100%; height: 100%; transition: --shade .5s; }
.stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -26px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.18), transparent); }
@property --shade { syntax: "<color>"; inherits: true; initial-value: #c8a97e; }
.shade-name { font-size: 17px; font-weight: 600; min-height: 1.4em; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 16px auto 0; max-width: 520px; padding: 0; border: 0; }
.swatches label { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatches input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatches label:has(:checked) { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatches label:has(:focus-visible) { outline: 2px solid #0071e3; outline-offset: 3px; }
.swatches label.out::after { content: ""; position: absolute; inset: 13px -3px; height: 1.5px; background: var(--ink); transform: rotate(-45deg); }
.buy-row { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 30px; font-size: 17px; }
.pill { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 980px; background: var(--ink); color: #fff; padding: 11px 22px; font-size: 15px; cursor: pointer; transition: opacity .2s; }
.pill:hover { opacity: .85; }
.pill:disabled { background: var(--line); color: var(--mute); cursor: not-allowed; }
.more::after { content: " ›"; }
.more:hover { text-decoration: underline; }

/* categories row */
.cats { display: flex; gap: 34px; justify-content: center; overflow-x: auto; padding: 0 var(--g); scrollbar-width: none; }
.cats a { flex: none; width: 104px; text-align: center; font-size: 13px; }
.cats .ph { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: var(--panel); display: grid; place-items: center; }
.head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 var(--g) 28px; }
.head h2 { font: 400 clamp(28px, 3.4vw, 44px)/1.05 var(--display); }

/* dark patterns band (Apple) */
.dark { background: #000; color: #f5f5f7; margin: 0 var(--g) 120px; padding: 90px 40px; }
.dark .eyebrow { color: #a1a1a6; }
.dark .h2 { margin-bottom: 14px; }
.dark .lede { max-width: 520px; color: #a1a1a6; font-size: 17px; margin-bottom: 54px; }
.patterns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cover { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--bg); color: var(--fg, #1d1d1f); padding: 26px; text-align: center; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cover:hover { transform: translateY(-6px); }
.cover .ball { width: 46%; }
.cover b { font: 400 30px/1 var(--display); display: block; }
.cover small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.patterns p { font-size: 13px; padding-top: 10px; color: #a1a1a6; }
.patterns p b { color: #f5f5f7; font-weight: 400; }

/* tutorials */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 var(--g); }
.video .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.video .ph::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%;
  background: rgba(255,255,255,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l10 6-10 6z' fill='%231d1d1f'/%3E%3C/svg%3E") center/26px no-repeat;
  backdrop-filter: blur(8px); transition: transform .3s; }
.video:hover .ph::after { transform: scale(1.08); }
.video p { font-size: 13px; padding-top: 8px; }
.video .price { color: var(--mute); }

/* footer (Loewe) */
.foot { display: grid; grid-template-columns: 3fr 1.3fr; gap: 40px; margin: 0 var(--g); padding-bottom: 50px; }
.foot .cols { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); align-content: space-between; min-height: 290px; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 2.05; }
.foot .region { grid-column: 1 / -1; font-size: 12px; color: var(--mute); }
.mono { width: min(100%, 300px); height: auto; aspect-ratio: 1; justify-self: end; align-self: end; object-fit: contain; }

/* Psst bar (Loewe yellow) */
.psst { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: var(--cream); color: var(--brand); font-size: 13px; }
.psst summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 12px var(--g); }
.psst summary::-webkit-details-marker { display: none; }
.psst summary::after { content: "+"; font-size: 18px; line-height: 1; }
.psst[open] summary::after { content: "–"; }
.psst form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 0 var(--g) 18px; }
.psst input { flex: 1 1 240px; max-width: 360px; border: 0; border-bottom: 1px solid var(--brand); background: none; color: inherit; padding: 6px 0; outline: none; }
.psst .pill { background: var(--brand); color: var(--cream); }
.psst label { display: flex; gap: 6px; align-items: center; }
.psst input[type=checkbox] { flex: none; accent-color: var(--brand); }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 64px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 980px; font-size: 14px; transition: .3s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- product page ---------- */
.crumbs { margin: 18px var(--g) 22px; font-size: 12px; color: var(--mute); }
.crumbs a:hover { color: var(--ink); }
.pdp-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0 56px; margin: 0 var(--g) 120px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; }
.gallery .stage-panel { grid-column: 1 / -1; aspect-ratio: 4 / 3; background: var(--panel); display: grid; place-items: center; position: relative; }
.gallery .stage-panel .ball { width: 46%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 30px 30px rgba(0,0,0,.12)); }
.gallery .stage-panel span { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: var(--mute); }
.gallery .ph { aspect-ratio: 4 / 5; }
.info { position: sticky; top: 76px; }
.info h1 { font: 400 clamp(34px, 3.6vw, 52px)/1 var(--display); margin-bottom: 10px; }
.info .meta { color: var(--mute); margin-bottom: 26px; }
.info .price-big { font-size: 22px; margin-bottom: 4px; }
.info .tax { font-size: 12px; color: var(--mute); margin-bottom: 26px; }
.opt { border: 0; padding: 0; margin: 0 0 24px; }
.opt legend { font-size: 13px; padding: 0; margin-bottom: 12px; }
.opt legend b { font-weight: 600; }
.info .swatches { justify-content: flex-start; margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 13px; position: relative; }
.seg label small { display: block; color: var(--mute); }
.seg input { position: absolute; opacity: 0; }
.seg label:has(:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg label:has(:focus-visible) { outline: 2px solid #0071e3; outline-offset: 2px; }
.buy { display: flex; gap: 10px; margin-bottom: 14px; }
.qty { width: 72px; border: 1px solid var(--line); border-radius: 980px; text-align: center; padding: 0 6px; }
.buy .pill { flex: 1; padding: 15px; font-size: 16px; }
.stock { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #1e9e4a); }
.codes { font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mute); margin-bottom: 28px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 15px 0; display: flex; justify-content: space-between; font-size: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; }
.acc details[open] summary::after { content: "–"; }
.acc p { font-size: 13px; color: var(--mute); padding: 0 0 16px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --g: 16px; }
  .top { height: auto; grid-template-columns: 1fr auto; row-gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .mini { opacity: 1; transform: none; pointer-events: auto; font-size: 20px; }
  .nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .nav a { flex: none; }
  .search { display: none; }
  .wordmark { margin-top: 12px; font-size: 9.7vw; }
  .hero .ph { height: 62vh; }
  .cap { flex-direction: column; gap: 4px; font-size: 16px; }
  .duo, .patterns, .videos { grid-template-columns: 1fr; gap: 28px 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .grid .card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .grid .card:first-child .ph { aspect-ratio: 4 / 5; }
  .grid .note { grid-column: 1 / -1; padding: 10px 0 0; }
  .cats { justify-content: flex-start; gap: 18px; }
  .dark { padding: 64px 22px; }
  .head { flex-direction: column; gap: 8px; }
  .foot { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .mono { justify-self: start; width: 150px; }
  .pdp-wrap { grid-template-columns: 1fr; }
  .gallery { margin: 0 calc(var(--g) * -1) 28px; }
  .info { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- shop pages: collection, bag, checkout, order ---------- */
.ph .dot { display: block; width: 46%; aspect-ratio: 1; border-radius: 50%; margin: 27% auto 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.page { margin: 26px var(--g) 110px; max-width: 1100px; }
.page h1 { font: 400 clamp(30px, 3.4vw, 46px)/1.05 var(--display); margin: 0 0 18px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 18px; margin-top: 22px; }
.cgrid .card .ph { aspect-ratio: 4 / 5; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.filters a, .filters button.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 980px; font-size: 14px; background: none; cursor: pointer; color: inherit; }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters input, .filters select, .fld input, .fld select, .fld textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; }
.filters input { width: 110px; }
.empty { color: var(--mute); padding: 40px 0; }
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line small { display: block; color: var(--mute); } .line .warn { color: #b3261e; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 980px; } .step button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; cursor: pointer; } .step span { min-width: 26px; text-align: center; }
.sum { margin-top: 18px; max-width: 420px; margin-left: auto; } .sum div { display: flex; justify-content: space-between; padding: 6px 0; } .sum .tot { border-top: 1px solid var(--ink); font-weight: 600; font-size: 18px; margin-top: 6px; padding-top: 12px; }
.note-box { background: var(--panel); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 12px 0; color: var(--mute); }
.co { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; } @media (max-width: 800px) { .co { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 5px; margin-bottom: 12px; font-size: 13px; color: var(--mute); } .fld input, .fld select, .fld textarea { width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; } .choice:has(:checked) { border-color: var(--ink); background: var(--panel); } .choice small { display: block; color: var(--mute); }
.err { color: #b3261e; min-height: 1.3em; margin: 8px 0; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 22px; } .steps span { padding: 5px 12px; border-radius: 980px; background: var(--panel); color: var(--mute); font-size: 13px; } .steps span.on { background: var(--ink); color: #fff; }
.opt .seg label.dis { opacity: .4; }
@media (max-width: 800px) { .line { grid-template-columns: 1fr auto; } .line > :last-child { grid-column: 1 / -1; justify-self: end; } .two { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

/* blog, events, tutorials, visit our shop */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; margin-top: 22px; }
.pcard { display: block; color: inherit; text-decoration: none; }
.pcard .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); border-radius: 12px; position: relative; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard h2 { font: 400 22px/1.2 var(--display); margin: 12px 0 4px; }
.pcard p { font-size: 14px; color: var(--mute); margin: 0; }
.ptext { max-width: 680px; font-size: 17px; line-height: 1.6; } .ptext p { margin: 0 0 1em; }
.ptext .hero, .event .hero { width: 100%; height: auto; max-height: 460px; border-radius: 12px; margin: 0 0 20px; }
.ptag, .edate { font-size: 13px; color: var(--mute); margin: 0 0 6px; }
.psub { font: 400 24px/1.2 var(--display); margin: 34px 0 6px; }
.event { max-width: 680px; border-top: 1px solid var(--line); padding: 22px 0; } .event h3 { font: 400 26px/1.15 var(--display); margin: 0 0 12px; }
.elist.past { opacity: .7 }
.vh { font: 400 20px/1.2 var(--display); margin: 26px 0 4px; }
