/* ============================================
   MARÉE — Maillots de bain & lingerie
   Design system: Ocean tropical (teal, corail, sable)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #fef9ed;
  --bg-alt: #f4dcb1;
  --bg-deep: #e8c989;
  --ink: #0a3d3d;
  --ink-soft: #155a5a;
  --ink-mute: #4a7878;
  --line: #c9a878;
  --line-soft: #e8c989;
  --accent: #f4a02c;
  --accent-deep: #d4781a;
  --coral: #ff6b4a;
  --teal: #2da89a;
  --sea: #1a7a7a;
  --sun: #fcd34d;
  --sale: #d63031;
  --success: #2da89a;
  --white: #ffffff;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Space Grotesk", -apple-system, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(60px, 10vh, 140px);
  --maxw: 1480px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--coral); color: var(--bg); }

/* === TYPO === */
.display {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-variation-settings: "opsz" 144; letter-spacing: -0.035em; line-height: 0.9;
}
.serif { font-family: var(--serif); font-weight: 400; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--coral);
}
.label {
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.body-l { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.body-m { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.body-s { font-size: 13px; line-height: 1.55; color: var(--ink-mute); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }

/* === LAYOUT === */
.container { width: 100%; padding-inline: var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.divider { height: 1px; background: var(--line); border: none; }
main { display: block; min-height: calc(100vh - 280px); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 32px; font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  border: 2px solid transparent; position: relative;
  overflow: hidden; border-radius: 100px; cursor: pointer; text-decoration: none;
}
.btn-primary, .btn { background: var(--ink); color: var(--bg); }
.btn-primary:hover, .btn:hover { background: var(--coral); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(10,61,61,0.2); color: var(--bg); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); padding: 12px 0; border-radius: 0; box-shadow: none; transform: none; }
.btn-ghost::after {
  content: ''; position: absolute; left: 0; bottom: 8px;
  width: 100%; height: 2px; background: var(--coral);
  transform-origin: right; transition: transform 0.4s; transform: scaleX(0);
}
.btn-ghost:hover { background: transparent; color: var(--coral); transform: none; box-shadow: none; }
.btn-ghost:hover::after { transform-origin: left; transform: scaleX(1); }
.btn-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.btn-icon:hover { background: var(--bg-deep); }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s;
}
.announcement {
  background: var(--ink); color: var(--sun);
  text-align: center; padding: 12px;
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; overflow: hidden; font-weight: 600;
}
.announcement-track { display: inline-block; white-space: nowrap; animation: marquee 35s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.announcement span { padding-inline: 40px; }
.announcement span::after { content: '✺'; margin-left: 80px; color: var(--coral); }

.header-bar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 22px var(--gutter); gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 28px; }
.nav-right { justify-content: flex-end; }
.nav-link {
  font-size: 13px; letter-spacing: 0.04em; font-weight: 500;
  position: relative; padding: 4px 0; cursor: pointer;
  transition: color 0.2s; font-family: var(--sans);
}
.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 2px; background: var(--coral);
  transition: width 0.3s, left 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--coral); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }

.brand-mark {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  font-style: italic; letter-spacing: -0.02em; cursor: pointer;
  font-variation-settings: "opsz" 144; color: var(--ink);
  display: inline-block;
}
.brand-mark .dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--coral); border-radius: 50%;
  vertical-align: middle; margin-bottom: 6px; margin-left: 2px;
}
.icon-btn {
  position: relative; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color 0.2s, transform 0.2s;
  background: none; border: none; color: inherit;
}
.icon-btn:hover { color: var(--coral); transform: scale(1.1); }
.icon-btn .badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--coral); color: var(--bg);
  font-size: 9px; width: 18px; height: 18px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 0;
}

/* === FOOTER === */
.site-footer {
  background: var(--ink); color: var(--bg);
  padding: 80px var(--gutter) 32px; margin-top: 120px;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,40 Q150,10 300,30 T600,30 T900,30 T1200,30 L1200,0 L0,0 Z' fill='%23fef9ed'/></svg>") no-repeat;
  background-size: 100% 100%;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(254,249,237,0.15);
  padding-top: 40px; max-width: var(--maxw); margin: 0 auto;
}
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 20px; color: var(--sun); font-family: var(--sans);
}
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col li a { color: rgba(254,249,237,0.75); transition: color 0.2s; }
.footer-col li a:hover { color: var(--coral); }
.footer-meta {
  display: flex; justify-content: space-between;
  padding-top: 24px; font-size: 11px;
  color: rgba(254,249,237,0.5); letter-spacing: 0.1em;
  flex-wrap: wrap; gap: 16px;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-brand .brand-mark { font-size: 44px; margin-bottom: 16px; display: block; color: var(--bg); }
.footer-brand .brand-mark .dot { background: var(--coral); }
.footer-brand p { color: rgba(254,249,237,0.7); font-size: 14px; max-width: 360px; }
.footer-socials { margin-top: 24px; display: flex; gap: 12px; }
.footer-socials a { color: var(--sun); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

/* === PRODUCT CARDS === */
.product-card { cursor: pointer; position: relative; display: block; color: inherit; }
.product-card-image {
  aspect-ratio: 3 / 4;
  background: var(--bg-deep);
  position: relative; overflow: hidden;
  margin-bottom: 16px; border-radius: 4px;
}
.product-card-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--coral); color: var(--bg);
  padding: 6px 12px; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; z-index: 2; border-radius: 100px;
}
.product-card-fav {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(254,249,237,0.95);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: all 0.2s; cursor: pointer; color: var(--ink);
  border: none;
}
.product-card-fav:hover { background: var(--bg); transform: scale(1.1); }
.product-card-fav.active { background: var(--coral); color: var(--bg); }
.product-card-quick {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--ink); color: var(--bg);
  padding: 16px; text-align: center;
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  z-index: 2; border: none; cursor: pointer;
}
.product-card:hover .product-card-quick { transform: translateY(0); }
.product-card-info {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px;
}
.product-card-name {
  font-family: var(--serif); font-size: 22px;
  font-weight: 500; margin-bottom: 4px;
  letter-spacing: -0.02em; color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.product-card-meta { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.04em; }
.product-card-price { font-family: var(--serif); font-size: 20px; font-weight: 500; white-space: nowrap; color: var(--coral); }
.product-card-colors { display: flex; gap: 6px; margin-top: 10px; }
.color-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer; transition: transform 0.2s;
  background: transparent;
}
.color-dot:hover { transform: scale(1.3); }
.color-dot.active { box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--ink); }

