/* Linea Activewear — shared styles */
:root {
  --ground: #F5F2EC;
  --sand: #EBE6DD;
  --stone: #DCD6CC;
  --line: #CFC8BC;
  --ink: #1F1E1B;
  --body: #3D3A35;
  --muted: #5E5A53;
  --accent: #2E3A33;
  --accent-soft: #DCE3DD;
  --dark: #3B3731;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.serif { font-family: var(--serif); }
.eyebrow { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.muted { color: var(--muted); }
.h1 { font-family: var(--serif); font-size: clamp(38px, 5.5vw, 72px); line-height: 1.05; }
.h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; }
.section { padding-top: 88px; padding-bottom: 88px; }
.band { background: var(--sand); }
.band-accent { background: var(--accent); color: var(--ground); }
.band-accent .muted, .band-accent .eyebrow { color: var(--accent-soft); }
.band-accent a { color: var(--ground); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: 0.06em; cursor: pointer; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ground); }
.btn-primary:hover { color: var(--ground); background: #26302a; }
.btn-light { background: var(--ground); border-color: var(--ground); color: var(--ink); }
.btn-outline-light { border-color: var(--ground); color: var(--ground); }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--muted); border-color: var(--muted); color: var(--ground); cursor: not-allowed; }
.link-btn { padding: 0; border: 0; background: none; text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; border-radius: 0; }
textarea.input { padding: 12px 14px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Header */
.announce { background: var(--accent); text-align: center; padding: 10px 16px; font-size: 13px; letter-spacing: 0.04em; }
.announce a { color: var(--ground); text-decoration: none; }
.site-header { border-bottom: 1px solid var(--stone); background: var(--ground); position: relative; z-index: 20; }
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.main-nav { display: flex; gap: 28px; font-size: 14px; }
.main-nav a { text-decoration: none; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.logo .rule { display: block; width: 56px; height: 1px; background: var(--ink); }
.logo .word { font-family: var(--serif); font-size: 30px; letter-spacing: 0.08em; line-height: 1; }
.logo .sub { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.header-icons { display: flex; justify-content: flex-end; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 21px; height: 21px; }
.badge { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: var(--ground); font-size: 10px; line-height: 17px; text-align: center; padding: 0 4px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--stone); padding: 8px 24px 20px; }
.mobile-menu a { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid var(--stone); text-decoration: none; font-size: 16px; }
.mobile-menu.open { display: block; }

/* Footer */
.site-footer { background: var(--ink); color: #E6E0D6; }
.site-footer a { color: #B8B1A5; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer .links { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 6px 32px; font-size: 14px; }
.site-footer .links a { min-height: 32px; display: flex; align-items: center; }
.site-footer .bottom { border-top: 1px solid var(--dark); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #B8B1A5; }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; max-width: 420px; }
.newsletter .input { flex: 1 1 200px; background: transparent; border-color: var(--muted); color: var(--ground); }

/* Placeholder imagery */
.ph { background: var(--stone); color: var(--muted); font-size: 12px; display: flex; align-items: flex-end; padding: 14px; }
.ph.dark { background: var(--dark); color: #CFC8BC; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: var(--ground); }
.hero .ph-note { position: absolute; top: 24px; right: 24px; max-width: 320px; font-size: 12px; color: #CFC8BC; text-align: right; }
.hero .inner { padding-bottom: 72px; width: 100%; }
.hero p.lead { margin: 24px 0 36px; font-size: 18px; max-width: 520px; color: #E6E0D6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card .media { position: relative; }
.card .tag { position: absolute; top: 12px; left: 12px; background: var(--ground); font-size: 11px; letter-spacing: 0.08em; padding: 4px 10px; }
.card .row { display: flex; justify-content: space-between; gap: 12px; }
.code { font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 24px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.steps li { border-top: 1px solid var(--ink); padding: 20px 0 32px; }
.steps .n { font-family: var(--serif); font-size: 22px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ticks li { display: flex; gap: 10px; }
.ticks svg { flex: 0 0 auto; margin-top: 3px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* Accordions */
.acc { border-top: 1px solid var(--stone); }
.acc details { border-bottom: 1px solid var(--stone); padding: 16px 0; }
.acc summary { cursor: pointer; font-size: 16px; min-height: 28px; }
.acc details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Product page */
.pdp { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.pdp .gallery { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pdp .gallery .wide { grid-column: 1 / -1; }
.pdp .info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; padding: 4px; border: 1.5px solid transparent; background: none; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.size { min-height: 48px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; }
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.size.out { color: #8C877F; text-decoration: line-through; }
.size.out[aria-pressed="true"] { color: var(--ground); }
.notice { border: 1px solid var(--stone); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.status { padding: 12px 14px; background: var(--sand); font-size: 14px; }

/* Cart */
.layout-2 { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.layout-2 > .main { flex: 999 1 560px; min-width: 0; }
.layout-2 > .side { flex: 1 1 340px; min-width: 0; }
.line-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
.line-items li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--stone); }
.line-items .thumb { flex: 0 0 110px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; }
.summary { border: 1px solid var(--stone); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dd { margin: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--stone); padding-top: 16px; }

/* Choice tiles (checkout) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; }
.choice:has(input:checked) { border: 1.5px solid var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: 14px; font-family: var(--serif); font-size: 28px; font-weight: 500; }

/* Chips / tabs */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: transparent; border-radius: 20px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--stone); }
.tab { min-height: 52px; padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; cursor: pointer; font-size: 16px; color: var(--muted); }
.tab[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.sticky-bar { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 1px solid var(--stone); }

/* Tables */
.table-box { overflow-x: auto; border: 1px solid var(--stone); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; }
thead tr { background: var(--sand); }
tbody tr { border-top: 1px solid var(--sand); }
th { font-weight: 500; }

/* Legal pages */
.legal { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.legal .toc { flex: 1 1 220px; position: sticky; top: 24px; display: flex; flex-direction: column; font-size: 14px; }
.legal .toc a { text-decoration: none; min-height: 34px; display: flex; align-items: center; }
.legal article { flex: 999 1 600px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 48px; color: var(--body); line-height: 1.7; }
.legal article h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink); margin-bottom: 12px; }
.legal article ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.callout { background: var(--sand); padding: 32px; }

/* Timeline (track) */
.progress { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.progress li { display: flex; flex-direction: column; gap: 10px; }
.progress .track { display: flex; align-items: center; }
.progress .node { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: var(--ground); }
.progress .bar { flex: 1; height: 2px; background: var(--line); }
.progress li.done .node { background: var(--accent); border-color: var(--accent); }
.progress li.done .bar { background: var(--accent); }
.progress li.current .node { border-color: var(--accent); border-width: 2px; }
.progress li:last-child .bar { visibility: hidden; }
.progress .label { font-size: 15px; padding-right: 12px; }
.progress li.todo .label { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 12px 20px; font-size: 14px; z-index: 50; }

/* Mobile */
@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .announce { font-size: 12px; }
  .site-header .bar { grid-template-columns: 88px 1fr 88px; padding-top: 6px; padding-bottom: 6px; gap: 0; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo .word { font-size: 24px; }
  .logo .rule { width: 40px; }
  .logo .sub { font-size: 8px; }
  .header-icons .hide-sm { display: none; }
  .hero { min-height: 580px; }
  .hero .ph-note { left: 20px; right: 20px; top: 16px; text-align: left; max-width: none; }
  .hero .inner { padding-bottom: 40px; }
  .hero p.lead { font-size: 15px; margin: 16px 0 24px; }
  .hero .btn-row .btn { width: 100%; }
  .scroller { grid-auto-columns: 240px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .scroller > * { scroll-snap-align: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .pdp .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; gap: 0; scrollbar-width: none; }
  .pdp .gallery > * { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 4; }
  .line-items .thumb { flex-basis: 84px; }
  .progress { grid-template-columns: 1fr; gap: 0; }
  .progress li { flex-direction: row; gap: 14px; }
  .progress .track { flex-direction: column; align-self: stretch; }
  .progress .bar { width: 2px; height: auto; min-height: 28px; }
  .progress .label { padding-bottom: 18px; }
  .legal .toc { position: static; }
  .mobile-sticky { position: sticky; bottom: 0; background: var(--ground); border-top: 1px solid var(--stone); padding: 12px 20px 16px; margin: 0 -20px; }
}
