/* =====================================================================
   Yutorri — design system
   Net-a-Porter inspired editorial luxury: black/white, serif headlines,
   generous whitespace, refined typography, large imagery.
   ===================================================================== */

:root {
  /* Type — matches yutorri.com Wix theme: Caudex serif, Avenir-style sans */
  --font-serif: 'Caudex', 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:  'Inter', 'Avenir Next', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Colour — matches the live Wix theme. #7F703D is the brand primary CTA. */
  --ink:        #0a0a0a;
  --ink-soft:   #2a2a2a;
  --ink-muted:  #5c5c5c;
  --ink-faint:  #8a8a8a;
  --rule:       #e6e3dd;
  --rule-soft:  #f0eeea;
  --paper:      #fbfaf7;
  --paper-pure: #ffffff;
  --sand:       #f3efe7;
  --accent:     #7F703D;   /* Yutorri brand bronze */
  --accent-soft:#a89564;
  --critical:   #8a2b2b;
  --positive:   #2a5d3a;

  /* Spacing scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Layout */
  --maxw:        1440px;
  --maxw-narrow: 880px;
  --gutter:      24px;
  --header-h:    96px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 480ms;
}

/* --- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }

/* --- Typography ---------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);
  color: var(--ink);
  line-height: 1.1;
}
h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: 18px; letter-spacing: .02em; }

p { margin: 0 0 var(--s-4); color: var(--ink-soft); max-width: 64ch; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.text-muted { color: var(--ink-muted); }
.text-faint { color: var(--ink-faint); }

/* --- Layout helpers ------------------------------------------------ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: var(--s-7) 0; }
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.center { text-align: center; }
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }

/* --- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 28px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper-pure);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--paper-pure); color: var(--accent); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--paper-pure); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper-pure); }
.btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity var(--dur-1);
}
.btn-link:hover { opacity: .6; }
.btn-block { display: flex; width: 100%; }

/* --- Forms --------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input, .field select, .field textarea {
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur-1);
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--critical); }
.help { font-size: 12px; color: var(--ink-muted); margin-top: var(--s-1); }

/* Inline newsletter form (footer / blocks) */
.inline-form {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  align-items: center;
}
.inline-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
  font-size: 15px;
}
.inline-form button {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 12px 0 12px var(--s-3);
  font-weight: 500;
}

/* --- Header -------------------------------------------------------- */
.announce-bar {
  background: var(--ink);
  color: var(--paper-pure);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: var(--s-3);
}
.header-left, .header-right { display: flex; gap: var(--s-5); align-items: center; }
.header-right { justify-content: flex-end; gap: var(--s-3); }
.desktop-nav { display: flex; gap: var(--s-5); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header-row { grid-template-columns: auto 1fr auto; padding: 0 var(--s-4); }
  .desktop-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-right { gap: var(--s-1); }
  .currency-select { font-size: 10px; padding: 4px; }
  .hide-mobile { display: none; }
  .announce-bar { font-size: 10px; letter-spacing: .18em; padding: 8px var(--s-3); }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: center;
  justify-self: center;
}
.brand a { color: inherit; display: inline-flex; align-items: center; gap: 12px; }
.brand .mark {
  height: 44px; width: auto;
  display: block;
}
.brand .wordmark {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 900px) {
  .brand .wordmark { font-size: 18px; letter-spacing: .26em; }
  .brand .mark { height: 32px; }
}
@media (max-width: 420px) {
  .brand .wordmark { display: none; }
  .brand .mark { height: 36px; }
}
.nav-link {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 0;
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
}
.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--ink); color: var(--paper-pure);
  font-size: 10px; line-height: 1;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.currency-select {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-soft);
}
/* Mobile slide-down nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 49;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  padding: var(--s-5) var(--s-5) var(--s-9);
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .01em;
  padding: var(--s-3) 0;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-rule { border: 0; border-top: 1px solid var(--rule); margin: var(--s-5) 0; }
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

/* --- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(540px, 80vh, 820px);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45) 100%);
}
.hero-content {
  position: relative;
  padding: var(--s-8) var(--gutter) var(--s-8);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  color: var(--paper-pure);
  z-index: 2;
}
@media (max-width: 768px) {
  .hero { min-height: clamp(440px, 70vh, 600px); }
  .hero-content { padding: var(--s-6) var(--s-4) var(--s-7); }
  .hero h1 { font-size: clamp(34px, 8vw, 52px); margin-bottom: var(--s-3); }
  .hero p.lede { font-size: 15px; }
  .hero-meta { right: var(--s-4); bottom: var(--s-4); font-size: 9px; }
}
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 {
  color: var(--paper-pure);
  max-width: 14ch;
  margin-bottom: var(--s-5);
}
.hero p { color: rgba(255,255,255,.85); max-width: 48ch; }
.hero .btn { margin-top: var(--s-4); }
.hero-meta {
  position: absolute;
  right: var(--gutter); bottom: var(--s-7);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* --- Product card -------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6) var(--s-5); }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-3); } }

.product-card { display: block; }
.product-card .ratio {
  aspect-ratio: 3 / 4;
  background: var(--rule-soft);
  overflow: hidden;
  position: relative;
}
.product-card .ratio img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease), opacity var(--dur-2);
}
.product-card:hover .ratio img { transform: scale(1.03); }
.product-card .meta { padding: var(--s-3) 0 0; }
.product-card .designer { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.product-card .name { font-family: var(--font-serif); font-size: 18px; line-height: 1.25; margin: 4px 0 6px; color: var(--ink); }
.product-card .price { font-size: 13px; color: var(--ink); letter-spacing: .04em; }
.product-card .price del { color: var(--ink-faint); margin-right: 6px; }
.tag {
  display: inline-block;
  background: var(--paper-pure);
  border: 1px solid var(--ink);
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  position: absolute; top: 12px; left: 12px;
}

/* --- Editorial blocks --------------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.editorial.reverse > :first-child { order: 2; }
.editorial .image {
  aspect-ratio: 4 / 5;
  background-color: var(--sand);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.editorial .image img { width: 100%; height: 100%; object-fit: cover; }
.editorial .copy { padding: var(--s-4) 0; }
@media (max-width: 768px) {
  .editorial { grid-template-columns: 1fr; gap: var(--s-5); }
  .editorial.reverse > :first-child { order: 0; }
}

/* --- Marquee strip ------------------------------------------------ */
.strip {
  display: flex;
  gap: var(--s-8);
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 640px) {
  .strip { font-size: 16px; gap: var(--s-4); padding: var(--s-4) var(--s-4); }
}
.strip span { white-space: nowrap; opacity: .85; }
.strip span::after { content: '·'; margin-left: var(--s-8); color: var(--ink-faint); }
.strip span:last-child::after { display: none; }