.placeholder-illu {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.product-card:hover .placeholder-illu { transform: scale(1.05); }

/* === FORMS === */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ink-soft);
}
.input, input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="search"], textarea, select {
  background: var(--bg); border: 1.5px solid var(--line);
  padding: 14px 16px; font-size: 15px; outline: none;
  border-radius: 8px; transition: border-color 0.2s; width: 100%;
  font-family: var(--sans); color: var(--ink);
}
.input:focus, input:focus, textarea:focus, select:focus { border-color: var(--coral); }
textarea { min-height: 140px; resize: vertical; }

.size-pill {
  border: 1.5px solid var(--line); padding: 12px 0;
  text-align: center; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  transition: all 0.2s; position: relative;
  background: transparent; border-radius: 100px;
}
.size-pill:hover:not(.disabled) { border-color: var(--ink); transform: translateY(-2px); }
.size-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-pill.disabled { color: var(--ink-mute); cursor: not-allowed; opacity: 0.4; text-decoration: line-through; }

/* === MODALS / DRAWERS === */
.overlay {
  position: fixed; inset: 0;
  background: rgba(10, 61, 61, 0.5);
  backdrop-filter: blur(6px);
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0;
  height: 100vh; width: min(460px, 92vw);
  background: var(--bg); z-index: 101;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px; border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.drawer-title { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 28px; }
.drawer-foot { border-top: 1px solid var(--line-soft); padding: 24px 28px; background: var(--bg-alt); }

.modal {
  position: fixed; inset: 0; z-index: 102;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; padding: 32px;
}
.modal-card {
  background: var(--bg); width: 100%;
  max-width: 880px; max-height: 88vh;
  overflow: hidden; position: relative;
  transform: scale(0.94); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  pointer-events: auto;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(10,61,61,0.3);
}
.modal.open { pointer-events: auto; }
.modal.open .modal-card { transform: scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 50%; z-index: 3;
  cursor: pointer; transition: all 0.2s; border: none;
}
.modal-close:hover { background: var(--coral); color: var(--bg); transform: rotate(90deg); }

/* === MISC === */
.tag-line {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--coral);
  font-weight: 600;
}
.tag-line::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.stars { display: inline-flex; gap: 1px; color: var(--ink); vertical-align: middle; }
.stars .star { display: inline-block; }
.stars .star--full { fill: var(--ink); }
.stars .star--half { fill: var(--ink); opacity: 0.55; }
.stars .star--empty { fill: none; stroke: var(--ink); stroke-width: 1.5; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 1s cubic-bezier(0.2, 0, 0.2, 1) backwards; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float { animation: float 6s ease-in-out infinite; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--coral); }

/* ==============================
   PAGES
   ============================== */

/* === HERO (home) === */
.hero {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(180deg, #1a7a7a 0%, #2da89a 60%, #f4a02c 100%);
  color: var(--bg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero::before {
  content: ''; position: absolute; top: 8%; right: 10%;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0%, #f4a02c 70%, transparent 75%);
  filter: blur(2px); animation: float 8s ease-in-out infinite; z-index: 1;
}
.hero::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0; height: 120px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'><path d='M0,80 Q150,40 300,70 T600,70 T900,70 T1200,70 L1200,120 L0,120 Z' fill='%23fef9ed'/><path d='M0,100 Q150,70 300,90 T600,90 T900,90 T1200,90 L1200,120 L0,120 Z' fill='%23fef9ed' opacity='0.5'/></svg>") no-repeat;
  background-size: 100% 100%; z-index: 5;
}
.hero-content {
  position: relative; z-index: 4; text-align: center;
  padding: 48px var(--gutter); max-width: 1000px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 128px);
  font-weight: 400; font-style: italic;
  font-variation-settings: "opsz" 144;
  margin: 20px 0; line-height: 0.95;
  letter-spacing: -0.03em; color: var(--bg);
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--sun); display: block; }
.hero-title span { display: block; }
.hero-sub {
  font-size: 17px; max-width: 540px;
  margin: 0 auto 28px; color: rgba(254,249,237,0.92); line-height: 1.5;
}
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: var(--sun); color: var(--ink); }
.hero .btn-primary:hover { background: var(--coral); color: var(--bg); }
.hero .btn-ghost { color: var(--bg); }
.hero .btn-ghost::after { background: var(--sun); }
.hero-meta {
  position: absolute; left: var(--gutter); bottom: 24px;
  display: flex; justify-content: space-between;
  width: calc(100% - var(--gutter) * 2);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(254,249,237,0.7); z-index: 6;
}
.hero .eyebrow { color: var(--sun); }

