/* 4SPECIAL public storefront, ported from the client design (webFinal/index.html).
   Mobile-first: base rules target a 360px phone; wider layouts use min-width only.
   The admin surface never loads this file; it keeps storefront.css. */

:root {
  --black: #0b0b0c;
  --black-2: #141415;
  --off-white: #f3f1ec;
  --gold: #bfa06a;
  --gold-soft: #d8c496;
  --line: rgba(243, 241, 236, 0.12);
  /* Text greys from the design. Measured on #0b0b0c and #141415: 0.5 = 4.8:1, 0.6 = 6.4:1. */
  --ink-2: rgba(243, 241, 236, 0.7);
  --ink-3: rgba(243, 241, 236, 0.6);
  --ink-4: rgba(243, 241, 236, 0.5);
  --danger: #ff8a7a;
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --target: 48px;
  --gutter: 20px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --header-space: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--black);
  color: var(--off-white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-space) + env(safe-area-inset-top));
}

html.menu-open {
  overflow: hidden;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Marble background from layered gradients, as in the design; no markup needed. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(243, 241, 236, 0.05), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(191, 160, 106, 0.06), transparent 60%),
    linear-gradient(180deg, #0b0b0c 0%, #0f0f10 50%, #0b0b0c 100%);
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul[role="list"],
.foot-links,
.navlinks ul,
.features {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.wrap--narrow {
  max-width: 720px;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Reveal on scroll: hidden only after site.mjs proves it can reveal (html.js). */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-bottom: 10px;
  background: rgba(11, 11, 12, 0.92);
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

/* With JavaScript the header starts transparent over the page top and solidifies on scroll. */
html.js .site-header:not(.scrolled) {
  background: transparent;
  border-color: transparent;
}

html.js .site-header.scrolled {
  background: rgba(11, 11, 12, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: var(--target);
  padding-block: 6px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.2;
  white-space: nowrap;
}

.logo__mark {
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.navlinks {
  display: none;
}

.navlinks ul {
  display: flex;
  gap: 44px;
}

.navlinks a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.navlinks a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.navlinks a:focus-visible::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-btn,
.burger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target);
  height: var(--target);
  background: none;
  border: 0;
  color: var(--off-white);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
}

.burger {
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--off-white);
}

/* Full-screen mobile menu. No JavaScript: opened by the #site-menu fragment (:target).
   site.mjs swaps the burger for a real button and drives .open instead. */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(72px + env(safe-area-inset-top)) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--black);
  overflow-y: auto;
}

.mobile-nav:target,
.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding-inline: 16px;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.mobile-nav .mobile-nav__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: var(--target);
  height: var(--target);
  min-height: var(--target);
  padding: 0;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 1.1rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(112px + env(safe-area-inset-top)) var(--gutter) 104px;
}

.diamond {
  width: 6px;
  height: 6px;
  margin: 0 auto 28px;
  background: var(--gold);
  transform: rotate(45deg);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: rotate(45deg) scale(1); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.6); }
}

