:root {
  --ink: #12233B;
  --ink-soft: #3B4D63;
  --snow: #F4F7F9;
  --line: #DCE4EA;
  --ice: #DCE6EE;
  --accent: #C2521B;
  --accent-dark: #A44415;
  --white: #FFFFFF;
  --radius: 22px;
  --head: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--snow); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; font: 600 16px var(--body); cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #1d3557; color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--snow); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Top bar & header */
.topbar { background: var(--ink); color: var(--white); font-size: 14px; padding: 9px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; text-align: center; }
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 25px var(--head); color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 500; }
.nav a { text-decoration: none; }
.cart-btn { min-height: 44px; padding: 0 18px; }
.cart-count { background: var(--accent); color: var(--white); border-radius: 999px; min-width: 22px; height: 22px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
@media (max-width: 760px) { .nav { display: none; } .logo { font-size: 21px; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; padding-top: 56px; padding-bottom: 64px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; background: #E3ECF3; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; font-weight: 800; }
.hero p { font-size: 19px; color: var(--ink-soft); max-width: 480px; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--ink-soft); }
.hero-img { flex: 1 1 420px; min-width: 0; height: 500px; border-radius: 28px; overflow: hidden; }
@media (max-width: 760px) { .wrap { padding-left: 16px; padding-right: 16px; } .hero { padding-top: 20px; gap: 24px; } .hero-img { height: 300px; order: -1; } }

/* Photo with fallback */
.ph { background: var(--ice); position: relative; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; text-align: center; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph img.missing { display: none; }

/* Sections */
.section { padding: 64px 0; }
.section-white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.section h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.cat { text-decoration: none; background: var(--snow); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cat .ph { height: 170px; border-radius: 16px; overflow: hidden; }
.cat strong { font-size: 19px; }
.cat span { font-size: 15px; color: var(--ink-soft); }

/* Product card */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card .ph { height: 230px; border-radius: 16px; overflow: hidden; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.card h3 { font: 600 17px var(--body); letter-spacing: 0; line-height: 1.35; }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.price { font-weight: 700; font-size: 21px; }
.size-row { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 44px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid #C5D2DD; background: var(--white); font: 500 14px var(--body); color: var(--ink); cursor: pointer; }
.size[aria-pressed="true"] { border: 2px solid var(--accent); background: #FDF3EE; font-weight: 700; }
.size-hint { font-size: 13px; color: var(--accent-dark); min-height: 18px; }

/* Bundle */
.bundle { background: var(--ink); color: var(--white); border-radius: 32px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.bundle-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bundle .eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #B9CBDB; }
.bundle h2 { font-size: clamp(34px, 5vw, 46px); font-weight: 800; }
.bundle p { margin: 0; font-size: 18px; color: #D6E1EA; }
.bundle .old { color: #B9CBDB; text-decoration: line-through; font-size: 18px; }
.bundle .big { font: 800 40px var(--head); }
.bundle .ph { flex: 1 1 340px; min-width: 0; height: 320px; border-radius: var(--radius); background: #2A3F5A; color: #D6E1EA; overflow: hidden; }
.bundle .size { background: transparent; color: var(--white); border-color: #5A6F88; }
.bundle .size[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.bundle .size-hint { color: #F5B48E; }
@media (max-width: 760px) { .bundle { padding: 26px; } }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.trust div { display: flex; flex-direction: column; gap: 6px; }
.trust strong { font-size: 18px; }
.trust span { font-size: 15px; color: var(--ink-soft); }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 17px; }
.faq p { color: var(--ink-soft); margin: 10px 0 0; }

/* Footer */
.footer { background: var(--ink); color: #D6E1EA; padding: 48px 0 32px; font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer a { color: #D6E1EA; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer .col { display: flex; flex-direction: column; gap: 8px; }
.footer .col strong { color: var(--white); }
.footer .legal { width: 100%; border-top: 1px solid #2A3F5A; padding-top: 18px; font-size: 13px; color: #9FB3C6; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(18,35,59,.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 440px; background: var(--white); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
body.cart-open .overlay { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 26px; font-weight: 800; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.ship-box { background: var(--snow); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.line-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #E7EDF2; padding-bottom: 14px; }
.line-item .ph { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.li-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.li-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.li-size { font-size: 13px; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 34px; height: 34px; border-radius: 17px; border: 1px solid var(--line); background: var(--white); font-size: 18px; cursor: pointer; color: var(--ink); }
.li-total { font-weight: 700; white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row.total { font-weight: 700; font-size: 19px; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pay-logos span { font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.empty { text-align: center; background: var(--snow); border-radius: 18px; padding: 30px 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.error { color: #B3261E; font-size: 14px; text-align: center; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 60; transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }

/* Text pages */
.page { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.page h1 { font-size: 40px; margin-bottom: 18px; }
.page h2 { font-size: 24px; margin: 30px 0 10px; }
.page p, .page li { color: var(--ink-soft); font-size: 16px; }
.note { background: #FFF6E5; border: 1px solid #F1D49B; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