/* MARQUEE BAND */
.marquee-band {
  background: var(--coral); color: var(--bg);
  padding: 24px 0; overflow: hidden;
  border-block: 3px solid var(--ink);
}
.marquee-row {
  display: flex; white-space: nowrap;
  animation: marquee-slide 30s linear infinite;
  font-family: var(--serif); font-size: 36px; font-weight: 500;
  font-variation-settings: "opsz" 144; letter-spacing: -0.02em;
}
.marquee-content { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee-content em { font-style: normal; color: var(--sun); font-size: 24px; }
@keyframes marquee-slide { from { transform: translateX(0); } to { transform: translateX(-33.33%); } }

/* SECTION */
.section { padding: var(--section-y) var(--gutter); position: relative; max-width: var(--maxw); margin: 0 auto; }
.section-head { margin-bottom: 64px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.section-title {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(56px, 8vw, 132px); margin-top: 16px;
  font-variation-settings: "opsz" 144; letter-spacing: -0.03em; line-height: 0.9;
}
.section-title em { font-style: italic; color: var(--coral); font-weight: 300; }

/* COLLECTIONS GRID */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.collection-card { cursor: pointer; position: relative; }
.collection-img {
  aspect-ratio: 4 / 5; background: var(--bg-deep);
  position: relative; overflow: hidden; border-radius: 8px;
}
.collection-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.collection-card:nth-child(1) .collection-fallback { background: linear-gradient(180deg, #2da89a, #f4a02c); }
.collection-card:nth-child(2) .collection-fallback { background: linear-gradient(180deg, #ff6b4a, #fcd34d); }
.collection-card:nth-child(3) .collection-fallback { background: linear-gradient(180deg, #1a7a7a, #0a3d3d); }
.collection-card:hover .collection-fallback { transform: scale(1.05); }
.collection-info { padding: 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.collection-title {
  font-family: var(--serif); font-size: 64px;
  font-style: italic; font-weight: 400; color: var(--ink);
  font-variation-settings: "opsz" 144;
}

/* PRODUCT GRID */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.product-grid.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .product-grid, .product-grid.grid-3, .product-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .product-grid, .product-grid.grid-2, .product-grid.grid-3, .product-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* EDITORIAL */
.editorial {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); color: var(--bg);
  min-height: 80vh; position: relative; overflow: hidden;
}
.editorial::before {
  content: ''; position: absolute;
  top: -100px; right: -100px; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0%, transparent 70%);
  opacity: 0.3; filter: blur(40px);
}
.editorial-img { position: relative; overflow: hidden; background: var(--sea); }
.editorial-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--sea) 70%, var(--accent) 100%);
}
.editorial-text {
  padding: 96px var(--gutter); display: flex; flex-direction: column;
  justify-content: center; gap: 28px; position: relative; z-index: 2;
}
.editorial-text h2 {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(56px, 6vw, 104px);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em; color: var(--bg); font-weight: 300;
}
.editorial-text h2 em { font-style: italic; color: var(--sun); }
.editorial-text .body-l { color: rgba(254,249,237,0.85); }
.editorial-text .body-m { color: rgba(254,249,237,0.7); }
.editorial-text .btn-outline { color: var(--bg); border-color: var(--bg); }
.editorial-text .btn-outline:hover { background: var(--coral); border-color: var(--coral); color: var(--bg); }
.editorial-text .eyebrow { color: var(--sun); }

/* VALUES */
.values {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 80px var(--gutter); gap: 32px;
  background: var(--bg-alt); max-width: var(--maxw); margin: 0 auto;
}
.value-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px; background: var(--bg);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10,61,61,0.1); }
.value-icon {
  color: var(--coral); width: 56px; height: 56px;
  background: var(--bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.value-title { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-top: 4px; font-variation-settings: "opsz" 144; }
@media (max-width: 900px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .editorial { grid-template-columns: 1fr; }
}

/* TESTIMONIAL */
.testimonial { text-align: center; padding: 120px var(--gutter); max-width: 1200px; margin: 0 auto; position: relative; }
.testimonial::before {
  content: '"'; position: absolute;
  top: 40px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 240px;
  color: var(--coral); opacity: 0.15; line-height: 1;
}
.testimonial-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(40px, 5.5vw, 88px); line-height: 1.05;
  margin: 32px 0 48px; font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em; position: relative; z-index: 1;
}
.testimonial-quote em { font-style: italic; color: var(--coral); }
.testimonial-attr { display: inline-flex; align-items: center; gap: 16px; }

/* JOURNAL */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.journal-card { cursor: pointer; }
.journal-img {
  aspect-ratio: 5 / 6;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; overflow: hidden;
  transition: transform 0.4s; border-radius: 8px;
}
.journal-card:nth-child(1) .journal-img { background: linear-gradient(135deg, var(--coral), var(--sun)); }
.journal-card:nth-child(2) .journal-img { background: linear-gradient(135deg, var(--teal), var(--sea)); }
.journal-card:nth-child(3) .journal-img { background: linear-gradient(135deg, var(--sun), var(--accent)); }
.journal-card:hover .journal-img { transform: scale(0.98) rotate(-1deg); }
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr; } }

/* ===== SHOP / COLLECTION ===== */
.shop-page { padding-top: 0; }
.shop-banner {
  text-align: center;
  padding: 80px var(--gutter) 48px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  position: relative; overflow: hidden;
}
.shop-banner::before {
  content: ''; position: absolute;
  top: 20%; right: 10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun), transparent 70%);
  opacity: 0.5; filter: blur(20px);
  animation: float 8s ease-in-out infinite;
}
.shop-banner h1 {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(64px, 9vw, 144px);
  margin: 16px 0 24px;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em;
  position: relative; z-index: 1;
}
.shop-banner p { color: var(--ink-soft); position: relative; z-index: 1; font-size: 16px; }