/* --- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-10);
}
.site-footer .container { color: inherit; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: var(--s-7);
}
.footer-grid h4 {
  color: var(--paper-pure);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer-grid a {
  display: block;
  color: rgba(255,255,255,.7);
  padding: 6px 0;
  font-size: 13px;
}
.footer-grid a:hover { color: var(--paper-pure); }
.footer-grid p { color: rgba(255,255,255,.7); margin: 0 0 var(--s-3); font-size: 13px; }
.footer-grid .inline-form { border-color: rgba(255,255,255,.4); }
.footer-grid .inline-form input { color: var(--paper-pure); }
.footer-grid .inline-form input::placeholder { color: rgba(255,255,255,.5); }
.footer-grid .inline-form button { color: var(--paper-pure); }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.footer-base a { color: inherit; margin-left: var(--s-5); }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .footer-base a { margin: 0; }
}

/* --- PDP ---------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-7); }
.pdp .gallery .ratio {
  aspect-ratio: 3 / 4; background: var(--rule-soft); margin-bottom: var(--s-3);
}
.pdp .thumbs { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.pdp .thumbs .ratio { width: 84px; aspect-ratio: 1; }
.pdp .info { padding-top: var(--s-3); position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; }
.pdp .price { font-size: 22px; }
.pdp .designer { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--s-2); }
.pdp h1 { font-size: clamp(28px, 3vw, 40px); margin-bottom: var(--s-3); }
.pdp .options { margin: var(--s-5) 0; }
.pdp .swatch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 38px; padding: 0 10px;
  border: 1px solid var(--rule);
  margin: 0 6px 6px 0;
  font-size: 12px; letter-spacing: .12em;
}
.pdp .swatch.active { border-color: var(--ink); }
.pdp .swatch:hover { border-color: var(--ink); }
.pdp .desc { margin-top: var(--s-6); }
.pdp .desc details {
  border-top: 1px solid var(--rule);
  padding: var(--s-3) 0;
}
.pdp .desc details summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.pdp .desc details[open] summary { color: var(--ink); }
.pdp .desc details summary::-webkit-details-marker { display: none; }
.pdp .desc details summary::after { content: '+'; font-size: 16px; }
.pdp .desc details[open] summary::after { content: '−'; }
.pdp .desc details p { padding-top: var(--s-3); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .pdp .info { position: static; } }

/* --- Cart / Checkout --------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-7); }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}
.cart-row .thumb { aspect-ratio: 3/4; background: var(--rule-soft); }
.cart-row .qty {
  display: inline-flex; align-items: center; gap: var(--s-2);
  border: 1px solid var(--rule); padding: 4px 8px;
}
.cart-row .qty button { width: 22px; height: 22px; line-height: 1; }
.summary {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  padding: var(--s-6);
  position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start;
}
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.summary-row.total { font-size: 16px; color: var(--ink); padding-top: var(--s-4); border-top: 1px solid var(--rule); margin-top: var(--s-3); }

/* --- Payment tile selector --------------------------------------- */
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin: var(--s-4) 0; }
.pay-tile {
  border: 1px solid var(--rule);
  padding: var(--s-4);
  display: flex; align-items: center; gap: var(--s-3);
  cursor: pointer;
  transition: border-color var(--dur-1), background var(--dur-1);
}
.pay-tile input { accent-color: var(--ink); }
.pay-tile.selected, .pay-tile:hover { border-color: var(--ink); background: var(--paper-pure); }
.pay-tile .name { font-size: 13px; letter-spacing: .04em; }
.pay-tile .note { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }

/* --- Status / banners -------------------------------------------- */
.notice {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  background: var(--paper-pure);
  font-size: 13px;
  margin-bottom: var(--s-4);
}
.notice.warn { border-color: var(--accent); }
.notice.error { border-color: var(--critical); color: var(--critical); }
.notice.ok { border-color: var(--positive); color: var(--positive); }

/* --- Utilities --------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider { border-top: 1px solid var(--rule); margin: var(--s-7) 0; }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--sand); }

/* --- Print ------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .announce-bar, .strip { display: none; }
  body { background: #fff; color: #000; }
}
