/* MiniMiles store. Palette from Brand Guideline v1.0 (Sand Mist, Stone Greige, Terracotta Clay). */
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600&family=Lexend+Exa:wght@400;500&family=Yellowtail&display=swap");

:root {
  --sand: #EBE7E2;
  --surface: #FAF8F5;
  --ink: #3A322F;
  --muted: #776962;
  --line: #DCD5CD;
  --greige: #9D8D86;
  --clay: #D6AA89;
  --clay-dark: #8A6A58;
  --sky: #A9C3CF;
  --radius: 18px;
  --font: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --label: "Lexend Exa", var(--font);
  /* Placeholder script: official MiniMiles script font (Beverly Drive Right) is not licensed for web yet */
  --script: "Yellowtail", "Snell Roundhand", cursive;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.kicker { font-family: var(--label); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.script { font-family: var(--script); font-weight: 400; color: var(--clay); line-height: 1.1; }
h1, h2, h3 { font-weight: 400; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 28px; background: var(--ink); color: var(--surface); text-decoration: none; font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; transition: background .2s; }
.btn:hover { background: var(--clay-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--surface); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.block { width: 100%; }

/* Preview banner */
.preview-bar { background: var(--clay); color: var(--ink); text-align: center; font-size: 13px; padding: 8px 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250,248,245,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { width: 76px; height: 41px; background: var(--greige); -webkit-mask: url(../img/brand/logo-stacked.png) center/contain no-repeat; mask: url(../img/brand/logo-stacked.png) center/contain no-repeat; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.currency { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 10px; font-size: 13px; color: var(--ink); }
.cart-btn { position: relative; border: 0; background: transparent; padding: 6px; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--clay-dark); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 760px) { .nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--sand); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(52px, 7vw, 92px); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 30em; margin: 18px 0 32px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.cloud { position: absolute; pointer-events: none; }
.flight-path { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; } }

/* Values strip */
.values { border-bottom: 1px solid var(--line); }
.values .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 22px; font-family: var(--label); font-size: 12px; letter-spacing: .22em; color: var(--greige); }

/* Sections */
section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(38px, 4.5vw, 56px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--muted); }
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4/5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 16px 4px 0; display: grid; gap: 2px; }
.card-cat { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--greige); }
.card-name { font-size: 17px; font-weight: 400; }
.card-sub { font-size: 14px; color: var(--muted); }
.price { font-weight: 500; margin-top: 6px; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--surface); border-radius: 999px; font-size: 11px; padding: 4px 10px; color: var(--muted); }

/* Placeholder visual when a product photo is missing */
.ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; background: var(--sand); }
.ph .script { font-size: 34px; color: var(--greige); }
.ph small { display: block; margin-top: 8px; font-family: var(--label); font-size: 10px; letter-spacing: .2em; color: var(--greige); text-transform: uppercase; }

/* Story */
.story { background: var(--sand); }
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.story p { color: var(--muted); font-size: 17px; }
@media (max-width: 860px) { .story .wrap { grid-template-columns: 1fr; } }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.benefit { border-top: 1px solid var(--line); padding-top: 20px; }
.benefit h3 { font-size: 17px; margin-bottom: 6px; font-weight: 400; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--greige); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--sand); padding: 64px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer a { color: var(--sand); text-decoration: none; opacity: .8; }
.site-footer a:hover { opacity: 1; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo { background: var(--sand); width: 96px; height: 52px; margin-bottom: 16px; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-logos span { border: 1px solid rgba(235,231,226,.3); border-radius: 6px; padding: 4px 10px; font-size: 12px; }
.copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(235,231,226,.15); opacity: .6; font-size: 12px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0 88px; }
.product .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.product .media img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-size: clamp(34px, 4vw, 48px); }
.product .sub { color: var(--muted); font-size: 18px; margin-top: 4px; }
.product .price { font-size: 22px; margin: 20px 0; }
.product ul.specs { padding-left: 18px; color: var(--muted); }
.opt-label { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--greige); margin: 20px 0 8px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: transparent; width: 40px; height: 44px; font-size: 18px; }
.qty input { width: 44px; border: 0; text-align: center; font: inherit; background: transparent; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.breadcrumb { font-size: 13px; color: var(--muted); padding-top: 24px; }
.breadcrumb a { text-decoration: none; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* Cart drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(40,34,31,.4); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); z-index: 41; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
body.cart-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer header button { border: 0; background: transparent; font-size: 24px; }
.drawer .items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sand); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .name { font-size: 15px; }
.line .meta { font-size: 13px; color: var(--muted); }
.line .rm { border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.drawer footer { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; gap: 16px; }
.row span:last-child { white-space: nowrap; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; padding: 48px 0 88px; }
.checkout h1 { font-size: 40px; margin-bottom: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.methods { display: grid; gap: 10px; }
.method { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; }
.method:has(input:checked) { border-color: var(--ink); }
.method strong { font-weight: 500; display: block; }
.method span { font-size: 13px; color: var(--muted); }
.summary { background: var(--sand); border-radius: var(--radius); padding: 28px; align-self: start; position: sticky; top: 96px; display: grid; gap: 10px; }
.summary .total { font-size: 20px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 12px; }
.note { font-size: 13px; color: var(--muted); }
.error { color: #A33; font-size: 14px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* Simple text pages */
.page { max-width: 760px; padding: 56px 24px 88px; }
.page h1 { font-size: 44px; margin-bottom: 16px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page p, .page li { color: var(--muted); }