.cat-tabs {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap; padding: 24px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 95px; z-index: 20;
}
.cat-tab {
  padding: 12px 24px; font-size: 13px;
  letter-spacing: 0.04em; font-weight: 500;
  color: var(--ink-soft); position: relative;
  transition: all 0.2s; border-radius: 100px;
  text-decoration: none;
}
.cat-tab:hover { color: var(--coral); background: var(--bg-alt); }
.cat-tab.active { color: var(--bg); background: var(--ink); }

.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--gutter); border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap; gap: 16px;
}
.toolbar-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  cursor: pointer; padding: 10px 20px;
  border: 1.5px solid var(--ink); border-radius: 100px;
  transition: all 0.2s; background: transparent;
}
.toolbar-btn:hover { background: var(--ink); color: var(--bg); }
.toolbar-count { background: var(--coral); color: var(--bg); padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.toolbar-right { display: flex; align-items: center; gap: 24px; }
.sort-select {
  background: var(--bg); border: 1.5px solid var(--line);
  padding: 10px 18px; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: 100px; width: auto;
}

.shop-body { display: flex; gap: 40px; padding: 40px var(--gutter) 80px; align-items: flex-start; }
.shop-body.with-filter .product-grid { grid-template-columns: repeat(3, 1fr); }
.filter-panel {
  width: 260px; flex-shrink: 0;
  position: sticky; top: 180px;
  display: flex; flex-direction: column; gap: 32px;
  padding: 24px; background: var(--bg-alt); border-radius: 12px;
}
.filter-group h4 {
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 16px; color: var(--coral); font-family: var(--sans);
}
.filter-colors { display: flex; flex-direction: column; gap: 8px; }
.filter-color {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; font-size: 14px;
  cursor: pointer; text-align: left;
  transition: all 0.2s; opacity: 0.65;
  border-radius: 8px; background: transparent; border: none; color: inherit;
}
.filter-color.active { opacity: 1; font-weight: 600; background: var(--bg); }
.filter-color:hover { opacity: 1; }
.filter-color .color-dot { width: 24px; height: 24px; }
.filter-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.filter-size {
  border: 1.5px solid var(--line); padding: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; background: transparent; border-radius: 100px;
}
.filter-size.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (max-width: 900px) {
  .shop-body { flex-direction: column; }
  .filter-panel { width: 100%; position: static; }
}

/* ===== PRODUCT DETAIL ===== */
.breadcrumb {
  display: flex; gap: 12px;
  padding: 24px var(--gutter);
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.04em; max-width: var(--maxw); margin: 0 auto;
  flex-wrap: wrap;
}
.breadcrumb a { cursor: pointer; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb .current { color: var(--coral); font-weight: 600; }

.product-detail {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px; padding: 0 var(--gutter) 80px;
  max-width: var(--maxw); margin: 0 auto;
}
.product-gallery { display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 12px; }
.gallery-thumb {
  aspect-ratio: 3 / 4; background: var(--bg-deep);
  border: 2px solid transparent; cursor: pointer;
  overflow: hidden; padding: 0;
  transition: border-color 0.2s; border-radius: 6px;
}
.gallery-thumb.active { border-color: var(--coral); }
.gallery-main {
  position: relative; aspect-ratio: 3 / 4;
  background: var(--bg-deep); overflow: hidden;
  border-radius: 12px;
}
.gallery-fav { position: absolute; top: 20px; right: 20px; z-index: 3; }

.product-info {
  position: sticky; top: 100px;
  align-self: flex-start;
  display: flex; flex-direction: column;
}
.product-info > * + * { margin-top: 16px; }
.product-title {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(48px, 5vw, 80px);
  margin-top: 12px !important;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em; line-height: 0.95;
}
.product-rating { display: flex; align-items: center; gap: 12px; margin-top: 16px !important; }
.product-price {
  display: flex; align-items: baseline; gap: 16px;
  padding: 24px 0;
  border-block: 2px solid var(--line-soft);
}
.product-price .serif { color: var(--coral); }
.product-desc { margin-top: 24px !important; }

.product-option { margin-top: 32px !important; }
.option-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.size-guide-link {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  color: var(--coral); text-decoration: underline;
  text-underline-offset: 4px; cursor: pointer; background: none; border: none;
}
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 48px; height: 48px; border-radius: 50%;
  padding: 3px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s; background: transparent;
}
.color-swatch span {
  display: block; width: 100%; height: 100%;
  border-radius: 50%; border: 1px solid var(--line);
}
.color-swatch.active { border-color: var(--coral); transform: scale(1.1); }

.size-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.size-warning { margin-top: 8px; color: var(--sale); font-size: 13px; min-height: 18px; }

.product-actions { display: flex; gap: 12px; margin-top: 32px !important; }
.btn-icon-square {
  width: 60px; border: 2px solid var(--ink); border-radius: 100px;
  background: transparent; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--ink); cursor: pointer;
}
.btn-icon-square:hover { background: var(--ink); color: var(--bg); }

