:root {
  --navy: #173B75;
  --navy2: #0F2A57;
  --yellow: #FFD43B;
  --coral: #FF704F;
  --bg: #F6F8FC;
  --ink: #1B2430;
  --mut: #5B6472;
  --line: #E4E9F2;
  --ok: #1B8A4B;
  --wa: #25D366;
  --r: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Inter, system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
h1, h2, h3, .wordmark, .price, .btn { font-family: Poppins, Inter, sans-serif; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.page { padding: 28px 0 56px; }
.narrow { max-width: 760px; }

/* announcement + header */
.ann { background: var(--navy2); color: #fff; font-size: 13px; text-align: center; padding: 7px 12px; }
.ann b { color: var(--yellow); font-weight: 600; }
header.site { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(15,42,87,.18); }
.hd { display: flex; align-items: center; gap: 18px; padding: 12px 0; flex-wrap: wrap; }
.wordmark { color: #fff; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.wordmark span { color: var(--yellow); }
.searchbox { position: relative; flex: 1; min-width: 200px; max-width: 520px; }
.searchbox input { width: 100%; padding: 10px 14px; border-radius: 999px; border: 0; font-size: 14px; font-family: inherit; }
#q-drop { position: absolute; top: 110%; left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,42,87,.22); display: none; overflow: hidden; z-index: 60; }
#q-drop.show { display: block; }
.q-hit { display: flex; gap: 10px; align-items: center; padding: 9px 12px; text-decoration: none; color: var(--ink); }
.q-hit:hover { background: var(--bg); }
.q-hit img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.q-hit span { display: flex; flex-direction: column; }
.q-hit i { font-style: normal; color: var(--coral); font-weight: 700; font-size: 13px; }
.q-none { padding: 12px; color: var(--mut); font-size: 14px; }
nav#mainnav { display: flex; align-items: center; gap: 4px; }
nav#mainnav a { color: #DCE6F5; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
nav#mainnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.hd-icons { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.hd-icons a { position: relative; color: #fff; text-decoration: none; font-size: 19px; padding: 7px 9px; border-radius: 10px; }
.hd-icons a:hover { background: rgba(255,255,255,.12); }
.hd-icons .n { position: absolute; top: 0; right: 0; background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: none; align-items: center; justify-content: center; padding: 0 4px; }
#ham { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 6px 8px; }
.btn-call-hd { background: var(--yellow); color: var(--navy2) !important; font-weight: 700 !important; }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 70%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 56px 20px; }
.hero h1 { font-size: 42px; line-height: 1.12; font-weight: 800; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p { color: #C8D6EE; margin: 14px 0 24px; font-size: 16.5px; max-width: 480px; }
.hero img { border-radius: 18px; box-shadow: 0 20px 44px rgba(0,0,0,.35); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 14.5px; border-radius: 10px; padding: 11px 20px; text-align: center; }
.btn-hero { background: var(--coral); color: #fff; }
.btn-hero2 { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-cart { background: var(--navy); color: #fff; }
.btn-cart:hover { background: var(--navy2); }
.btn-buy { background: var(--coral); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost { background: #EEF2F9; color: var(--navy); }
.btn-big { padding: 14px 28px; font-size: 16px; }

/* trustbar */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 12px 20px; }
.trustbar span { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.trustbar span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }

/* sections */
section { padding: 44px 0; }
section h2 { font-size: 26px; color: var(--navy2); font-weight: 700; }
.sub { color: var(--mut); margin: 6px 0 20px; }
.sec-alt { background: #fff; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head a.more { font-size: 14px; font-weight: 600; }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 14px; text-align: center; text-decoration: none; color: var(--ink); transition: .15s; }
.cat-tile:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,42,87,.08); }
.cat-tile img { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.cat-tile b { display: block; font-size: 15px; }
.cat-tile span { font-size: 12.5px; color: var(--mut); }

/* product grid + cards */
#grid, .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: .15s; }
.card:hover { box-shadow: 0 10px 26px rgba(15,42,87,.10); transform: translateY(-2px); }
.card-img img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.tag { font-size: 13px; color: var(--mut); }
.price-row { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.price { font-size: 19px; font-weight: 800; color: var(--coral); }
.stock { font-size: 12px; color: var(--ok); font-weight: 600; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { flex: 1; padding: 9px 8px; font-size: 13px; }
.wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: #B9C2D0; font-size: 17px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.wish.on { color: var(--coral); }

/* why */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why .w { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.why .w b { display: block; color: var(--navy2); margin-bottom: 4px; font-size: 15.5px; }
.why .w p { font-size: 13.5px; color: var(--mut); }
.why .ico { font-size: 22px; margin-bottom: 8px; }

/* shop layout */
.shoplay { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: sticky; top: 84px; }
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .4px; color: var(--mut); margin: 14px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: block; font-size: 14px; padding: 3px 0; color: var(--ink); }
.filters select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; }
.shop-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
#shop-count { font-size: 13.5px; color: var(--mut); }
.crumbs { font-size: 13px; color: var(--mut); margin-bottom: 18px; }
.crumbs a { color: var(--navy); text-decoration: none; }

/* product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pdp-gallery img#main-img, .pdp-gallery img#main-img-2 { border-radius: var(--r); border: 1px solid var(--line); }
#m-main-img { width: 100%; border-radius: var(--r); }
#m-thumbs { display: flex; gap: 10px; margin-top: 10px; }
#m-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
#m-thumbs img.on { border-color: var(--navy); }
.pdp-info h1 { font-size: 27px; color: var(--navy2); font-weight: 700; }
.pdp-info > p { margin: 10px 0; }
.pdp-info ul { margin: 8px 0 16px 18px; font-size: 14.5px; }
.pdp-info ul li { margin: 4px 0; }
.pdp .price { font-size: 27px; margin: 8px 0; }
.qtyrow { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 14px; font-weight: 600; }
.qtybox { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qtybox button { width: 36px; height: 38px; border: 0; background: #EEF2F9; font-size: 18px; cursor: pointer; color: var(--navy); }
.qtybox span { width: 42px; text-align: center; font-weight: 700; }
.pdp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.pdp-actions .btn { flex: 1; min-width: 130px; padding: 13px 10px; }
.pdp-trust { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--mut); }
.pdp-trust span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
table.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }
table.specs th, table.specs td { text-align: left; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
table.specs th { width: 200px; color: var(--mut); font-weight: 600; background: #FAFBFE; }
.stickybar { display: none; }
.rel { margin-top: 46px; }

/* faq */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 10px; }
.faq-item h3 { font-size: 15px; color: var(--navy2); margin-bottom: 4px; }
.faq-item p { font-size: 14px; color: var(--mut); }

/* cart / checkout / wishlist */
.crow { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; }
.crow img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.crow a { text-decoration: none; color: var(--ink); }
.cinfo b { display: block; font-size: 15px; }
.cinfo span { font-size: 13px; color: var(--mut); display: block; }
.link { background: none; border: 0; color: var(--coral); cursor: pointer; font-size: 13px; padding: 0; margin-top: 4px; font-weight: 600; }
.cqty { display: flex; align-items: center; gap: 8px; }
.cqty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #EEF2F9; cursor: pointer; font-size: 16px; color: var(--navy); }
.cqty span { font-weight: 700; min-width: 20px; text-align: center; }
.ctot { font-weight: 800; color: var(--navy2); font-size: 16px; }
.cart-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.sum { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.sum h3 { color: var(--navy2); margin-bottom: 10px; }
.sum .row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 5px 0; }
.sum .tot { font-size: 18px; font-weight: 800; color: var(--navy2); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.sum .note { font-size: 12.5px; color: var(--mut); margin: 8px 0 12px; }
.sum .btn { width: 100%; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--r); padding: 40px; text-align: center; color: var(--mut); grid-column: 1/-1; }
form.co { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
form.co label { display: block; font-size: 13.5px; font-weight: 600; margin: 12px 0 4px; }
form.co input, form.co textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14.5px; }
form.co input:focus, form.co textarea:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
form.co .half { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 6px 0; }
.co-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; color: var(--navy2); }
.co-note { font-size: 13px; color: var(--mut); background: #FFF8E1; border: 1px solid #FFE58A; border-radius: 10px; padding: 10px 14px; margin: 14px 0; }

/* contact card */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-top: 14px; }
.contact-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.a-call { background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.a-wa { background: var(--wa); color: #fff; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 700; }

/* category hero */
.cat-hero { background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff; padding: 40px 0; }
.cat-hero h1 { font-size: 30px; font-weight: 800; }
.cat-hero p { color: #C8D6EE; max-width: 640px; margin-top: 8px; }
.guide { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-top: 26px; }
.guide h2 { font-size: 19px; margin-bottom: 6px; }
.guide p { font-size: 14px; color: var(--mut); }

/* footer */
footer.site { background: var(--navy2); color: #C8D6EE; margin-top: 40px; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 26px; }
.f-title { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 8px; font-family: Poppins, sans-serif; }
.f-title span { color: var(--yellow); }
.f-h { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
footer.site a { color: #C8D6EE; text-decoration: none; font-size: 14px; }
footer.site a:hover { color: #fff; }
footer.site p { font-size: 14px; margin-bottom: 6px; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0 22px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* quick view modal + toast */
#qv { position: fixed; inset: 0; background: rgba(15,25,45,.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
#qv.show { display: flex; }
.qv-card { background: #fff; border-radius: 18px; max-width: 640px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; position: relative; }
.qv-card img { border-radius: 12px; width: 100%; height: 230px; object-fit: cover; }
.qv-x { position: absolute; top: 10px; right: 12px; border: 0; background: #EEF2F9; width: 30px; height: 30px; border-radius: 999px; font-size: 17px; cursor: pointer; }
.qv-body h3 { color: var(--navy2); }
.qv-body p { font-size: 13.5px; color: var(--mut); margin: 6px 0 10px; }
.qv-actions { display: flex; gap: 8px; margin-top: 12px; }
.qv-actions .btn { flex: 1; font-size: 13px; padding: 10px 6px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(80px); background: var(--navy2); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; z-index: 120; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* responsive */
@media (max-width: 900px) {
  .shoplay { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .cart-wrap { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; padding: 36px 20px; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 720px) {
  nav#mainnav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  nav#mainnav.open { display: flex; }
  nav#mainnav a { padding: 10px 12px; }
  #ham { display: block; }
  .hd { gap: 8px; }
  .btn-call-hd { display: none; }
  .crow { grid-template-columns: 64px 1fr; }
  .crow img { width: 64px; height: 64px; }
  .cqty, .ctot { grid-column: 2; }
  body.pdp-page { padding-bottom: 74px; }
  .stickybar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; gap: 10px; align-items: center; z-index: 80; box-shadow: 0 -4px 16px rgba(15,42,87,.1); }
  .stickybar .sp { font-weight: 800; color: var(--coral); font-size: 18px; font-family: Poppins, sans-serif; }
  .stickybar .btn { flex: 1; padding: 11px 6px; font-size: 13.5px; }
}