/* The client's gradient "shine" mark: kept as a deliberate brand device (decorative, aria-hidden). */
.big-mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 22vw, 11rem);
  font-weight: 500;
  line-height: 0.85;
  color: var(--off-white);
  background: linear-gradient(120deg, var(--off-white) 30%, var(--gold-soft) 50%, var(--off-white) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero h1 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  color: var(--off-white);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero .hero-cta {
  margin-top: 44px;
}

.hero-cta:active {
  background: var(--gold);
  color: var(--black);
}

.hero-cta--small {
  padding: 12px 24px;
}

.scroll-cue {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.scroll-cue__line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrolldown 2s ease-in-out infinite;
}

@keyframes scrolldown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------- marquee */

.marquee-strip {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-half {
  display: flex;
  flex-shrink: 0;
}

.marquee-half span {
  margin: 0 28px;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-half .gold {
  color: var(--gold);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 80px 0;
}

.section-head {
  margin-bottom: 48px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.section-note {
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

.page-top {
  padding-top: calc(var(--header-space) + 40px + env(safe-area-inset-top));
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.empty-line {
  font-size: 1rem;
  color: var(--ink-2);
}

/* ---------------------------------------------------------- product grid */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px 20px;
  max-width: 420px;
  margin-inline: auto;
}

.product {
  position: relative;
  min-width: 0;
}

.product-main {
  position: relative;
}

.product-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black-2);
}

.ph {
  position: absolute;
  inset: 0;
  display: block;
  aspect-ratio: 3 / 4;
  transition: opacity 0.5s ease;
}

.ph__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ph-back {
  opacity: 0;
}

.product-main:has(.product-link:focus-visible) .ph-back {
  opacity: 1;
}

.product-main:has(.product-link:focus-visible) .ph-front:has(+ .ph-back) {
  opacity: 0;
}

.product-main:has(.product-link:focus-visible) .product-img {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 500;
}

/* One link per card; its overlay makes the photo and the title one target. */
.product-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

.product-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-link:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sub {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(243, 241, 236, 0.55);
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-top: 12px;
  white-space: nowrap;
  font-family: var(--sans);
}

.price-old {
  font-size: 0.72rem;
  color: var(--ink-3);
  text-decoration: line-through;
}

.price-new {
  font-size: 0.95rem;
  color: var(--gold);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  min-width: 0;
}

.size-chip {
  position: relative;
  display: inline-flex;
}

/* One bordered box per size: the span inside a card's wrapping label, or the product page's label itself. */
.size-chip span,
.size-grid .size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target);
  height: var(--target);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.size-chip input:checked + span,
.size-grid input:checked + label.size-chip {
  border-color: var(--gold);
  color: var(--gold);
}

.size-chip input:focus-visible + span,
.size-grid input:focus-visible + .size-chip {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.add-cart-btn {
  min-height: var(--target);
  padding: 10px 18px;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.add-cart-btn:active,
.add-cart-btn:disabled {
  background: var(--gold);
  color: var(--black);
}

/* ----------------------------------------------------------- coming soon */

.coming-soon,
.about {
  background: var(--black-2);
  border-block: 1px solid var(--line);
}

.coming-soon {
  text-align: center;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 48px;
}

.cs-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(191, 160, 106, 0.04), rgba(191, 160, 106, 0.04) 12px, transparent 12px, transparent 24px),
    var(--black);
}

.cs-card::after {
  content: "To Be Announced";
  position: absolute;
  bottom: 14px;
  left: 6px;
  right: 6px;
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--ink-3);
}

.cs-mark {
  font-family: var(--serif);
  font-size: 3rem;
  color: rgba(191, 160, 106, 0.25);
  filter: blur(1.5px);
}

.cs-text h2 {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.cs-text p,
.contact p {
  max-width: 480px;
  margin-inline: auto;
  font-size: 0.95rem;
  color: var(--ink-3);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* ----------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-slide {
  position: absolute;
  inset: 0;
  display: block;
  aspect-ratio: 1 / 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.about-slide.active {
  opacity: 1;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.about-text .eyebrow {
  margin-bottom: 18px;
}

.about-text h2 {
  margin-bottom: 24px;
  font-size: 2.4rem;
}

.about-text p {
  max-width: 65ch;
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  padding: 40px 28px;
  background: var(--black-2);
  text-align: center;
}

.feature .num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-3);
}

/* --------------------------------------------------------------- contact */

.contact {
  text-align: center;
}

.contact h2 {
  margin: 16px 0 20px;
  font-size: clamp(2rem, 5vw, 3rem);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
}

.foot-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.foot-row .logo {
  font-size: 1.1rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target);
  min-height: var(--target);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 24px;
  text-align: center;
}

.foot-copy {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.foot-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target);
  min-height: var(--target);
  padding-inline: 4px;
  font-size: 0.7rem;
  color: var(--ink-4);
}

/* ------------------------------------------------------- product detail */

.pdp {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.pdp__main-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black-2);
}

.pdp__picture {
  display: block;
  aspect-ratio: 3 / 4;
}

.pdp__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pdp__thumb {
  display: block;
  width: 64px;
  border: 1px solid var(--line);
  opacity: 0.7;
}