.product-perks {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; background: var(--bg-alt);
  border-radius: 12px;
  margin-top: 32px !important;
}
.perk { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.perk svg { color: var(--coral); flex-shrink: 0; }

.accordions { margin-top: 32px !important; display: flex; flex-direction: column; }
.accordion { border-bottom: 1px solid var(--line-soft); }
.accordion-head {
  width: 100%; display: flex;
  justify-content: space-between; align-items: center;
  padding: 20px 0;
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; cursor: pointer; text-align: left;
  background: transparent; border: none; color: inherit;
}
.accordion.open .accordion-head { color: var(--coral); }
.accordion-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1.5px solid var(--line); border-radius: 50%;
  transition: all 0.2s;
}
.accordion.open .accordion-icon { background: var(--coral); color: var(--bg); border-color: var(--coral); }
.accordion-body { padding: 0 0 24px; display: none; }
.accordion.open .accordion-body { display: block; }
.accordion-body ul { padding-left: 16px; }
.accordion-body li { list-style: disc; margin-bottom: 6px; }

.reviews-section { padding: 80px var(--gutter); background: var(--bg-alt); margin-top: 64px; }
.reviews-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 48px;
  flex-wrap: wrap; gap: 32px; max-width: var(--maxw); margin-inline: auto;
}
.reviews-summary { text-align: right; }
.reviews-rating { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.review-card {
  background: var(--bg); padding: 36px;
  border-radius: 12px;
  border-top: 4px solid var(--coral);
}
.review-head { display: flex; justify-content: space-between; align-items: center; }
.review-foot {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.verified-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--success); font-weight: 700;
}

@media (max-width: 1000px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; }
  .gallery-thumb { width: 80px; flex-shrink: 0; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===== LOOKBOOK ===== */
.lookbook-page { padding: 0; }
.lookbook-intro {
  padding: 80px var(--gutter) 64px;
  background: linear-gradient(180deg, var(--coral), var(--sun));
  color: var(--ink); position: relative; overflow: hidden;
}
.lookbook-intro::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%; background: var(--sun);
  opacity: 0.6; filter: blur(40px);
}
.lookbook-title {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(96px, 16vw, 280px);
  margin: 24px 0;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.05em;
  position: relative; z-index: 1; line-height: 0.85;
}
.lookbook-title em { font-style: italic; color: var(--ink); font-weight: 300; }
.lookbook-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 16px; padding: 64px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.look { position: relative; margin: 0; }
.look-large { grid-column: span 8; aspect-ratio: 4/5; }
.look-small { grid-column: span 4; aspect-ratio: 3/4; }
.look-wide { grid-column: span 12; aspect-ratio: 21/9; }
.look-tall { grid-column: span 6; aspect-ratio: 3/4; }
.look-img {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; background: var(--bg-deep);
  border-radius: 8px;
}
.look-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--bg); }
.look:nth-child(1) .look-fallback { background: linear-gradient(135deg, var(--teal), var(--sea)); }
.look:nth-child(2) .look-fallback { background: linear-gradient(135deg, var(--coral), var(--sun)); }
.look:nth-child(3) .look-fallback { background: linear-gradient(135deg, var(--sea), var(--ink)); }
.look:nth-child(4) .look-fallback { background: linear-gradient(135deg, var(--accent), var(--coral)); }
.look:nth-child(5) .look-fallback { background: linear-gradient(135deg, var(--sun), var(--accent)); }
.look:nth-child(6) .look-fallback { background: linear-gradient(135deg, var(--ink), var(--sea)); }
.look-caption {
  position: absolute; left: 24px; bottom: 24px; z-index: 3;
  background: var(--bg); padding: 16px 22px;
  display: flex; flex-direction: column; gap: 4px;
  border-radius: 100px;
}
.lookbook-cta { text-align: center; padding: 120px var(--gutter); background: var(--ink); color: var(--bg); }
.lookbook-cta h2 { color: var(--bg); font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(48px, 6vw, 96px); margin-bottom: 32px; }
.lookbook-cta .btn-primary { background: var(--sun); color: var(--ink); }
.lookbook-cta .btn-primary:hover { background: var(--coral); color: var(--bg); }
@media (max-width: 900px) {
  .look-large, .look-small, .look-wide, .look-tall { grid-column: span 12; aspect-ratio: 4/5; }
}

