/* Atelier Linde | fictional demo store built on Shopzo */

@font-face { font-family: 'Young Serif'; src: url('fonts/YoungSerif-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/HankenGrotesk-var.woff') format('woff'); font-weight: 100 900; font-display: swap; }

:root {
  --linen: #F2EEE6;      /* page */
  --paper: #FAF8F3;      /* raised surfaces */
  --olive: #353B2E;      /* text, primary buttons */
  --olive-soft: #5E6652; /* secondary text */
  --leaf: #8C9B78;       /* linden leaf: links, focus, selected */
  --blossom: #E6EAC8;    /* linden blossom: highlight band */
  --powder: #E7C7BF;     /* sale */
  --line: #DCD6CA;
  --radius: 14px;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--olive); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(242, 238, 230, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { font-family: var(--serif); font-size: 1.55rem; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.brand-leaf { width: 22px; height: 22px; border-radius: 50% 0; background: var(--leaf); transform: rotate(-45deg); flex: none; }
.main-nav { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
.main-nav a { white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { background: var(--paper); }
.main-nav a[aria-current="page"] { background: var(--olive); color: var(--linen); }
.header-actions { display: flex; flex: none; gap: 6px; margin-left: auto; }
.icon-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; }
.icon-link:hover { background: var(--paper); }
.icon-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-link.bag { background: var(--olive); color: var(--linen); }
.icon-link.bag:hover { background: #262b20; }
.count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--blossom); color: var(--olive); font-size: 0.75rem; font-weight: 700; display: none; align-items: center; justify-content: center; padding: 0 6px; }
.fav-link .count { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; font-size: 0.68rem; background: var(--powder); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--olive); background: var(--olive); color: var(--linen); text-decoration: none; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn:hover { background: #262b20; }
.btn:disabled { background: #9da291; border-color: #9da291; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--olive); }
.btn--ghost:hover { background: var(--paper); }
.text-link { color: var(--olive); text-decoration-color: var(--leaf); text-underline-offset: 4px; text-decoration-thickness: 1.5px; font-weight: 500; }

/* ---------- Home: hero ---------- */
.hero { position: relative; }
.hero-photo { width: 100%; height: min(82vh, 760px); object-fit: cover; object-position: 50% 40%; }
.hero-card { position: absolute; left: 28px; bottom: 28px; max-width: 470px; background: var(--linen); border-radius: var(--radius); padding: 30px 32px 32px; }
.hero-card h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 14px; }
.hero-card p { color: var(--olive-soft); margin-bottom: 22px; max-width: 38ch; }
.hero-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { color: var(--olive-soft); max-width: 46ch; margin-top: 8px; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
.card { position: relative; text-decoration: none; display: block; }
.card-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #e6e1d6; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-tag { position: absolute; left: 12px; top: 12px; padding: 4px 11px; border-radius: 999px; background: var(--paper); font-size: 0.8rem; font-weight: 600; }
.card-tag--sale { background: var(--powder); }
.card-tag--out { background: var(--olive); color: var(--linen); }
.card-fav { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.card-fav svg, .pd-fav svg { width: 18px; height: 18px; fill: none; stroke: var(--olive); stroke-width: 1.7; }
.card-fav.active svg, .pd-fav.active svg { fill: #C98E84; stroke: #C98E84; }
.card-body { padding-top: 12px; }
.card-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.card:hover .card-name { text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 4px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font-weight: 600; }
.price-old { text-decoration: line-through; color: var(--olive-soft); font-weight: 400; margin-left: 8px; font-size: 0.92em; }
.dots { display: flex; gap: 5px; }
.dot { width: 16px; height: 16px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(53, 59, 46, 0.18); }
.card-sizes { color: var(--olive-soft); font-size: 0.86rem; margin-top: 2px; }
.grid-note { grid-column: 1 / -1; padding: 40px 0; color: var(--olive-soft); }

/* ---------- Colour swatches (the signature element) ---------- */
.swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.swatch { text-decoration: none; display: block; }
.swatch-cloth { display: block; aspect-ratio: 1; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(53, 59, 46, 0.12); transition: box-shadow .15s; }
.swatch:hover .swatch-cloth { box-shadow: inset 0 0 0 1px rgba(53, 59, 46, 0.12), 0 0 0 3px var(--linen), 0 0 0 5px var(--leaf); }
.swatch-name { display: block; text-align: center; margin-top: 10px; font-weight: 500; }
.swatch-count { display: block; text-align: center; font-size: 0.85rem; color: var(--olive-soft); }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.collection { text-decoration: none; }
.collection img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius); }
.collection h3 { font-size: 1.3rem; margin-top: 12px; }
.collection span { color: var(--olive-soft); font-size: 0.92rem; }
.collection:hover h3 { text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 5px; }

/* ---------- Atelier band ---------- */
.atelier { margin-top: 96px; background: var(--blossom); }
.atelier-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 28px; }
.atelier img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.atelier h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.atelier p { max-width: 50ch; margin-bottom: 14px; }
.promises { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.promises li { display: flex; gap: 12px; align-items: baseline; }
.promises li::before { content: ''; width: 10px; height: 10px; border-radius: 50% 0; background: var(--leaf); transform: rotate(-45deg) translateY(-1px); flex: none; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 64px 0 34px; background: var(--olive); color: #E9E7DD; }
.site-footer a { color: #E9E7DD; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; }
.footer-grid p { color: #C9CABB; max-width: 34ch; }
.demo-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(233, 231, 221, 0.18); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.86rem; color: #B9BBAA; }
main + .site-footer, .atelier + .site-footer { margin-top: 0; }
.page-end { height: 96px; }

/* ---------- Page header (shop, bag, favourites) ---------- */
.page-head { padding: 48px 0 26px; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-head p { color: var(--olive-soft); margin-top: 8px; }
.crumbs { font-size: 0.9rem; color: var(--olive-soft); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Shop filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 16px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-group > span { font-weight: 600; font-size: 0.92rem; margin-right: 4px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 0.92rem; }
.chip:hover { border-color: var(--olive); }
.chip[aria-pressed="true"] { background: var(--olive); color: var(--linen); border-color: var(--olive); }
.chip-dot { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(53, 59, 46, 0.18); }
.chip-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--linen), 0 0 0 4px var(--olive); }
.filters select { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; }
.filter-summary { margin-left: auto; color: var(--olive-soft); font-size: 0.92rem; }
.clear-filters { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 4px; }

/* ---------- Product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding-top: 34px; align-items: start; }
.pd-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: 96px; }
.pd-thumbs { display: flex; flex-direction: column; gap: 10px; }
.pd-thumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 5; opacity: .62; background: #e6e1d6; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--olive); }
.pd-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #e6e1d6; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(250, 248, 243, .92); cursor: pointer; display: none; align-items: center; justify-content: center; }
.pd-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--olive); stroke-width: 1.8; }
.pd-arrow--prev { left: 12px; } .pd-arrow--next { right: 12px; }
.pd-info h1 { font-size: clamp(2.2rem, 3.6vw, 3rem); margin-bottom: 10px; }
.pd-sub { color: var(--olive-soft); margin-bottom: 18px; }
.pd-price { font-size: 1.35rem; font-weight: 600; margin-bottom: 22px; }
.pd-price .price-sale { color: #9B5C51; }
.pd-desc { max-width: 56ch; margin-bottom: 28px; }
.pd-option { margin-bottom: 22px; }
.pd-option-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pd-option-head strong { font-weight: 600; }
.pd-option-head .chosen { font-weight: 400; color: var(--olive-soft); }
.pd-values { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-color { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(53, 59, 46, .18); position: relative; }
.opt-color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--linen), 0 0 0 5px var(--olive); }
.opt-color.soldout::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: var(--olive); transform: rotate(-45deg); }
.opt-size { min-width: 64px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 500; }
.opt-size:hover { border-color: var(--olive); }
.opt-size[aria-pressed="true"] { background: var(--olive); color: var(--linen); border-color: var(--olive); }
.opt-size.soldout { color: #9a9d8f; text-decoration: line-through; background: transparent; border-style: dashed; }
.opt-size.soldout[aria-pressed="true"] { background: #9a9d8f; color: var(--linen); border-color: #9a9d8f; }
.size-guide-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: .92rem; text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 4px; }
.pd-missing .pd-option-head strong { color: #9B5C51; }
.pd-hint { min-height: 1.6em; color: #9B5C51; font-size: .92rem; margin: -6px 0 10px; }
.pd-buy { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.pd-buy .btn { flex: 1; }
.pd-fav { width: 54px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pd-stock { font-size: .95rem; margin-bottom: 26px; }
.pd-stock .low { color: #9B5C51; font-weight: 600; }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.pd-facts div { background: var(--paper); border-radius: 12px; padding: 14px 16px; font-size: .92rem; }
.pd-facts strong { display: block; font-weight: 600; }
.pd-specs { border-top: 1px solid var(--line); }
.pd-specs div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pd-specs dt { color: var(--olive-soft); }
.pd-specs dd { margin: 0; }
.related { padding-top: 96px; }

dialog { border: 0; border-radius: var(--radius); padding: 30px; max-width: 560px; width: calc(100% - 32px); background: var(--paper); color: var(--olive); }
dialog::backdrop { background: rgba(53, 59, 46, .45); }
dialog h2 { font-size: 1.6rem; margin-bottom: 8px; }
dialog p { color: var(--olive-soft); margin-bottom: 16px; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-table th, .size-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.size-table th { font-weight: 600; }
.dialog-close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--linen); cursor: pointer; font-size: 1.3rem; line-height: 1; }

/* ---------- Bag ---------- */
.bag-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 48px; align-items: start; }
.bag-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bag-line img, .bag-thumb { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: #e6e1d6; }
.bag-line h3 { font-size: 1.15rem; }
.bag-line .variant { color: var(--olive-soft); font-size: .92rem; }
.bag-line .actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.stepper span { min-width: 26px; text-align: center; font-weight: 600; }
.remove { background: none; border: 0; padding: 0; cursor: pointer; font-size: .9rem; color: var(--olive-soft); text-decoration: underline; text-underline-offset: 3px; }
.bag-line .line-price { font-weight: 600; }
.summary { background: var(--paper); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.summary h2 { font-size: 1.5rem; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.sum-hint { font-size: .88rem; color: var(--olive-soft); min-height: 1.4em; }
.form { display: grid; gap: 12px; margin-top: 20px; }
.form label { display: grid; gap: 5px; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; }
.form .row { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.form .row-pc { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.form-error { color: #9B5C51; font-size: .92rem; display: none; }
.form .btn { margin-top: 6px; }
.secure { font-size: .84rem; color: var(--olive-soft); }
.empty { padding: 30px 0 10px; }
.empty p { margin-bottom: 18px; color: var(--olive-soft); }

/* ---------- Thank you ---------- */
.thanks { max-width: 640px; padding: 80px 0 40px; }
.thanks h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.thanks p { margin-bottom: 18px; color: var(--olive-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd { grid-template-columns: 1fr; gap: 30px; }
  .pd-gallery { position: static; }
  .bag-page { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header-row { height: 60px; gap: 10px; }
  .brand { font-size: 1.3rem; }
  .icon-link .label { display: none; }
  .icon-link { padding: 9px 11px; }
  .main-nav { order: 3; flex: 0 0 100%; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; background: var(--paper); }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; }
  .hero-photo { height: 64vh; }
  .hero-card { position: relative; left: auto; bottom: auto; margin: -56px 16px 0; padding: 24px; }
  .section { padding-top: 64px; }
  .section-head { flex-direction: column; align-items: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .card-name { font-size: 1rem; }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .atelier-inner { grid-template-columns: 1fr; gap: 26px; padding: 48px 16px; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbs { order: 2; flex-direction: row; overflow-x: auto; }
  .pd-thumb { width: 64px; flex: none; }
  .pd-arrow { display: flex; }
  .pd-specs div { grid-template-columns: 110px 1fr; }
  .bag-line { grid-template-columns: 76px 1fr; }
  .bag-line img, .bag-thumb { width: 76px; }
  .bag-line .line-price { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-summary { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
