:root {
  --primary: #FF5A28;
  --primary-2: #FF9A1F;
  --primary-dark: #E2431A;
  --navy: #1E2A5A;
  --navy-2: #2B3A78;
  --yellow: #FFD23F;
  --teal: #14A38B;
  --pink: #E8478B;
  --bg: #F7F8FC;
  --card: #FFFFFF;
  --text: #1F2433;
  --muted: #6B7280;
  --line: #E6E8F0;
  --success: #16A34A;
  --danger: #DC2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(30, 42, 90, .08);
  --shadow-lg: 0 18px 48px rgba(30, 42, 90, .16);
  --container: 1240px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.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;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 800; letter-spacing: .2px; transition: .2s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 40, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 90, 40, .38); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #DCE2F5; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; }
.topbar-msg { display: flex; gap: 8px; align-items: center; }
.topbar-msg b { color: var(--yellow); }

/* ---------- Header ---------- */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(30, 42, 90, .06); }
.header-main { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 50px; height: 50px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .l1 { font-family: var(--font-head); font-weight: 800; font-size: 27px; color: var(--navy); letter-spacing: -.5px; }
.logo-text .l1 span { color: var(--primary); }
.logo-text .l2 { font-weight: 900; font-size: 11.5px; letter-spacing: 6.2px; color: var(--navy); margin-top: 3px; }
.search { flex: 1; position: relative; }
.search input {
  width: 100%; height: 50px; border-radius: 999px; border: 2px solid var(--line);
  padding: 0 60px 0 22px; background: var(--bg); outline: none; transition: .2s;
}
.search input:focus { border-color: var(--primary); background: #fff; }
.search button {
  position: absolute; right: 5px; top: 5px; height: 40px; width: 46px; border-radius: 999px; border: 0;
  background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.header-actions { display: flex; gap: 6px; }
.h-action { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; position: relative; transition: .2s; }
.h-action:hover { background: var(--bg); }
.h-action svg { width: 26px; height: 26px; color: var(--navy); }
.h-action small { display: block; font-size: 12px; color: var(--muted); line-height: 1.1; }
.h-action strong { display: block; font-size: 14px; color: var(--navy); line-height: 1.2; }
.cart-count {
  position: absolute; top: 2px; left: 28px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff;
}
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle svg { width: 28px; height: 28px; color: var(--navy); }

.nav { border-top: 1px solid var(--line); }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 13px 14px; font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.active { color: var(--primary); border-color: var(--primary); }
.nav .hot { color: var(--primary); }

/* ---------- Hero slider ---------- */
.hero { padding: 24px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.slider { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7.2; box-shadow: var(--shadow); background: #ddd; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; background-size: cover; background-position: center right; }
.slide.active { opacity: 1; z-index: 1; }
.slide-content { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); max-width: 46%; }
.slide-tag { display: inline-block; background: #fff; color: var(--primary); font-weight: 900; font-size: 12.5px; letter-spacing: 1px; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; }
.slide h2 { font-size: clamp(26px, 3.6vw, 48px); color: #fff; margin-bottom: 12px; text-shadow: 0 2px 16px rgba(0, 0, 0, .12); }
.slide p { color: #fff; opacity: .95; font-size: clamp(14px, 1.3vw, 17px); margin: 0 0 22px; }
.slide.light h2, .slide.light p { color: var(--navy); text-shadow: none; }
.slider-dots { position: absolute; bottom: 18px; left: 6%; display: flex; gap: 8px; z-index: 3; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: .3s; padding: 0; }
.slider-dots button.active { width: 32px; background: #fff; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; display: grid; place-items: center; color: var(--navy); box-shadow: var(--shadow); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.side-banners { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.side-banner { border-radius: 20px; padding: 24px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; }
.side-banner h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.side-banner p { margin: 0 0 12px; font-size: 14px; opacity: .92; }
.side-banner .emoji { position: absolute; right: 14px; top: 8px; font-size: 64px; opacity: .95; transform: rotate(-8deg); }
.side-banner.b1 { background: linear-gradient(135deg, #2B59C3, #1E2A5A); }
.side-banner.b2 { background: linear-gradient(135deg, #14A38B, #0E7A68); }
.side-banner .link { font-weight: 800; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Trust strip ---------- */
.trust { padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.trust-item { display: flex; gap: 14px; align-items: center; }
.trust-item .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: #FFF1EA; color: var(--primary); }
.trust-item .ic svg { width: 26px; height: 26px; }
.trust-item strong { display: block; color: var(--navy); font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 36px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 30px; margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head a { font-weight: 800; color: var(--primary); white-space: nowrap; }

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card { background: #fff; border-radius: var(--radius); padding: 22px 12px; text-align: center; box-shadow: var(--shadow); transition: .25s; border: 2px solid transparent; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--c); }
.cat-card .ci { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: color-mix(in srgb, var(--c) 14%, white); }
.cat-card strong { color: var(--navy); font-size: 14.5px; display: block; line-height: 1.3; }
.cat-card small { color: var(--muted); font-size: 12.5px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .25s; position: relative; }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.p-img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s; }
.p-card:hover .p-img img { transform: scale(1.06); }
.p-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 900; padding: 4px 11px; border-radius: 999px; z-index: 2; }
.p-badge.green { background: var(--teal); }
.p-fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; z-index: 2; color: var(--muted); }
.p-fav.on { color: var(--pink); }
.p-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line); }
.p-brand { font-size: 12px; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: .6px; }
.p-name { font-weight: 700; color: var(--text); font-size: 14.5px; line-height: 1.4; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.p-name:hover { color: var(--primary); }
.p-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.stars { color: #FFB400; letter-spacing: 1px; }
.p-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price .now { font-size: 21px; font-weight: 900; color: var(--navy); }
.p-price .old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.p-inst { font-size: 12px; color: var(--teal); font-weight: 700; margin: 2px 0 12px; }
.p-card .btn { padding: 11px 16px; font-size: 14px; }

/* ---------- Promo banners ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo { border-radius: 22px; padding: 34px; min-height: 220px; display: flex; flex-direction: column; justify-content: center; background-size: cover; background-position: center right; position: relative; overflow: hidden; }
.promo h3 { font-size: 30px; color: #fff; max-width: 60%; }
.promo p { color: #fff; max-width: 55%; margin: 0 0 18px; opacity: .92; }
.promo.light h3, .promo.light p { color: var(--navy); }

.wide-banner { border-radius: 24px; background: linear-gradient(120deg, var(--navy) 0%, #34479A 100%); color: #fff; padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.wide-banner h3 { color: #fff; font-size: 32px; margin: 0 0 6px; }
.wide-banner p { margin: 0; opacity: .85; }
.wide-banner .code { background: rgba(255, 255, 255, .12); border: 2px dashed rgba(255, 255, 255, .5); padding: 12px 22px; border-radius: 14px; font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: 3px; color: var(--yellow); }
.wide-banner::after { content: "🎁"; position: absolute; right: -10px; bottom: -30px; font-size: 160px; opacity: .08; }

.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand { background: #fff; border-radius: 14px; height: 80px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--navy); box-shadow: var(--shadow); opacity: .85; transition: .2s; }
.brand:hover { opacity: 1; color: var(--primary); }

.newsletter { background: linear-gradient(135deg, var(--primary-2), var(--primary)); border-radius: 24px; padding: 40px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.newsletter h3 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.newsletter p { margin: 0; opacity: .92; }
.newsletter form { display: flex; gap: 10px; background: #fff; padding: 6px; border-radius: 999px; }
.newsletter input { flex: 1; border: 0; outline: none; padding: 0 18px; border-radius: 999px; min-width: 0; }
.newsletter small { display: block; margin-top: 8px; font-size: 12px; opacity: .9; }
.newsletter small a { text-decoration: underline; }

/* ---------- Breadcrumb / page head ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span.sep { opacity: .5; }
.page-title { font-size: 32px; margin: 6px 0 20px; }

/* ---------- Listing ---------- */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; padding-bottom: 40px; }
.filters { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 140px; }
.filters h4 { font-size: 16px; margin: 0 0 10px; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border: 0; }
.filter-group label { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; }
.filter-group input[type=checkbox], .filter-group input[type=radio] { accent-color: var(--primary); width: 17px; height: 17px; }
.price-inputs { display: flex; gap: 8px; }
.price-inputs input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.toolbar select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.listing .product-grid { grid-template-columns: repeat(3, 1fr); }
.empty { background: #fff; border-radius: var(--radius); padding: 60px 20px; text-align: center; box-shadow: var(--shadow); }
.empty .big { font-size: 64px; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.pd-gallery .main { border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; background: #fff; cursor: zoom-in; position: relative; }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform .3s; }
.pd-gallery .main.zoom img { transform: scale(1.8); cursor: zoom-out; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs img { width: 76px; height: 76px; object-fit: contain; border: 2px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; background: #fff; }
.pd-thumbs img.active { border-color: var(--primary); }
.pd-info .brand-line { font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: .8px; font-size: 13px; }
.pd-info h1 { font-size: 28px; margin: 6px 0 10px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.pd-price { background: var(--bg); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.pd-price .now { font-size: 34px; font-weight: 900; color: var(--navy); font-family: var(--font-head); }
.pd-price .old { color: var(--muted); text-decoration: line-through; margin-left: 10px; font-size: 17px; }
.pd-price .save { display: inline-block; background: #FFE9E1; color: var(--primary); font-weight: 900; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-left: 10px; }
.pd-price .inst { font-size: 13.5px; color: var(--teal); font-weight: 700; margin-top: 4px; }
.pd-short { color: #444; margin-bottom: 18px; }
.pd-buy { display: flex; gap: 12px; margin-bottom: 18px; }
.qty { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; height: 54px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--navy); }
.qty input { width: 44px; text-align: center; border: 0; font-weight: 800; outline: none; }
.pd-buy .btn { flex: 1; height: 54px; }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-perks div { display: flex; gap: 10px; align-items: center; font-size: 13.5px; background: var(--bg); padding: 10px 12px; border-radius: 12px; }
.pd-perks svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.stock-ok { color: var(--success); font-weight: 800; }
.stock-low { color: var(--primary); font-weight: 800; }

.tabs { background: #fff; border-radius: 24px; box-shadow: var(--shadow); margin-top: 24px; overflow: hidden; }
.tab-btns { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btns button { background: none; border: 0; padding: 18px 24px; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-btns button.active { color: var(--primary); border-color: var(--primary); }
.tab-pane { display: none; padding: 26px 30px; }
.tab-pane.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { font-weight: 800; color: var(--navy); width: 34%; background: var(--bg); }
.inst-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inst-table th, .inst-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.inst-table th { background: var(--navy); color: #fff; font-weight: 800; }
.inst-table tr:nth-child(even) td { background: var(--bg); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 24px; align-items: start; padding-bottom: 50px; }
.box { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 24px; }
.box + .box { margin-top: 20px; }
.box h3 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.box h3 .num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 15px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border: 0; }
.cart-item img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: #fff; }
.cart-item .nm { font-weight: 700; color: var(--navy); }
.cart-item .nm:hover { color: var(--primary); }
.cart-item .sm { font-size: 12.5px; color: var(--muted); }
.cart-item .qty { height: 42px; }
.cart-item .qty button { width: 34px; }
.cart-item .qty input { width: 34px; }
.cart-item .line { font-weight: 900; color: var(--navy); min-width: 110px; text-align: right; }
.rm { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.rm:hover { color: var(--danger); background: #FEECEC; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.summary-row.total { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 19px; font-weight: 900; color: var(--navy); }
.free-ship { background: #EAF8F3; color: #0E7A68; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.ship-bar { height: 8px; background: #CDEFE5; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; min-width: 0; }
.coupon .btn { padding: 11px 18px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.secure-note svg { width: 16px; height: 16px; color: var(--success); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; font-size: 13px; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: #fff; transition: .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 90, 40, .12); }
.field.err input, .field.err select { border-color: var(--danger); }
.field .msg { display: none; color: var(--danger); font-size: 12px; margin-top: 4px; }
.field.err .msg { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 10px 0; cursor: pointer; }
.check input { accent-color: var(--primary); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.check a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.check.err { color: var(--danger); }

/* ---------- Payment ---------- */
.pay-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.card-visual {
  width: 100%; max-width: 340px; aspect-ratio: 1.586; border-radius: 18px; padding: 22px; color: #fff; position: relative;
  background: linear-gradient(135deg, #2B3A78, #1E2A5A 60%, #111833); box-shadow: 0 18px 40px rgba(30, 42, 90, .35);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background .4s;
}
.card-visual.visa { background: linear-gradient(135deg, #1A1F71, #2B4BC8); }
.card-visual.mastercard { background: linear-gradient(135deg, #2A2A2A, #000); }
.card-visual.troy { background: linear-gradient(135deg, #0F8A8A, #0B4F6C); }
.card-visual.amex { background: linear-gradient(135deg, #1D6FB8, #0B3F73); }
.card-visual::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .06); right: -90px; top: -110px; }
.card-visual .chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #F4D27A, #C9A046); }
.card-visual .cnum { font-size: 18px; letter-spacing: 1.5px; font-family: "Courier New", monospace; font-weight: 700; white-space: nowrap; }
.card-visual .crow { display: flex; justify-content: space-between; align-items: end; font-size: 13px; text-transform: uppercase; }
.card-visual .crow small { display: block; opacity: .65; font-size: 10px; }
.card-visual .brandmark { position: absolute; top: 20px; right: 22px; height: 30px; }
.card-visual .brandmark svg { height: 30px; width: auto; }
.inst-options { display: grid; gap: 8px; margin-top: 6px; }
.inst-opt { display: flex; justify-content: space-between; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; font-size: 14px; }
.inst-opt input { accent-color: var(--primary); margin-right: 10px; }
.inst-opt.sel { border-color: var(--primary); background: #FFF5F0; }
.inst-opt b { color: var(--navy); }
.secure-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.secure-badges .b { background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 38px; padding: 4px 8px; display: grid; place-items: center; }
.secure-badges .b svg { height: 26px; width: auto; }
.info-3d { background: #EEF2FF; border: 1px solid #D6DEFF; color: var(--navy); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; display: flex; gap: 12px; margin-top: 14px; }
.info-3d svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--navy-2); }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(17, 24, 51, .6); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 440px; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
.modal-lg { max-width: 760px; max-height: 86vh; display: flex; flex-direction: column; }
.modal-lg .modal-body { overflow-y: auto; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h4 { margin: 0; font-size: 18px; }
.modal-close { background: var(--bg); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.modal-body { padding: 22px; }
.tds-head { background: #F3F4F6; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.tds-head .bank { font-weight: 900; color: var(--navy); }
.tds-table { width: 100%; font-size: 13.5px; margin: 10px 0 16px; }
.tds-table td { padding: 5px 0; }
.tds-table td:first-child { color: var(--muted); width: 45%; }
.otp { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 800; border: 2px solid var(--line); border-radius: 12px; outline: none; }
.otp input:focus { border-color: var(--primary); }
.timer { text-align: center; font-size: 13px; color: var(--muted); }
.spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 10px auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */
.success { text-align: center; padding: 50px 30px; }
.success .tick { width: 96px; height: 96px; border-radius: 50%; background: #DCFCE7; color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.success .tick svg { width: 50px; height: 50px; }
.order-no { display: inline-block; background: var(--bg); padding: 10px 20px; border-radius: 12px; font-weight: 900; color: var(--navy); font-size: 18px; letter-spacing: 1px; margin: 10px 0 20px; }

/* ---------- Content pages ---------- */
.content-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; padding-bottom: 50px; }
.side-menu { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 12px; position: sticky; top: 140px; }
.side-menu a { display: block; padding: 11px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--navy); }
.side-menu a:hover { background: var(--bg); }
.side-menu a.active { background: #FFF1EA; color: var(--primary); }
.doc { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 36px 40px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 21px; margin-top: 28px; }
.doc h3 { font-size: 17px; margin-top: 20px; }
.doc p, .doc li { color: #374151; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg); color: var(--navy); }
.doc .meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.doc .note { background: #FFF8E6; border-left: 4px solid var(--yellow); padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.ph { background: #FFF3CD; padding: 0 4px; border-radius: 4px; }

.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { padding: 16px 0; font-weight: 800; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.contact-card { background: var(--bg); border-radius: 16px; padding: 20px; }
.contact-card .ic { font-size: 28px; }
.contact-card strong { display: block; color: var(--navy); margin: 6px 0 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #C8CFE6; margin-top: 40px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 30px; padding: 50px 0 34px; }
.footer h5 { color: #fff; font-family: var(--font-head); font-size: 17px; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer .logo-text .l1, .footer .logo-text .l2 { color: #fff; }
.footer .about { margin: 14px 0; line-height: 1.7; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: .2s; }
.social a:hover { background: var(--primary); }
.social svg { width: 18px; height: 18px; color: #fff; }
.f-contact li { display: flex; gap: 10px; }
.f-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--primary-2); }
.footer-pay { border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer-pay .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pay-logos .pl { background: #fff; border-radius: 8px; height: 40px; min-width: 64px; padding: 5px 10px; display: grid; place-items: center; }
.pay-logos .pl svg { height: 26px; width: auto; display: block; }
.pay-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #8D97BD; margin-bottom: 8px; font-weight: 800; }
.footer-company { padding: 20px 0; font-size: 12.5px; color: #98A2C8; line-height: 1.8; }
.footer-company b { color: #DCE2F5; }
.footer-bottom { background: #151E44; padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom .links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 150; max-width: 980px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px 24px; display: none; gap: 20px; align-items: center; border: 1px solid var(--line); }
.cookie.show { display: flex; }
.cookie .ck-ic { font-size: 38px; }
.cookie p { margin: 0; font-size: 13.5px; color: #4B5563; }
.cookie p a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.cookie .ck-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie .btn { padding: 10px 18px; font-size: 13.5px; }
.ck-pref label { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.ck-pref label small { display: block; color: var(--muted); font-size: 12.5px; }
.ck-pref input { accent-color: var(--primary); width: 20px; height: 20px; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 100px; right: 20px; z-index: 300; background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; transform: translateX(130%); transition: transform .35s ease, visibility .35s; max-width: 360px; visibility: hidden; }
.toast.show { transform: none; visibility: visible; }
.toast img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.toast a { color: var(--yellow); font-weight: 800; }

.back-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; border: 0; cursor: pointer; display: none; place-items: center; box-shadow: var(--shadow-lg); z-index: 90; }
.back-top.show { display: grid; }

/* ---------- Mobile nav ---------- */
.mnav { position: fixed; inset: 0; z-index: 250; display: none; }
.mnav.open { display: block; }
.mnav .bg { position: absolute; inset: 0; background: rgba(17, 24, 51, .55); }
.mnav .panel { position: absolute; left: 0; top: 0; bottom: 0; width: 82%; max-width: 330px; background: #fff; padding: 20px; overflow-y: auto; }
.mnav .panel a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .side-banners { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .h-action .txt { display: none; }
}
@media (max-width: 900px) {
  .listing, .cart-layout, .content-layout, .pay-wrap { grid-template-columns: 1fr; }
  .filters, .side-menu { position: static; }
  .pd { grid-template-columns: 1fr; padding: 20px; }
  .listing .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .newsletter, .promo-grid { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .wide-banner { flex-direction: column; align-items: flex-start; padding: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-links { display: none; }
  .header-main { height: 70px; gap: 12px; }
  .menu-toggle { display: block; }
  .nav { display: none; }
  .search { position: absolute; left: 0; right: 0; top: 70px; padding: 0 16px 12px; background: #fff; }
  .header { padding-bottom: 62px; }
  .logo { margin-right: auto; }
  .logo img { width: 42px; height: 42px; }
  .logo-text .l1 { font-size: 22px; }
  .logo-text .l2 { font-size: 9.5px; letter-spacing: 5px; }
  .h-action { padding: 6px; }
  .h-action.hide-sm { display: none; }
  .product-grid, .listing .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-body { padding: 10px 12px 14px; }
  .p-price .now { font-size: 17px; }
  .slider { aspect-ratio: 4 / 3.4; }
  .slide { background-position: 72% center; }
  .slide-content { max-width: 80%; top: auto; bottom: 46px; transform: none; }
  .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 70%); }
  .slide-content { z-index: 2; }
  .slide.light h2, .slide.light p { color: #fff; }
  .side-banners { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item .line { text-align: left; }
  .doc { padding: 24px 20px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie .ck-btns { flex-wrap: wrap; }
  .trust-grid { grid-template-columns: 1fr; }
  .promo h3, .promo p { max-width: 100%; }
}