/* ===== ABOUT / STORY ===== */
.about-page { padding: 0; }
.about-hero {
  text-align: center; padding: 100px var(--gutter) 80px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.about-hero::before {
  content: ''; position: absolute;
  top: 10%; left: 10%; width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral), transparent 70%);
  opacity: 0.4; filter: blur(30px);
}
.about-hero::after {
  content: ''; position: absolute;
  bottom: 10%; right: 10%; width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun), transparent 70%);
  opacity: 0.5; filter: blur(30px);
}
.about-title {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(80px, 11vw, 200px);
  margin: 32px 0;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em; position: relative; z-index: 1; line-height: 0.9;
}
.about-title em { font-style: italic; color: var(--coral); }

.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 80px;
  padding: 100px var(--gutter); max-width: var(--maxw); margin: 0 auto;
}
.about-text { display: flex; flex-direction: column; gap: 24px; }
.about-text h2 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(48px, 5vw, 88px); font-variation-settings: "opsz" 144; line-height: 0.95; }
.about-text h2 em { font-style: italic; color: var(--coral); }
.about-img {
  aspect-ratio: 4/5; position: relative;
  background: var(--bg-deep); overflow: hidden;
  border-radius: 12px;
}
.about-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 100%);
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 32px 0;
  border-block: 2px solid var(--coral); margin-top: 24px;
}
.about-stats li { display: flex; flex-direction: column; gap: 8px; }
.about-stats strong { color: var(--coral); font-family: var(--serif); font-size: 48px; font-style: italic; font-variation-settings: "opsz" 144; }
.about-stats span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.about-stats small { font-size: 0.5em; vertical-align: super; margin-left: 2px; }

.timeline { background: var(--ink); color: var(--bg); padding: 100px var(--gutter); }
.timeline h2 { color: var(--bg); font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(48px, 6vw, 88px); text-align: center; margin-bottom: 64px; }
.timeline-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; position: relative; max-width: var(--maxw); margin: 0 auto;
}
.timeline-grid::before {
  content: ''; position: absolute;
  top: 30px; left: 0; right: 0; height: 2px;
  background: var(--coral);
}
.timeline-item { text-align: center; position: relative; padding-top: 60px; }
.timeline-item::before {
  content: ''; position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%; background: var(--sun);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px var(--coral);
}
.timeline-year { font-family: var(--serif); font-size: 44px; color: var(--sun); font-style: italic; font-variation-settings: "opsz" 144; }
.timeline-item p { color: rgba(254,249,237,0.65); }
.timeline-item h4 { color: var(--bg); font-family: var(--serif); font-size: 22px; margin: 8px 0; font-weight: 500; }

.about-cta { text-align: center; padding: 120px var(--gutter); }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; gap: 48px; }
  .timeline-grid::before { display: none; }
}

/* ===== CART / CART PAGE ===== */
.cart-page { max-width: var(--maxw); margin: 0 auto; padding: 60px var(--gutter); }
.cart-page h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(56px, 8vw, 120px); font-variation-settings: "opsz" 144; line-height: 0.9; margin-bottom: 48px; }
.cart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: flex-start; }
.cart-list { display: flex; flex-direction: column; gap: 24px; }
.cart-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { aspect-ratio: 3/4; background: var(--bg-deep); overflow: hidden; border-radius: 8px; }
.cart-item-info { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.cart-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.cart-item-name { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
.cart-item-meta { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.cart-item-price { font-family: var(--serif); font-size: 20px; color: var(--coral); }
.cart-item-remove {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-mute); cursor: pointer;
  transition: all 0.2s; border-radius: 50%; background: transparent; border: none;
}
.cart-item-remove:hover { color: var(--coral); background: var(--bg-alt); }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; }
.qty-stepper button {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; background: none; border: none;
}
.qty-stepper button:hover:not(:disabled) { color: var(--coral); }
.qty-stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-stepper span { padding: 0 16px; font-size: 14px; font-weight: 600; }

.cart-summary {
  position: sticky; top: 120px;
  background: var(--bg-alt); padding: 32px;
  border-radius: 12px;
}
.cart-summary h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-bottom: 24px; }
.cart-line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-top: 2px solid var(--coral);
  margin-top: 12px; margin-bottom: 16px;
  font-family: var(--serif); font-size: 24px;
}
.cart-total .serif { color: var(--coral); }
.empty-state { text-align: center; padding: 120px 24px; color: var(--ink-mute); }
.empty-state h2 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(36px, 5vw, 60px); margin-bottom: 24px; }

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

/* ===== CHECKOUT ===== */
.checkout-page { min-height: 100vh; background: var(--bg); }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 100vh; }
.checkout-main { padding: 32px var(--gutter) 80px; max-width: 720px; margin-left: auto; width: 100%; }
.checkout-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line-soft); margin-bottom: 40px; }
.checkout-steps { display: flex; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; opacity: 0.4; }
.step.active { opacity: 1; }
.step-num {
  width: 36px; height: 36px; border: 2px solid var(--ink);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; font-weight: 600;
}
.step.active .step-num { background: var(--coral); border-color: var(--coral); color: var(--bg); }
.step-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkout-section { margin-bottom: 48px; }
.checkout-section h2 {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 36px; margin-bottom: 24px;
  font-variation-settings: "opsz" 144;
}
.ship-options, .pay-options { display: flex; flex-direction: column; gap: 12px; }
.ship-option, .pay-option { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1.5px solid var(--line); cursor: pointer; transition: all 0.2s; border-radius: 12px; }
.ship-option:hover, .pay-option:hover { border-color: var(--ink); }
.ship-option.active, .pay-option.active { border-color: var(--coral); background: var(--bg-alt); }
.ship-option > div, .pay-option > div { flex: 1; }
.ship-option input, .pay-option input { accent-color: var(--coral); }

