@import url("./theme.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(94%, 1320px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 4; background: white; padding: 8px 16px; }

.announcement { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 6px; background: var(--ink); color: var(--paper); font-size: clamp(10px, 3vw, 13px); font-weight: 650; white-space: nowrap; }
.announcement:hover { text-decoration: underline; text-underline-offset: 3px; }
.announcement .whatsapp-icon { color: #25d366; }
.kicker span { margin-inline: .55em; }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 86px; }
.masthead nav { display: flex; gap: clamp(10px, 2vw, 28px); font-size: 13px; }
.masthead > .contact { justify-self: end; }
.wordmark { display: inline-block; text-align: center; font-size: clamp(24px, 4vw, 35px); line-height: .96; letter-spacing: -.055em; white-space: nowrap; }
.wordmark small { display: block; margin-top: 9px; font: 8px/1 var(--sans); letter-spacing: .31em; }
.contact { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 9px 13px; font-size: 12px; white-space: nowrap; }
.contact:hover, .filters button:hover { border-color: var(--accent); }

.hero { background: var(--sand); text-align: center; padding: clamp(10px, 2vw, 24px); }
.hero-copy { padding: clamp(32px, 5vw, 69px) 10px clamp(30px, 4vw, 50px); }
.kicker { color: var(--accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .20em; }
h1 { margin: 12px 0 15px; font-size: clamp(56px, 9vw, 127px); line-height: .94; letter-spacing: -.075em; }
h1 em { color: var(--accent); font-weight: 400; }
.hero-copy > p:not(.kicker) { color: var(--muted); max-width: 42ch; margin: 0 auto; }
.primary, .order { display: inline-flex; align-items: center; gap: 13px; background: var(--green); color: white; padding: 10px 15px; font-size: 13px; }
.primary { margin-top: 21px; }
.primary:hover, .order:hover { background: var(--green-hover); }
.hero-gallery { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 4px; }
.hero-gallery img { height: clamp(148px, 34vw, 450px); object-fit: cover; object-position: center 24%; }

.style-section, .collection { padding-block: clamp(38px, 6vw, 78px) 0; scroll-margin-top: 10px; }
h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin-top: 7px; letter-spacing: -.055em; }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 2vw, 24px); }
.category-grid { margin-top: 20px; }
.category { background: var(--sand); overflow: hidden; }
.category img { height: clamp(113px, 22vw, 270px); object-fit: cover; object-position: center 28%; transition: transform 250ms ease; }
.category:hover img { transform: scale(1.035); }
.category span { display: flex; align-items: center; justify-content: space-between; padding: 9px clamp(6px, 2vw, 16px); font: clamp(15px, 3vw, 27px)/1.1 var(--serif); }
.category b { font: 14px var(--sans); margin-left: 3px; }

.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.filters button { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 6px 11px; font-size: 12px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.collection-note { text-align: center; color: var(--muted); margin: 12px 0 23px; font-size: 13px; }
.product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); }
.product-media { position: relative; background: var(--sand); }
.product-media img { aspect-ratio: 1; object-fit: contain; }
.product-body { display: flex; align-items: flex-start; flex-direction: column; flex: 1; padding: clamp(10px, 2vw, 18px); }
.product-title { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 3px; text-align: center; }
.product-title h3 { font-size: clamp(19px, 2.7vw, 28px); line-height: 1.1; }
.product-title > span { font-size: 12px; white-space: nowrap; color: var(--accent); font-weight: 650; }
.description { width: 100%; text-align: center; margin: 7px 0 13px; color: var(--muted); font-size: 12px; }
.colours { margin: auto 0 12px; padding: 0; border: 0; min-width: 0; }
.colours legend { padding: 0; font-size: 11px; color: var(--muted); }
.colours legend span { color: var(--ink); font-weight: 650; margin-left: 3px; }
.swatches { display: flex; gap: 5px; }
.swatch { display: grid; place-items: center; position: relative; min-width: 34px; min-height: 34px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch span { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; background: var(--swatch); }
.swatch input:checked + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.order { width: 100%; justify-content: space-between; }

.footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 7vw, 90px); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding-block: 28px; }
.footer-inner p { color: var(--muted); margin-top: 4px; font-size: 12px; }

@media (max-width: 680px) {
  .masthead { grid-template-columns: 1fr auto; min-height: 64px; }
  .masthead nav { display: none; }
  .masthead .wordmark { justify-self: start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order { gap: 4px; padding: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category img { transition: none; }
}

.variant-page { padding-block: clamp(24px, 6vw, 70px); }
.variant-back { display: inline-block; margin-bottom: 20px; text-decoration: underline; text-underline-offset: 4px; }
.variant-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.variant-layout > img { max-height: 72vh; object-fit: contain; background: var(--sand); }
.variant-layout > div { text-align: center; }
.variant-layout h1 { font-size: clamp(42px, 7vw, 96px); }
.variant-description, .variant-price { margin-block: 12px; }
.variant-colours { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-block: 22px; }
.variant-colours a { border: 1px solid var(--line); padding: 6px 10px; }
.variant-colours a[aria-current="page"] { border-color: var(--ink); background: var(--sand); }
.variant-layout .order { width: auto; }
@media (max-width: 680px) {
  .variant-layout { grid-template-columns: 1fr; }
  .variant-layout > img { max-height: 60vh; }
}

.stock-note { color: var(--accent); padding-block: 8px; font-weight: 650; }

.order, .whatsapp-contact {
  background: #25d366;
  border-color: #25d366;
  color: #10261a;
  font-weight: 700;
}
.order:hover, .whatsapp-contact:hover { background: #1ebe5d; border-color: #1ebe5d; }
.whatsapp-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
