:root {
  --navy: #0a2350;
  --navy-2: #0f2f66;
  --blue: #1565c0;
  --blue-2: #1e88e5;
  --aqua: #22c3e6;
  --foam: #e6f6fb;
  --sand: #f7f1e6;
  --ink: #0e1b2e;
  --muted: #5a6a80;
  --line: #d9e4ee;
  --bg: #f3f7fa;
  --card: #fff;
  --sale: #e0442b;
  --ok: #178a4c;
  --gcash: #007dfe;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 35, 80, .06), 0 8px 24px rgba(10, 35, 80, .08);
  --display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.logo img { width: 54px; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: .92; }
.logo-text b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; }
.logo-text b span { color: var(--blue); }
.logo-text small { font-family: var(--display); font-weight: 600; font-size: .66rem; letter-spacing: .21em; color: var(--navy); margin-top: 3px; text-transform: uppercase; }
.logo.light, .logo.light .logo-text small { color: #fff; }
.logo.light .logo-text b span { color: var(--aqua); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(21, 101, 192, .3); }
.btn-primary:hover { background: #0f56a8; }
.btn-aqua { background: var(--aqua); color: var(--navy); }
.btn-aqua:hover { background: #4fd3ef; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: var(--sale); color: #fff; }
.btn-gcash { background: var(--gcash); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.input, .field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(30, 136, 229, .15); }
.field textarea { resize: vertical; min-height: 70px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- announcement + header ---------- */
.announce { background: var(--navy); color: #cfe6ff; font-size: .82rem; text-align: center; padding: 8px 12px; letter-spacing: .02em; }
.announce b { color: #fff; }
.announce .sep { opacity: .4; margin: 0 10px; }

header.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.top-inner { display: flex; align-items: center; gap: 22px; padding: 12px 20px; }
.search { flex: 1; display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 6px 0 16px; max-width: 560px; margin-left: auto; }
.search:focus-within { border-color: var(--blue-2); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: 11px 6px; outline: none; min-width: 0; }
.search button { border: 0; background: var(--blue); color: #fff; border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.cart-btn .count { background: var(--aqua); color: var(--navy); border-radius: 999px; min-width: 22px; height: 22px; font-size: .78rem; display: grid; place-items: center; padding: 0 6px; }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.1); } }

nav.cats { background: linear-gradient(90deg, var(--blue), var(--navy-2)); }
nav.cats .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.cats .wrap::-webkit-scrollbar { display: none; }
nav.cats button { background: transparent; border: 0; color: #e3f1ff; padding: 12px 16px; font-family: var(--display); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; }
nav.cats button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
nav.cats button.on { color: #fff; border-bottom-color: var(--aqua); }

@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-btn { margin-left: auto; }
  .cart-btn .label { display: none; }
  .logo-text b { font-size: 1.2rem; }
  .logo img { width: 44px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(34, 195, 230, .45), transparent 60%),
  linear-gradient(160deg, #0a2350 0%, #0f3f86 48%, #1580c9 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 64px 20px 110px; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: .98; margin: 18px 0 16px; letter-spacing: -.01em; text-transform: uppercase; }
.hero h1 em { color: var(--aqua); font-style: italic; }
.hero p.lead { font-size: 1.12rem; color: #d6e9fb; max-width: 520px; margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero .stats b { display: block; font-family: var(--display); font-size: 1.7rem; font-style: italic; font-weight: 800; }
.hero .stats span { font-size: .8rem; color: #b7d4f1; text-transform: uppercase; letter-spacing: .08em; }
.hero-art { position: relative; justify-self: center; width: min(430px, 100%); }
.hero-art img { width: 100%; border-radius: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(2.5deg); border: 6px solid rgba(255, 255, 255, .9); }
.hero-art .badge { position: absolute; left: -18px; bottom: 26px; background: #fff; color: var(--navy); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; transform: rotate(-3deg); }
.hero-art .badge i { width: 36px; height: 36px; border-radius: 10px; background: var(--gcash); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 900; font-family: var(--display); }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px 20px 100px; }
  .hero-art { width: min(320px, 90%); }
}

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -42px; position: relative; z-index: 2; }
.trust div { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.trust svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--foam); color: var(--blue); }
.trust b { display: block; font-size: .95rem; color: var(--navy); }
.trust span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
section.block { padding: 56px 0 8px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; color: var(--navy); letter-spacing: -.005em; }
.sec-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin-top: 8px; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
.sec-head p { margin: 4px 0 0; color: var(--muted); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-tile { position: relative; border: 0; cursor: pointer; text-align: left; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--foam), #fff); box-shadow: var(--shadow); padding: 0; aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 35, 80, .16); }
.cat-tile .art { flex: 1; display: grid; place-items: center; overflow: hidden; color: var(--blue); }
.cat-tile .art img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .art .ph { width: 46%; }
.cat-tile .name { background: var(--navy); color: #fff; padding: 11px 14px; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat-tile .name small { font-family: var(--body); font-style: normal; font-weight: 600; color: var(--aqua); font-size: .76rem; }

/* ---------- product grid ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.result-count { color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10, 35, 80, .14); }
.card .thumb { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, #f6fbfe, var(--foam)); display: grid; place-items: center; cursor: pointer; border: 0; padding: 0; color: #8fb7dc; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { width: 42%; }
.tag { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 6px; }
.tag-sale { background: var(--sale); color: #fff; }
.tag-out { background: #556; color: #fff; }
.tag-hot { background: var(--aqua); color: var(--navy); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; }
.card h3 { font-size: 1rem; margin: 0; line-height: 1.3; color: var(--ink); cursor: pointer; }
.card h3:hover { color: var(--blue); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price b { font-family: var(--display); font-size: 1.3rem; color: var(--navy); font-weight: 800; }
.price s { color: var(--muted); font-size: .88rem; }
.card .add { margin-top: 10px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1.5px dashed var(--line); }

/* ---------- gcash band ---------- */
.paysteps { margin-top: 56px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: 22px; padding: 36px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.paysteps::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(34, 195, 230, .18); }
.paysteps h2 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; margin: 0 0 8px; font-size: 1.8rem; }
.paysteps p { margin: 0; color: #cfe3fb; }
.paysteps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; }
.paysteps li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 16px; }
.paysteps li b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--aqua); color: var(--navy); font-family: var(--display); margin-bottom: 10px; }
.paysteps li span { font-size: .9rem; color: #e6f1fd; }
@media (max-width: 860px) { .paysteps { grid-template-columns: 1fr; padding: 26px; } .paysteps ol { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer.foot { margin-top: 64px; background: var(--navy); color: #b8cde6; padding: 44px 0 24px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot h4 { color: #fff; font-family: var(--display); text-transform: uppercase; font-style: italic; margin: 0 0 12px; letter-spacing: .03em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #b8cde6; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot button.link { background: none; border: 0; padding: 0; color: #b8cde6; cursor: pointer; }
.foot button.link:hover { color: #fff; }
.foot .fine { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- drawer & modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(6, 20, 45, .5); z-index: 60; opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); }
.drawer.show { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-family: var(--display); font-style: italic; text-transform: uppercase; color: var(--navy); }
.x { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item .pic { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--foam); display: grid; place-items: center; color: #8fb7dc; }
.line-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.line-item .pic .ph { width: 60%; }
.line-item .nm { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.line-item .unit { color: var(--muted); font-size: .82rem; }
.line-item .right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: end; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: transparent; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.qty button:hover { background: var(--foam); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.remove { border: 0; background: none; color: var(--muted); font-size: .78rem; cursor: pointer; text-decoration: underline; padding: 0; }
.sumrow { display: flex; justify-content: space-between; margin: 6px 0; color: var(--muted); }
.sumrow.total { color: var(--navy); font-weight: 800; font-size: 1.15rem; margin-top: 10px; }
.hint { font-size: .82rem; color: var(--blue); background: var(--foam); padding: 8px 12px; border-radius: 10px; margin: 8px 0 12px; }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-card { pointer-events: auto; background: #fff; border-radius: 20px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); position: relative; transform: translateY(12px); opacity: 0; transition: transform .2s, opacity .2s; }
.modal.show .modal-card { transform: none; opacity: 1; }
.modal-card > .x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.quick { display: grid; grid-template-columns: 1fr 1fr; }
.quick .pic { background: linear-gradient(160deg, #f6fbfe, var(--foam)); display: grid; place-items: center; color: #8fb7dc; min-height: 320px; }
.quick .pic img { width: 100%; height: 100%; object-fit: cover; }
.quick .pic .ph { width: 40%; }
.quick .info { padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.quick h3 { margin: 0; font-size: 1.4rem; color: var(--navy); line-height: 1.25; }
.quick .desc { color: var(--muted); white-space: pre-line; }
.quick .buy { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 14px; }
.quick .qty button { width: 38px; height: 40px; }
@media (max-width: 640px) { .quick { grid-template-columns: 1fr; } .quick .pic { min-height: 220px; } }

.checkout { display: grid; grid-template-columns: 1.3fr 1fr; }
.checkout form { padding: 28px; }
.checkout h3 { margin: 0 0 18px; font-family: var(--display); font-style: italic; text-transform: uppercase; color: var(--navy); }
.checkout aside { background: var(--bg); padding: 28px; border-radius: 0 20px 20px 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.seg label { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px; cursor: pointer; font-weight: 600; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.seg label:has(input:checked) { border-color: var(--blue); background: var(--foam); color: var(--blue); }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 6px 0; }
.mini-line span:first-child { color: var(--muted); }
.gcash-note { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 16px 0; font-size: .85rem; }
.gcash-note i { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--gcash); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 900; font-family: var(--display); }
.form-error { color: var(--sale); font-size: .88rem; min-height: 1.2em; margin: 6px 0 0; }
@media (max-width: 720px) { .checkout { grid-template-columns: 1fr; } .checkout aside { border-radius: 0 0 20px 20px; } }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; }
.toast-err { background: var(--sale); }
.toast.out { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.trust p { margin: 0; }
.qcat { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; }