.checkout-summary { background: var(--ink); color: var(--bg); padding: 32px var(--gutter) 80px 48px; max-width: 520px; }
.checkout-summary h3 { color: var(--bg); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 32px; margin-bottom: 16px; font-variation-settings: "opsz" 144; }
.checkout-summary .body-s { color: rgba(254,249,237,0.7); }
.checkout-summary .cart-total { border-top-color: var(--coral); }
.checkout-summary .label { color: var(--sun); }
.summary-list { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; border-bottom: 1px solid rgba(254,249,237,0.15); }
.summary-item { display: flex; align-items: center; gap: 16px; }
.summary-img { width: 64px; height: 80px; background: var(--bg-deep); position: relative; overflow: hidden; border-radius: 6px; }
.summary-qty { position: absolute; top: -8px; right: -8px; background: var(--coral); color: var(--bg); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.summary-totals { padding-top: 16px; }
.summary-perks { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(254,249,237,0.15); }
.summary-perks .perk { color: rgba(254,249,237,0.8); }
.summary-perks .perk svg { color: var(--sun); }

@media (max-width: 1000px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { max-width: none; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== CONFIRMATION ===== */
.confirmation-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 80px var(--gutter); text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.confirm-content { max-width: 640px; }
.confirm-icon { width: 88px; height: 88px; border-radius: 50%; background: var(--coral); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; animation: float 3s ease-in-out infinite; }
.confirm-icon svg { width: 36px; height: 36px; }
.confirm-content h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(48px, 6vw, 88px); font-variation-settings: "opsz" 144; line-height: 0.95; margin-bottom: 16px; }
.confirm-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px; background: var(--bg); margin: 48px 0 32px; border-radius: 12px; border: 2px solid var(--coral); text-align: left; }
.confirm-details > div { display: flex; flex-direction: column; gap: 8px; }
.confirm-details strong { color: var(--coral); font-family: var(--serif); font-size: 24px; }
.confirm-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ===== AUTH (login / register) ===== */
.auth-page {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 95px);
}
.auth-art { background: linear-gradient(135deg, var(--teal), var(--sea), var(--coral)); position: relative; overflow: hidden; color: var(--bg); padding: 80px var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art::before { content: ''; position: absolute; top: 10%; left: 10%; width: 200px; height: 200px; border-radius: 50%; background: var(--sun); opacity: 0.4; filter: blur(30px); }
.auth-art .display { font-size: clamp(48px, 6vw, 96px); color: var(--bg); position: relative; z-index: 1; }
.auth-art .eyebrow { color: var(--sun); }
.auth-form { padding: 80px var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 540px; margin: 0 auto; width: 100%; }
.auth-form h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(48px, 5vw, 80px); font-variation-settings: "opsz" 144; line-height: 0.95; margin: 16px 0 12px; }
.auth-form p { margin-bottom: 32px; }
.auth-form .field + .field { margin-top: 20px; }
.auth-form button[type="submit"] { width: 100%; margin-top: 24px; }
.auth-meta { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { min-height: 240px; padding: 48px var(--gutter); }
}

/* ===== ACCOUNT ===== */
.account-page { display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: var(--maxw); margin: 0 auto; padding: 60px var(--gutter); }
.account-nav { position: sticky; top: 120px; align-self: flex-start; display: flex; flex-direction: column; gap: 4px; }
.account-nav a {
  padding: 12px 16px; border-radius: 8px;
  font-size: 13px; letter-spacing: 0.04em;
  transition: all 0.2s; color: var(--ink-soft);
}
.account-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.account-nav a.active { background: var(--ink); color: var(--bg); }
.account-content > h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(48px, 6vw, 88px); font-variation-settings: "opsz" 144; margin-bottom: 24px; line-height: 0.95; }
.account-card { background: var(--bg-alt); border-radius: 12px; padding: 32px; margin-bottom: 24px; }
.account-card h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 16px; font-weight: 500; }
.account-card .field + .field { margin-top: 16px; }
.account-orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; background: var(--bg); border-radius: 12px; border-left: 4px solid var(--coral); }
.order-status { padding: 6px 14px; border-radius: 100px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; background: var(--bg-alt); color: var(--ink); }
.order-status.paid { background: var(--success); color: var(--bg); }
.order-status.shipped { background: var(--sun); color: var(--ink); }
.order-status.delivered { background: var(--teal); color: var(--bg); }
@media (max-width: 900px) {
  .account-page { grid-template-columns: 1fr; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ===== CONTACT ===== */
.contact-page { max-width: var(--maxw); margin: 0 auto; padding: 60px var(--gutter); }
.contact-hero { text-align: center; padding: 32px 0 64px; }
.contact-hero h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(64px, 9vw, 144px); font-variation-settings: "opsz" 144; line-height: 0.9; margin: 16px 0 24px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.contact-form .field + .field { margin-top: 16px; }
.contact-form button { margin-top: 24px; }
.contact-info { background: var(--bg-alt); padding: 40px; border-radius: 12px; display: flex; flex-direction: column; gap: 24px; }
.contact-info h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.contact-info p { font-size: 14px; line-height: 1.7; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== SEARCH OVERLAY (header dropdown) ===== */
.search-overlay {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--bg); z-index: 60;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  border-bottom: 2px solid var(--coral);
  box-shadow: 0 20px 40px rgba(10,61,61,0.1);
  pointer-events: none;
}
.search-overlay.open { transform: translateY(0); pointer-events: auto; }

/* ===== SEARCH PAGE ===== */
.search-page { padding: 60px var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.search-page h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(48px, 6vw, 96px); font-variation-settings: "opsz" 144; margin-bottom: 32px; }
.search-form { display: flex; gap: 12px; margin-bottom: 48px; }
.search-form input { flex: 1; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 10px 18px; border: 1.5px solid var(--line); font-size: 13px; cursor: pointer; background: transparent; transition: all 0.2s; border-radius: 100px; color: var(--ink); display: inline-block; }
.chip:hover { border-color: var(--coral); color: var(--coral); }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 160px var(--gutter); max-width: 720px; margin: 0 auto; }
.error-page h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(120px, 18vw, 280px); font-variation-settings: "opsz" 144; line-height: 0.9; margin-bottom: 16px; color: var(--coral); }
.error-page h2 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(32px, 4vw, 56px); font-variation-settings: "opsz" 144; margin-bottom: 24px; }

