/* Kosare Kap — Alpine lodge x Adriatic wicker design system */
@media (prefers-reduced-motion: no-preference) {
  :root { --motion-ok: 1; }
}

:root {
  --navy: #1f2d3d;
  --navy-light: #2c4057;
  --tomato: #c9502f;
  --tomato-dark: #a53f22;
  --cream: #f4e9d8;
  --cream-dark: #e8d8bc;
  --wood: #8a6440;
  --ink: #241a12;
  --line: rgba(31,45,61,0.14);
  --radius: 14px;
  --shadow-1: 0 8px 24px rgba(36,26,18,0.14);
  --shadow-2: 0 18px 40px rgba(36,26,18,0.2);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --maxw: 1180px;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { flex-shrink: 0; }

.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; opacity: 0.6; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 0.5em; line-height: 1.1; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,233,216,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-mark { width: 150px; height: 32px; }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-weight: 600; font-size: 0.95rem; color: var(--navy); position: relative; padding: 0.3rem 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--tomato); transition: width 0.25s ease; }
.nav-list a:hover::after, .nav-list a.is-active::after { width: 100%; }
.nav-list a.is-active { color: var(--tomato); }
.cart-link { position: relative; display: flex; align-items: center; color: var(--navy); min-width: 44px; min-height: 44px; justify-content: center; }
.cart-count { position: absolute; top: -2px; right: -6px; background: var(--tomato); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cart-count.bump { animation: cartBump 0.35s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 5.5rem 1.5rem 2rem; gap: 1.5rem;
    transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; gap: 1.1rem; }
  .nav-list a { color: var(--cream); }
  .cart-link { color: var(--cream); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; position: relative; overflow: hidden; min-height: 44px; transition: color 0.25s ease, border-color 0.25s ease; }
.btn-primary { background: var(--tomato); color: #fff; }
.btn-primary::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--tomato-dark); transition: left 0.3s ease; z-index: -1; }
.btn-primary:hover::before { left: 0; }
.btn-secondary { background: var(--navy); color: var(--cream); }
.btn-secondary::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--navy-light); transition: left 0.3s ease; z-index: -1; }
.btn-secondary:hover::before { left: 0; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero / bento ---------- */
.hero { position: relative; padding: 3rem 0 2rem; overflow: hidden; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(140px, auto); gap: 1.1rem; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 4rem; }
.bento-tile { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.bento-tile.tile-feature { grid-column: span 4; grid-row: span 2; background: var(--navy); color: var(--cream); padding: 2.2rem; }
.bento-tile.tile-feature h2, .bento-tile.tile-feature h3 { color: var(--cream); }
.bento-tile.tile-wide { grid-column: span 2; }
.bento-tile.tile-img { padding: 0; }
.bento-tile.tile-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (min-width: 860px) {
  .bento-tile.tile-feature { grid-column: span 4; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-tile.tile-feature, .bento-tile.tile-wide { grid-column: span 2; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: var(--cream); padding: 3.2rem 0 2.6rem; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--cream-dark); max-width: 60ch; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; gap: 0.4rem; font-size: 0.85rem; color: var(--cream-dark); list-style: none; padding: 0; margin: 0 0 1rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; opacity: 0.6; }
.breadcrumbs a { text-decoration: underline; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 68ch; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }

.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 68ch; margin: 2rem auto 0; }
.legal-toc h2 { font-size: 1rem; margin-bottom: 0.6em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ---------- Notice ---------- */
.notice { border-radius: var(--radius); padding: 1.1rem 1.4rem; border: 1px solid var(--line); background: #fff; margin: 1.5rem 0; }
.notice-info { border-color: var(--navy); background: #eef2f6; }
.notice-success { border-color: #2f7a4f; background: #eaf5ee; }
.notice-error { border-color: var(--tomato); background: #fbeae4; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); max-width: 640px; }
.form-grid .field.full { grid-column: span 2; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-grid .field.full { grid-column: span 1; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input, .field textarea, .field select {
  font: inherit; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; accent-color: var(--tomato);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(201,80,47,0.35); outline-offset: 1px; border-color: var(--tomato); }
.field-error { color: var(--tomato-dark); font-size: 0.82rem; min-height: 1.1em; }
.field-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 0.9rem; min-height: 1.2em; }

/* ---------- FAQ ---------- */
.faq { max-width: 68ch; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.3rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--tomato); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 1rem; color: var(--ink); }

/* ---------- Product grid / strip ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.product-strip { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1.5rem 1rem; }
.product-strip .product-card { min-width: 230px; scroll-snap-align: start; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.product-card .thumb { overflow: hidden; aspect-ratio: 4/3; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 1rem 1.2rem 1.3rem; }
.product-card .price { color: var(--tomato); font-weight: 700; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; align-items: start; }
.product-detail .gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.product-detail .meta-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; margin: 1.2rem 0; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { text-align: left; padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--line); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; max-width: 380px; margin-left: auto; box-shadow: var(--shadow-1); }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.cart-summary .total { font-weight: 700; font-size: 1.1rem; color: var(--navy); border-top: 1px solid var(--line); padding-top: 0.6rem; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-info .row { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-info .row .icon { color: var(--tomato); margin-top: 2px; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--cream-dark); margin-top: 4rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 2rem; display: grid; grid-template-columns: 1.2fr 2fr 1.2fr; gap: 2.5rem; }
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h3 { color: var(--cream); font-size: 0.95rem; margin-bottom: 0.7em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-col a:hover { color: var(--tomato); }
.newsletter-form h3 { color: var(--cream); font-size: 0.95rem; }
.newsletter-form input[type=email] { padding: 0.6rem 0.8rem; border-radius: 8px; border: none; flex: 1; min-width: 140px; }
.footer-bottom { border-top: 1px solid rgba(244,233,216,0.15); padding: 1.2rem 1.5rem; max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto; background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-2); z-index: 80; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner a { text-decoration: underline; color: var(--cream); }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-banner .btn-ghost { color: var(--cream); border-color: var(--cream); }
.cookie-banner .btn-ghost:hover { background: var(--cream); color: var(--navy); }

/* ---------- Weaver Finder (signature feature) ---------- */
.weaver-finder { display: grid; gap: 1.1rem; }
.wf-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wf-option { background: rgba(244,233,216,0.1); border: 1.5px solid rgba(244,233,216,0.4); color: var(--cream); border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; font-weight: 600; min-height: 44px; }
.wf-option.is-selected, .wf-option:hover { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.wf-result { margin-top: 0.6rem; min-height: 110px; display: flex; align-items: center; }
.wf-card { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: 12px; padding: 0.9rem 1.2rem; color: var(--ink); width: 100%; }
.wf-card img { border-radius: 8px; object-fit: cover; width: 72px; height: 72px; }
.wf-card span { display: grid; gap: 0.2rem; }
.wf-card em { color: var(--tomato); font-style: normal; font-weight: 700; }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in-view { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
  .reveal.d3 { transition-delay: 0.24s; }
  .reveal.d4 { transition-delay: 0.32s; }
}

/* ---------- Utilities ---------- */
.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.lede { font-size: 1.15rem; color: var(--navy-light); max-width: 62ch; }

/* COMPONENTS: .class - what it is */
/* .site-header - sticky header bar with logo/nav/cart */
/* .main-nav - header nav, becomes off-canvas drawer on mobile */
/* .nav-toggle - mobile hamburger button */
/* .cart-link / .cart-count - header cart icon with live item badge */
/* .btn / .btn-primary / .btn-secondary / .btn-ghost - button variants with fill-sweep hover */
/* .hero - home hero wrapper */
/* .bento / .bento-tile / .tile-feature / .tile-wide / .tile-img - home bento grid layout */
/* .page-hero - inner page top banner on navy background */
/* .breadcrumbs - small breadcrumb trail list */
/* .prose - readable long-form legal text column */
/* .legal-toc - boxed table of contents for legal pages */
/* .notice / .notice-info / .notice-success / .notice-error - callout boxes */
/* .form-grid / .field / .field-error / .field-row / .hp-field / .form-msg - form layout primitives */
/* .faq / .faq-item - details/summary accordion list */
/* .product-grid - catalog responsive grid */
/* .product-strip - horizontal scroll-snap product strip (mobile) */
/* .product-card - product preview card with hover lift + image zoom */
/* .product-detail / .gallery / .meta-list - single product page layout */
/* .cart-table / .cart-summary - cart/checkout tables and totals box */
/* .contact-layout / .contact-info - two-column contact page layout */
/* .site-footer / .footer-inner / .footer-cols / .footer-col / .newsletter-form / .footer-bottom - footer regions */
/* .cookie-banner / .cookie-actions - cookie consent banner */
/* .weaver-finder / .wf-group / .wf-option / .wf-result / .wf-card - Weaver Finder signature feature */
/* .reveal / .in-view / .d1-.d4 - scroll-reveal animation hooks with stagger */
/* .section / .section-tight - vertical page rhythm spacing */
/* .grid-2 - generic two-column responsive grid */
/* .lede - intro paragraph styling */

/* Additional component styles for pages */
.product-price { color: var(--tomato); font-weight: 700; }
.product-gallery { border-radius: var(--radius); overflow: hidden; }
.product-meta { border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius); }
textarea { resize: vertical; border: 1px solid var(--line); padding: 0.75rem; border-radius: 6px; }
details { cursor: pointer; }
summary { padding: 1rem; font-weight: 600; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
summary:hover { opacity: 0.8; }
details[open] summary { border-bottom-color: var(--tomato); color: var(--tomato); }
.btn-sm { font-size: 0.85rem; padding: 0.5rem 1rem; }

/* ---------- Footer mark (decorative SVG) ---------- */
.footer-mark {
  width: 48px;
  height: 48px;
  stroke: var(--cream);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero grid ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ---------- Divider (decorative SVG) ---------- */
.divider {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem 0;
  stroke: var(--line);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .divider {
    margin: 1.5rem 0;
  }
}
