/* Habi & Co.: warm modern e-commerce. Linen background, charcoal text, terracotta and olive accents. */
:root {
  --bg: #f6f1ea;
  --card: #fffdf9;
  --ink: #23201c;
  --muted: #6d655b;
  --line: #e6ddd0;
  --terra: #b4532a;
  --terra-d: #923f1c;
  --olive: #5f6b3a;
  --cream: #efe5d6;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --r: 16px;
  --shadow: 0 1px 2px rgba(35, 32, 28, 0.04), 0 12px 32px rgba(35, 32, 28, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3 { margin: 0 0 0.7rem; font-weight: 400; line-height: 1.1; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--muted); }
.wrap { width: min(1280px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; z-index: 100; padding: 0.6rem 1rem; background: #fff; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

/* Sample bar + announce */
.gw-bar { color: #fff; background: #071f31; font-size: 0.86rem; }
.gw-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; padding-block: 0.6rem; }
.gw-tag { padding: 0.2rem 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd9c4; background: rgba(255, 122, 69, 0.2); border-radius: 999px; }
.gw-bar p { margin: 0; color: rgba(255, 255, 255, 0.8); }
.gw-bar a { margin-left: auto; font-weight: 700; color: #ffd9c4; text-decoration: none; }
.announce { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 0.8rem; padding: 0.5rem 1rem; font-size: 0.84rem; font-weight: 500; text-align: center; color: #f6e7d4; background: var(--olive); }

/* Header */
.head { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 234, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1.4rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.45rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand i { color: var(--terra); }
.cats-nav { display: flex; gap: 1.3rem; }
.cats-nav a { font-weight: 500; text-decoration: none; color: var(--muted); transition: color 0.2s; }
.cats-nav a:hover { color: var(--ink); }
.search { flex: 1; display: flex; align-items: center; gap: 0.5rem; max-width: 340px; margin-left: auto; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.search svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; outline: none; }
.search:focus-within { border-color: var(--ink); }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--card); cursor: pointer; transition: border-color 0.2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--terra); }
.badge.pop { animation: pop 0.4s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover:not(:disabled) { background: #000; }
.btn-terra { color: #fff; background: var(--terra); }
.btn-terra:hover:not(:disabled) { background: var(--terra-d); }
.btn-line { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn-line:hover { color: #fff; background: var(--ink); }
.btn-block { width: 100%; }
.link-btn { padding: 0; border: 0; font-size: 0.88rem; font-weight: 600; color: var(--terra); background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--terra-d); background: #f4dccb; }

/* Hero */
.hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 em { display: block; font-style: italic; color: var(--terra); }
.hero-copy > p { max-width: 500px; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 2rem; }
.perks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.perks b { color: var(--ink); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 200px 24px 24px 24px; }
.hero-note { position: absolute; left: -1.2rem; bottom: 1.5rem; display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.1rem; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.hero-note strong { font-family: var(--serif); font-size: 1.8rem; color: var(--terra); }
.hero-note span { max-width: 110px; font-size: 0.82rem; line-height: 1.3; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.tile { position: relative; overflow: hidden; border-radius: var(--r); text-decoration: none; color: #fff; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.6)); }
.tile span { position: absolute; left: 1rem; bottom: 0.8rem; z-index: 1; font-family: var(--serif); font-size: 1.5rem; }
.tile small { display: block; font-family: var(--sans); font-size: 0.8rem; opacity: 0.85; }

/* Shop */
.shop { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--card); border-block: 1px solid var(--line); }
.shop-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.shop-grid > * { min-width: 0; }
.filters { position: sticky; top: 96px; }
.filters-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.8rem; }
.filters-head h2 { margin: 0; font-size: 1.6rem; }
.filters fieldset { margin: 0; padding: 1.1rem 0; border: 0; border-top: 1px solid var(--line); }
.filters legend { padding: 0; margin-bottom: 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.filters label { display: flex; align-items: center; gap: 0.55rem; padding: 0.25rem 0; cursor: pointer; }
.filters input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--terra); }
.filters input[type="range"] { width: 100%; accent-color: var(--terra); }
.range-row { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-size: 0.92rem; }
.range-row output { font-weight: 700; }
.switch { padding-top: 1.1rem !important; border-top: 1px solid var(--line); font-weight: 500; }
.filters-done, .filters-toggle { display: none; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.results-bar p { margin: 0 auto 0 0; font-weight: 500; color: var(--ink); }
.sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.sort select { padding: 0.55rem 2rem 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--bg); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.5rem 0.3rem 0.8rem; border: 0; border-radius: 999px; font-size: 0.84rem; color: var(--ink); background: var(--cream); cursor: pointer; }
.chip::after { content: "×"; font-size: 1rem; line-height: 1; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.prod { position: relative; display: flex; flex-direction: column; animation: up 0.4s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
.prod-media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--cream); }
.prod-media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s ease; }
.prod:hover .prod-media img { transform: scale(1.05); }
.flag { position: absolute; left: 0.7rem; top: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #fff; background: var(--ink); }
.flag.sale { background: var(--terra); }
.flag.out { color: var(--ink); background: rgba(255, 255, 255, 0.9); }
.heart { position: absolute; right: 0.6rem; top: 0.6rem; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, 0.92); cursor: pointer; transition: transform 0.2s; }
.heart:hover { transform: scale(1.08); }
.heart svg { width: 18px; height: 18px; }
.heart[aria-pressed="true"] { color: var(--terra); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.quick { position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.7rem; padding: 0.65rem; border: 0; border-radius: 999px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, 0.95); cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.prod:hover .quick, .quick:focus-visible { opacity: 1; transform: none; }
.prod-info { display: flex; flex-direction: column; flex: 1; padding-top: 0.8rem; }
.prod-mat { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); }
.prod-info h3 { margin: 0.15rem 0 0.25rem; font-size: 1.05rem; }
.prod-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.7rem; font-weight: 700; }
.prod-price s { font-weight: 400; color: var(--muted); }
.rating { margin-left: auto; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.rating::before { content: "★ "; color: #d49a1f; }
.add { margin-top: auto; }
.add.added { color: #fff; background: var(--olive); border-color: var(--olive); }
.empty { padding: 3rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); }

/* Story */
.story { padding: clamp(4rem, 8vw, 6rem) 0; }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px 24px 200px 24px; }
.story-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0 0; }
.story-stats div { padding: 1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.story-stats dt { font-family: var(--serif); font-size: 2rem; color: var(--terra); }
.story-stats dd { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* How */
.how { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.how-grid > div { padding: 1.6rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.how-n { display: block; margin-bottom: 0.8rem; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--terra); }
.how-grid p { margin: 0; }

/* Newsletter */
.news { padding-bottom: clamp(4rem, 8vw, 6rem); }
.news-box { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: clamp(2rem, 4vw, 3rem); border-radius: 24px; color: #fff; background: var(--terra); }
.news-box h2 { color: #fff; }
.news-box p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.news-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.news-form input { flex: 1; min-width: 200px; padding: 0.85rem 1.2rem; border: 0; border-radius: 999px; color: var(--ink); background: #fff; }
.news-form .btn-dark { background: var(--ink); }
.news-msg { flex-basis: 100%; min-height: 1.2rem; margin: 0; font-size: 0.9rem; font-weight: 500; }

/* Footer */
.foot { padding: 3.5rem 0 1.5rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot p { margin-top: 0.8rem; }
.foot h4 { margin: 0 0 0.8rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.foot-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.foot-bottom a { color: var(--terra); font-weight: 600; }

/* Modals */
.modal { width: min(940px, 100% - 2rem); max-height: calc(100% - 2rem); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--card); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3); }
.modal::backdrop { background: rgba(35, 32, 28, 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: up 0.3s ease; }
.x-btn { position: absolute; top: 0.8rem; right: 0.8rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--ink); background: var(--bg); cursor: pointer; }
.qv-inner { display: grid; grid-template-columns: 1fr 1fr; }
.qv-inner > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.qv-body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.qv-body h2 { font-size: 2rem; }
.qv-price { margin-bottom: 1rem; font-size: 1.4rem; font-weight: 700; }
.qv-price s { margin-left: 0.4rem; font-size: 1rem; font-weight: 400; color: var(--muted); }
.qv-specs { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0 0 1.2rem; font-size: 0.92rem; }
.qv-specs dt { color: var(--muted); }
.qv-specs dd { margin: 0; }
.swatches { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.sw { width: 34px; height: 34px; border: 2px solid var(--card); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; border-radius: 50%; font-size: 1.1rem; background: transparent; cursor: pointer; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty output { min-width: 1.6rem; text-align: center; font-weight: 600; }
.qv-actions { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1rem; }
.qv-actions .btn { flex: 1; }
.qv-note { font-size: 0.86rem; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(35, 32, 28, 0.5); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--card); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15); transform: translateX(105%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { position: relative; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.7rem; }
.drawer-head .x-btn { top: 1rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.ship-meter { margin-bottom: 1rem; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.9rem; background: var(--bg); }
.meter { height: 6px; margin-top: 0.5rem; overflow: hidden; border-radius: 6px; background: var(--line); }
.meter i { display: block; height: 100%; background: var(--olive); transition: width 0.4s ease; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.line h3 { margin: 0; font-size: 0.98rem; }
.line small { display: block; color: var(--muted); }
.line .qty { margin-top: 0.4rem; }
.line .qty button { width: 30px; height: 30px; }
.line-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-weight: 700; }
.rm { padding: 0; border: 0; font-size: 0.82rem; color: var(--muted); background: none; cursor: pointer; text-decoration: underline; }
.drawer-empty { padding: 3rem 0; text-align: center; }
.drawer-foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.tot { display: flex; justify-content: space-between; margin-bottom: 0.3rem; }
.tot strong { font-size: 1.25rem; }
.drawer-foot small { display: block; margin-bottom: 1rem; color: var(--muted); }

/* Checkout */
.co-head { padding: 1.5rem 1.8rem 1rem; border-bottom: 1px solid var(--line); }
.co-head h2 { margin-bottom: 0.6rem; font-size: 2rem; }
.co-steps { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; font-weight: 600; color: var(--muted); counter-reset: c; }
.co-steps li { counter-increment: c; }
.co-steps li::before { content: counter(c); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 0.4rem; border-radius: 50%; font-size: 0.75rem; color: var(--muted); background: var(--bg); }
.co-steps li.is-on, .co-steps li.is-done { color: var(--ink); }
.co-steps li.is-on::before { color: #fff; background: var(--terra); }
.co-steps li.is-done::before { content: "✓"; color: #fff; background: var(--olive); }
.co-body { display: grid; grid-template-columns: 1fr 300px; gap: 1.8rem; padding: 1.5rem 1.8rem; }
.co-body > * { min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field { display: grid; gap: 0.3rem; margin-bottom: 0.8rem; font-size: 0.86rem; font-weight: 600; }
.field input, .field select { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.ship, .pay { margin: 0.4rem 0 0; padding: 0; border: 0; }
.ship legend, .pay legend { margin-bottom: 0.5rem; padding: 0; font-weight: 700; }
.ship label, .pay label { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.ship label:has(input:checked), .pay label:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.ship input, .pay input { accent-color: var(--terra); width: 18px; height: 18px; }
.ship span, .pay span { flex: 1; }
.ship small, .pay small { display: block; font-size: 0.82rem; color: var(--muted); }
.gcash { display: flex; gap: 1.2rem; align-items: center; margin-top: 0.8rem; padding: 1rem; border-radius: 14px; background: #eaf2ff; }
.qr { flex-shrink: 0; width: 132px; height: 132px; padding: 8px; border-radius: 10px; background: #fff; }
.qr svg { width: 100%; height: 100%; }
.qr-amt { margin: 0 0 0.3rem; color: var(--ink); }
.qr-amt strong { font-size: 1.4rem; color: #0a5bd3; }
.qr-help { margin: 0; font-size: 0.86rem; }
.co-sum { padding: 1.2rem; border-radius: 14px; background: var(--bg); align-self: start; font-size: 0.92rem; }
.co-sum h3 { margin-bottom: 0.8rem; }
.co-sum ul { margin: 0 0 0.8rem; padding: 0; list-style: none; }
.co-sum li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.3rem 0; }
.co-sum li span { color: var(--muted); }
.co-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem; margin: 0; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.co-sum dd { margin: 0; text-align: right; }
.co-sum .grand { font-size: 1.1rem; font-weight: 700; }
.form-error { margin: 0 1.8rem 0.6rem; font-size: 0.9rem; font-weight: 600; color: #c0392b; }
.co-foot { display: flex; justify-content: space-between; gap: 0.6rem; padding: 1rem 1.8rem 1.5rem; border-top: 1px solid var(--line); }
.co-done { text-align: center; padding: 1rem 0; }
.done-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 0.8rem; border-radius: 50%; font-size: 1.8rem; color: #fff; background: var(--olive); }
.co-done h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; }
.ord { padding: 0.5rem 1rem; display: inline-block; border: 1px dashed var(--terra); border-radius: 10px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; padding: 0.8rem 1.3rem; border-radius: 999px; font-weight: 500; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .cats-nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .story-grid, .news-box { grid-template-columns: 1fr; }
  .hero-note { left: 0.8rem; bottom: 0.8rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; z-index: 85; max-height: 85vh; overflow-y: auto; padding: 1.4rem 1.4rem 1.6rem; border-radius: 22px 22px 0 0; background: var(--card); box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2); transform: translateY(105%); transition: transform 0.35s ease; visibility: hidden; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters-done { display: flex; width: 100%; margin-top: 1rem; }
  .filters-toggle { display: inline-flex; padding: 0.5rem 1.1rem; }
  .qv-inner { grid-template-columns: 1fr; }
  .qv-inner > img { min-height: 0; aspect-ratio: 4 / 3; }
  .co-body { grid-template-columns: 1fr; }
  .co-sum { order: -1; }
  .how-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(1280px, 100% - 2rem); }
  .gw-bar a { margin-left: 0; }
  .head-row { flex-wrap: wrap; gap: 0.6rem; padding-block: 0.6rem; }
  .brand { margin-right: auto; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .grid { gap: 1.4rem 0.8rem; }
  .quick { display: none; }
  .prod-info h3 { font-size: 0.95rem; }
  .rating { display: none; }
  .row2, .story-stats { grid-template-columns: 1fr; }
  .gcash { flex-direction: column; text-align: center; }
  .sort span { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .co-head, .co-body, .co-foot { padding-inline: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Video hero + scroll motion (assets/js/motion.js) */
.video-toggle { position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 3; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem 0.45rem 0.7rem; font-family: inherit; font-size: 0.75rem; font-weight: 700; line-height: 1; letter-spacing: 0.02em; color: #fff; background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.2s; }
.video-toggle::before { content: ""; width: 10px; height: 11px; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.video-toggle[aria-pressed="true"]::before { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video-toggle:hover { background: rgba(0, 0, 0, 0.58); }
.rv { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) !important; transition-delay: var(--rv-delay, 0s) !important; }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none !important; } }.hero-media video { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 200px 24px 24px 24px; }