.pdp__thumb--selected {
  border-color: var(--gold);
  opacity: 1;
}

.thumb-picture {
  display: block;
  aspect-ratio: 3 / 4;
}

.thumb-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__title {
  font-size: clamp(2.2rem, 6vw, 3rem);
}

.pdp__info .sub {
  margin-top: 6px;
  font-size: 0.8rem;
}

.pdp__info .price-block {
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 16px;
}

.pdp__info .price-new {
  font-size: 1.3rem;
}

.pdp__info .price-old {
  font-size: 0.9rem;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.swatches {
  margin-top: 28px;
}

.swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  display: block;
  width: 56px;
  border: 1px solid var(--line);
}

.swatch--selected {
  border-color: var(--gold);
}

.pdp__form {
  margin-top: 28px;
}

.pdp__sizes {
  border: 0;
  min-width: 0;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

label.size-chip.size-chip--large {
  width: 52px;
  height: 52px;
  font-size: 0.85rem;
}

.pdp__sizes--error .size-chip {
  border-color: var(--danger);
}

.field-error {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--danger);
}

/* Thumb-reach commit bar on phones (Op. Decision 47); static beside the photos from 901px. */
.pdp__bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: rgba(11, 11, 12, 0.94);
  border-top: 1px solid var(--line);
}

/* The fixed bar must never cover the end of the page: below 901px the footer (with the
   login link) carries the bar height as extra bottom space on pages that render the bar. */
body:has(.pdp__bar) .site-footer {
  padding-bottom: calc(32px + 96px + env(safe-area-inset-bottom));
}

/* ------------------------------------------------------ cart + checkout */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.panel {
  background: var(--black-2);
  border: 1px solid var(--line);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header h1,
.cart-header h2 {
  font-size: 1.6rem;
}

.cart-header__count {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.panel__body {
  padding: 8px 20px 24px;
}

.cart-items {
  list-style: none;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item__thumb {
  flex: 0 0 72px;
  border: 1px solid var(--line);
  align-self: flex-start;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 1.15rem;
  font-weight: 500;
}

.cart-item__name a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

.cart-item-info .meta {
  font-size: 0.75rem;
  color: var(--ink-4);
}

.cart-item-info .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target);
  height: var(--target);
  background: none;
  border: 1px solid var(--line);
  color: var(--off-white);
  font-size: 1rem;
}

.qty-btn:disabled {
  color: var(--ink-4);
  cursor: not-allowed;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 0.95rem;
}

.cart-item-info .price {
  font-size: 0.9rem;
  color: var(--gold);
  white-space: nowrap;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 20px;
  font-size: 1rem;
}

.cart-subtotal .amt {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
}

.cart-empty {
  padding: 32px 0 8px;
  text-align: center;
  color: var(--ink-4);
}

.cart-empty-action {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}

.notice,
.alert {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.notice {
  color: var(--off-white);
  border-color: rgba(191, 160, 106, 0.5);
}

.alert {
  color: var(--off-white);
  border-color: rgba(255, 138, 122, 0.6);
}

.checkout-errors ul {
  margin-top: 6px;
  padding-left: 18px;
}

.checkout-errors a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--gold);
  text-decoration: underline;
}

.checkout-form {
  padding-top: 16px;
}

.checkout-field {
  margin-bottom: 18px;
}

.checkout-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.checkout-field input[type="text"],
.checkout-field input[type="email"],
.checkout-field input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 1rem;
}

.checkout-field input::placeholder {
  color: rgba(243, 241, 236, 0.55);
}

.checkout-field input:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}

.checkout-field--error input {
  border-color: var(--danger);
}

.checkout-field .field-error {
  margin: 6px 0 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--target);
  padding-block: 6px;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-label span {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.consent-label .text-link {
  cursor: pointer;
}

/* The consent label is a direct child of .checkout-field, so `.checkout-field > label`
   (field-label caps, 0.68rem, block) outranks `.consent-label`. Undo it explicitly:
   the consent sentence must read as ordinary text beside its checkbox. */
.checkout-field > .consent-label {
  display: flex;
  margin-bottom: 0;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

.checkout-note {
  margin: 4px 0 18px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--gold);
  border: 0;
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
}

.checkout-btn:active {
  background: var(--gold-soft);
}

.checkout-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* ------------------------------------------------- confirmation + 404 */

.order-success,
.not-found {
  text-align: center;
}

.order-success h1,
.not-found h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 7vw, 3rem);
}

