/* Maple & Mint store. Brand colours from the original Shopify theme (forest, mint, maple). */
:root {
  --forest: #0f2b24;
  --forest-2: #1b3d34;
  --mint: #3ddc97;
  --mint-soft: #dcf7ea;
  --maple: #ff5a36;
  --maple-ink: #c8381a;
  --paper: #f3f6f4;
  --card: #ffffff;
  --ink: #12201c;
  --muted: #5a6b65;
  --line: #dce4e0;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1240px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price { font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---------- header ---------- */
.top { background: var(--forest); color: #fff; position: sticky; top: 0; z-index: 20; }
.top__row { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo svg { width: 38px; height: 38px; }
.logo span { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; white-space: nowrap; }
.logo i { font-style: normal; color: var(--maple); }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; }
.search input {
  flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 999px 0 0 999px; padding: 0 18px;
  background: #fff; color: var(--ink);
}
.search button {
  height: 44px; border: 0; border-radius: 0 999px 999px 0; padding: 0 18px; background: var(--mint);
  color: var(--forest); font-weight: 800; cursor: pointer;
}
.cartlink {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 9px 14px;
  border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); white-space: nowrap;
}
.cartlink:hover { border-color: var(--mint); }
.cartlink b {
  min-width: 24px; height: 24px; border-radius: 999px; background: var(--maple); color: #fff; font-size: 13px;
  display: inline-grid; place-items: center; padding: 0 6px;
}
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  color: rgba(255,255,255,.82);
}
.cats a:hover, .cats a[aria-current] { background: var(--forest-2); color: #fff; }
.cats a[aria-current] { box-shadow: inset 0 0 0 1.5px var(--mint); }
.note { background: var(--mint); color: var(--forest); font-size: 14px; font-weight: 700; text-align: center; padding: 8px 16px; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 30px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.mosaic a {
  background: var(--card); border-radius: var(--radius); aspect-ratio: 1; padding: 12px; display: grid; place-items: center;
  overflow: hidden; position: relative;
}
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; padding: 26px; }
.mosaic img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic span {
  position: absolute; left: 10px; bottom: 10px; background: var(--forest); color: #fff; font-size: 13px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px;
  border: 0; background: var(--forest); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; font-size: 16px;
}
.btn:hover { background: var(--forest-2); }
.btn--mint { background: var(--mint); color: var(--forest); }
.btn--mint:hover { background: #5ae6a8; }
.btn--ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
.section { padding: 34px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin: 0; font-weight: 800; }
.section__head a { font-weight: 700; color: var(--forest); text-underline-offset: 4px; white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tile {
  background: var(--card); border-radius: var(--radius); padding: 14px; text-decoration: none; display: grid;
  grid-template-columns: 64px 1fr; gap: 12px; align-items: center; border: 1.5px solid transparent;
}
.tile:hover { border-color: var(--forest); }
.tile img { width: 64px; height: 64px; object-fit: contain; }
.tile b { display: block; font-size: 15px; line-height: 1.25; }
.tile small { color: var(--muted); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.card {
  background: var(--card); border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column;
  overflow: hidden; border: 1.5px solid transparent; transition: border-color .15s;
}
.card:hover { border-color: var(--forest); }
.card__img { aspect-ratio: 1; padding: 16px; display: grid; place-items: center; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title {
  font-size: 14.5px; line-height: 1.35; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.card .price { font-size: 18px; margin-top: auto; }

/* ---------- collection / search ---------- */
.page-head { padding: 34px 0 10px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; margin: 0 0 6px; line-height: 1.1; }
.page-head p { margin: 0; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 18px 0; }
.tools select, .tools input {
  height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px;
}
.more { display: flex; justify-content: center; margin: 28px 0 10px; }
.empty { background: var(--card); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); }

/* ---------- product ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 20px 0 0; }
.crumbs a { text-underline-offset: 3px; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 18px 0 30px; align-items: start; }
.gallery__main { background: var(--card); border-radius: var(--radius-lg); aspect-ratio: 1; padding: 30px; display: grid; place-items: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button {
  flex: none; width: 76px; height: 76px; background: var(--card); border-radius: var(--radius-sm); padding: 6px;
  border: 2px solid transparent; cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--forest); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { position: sticky; top: 130px; }
.buy h1 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 8px; }
.buy .brand { color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.buy .price { font-size: 34px; letter-spacing: -0.02em; display: block; margin-bottom: 4px; }
.buy .tax { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 999px; }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy__row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.buy__row .btn { flex: 1; min-width: 160px; }
.perks { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1.5px solid var(--line); display: grid; gap: 12px; font-size: 15px; }
.perks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.perks svg { width: 22px; height: 22px; color: var(--forest); }
.perks b { display: block; }
.perks span { color: var(--muted); }
.added { margin: 6px 0 0; font-weight: 700; color: var(--forest); min-height: 1.5em; }
.desc { background: var(--card); border-radius: var(--radius-lg); padding: 30px 34px; max-width: 860px; }
.desc h2, .desc h3 { letter-spacing: -0.02em; line-height: 1.25; }
.desc h2 { font-size: 24px; margin-top: 0; }
.desc h3 { font-size: 19px; }
.desc li { margin-bottom: 6px; }

/* ---------- cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 40px; }
.lines { display: grid; gap: 10px; }
.line {
  background: var(--card); border-radius: var(--radius); padding: 14px; display: grid;
  grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center;
}
.line img { width: 84px; height: 84px; object-fit: contain; }
.line a { font-weight: 600; text-decoration: none; line-height: 1.35; }
.line a:hover { text-decoration: underline; }
.line .qty { height: 40px; margin-top: 8px; }
.line .qty button { width: 36px; }
.line__end { text-align: right; display: grid; gap: 8px; justify-items: end; }
.remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0; }
.summary { background: var(--card); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 130px; }
.summary h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -0.02em; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 700; font-size: 14px; padding: 0; }
.field select { height: 46px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); padding: 0 12px; background: #fff; }
fieldset.field { border: 0; margin: 0 0 16px; padding: 0; }
.addr fieldset { border: 0; margin: 0 0 6px; padding: 0; }
.addr legend { font-weight: 800; font-size: 16px; margin-bottom: 10px; padding: 0; }
.addr .field { margin-bottom: 12px; }
.addr label span { color: var(--muted); font-weight: 500; }
.field input {
  height: 46px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); padding: 0 12px; background: #fff; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px var(--mint-soft); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--maple-ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-error { color: var(--maple-ink); font-size: 13px; font-weight: 700; margin: 2px 0 0; }
.suggest { border: 1.5px solid var(--forest); background: var(--mint-soft); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; }
.suggest__title { font-weight: 800; margin: 0 0 10px; }
.suggest__choices { display: grid; gap: 8px; }
.suggest__choices label {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: #fff; border-radius: var(--radius-sm);
  padding: 10px 12px; border: 1.5px solid var(--line); cursor: pointer; font-size: 14px;
}
.suggest__choices label:has(input:checked) { border-color: var(--forest); }
.suggest__choices b { display: block; }
.suggest__choices span span { color: var(--muted); }
.suggest .fine { margin-top: 8px; }
.speed { display: grid; gap: 8px; }
.speed label {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 12px; cursor: pointer; font-weight: 600; font-size: 15px;
}
.speed label:has(input:checked) { border-color: var(--forest); background: var(--mint-soft); }
.speed small { display: block; color: var(--muted); font-weight: 500; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 18px 0; font-size: 15px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: right; font-weight: 700; }
.sum .total { font-size: 20px; color: var(--ink); font-weight: 800; padding-top: 10px; border-top: 1.5px solid var(--line); }
.summary .btn { width: 100%; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.error { color: var(--maple-ink); font-weight: 700; margin: 12px 0 0; }

/* ---------- text pages ---------- */
.prose { background: var(--card); border-radius: var(--radius-lg); padding: 34px 38px; max-width: 820px; margin-bottom: 40px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.thanks { text-align: center; padding: 70px 20px 90px; max-width: 640px; margin: 0 auto; }
.thanks svg { width: 74px; height: 74px; margin: 0 auto 18px; }
.thanks h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; margin: 0 0 12px; }
.thanks p { color: var(--muted); font-size: 18px; }

/* ---------- footer ---------- */
.foot { background: var(--forest); color: rgba(255,255,255,.78); margin-top: 40px; padding: 44px 0 30px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot h2 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot small { display: block; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }

@media (max-width: 900px) {
  .hero__grid, .product, .cart { grid-template-columns: 1fr; }
  .buy, .summary { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top__row { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cartlink { margin-left: auto; }
  .logo span { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail { grid-auto-columns: 46%; }
  .card__img { padding: 10px; }
  .card__body { padding: 0 10px 12px; }
  .hero { padding-top: 26px; }
  .line { grid-template-columns: 64px 1fr; }
  .line img { width: 64px; height: 64px; }
  .line__end { grid-column: 2; justify-items: start; text-align: left; }
  .desc, .prose { padding: 22px 18px; }
  .gallery__main { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
