:root {
  --sand: #fbf6ee;
  --sand-2: #f3eadb;
  --ink: #1c2b30;
  --muted: #5d6b70;
  --ocean: #0f4c5c;
  --ocean-2: #16697a;
  --sun: #f2994a;
  --sun-2: #e0782b;
  --line: #e6dccb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,43,48,.06), 0 8px 24px rgba(28,43,48,.06);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-serif, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sand); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ocean-2); }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.announce { background: var(--ocean); color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; letter-spacing: .02em; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251,246,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.logo svg { width: 34px; height: 34px; }
.logo .sun { fill: var(--sun); }
.logo .peak { fill: var(--ocean); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ocean-2); }
.cart-link { position: relative; display: inline-flex; }
.cart-link svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-link circle { fill: currentColor; stroke: none; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--sun-2); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.cart-count[hidden] { display: none; }
@media (max-width: 640px) { .nav a:not(.cart-link):not([href="#/shop"]) { display: none; } }

main { min-height: 60vh; outline: none; }
.loading, .empty { padding: 80px 20px; text-align: center; color: var(--muted); }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fde6cc 0%, #fbd7b0 45%, #f8c99a 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 96px; position: relative; z-index: 1; }
.hero h1 { font-family: var(--display); font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -.02em; color: var(--ocean); }
.hero p { font-size: 18px; color: #4a4038; max-width: 30em; margin: 0 0 28px; }
.hero-art { position: absolute; inset: auto 0 0 0; height: 120px; z-index: 0; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-sun { position: absolute; right: 8%; top: 40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffd08a, var(--sun) 70%); opacity: .9; }
.hero-card { background: rgba(255,255,255,.75); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.hero-card li b { display: block; }
.tick { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--ocean); color: #fff; display: grid; place-items: center; font-size: 12px; margin-top: 1px; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; padding-top: 48px; } .hero-sun { width: 140px; height: 140px; right: -20px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 650; font-size: 16px; text-decoration: none; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ocean); color: #fff; }
.btn-primary:hover { background: var(--ocean-2); }
.btn-sun { background: var(--sun-2); color: #fff; }
.btn-sun:hover { background: #c9661f; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* sections */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 26px; gap: 16px; }
.section-head h2 { font-family: var(--display); font-size: 32px; margin: 0; letter-spacing: -.01em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(28,43,48,.06), 0 14px 32px rgba(28,43,48,.1); }
.card-img { aspect-ratio: 1; background: var(--sand-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-weight: 600; font-size: 16px; }
.card-price { color: var(--ocean); font-weight: 700; }
.card-meta { font-size: 13px; color: var(--muted); }

.usp { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 20px; }
.usp-item { display: flex; gap: 12px; align-items: flex-start; }
.usp-item svg { flex: 0 0 30px; width: 30px; height: 30px; stroke: var(--ocean); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.usp-item b { display: block; font-size: 15px; }
.usp-item span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 820px) { .usp-grid { grid-template-columns: 1fr 1fr; } }

/* product */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 8px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding-bottom: 64px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { aspect-ratio: 1; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; }
.thumbs button[aria-current="true"] { border-color: var(--ocean); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin: 4px 0 10px; letter-spacing: -.01em; }
.pprice { font-size: 26px; font-weight: 700; color: var(--ocean); margin-bottom: 6px; }
.gst { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.opt-label { font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.opt-label span { font-weight: 400; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.swatches button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; }
.swatches button[aria-pressed="true"] { border-color: var(--ocean); background: var(--ocean); color: #fff; }
.qty-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 16px; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { border: 0; background: none; width: 42px; font-size: 18px; }
.qty input { width: 40px; border: 0; text-align: center; font: inherit; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.desc { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.desc ul { padding-left: 20px; }
.desc li { margin: 4px 0; }
.mini-usp { display: grid; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 18px; }
.mini-usp div { display: flex; gap: 8px; align-items: center; }
.mini-usp svg { width: 18px; height: 18px; stroke: var(--ocean); fill: none; stroke-width: 2; }

/* cart */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 36px; padding-top: 32px; padding-bottom: 72px; align-items: start; }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; } }
.cart h1, .page h1 { font-family: var(--display); font-size: 36px; margin: 0 0 20px; }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.line img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--sand-2); }
.line-title { font-weight: 600; }
.line-var { font-size: 14px; color: var(--muted); }
.line-right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.remove { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 0; }
.summary { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary-total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.summary small { display: block; color: var(--muted); margin: 10px 0 16px; }
.error { background: #fdecea; color: #8a1f11; border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: 14px; }

/* pages */
.page { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.page h2 { font-family: var(--display); margin-top: 32px; }
.notice { text-align: center; padding: 80px 20px; }
.notice h1 { font-family: var(--display); font-size: 38px; color: var(--ocean); }

.site-footer { background: var(--ocean); color: #d5e6ea; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 44px; padding-bottom: 28px; }
.footer-grid h4 { color: #fff; margin: 4px 0 12px; }
.footer-grid a { display: block; color: #d5e6ea; text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { margin: 0 0 8px; }
.logo-footer { color: #fff; margin-bottom: 10px; }
.logo-footer .peak { fill: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; padding-bottom: 22px; font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; opacity: 0; transition: all .2s ease; z-index: 50; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--sun); font-weight: 600; }
