:root { --ink:#0f1111; --muted:#565959; --line:#e3e6e6; --bg:#f7f8f8; --navy:#232f3e; --orange:#ff9900; --link:#007185; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--link); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.home { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.home img { border-radius: 8px; }
.name { font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.cart-btn { position: relative; background: none; border: 0; padding: 8px; cursor: pointer; }
.cart-count { position: absolute; top: 0; right: -2px; background: var(--orange); color: #111; border-radius: 10px; min-width: 19px; height: 19px; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

.hero { background: linear-gradient(180deg, #37475a, var(--navy)); color: #fff; padding: 22px 0 26px; }
.hero h1 { margin: 0 0 4px; font-size: 24px; }
.hero p { margin: 0; opacity: .85; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pic { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.pic svg { width: 86%; height: auto; }
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.body h3 { margin: 0; font-size: 16px; }
.desc { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; margin: auto 0 10px; }
.price { font-weight: 700; font-size: 18px; }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; }
.btn { display: block; text-align: center; text-decoration: none; color: #111; background: #ffd814; border: 1px solid #fcd200; border-radius: 22px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:active { background: #f7ca00; }
.btn.wide { width: 100%; margin-top: 12px; }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 9; }
.drawer { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; padding: 14px 18px 22px; box-shadow: 0 -8px 30px rgba(0,0,0,.18); transform: translateY(110%); transition: transform .25s ease; max-width: 880px; margin: 0 auto; }
.drawer.open { transform: translateY(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.x { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.cart-empty { color: var(--muted); padding: 10px 0; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.cart-img { width: 64px; height: 52px; border-radius: 10px; display: grid; place-items: center; }
.cart-img svg { width: 90%; }
.cart-name { font-weight: 600; } .cart-qty { color: var(--muted); font-size: 13px; } .cart-price { font-weight: 700; }
.link { background: none; border: 0; color: var(--link); padding: 0; font: inherit; font-size: 13px; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.cart-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

.foot { background: #fff; border-top: 1px solid var(--line); margin-top: 26px; padding: 18px 0 26px; font-size: 13px; color: var(--muted); text-align: center; }
.foot p { margin: 6px 0; }
.policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.fine { font-size: 12px; }

.page { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 16px; margin: 18px auto 0; max-width: 760px; }
.page h1 { font-size: 22px; }
.page ul { padding-left: 20px; } .page li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 12px; }

@media (min-width: 720px) { .drawer { left: auto; right: 16px; top: 72px; bottom: auto; width: 360px; border-radius: 14px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all .2s ease; } .drawer.open { transform: none; opacity: 1; pointer-events: auto; } .hero h1 { font-size: 28px; } }