/* ===== LEGAL PAGES ===== */
.legal-page { max-width: 880px; margin: 0 auto; padding: 80px var(--gutter); font-size: 15px; line-height: 1.7; }
.legal-page h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(48px, 6vw, 96px); font-variation-settings: "opsz" 144; line-height: 0.95; margin-bottom: 8px; }
.legal-page .legal-eyebrow { display: block; margin-bottom: 16px; }
.legal-page .updated { color: var(--ink-mute); font-size: 13px; margin-bottom: 48px; }
.legal-page h2 { font-family: var(--serif); font-size: 28px; margin: 48px 0 16px; font-weight: 500; color: var(--ink); }
.legal-page h3 { font-family: var(--serif); font-size: 22px; margin: 32px 0 12px; font-weight: 500; }
.legal-page p { margin-bottom: 16px; color: var(--ink-soft); }
.legal-page ul { margin: 0 0 16px 24px; }
.legal-page li { list-style: disc; margin-bottom: 8px; color: var(--ink-soft); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.legal-page th, .legal-page td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.legal-page th { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); font-weight: 700; }
.legal-page a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; left: 24px; right: 24px; bottom: 24px;
  background: var(--bg); border: 2px solid var(--coral);
  border-radius: 16px; padding: 24px;
  z-index: 200; box-shadow: 0 24px 48px rgba(10,61,61,0.2);
  max-width: 640px; margin: 0 auto;
}
.cookie-banner h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; font-weight: 500; }
.cookie-banner p { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner-actions button { padding: 12px 20px; font-size: 11px; }
.cookie-banner-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.cookie-banner-toggle:last-child { border-bottom: none; }
.cookie-banner-detail { margin-top: 16px; display: none; }
.cookie-banner.expanded .cookie-banner-detail { display: block; }

/* ===== SIZE GUIDE ===== */
.size-guide-card { max-width: 760px; }
.unit-toggle { display: inline-flex; border: 1.5px solid var(--line); margin: 32px 0 24px; border-radius: 100px; overflow: hidden; }
.unit-toggle button { padding: 10px 22px; font-size: 11px; letter-spacing: 0.18em; font-weight: 600; cursor: pointer; }
.unit-toggle button.active { background: var(--ink); color: var(--bg); }
.size-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.size-table th, .size-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.size-table th { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--coral); }
.size-table tr:hover { background: var(--bg-alt); }
.size-tips { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tip { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .tips-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  /* minmax(0,1fr) so wide content (brand paragraph) doesn't expand the column */
  .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; } /* brand spans full width on mobile */
  .collections-grid { grid-template-columns: 1fr; gap: 24px; } /* one column < 900px */
  /* Switch to flex on mobile + absolutely position brand so it's perfectly centered */
  .header-bar {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 18px var(--gutter); gap: 0; position: relative;
  }
  .nav-left { display: none; }
  .brand-mark {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
  }
  .nav-right { gap: 14px; }
  .nav-right .icon-btn { width: 32px; height: 32px; }
  .announcement { font-size: 10px; padding: 10px; }
}
@media (max-width: 480px) {
  .brand-mark { font-size: 22px; }
  .nav-right { gap: 8px; }
  .nav-right .icon-btn { width: 30px; height: 30px; }
  .nav-right .icon-btn svg { width: 16px; height: 16px; }
  /* Mobile single-column footer for narrow screens */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: 1; }
  /* Single-col product grid on very small phones */
  .product-grid, .product-grid.grid-2, .product-grid.grid-3, .product-grid.grid-4 { grid-template-columns: 1fr; gap: 32px; }
  .values { grid-template-columns: 1fr; gap: 16px; padding: 48px var(--gutter); }
  .marquee-row { font-size: 28px; }
  .section { padding: 60px var(--gutter); }
  .section-head { margin-bottom: 32px; }
  .editorial-text { padding: 56px var(--gutter); gap: 20px; }
}
@media (min-width: 1600px) { body { font-size: 16px; } }