.order-success__lead,
.not-found p {
  max-width: 52ch;
  margin-inline: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(243, 241, 236, 0.65);
}

.order-success__note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.receipt {
  margin: 32px auto 0;
  max-width: 520px;
  text-align: left;
}

.receipt h2 {
  margin: 24px 0 10px;
  font-size: 1.3rem;
}

.receipt dl {
  padding: 8px 16px;
  background: var(--black);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.receipt dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.receipt dl > div:last-child {
  border-bottom: 0;
}

.receipt dt {
  color: var(--ink-2);
}

.receipt dd {
  text-align: right;
  overflow-wrap: anywhere;
}

.receipt__total {
  color: var(--gold);
}

.receipt__shop {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.receipt__shop a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--gold);
}

.order-success .hero-cta,
.not-found .hero-cta {
  margin-top: 32px;
}

/* ------------------------------------------------------------ breakpoints */

@media (min-width: 561px) {
  :root {
    --gutter: 32px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .cs-grid {
    gap: 20px;
  }

  .foot-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .foot-links {
    gap: 0 28px;
  }
}

@media (min-width: 901px) {
  :root {
    --header-space: 88px;
  }

  .site-header {
    padding-block: calc(14px + env(safe-area-inset-top)) 14px;
  }

  html.js .site-header:not(.scrolled) {
    padding-block: calc(26px + env(safe-area-inset-top)) 26px;
  }

  /* Equal outer columns centre the nav on the row, not in the gap between the wide logo and the narrow cart. */
  .navrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .logo {
    justify-self: start;
    font-size: 1.5rem;
  }

  .logo__mark {
    font-size: 1.8rem;
  }

  .navlinks {
    display: block;
    justify-self: center;
  }

  .nav-actions {
    justify-self: end;
  }

  .burger,
  .mobile-nav,
  .mobile-nav:target,
  .mobile-nav.open {
    display: none;
  }

  .section {
    padding: 120px 0;
  }

  .section-head {
    margin-bottom: 72px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 36px;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
  }

  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 80px;
  }

  .feature {
    padding: 40px 32px;
  }

  .pdp {
    padding-bottom: 96px;
  }

  .pdp__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: start;
  }

  body:has(.pdp__bar) .site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .pdp__info {
    position: sticky;
    top: calc(var(--header-space) + 24px);
  }

  .pdp__bar {
    position: static;
    margin-top: 28px;
    padding: 0;
    background: none;
    border: 0;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
  }

  .checkout-panel {
    position: sticky;
    top: calc(var(--header-space) + 24px);
  }
}

/* Hover is an enhancement for fine pointers only, so a phone never inherits a stuck hover. */
@media (hover: hover) and (pointer: fine) {
  .navlinks a:hover::after {
    width: 100%;
  }

  .hero-cta:hover {
    background: var(--gold);
    color: var(--black);
  }

  .product-main:hover .ph-front:has(+ .ph-back) {
    opacity: 0;
  }

  .product-main:hover .ph-back {
    opacity: 1;
  }

  .product-main:hover .ph__img {
    transform: scale(1.05);
  }

  .size-chip:hover span,
  .size-grid .size-chip:hover {
    border-color: rgba(191, 160, 106, 0.6);
    color: var(--off-white);
  }

  .add-cart-btn:hover {
    background: var(--gold);
    color: var(--black);
  }

  .checkout-btn:hover:not(:disabled) {
    background: var(--gold-soft);
  }

  .foot-links a:hover,
  .cart-remove:hover {
    color: var(--gold);
  }

  .pdp__thumb:hover,
  .swatch:hover {
    border-color: rgba(191, 160, 106, 0.6);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .marquee-track,
  .big-mark,
  .diamond,
  .scroll-cue__line {
    animation: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
