* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --yellow: #F2B826; --yellow-dark: #C99715; --gold-soft: #FFF1C6;
  --navy: #0E2A5C; --navy-2: #143A7A; --navy-deep: #040F2A;
  --ink: #0B1B3D; --ink-strong: #061A3D; --muted: #5B6477; --line: #E6E9F0;
  --page: #F7F4ED; --card: #ffffff;
  --blue: #1E4FA3; --blue-dark: #143A7A;
  --red: #DC2626; --green: #16A34A;
}
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--ink); background: var(--page); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
h1, h2, h3 { font-weight: 700; color: var(--ink-strong); }

.announce { background: var(--navy-deep); color: var(--yellow); text-align: center; font-size: 12.5px; padding: 7px 12px; font-weight: 500; }

.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 4px rgba(64,69,83,.12); }
.header-bar { background: var(--navy); }
.header-row { display: flex; align-items: center; gap: 22px; padding: 12px 20px; }
.nav-bar { background: #fff; border-bottom: 1px solid var(--line); }
.logo img { height: 40px; }
.logo-text { font-size: 25px; font-weight: 800; color: #fff; letter-spacing: -0.5px; white-space: nowrap; }
.logo-text b { color: var(--yellow); }
.search { flex: 1; display: flex; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(64,69,83,.10); }
.search input { flex: 1; border: 0; padding: 11px 16px; font-size: 14px; font-family: inherit; outline: none; color: var(--ink); }
.search button { border: 0; background: #fff; padding: 0 16px; font-size: 18px; color: var(--muted); }
.header-icons { display: flex; gap: 22px; font-size: 14px; font-weight: 600; align-items: center; white-space: nowrap; color: #fff; }
.header-icons a { display: flex; align-items: center; gap: 6px; }
.header-icons a:hover { color: var(--yellow); }
.cart-link { position: relative; padding-right: 4px; }
.cart-badge { position: absolute; top: -10px; right: -12px; background: var(--yellow); color: var(--navy-deep); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 0 6px; line-height: 17px; }
.main-nav { display: flex; gap: 4px; font-size: 14px; font-weight: 500; padding: 0 12px; overflow-x: auto; }
.main-nav a { padding: 11px 12px; white-space: nowrap; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--blue); border-color: var(--blue); }
.nav-sale { color: var(--red); font-weight: 700; }

.flash { max-width: 1360px; margin: 14px auto 0; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.flash-success { background: #e8f7e0; color: #256d02; }
.flash-error { background: #fdeaea; color: #a01023; }

.hero { padding: 18px 0 0; }
.hero-banner { background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px 44px; position: relative; overflow: hidden; }
.hero-banner:before { content: ''; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(242,184,38,.18); }
.hero-banner:after { content: ''; position: absolute; right: 90px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-kicker { display: inline-block; background: var(--yellow); color: var(--navy-deep); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.hero h1 { font-size: 38px; line-height: 1.15; font-weight: 800; max-width: 560px; color: #fff; }
.hero p { margin-top: 10px; color: #cfd9ee; max-width: 480px; font-size: 15px; }
.mini-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mini-banner { border-radius: 12px; padding: 22px 26px; color: #fff; position: relative; overflow: hidden; display: block; transition: transform .15s ease; }
.mini-banner:hover { transform: translateY(-2px); }
.mini-banner .t { font-size: 20px; font-weight: 800; }
.mini-banner .s { font-size: 13px; opacity: .92; margin-top: 3px; }
.mb-sale { background: linear-gradient(100deg, #F2B826, #FFC93C); color: var(--navy-deep); }
.mb-sale .s { opacity: 1; color: #6b5310; }
.mb-new { background: linear-gradient(100deg, var(--navy), var(--blue)); }

.btn { display: inline-block; background: var(--yellow); color: var(--navy-deep); border: 1px solid var(--yellow); padding: 11px 26px; border-radius: 8px; font-size: 14px; font-weight: 700; transition: all .15s ease; text-align: center; box-shadow: 0 8px 20px -8px rgba(242,184,38,.55); }
.btn:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: #fff; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.btn-dark:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn-outline:hover { background: #f0f3fa; color: var(--navy); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; border: 0; font-size: 15px; padding: 13px; }

.section { padding: 26px 0 4px; }
.section-inner { background: var(--card); border-radius: 12px; padding: 20px 22px 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 21px; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--blue); }
.section-head a:hover { text-decoration: underline; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 16px; }
.cat-tile { text-align: center; transition: transform .15s ease; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-circle { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #fff; }
.cat-tile .name { font-size: 13px; font-weight: 600; color: var(--ink-strong); }
.cat-tile .count { font-size: 11.5px; color: var(--muted); }
.cc-0 { background: var(--navy); } .cc-1 { background: var(--yellow); color: var(--navy-deep); } .cc-2 { background: var(--blue); }
.cc-3 { background: var(--yellow-dark); } .cc-4 { background: var(--navy-2); } .cc-5 { background: var(--yellow); color: var(--navy-deep); }
.cc-6 { background: var(--navy-deep); } .cc-7 { background: #5B6477; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: box-shadow .15s ease; position: relative; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 6px 18px rgba(64,69,83,.14); }
.card-img { aspect-ratio: 3/4; background: #f4f4f6; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b9becf; font-weight: 700; font-size: 18px; text-align: center; padding: 10px; }
.badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--ink-strong); color: #fff; }
.badge-sale { background: var(--red); }
.card-img-link { display: block; }
.card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.card-brand { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: 13.5px; margin: 2px 0 6px; line-height: 1.4; color: var(--ink); min-height: 37px; }
.price { font-size: 15px; color: var(--ink-strong); }
.price .cur { font-size: 11px; font-weight: 600; margin-right: 2px; }
.price .amt { font-weight: 800; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 12px; font-weight: 400; margin-left: 6px; }
.price .off { color: var(--green); font-size: 12px; font-weight: 700; margin-left: 6px; }
.express { display: inline-flex; align-items: center; gap: 4px; background: var(--yellow); color: var(--ink-strong); font-size: 10.5px; font-weight: 800; font-style: italic; padding: 2px 8px; border-radius: 4px; margin-top: 7px; width: fit-content; }
.stock-note { font-size: 12px; margin-top: 5px; font-weight: 500; }
.stock-low { color: #e07c00; }
.stock-in { color: var(--green); }

.brand-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { background: #fff; border: 1px solid var(--line); padding: 9px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-strong); }
.brand-chip:hover { border-color: var(--blue); color: var(--blue); }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; padding: 22px 0; align-items: start; }
.filters { background: var(--card); border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); }
.filters h3 { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; margin: 16px 0 7px; color: var(--muted); }
.filters h3:first-of-type { margin-top: 0; }
.filters select, .filters input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.filters .row { display: flex; gap: 8px; }
.shop-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.shop-top h1 { font-size: 22px; }
.shop-top select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 13.5px; background: #fff; color: var(--ink); }

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; padding: 24px 0; }
.pdp-card { background: var(--card); border-radius: 12px; border: 1px solid var(--line); padding: 24px; }
.pdp-gallery .main { aspect-ratio: 3/4; background: #f4f4f6; border-radius: 10px; overflow: hidden; }
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pdp-thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; }
.pdp-thumbs img:hover { border-color: var(--blue); }
.pdp-brand { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.pdp h1 { font-size: 24px; font-weight: 700; margin: 6px 0 12px; }
.pdp .price { font-size: 24px; }
.pdp .price .cur { font-size: 14px; }
.opt-group { margin: 18px 0; }
.opt-label { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); }
.opt.active { border-color: var(--blue); background: #eef2fd; color: var(--blue); }
.opt.oos { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.trust { display: flex; flex-direction: column; gap: 7px; margin: 18px 0 0; font-size: 13.5px; color: var(--ink); background: var(--page); border-radius: 10px; padding: 14px 16px; }
.trust span:before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 8px; }
.pdp-desc { margin-top: 18px; font-size: 14px; color: var(--ink); white-space: pre-line; }

.cart-page { max-width: 940px; margin: 0 auto; padding: 26px 20px; }
.cart-page h1, .page-title { font-size: 24px; margin-bottom: 18px; }
.cart-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 18px; }
.cart-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-box .cart-line:last-child { border-bottom: 0; }
.cart-line img, .cart-line .noimg { width: 70px; height: 88px; object-fit: cover; border-radius: 8px; background: #f4f4f6; }
.cart-line .info { flex: 1; }
.cart-line .qty-form { display: flex; align-items: center; gap: 6px; }
.cart-line input[type=number] { width: 56px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-family: inherit; }
.totals { margin-top: 18px; margin-left: auto; max-width: 380px; font-size: 14.5px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.totals .row { display: flex; justify-content: space-between; padding: 5px 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 17px; font-weight: 800; color: var(--ink-strong); }
.free-ship-note { background: #e8f7e0; color: #256d02; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 9px 12px; margin-top: 12px; }
.promo-form { display: flex; gap: 8px; margin-top: 16px; }
.promo-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }

.form-page { max-width: 460px; margin: 0 auto; padding: 34px 20px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,102,223,.12); }
.field textarea { min-height: 90px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note a { color: var(--blue); font-weight: 600; }

.checkout-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; max-width: 1020px; margin: 0 auto; padding: 26px 20px; align-items: start; }
.checkout-form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.pay-opt.active { border-color: var(--blue); background: #eef2fd; }
.pay-opt small { color: var(--muted); display: block; font-weight: 400; }
.summary-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.summary-box h3 { font-size: 17px; margin-bottom: 12px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; }
.sum-grand { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: 17px; font-weight: 800; color: var(--ink-strong); }

.timeline { list-style: none; margin: 20px 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li:before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.timeline li:last-child { border-color: transparent; }
.timeline .when { font-size: 12px; color: var(--muted); }

.status-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--page); }
.st-placed { background: #e7efff; color: #2a52b8; }
.st-packed { background: #fff3d6; color: #8a5b00; }
.st-shipped { background: #efe7ff; color: #5b2ab8; }
.st-delivered { background: #e8f7e0; color: #256d02; }
.st-cancelled { background: #fdeaea; color: #a01023; }

.account-order { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.account-order .head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.account-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); margin-top: 8px; font-size: 14px; gap: 10px; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input, .inline-form select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 13px; }

.brand-hero { background: linear-gradient(100deg, var(--navy-deep), var(--navy-2)); color: #fff; padding: 36px 20px; text-align: center; border-radius: 0 0 16px 16px; }
.brand-hero img { height: 64px; margin: 0 auto 12px; background: #fff; border-radius: 12px; padding: 8px; }
.brand-hero h1 { font-size: 28px; color: #fff; }
.brand-hero p { color: #cfd4e4; max-width: 560px; margin: 8px auto 0; font-size: 14px; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h2 { color: var(--ink-strong); margin-bottom: 8px; font-size: 20px; }

.site-footer { margin-top: 44px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 34px 20px; font-size: 13.5px; }
.footer-grid h4 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-strong); }
.footer-grid a { display: block; padding: 3px 0; color: var(--muted); }
.footer-grid a:hover { color: var(--blue); }
.footer-logo { font-size: 20px; font-weight: 800; color: var(--ink-strong); margin-bottom: 6px; }
.socials { margin-top: 10px; }
.footer-bottom { padding: 14px 20px 24px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .search { order: 3; max-width: none; flex: 1 1 100%; }
  .hero-banner { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .hero h1 { font-size: 27px; }
  .mini-banners { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 16px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .card-name { min-height: 0; }
}

/* ============ Phase B/C: header extras ============ */
.deliver-chip { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: .92; }
.deliver-chip .pin { font-style: normal; font-size: 13px; }
.deliver-chip b { color: var(--yellow); }
.hide-mobile { display: flex; }
.site-header.condensed .header-row { padding: 8px 20px; }

.search { position: relative; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(4,15,42,.18); max-height: 420px; overflow-y: auto; display: none; z-index: 60; text-align: left; }
.search-results.open { display: block; }
.sr-group { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding: 10px 14px 4px; }
.sr-brand { display: block; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sr-brand:hover { background: var(--page); }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.sr-item:hover { background: var(--page); }
.sr-item img, .sr-noimg { width: 40px; height: 50px; object-fit: cover; border-radius: 6px; background: #f4f4f6; flex-shrink: 0; }
.sr-name { display: block; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.sr-brand2 { display: block; font-size: 12px; color: var(--muted); }

/* ============ Mini-cart drawer ============ */
.mc-overlay { position: fixed; inset: 0; background: rgba(4,15,42,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 90; }
.mc-overlay.open { opacity: 1; pointer-events: auto; }
.mc-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: #fff; z-index: 91; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(4,15,42,.18); }
.mc-drawer.open { transform: translateX(0); }
.mc-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.mc-close { border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--muted); }
.mc-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.mc-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mc-line img, .mc-noimg { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; background: #f4f4f6; flex-shrink: 0; }
.mc-info { flex: 1; min-width: 0; }
.mc-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.mc-name { font-size: 13.5px; color: var(--ink); margin: 2px 0; }
.mc-meta { font-size: 12px; color: var(--muted); }
.mc-price { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.mc-empty { text-align: center; padding: 60px 10px; color: var(--muted); font-size: 14px; }
.mc-skel { height: 70px; border-radius: 8px; background: linear-gradient(90deg, #f0f0f2 25%, #f8f8f9 37%, #f0f0f2 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; margin: 10px 0; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.mc-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.mc-sub { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }

/* ============ Toast ============ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink-strong); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Mobile bottom tab bar ============ */
.mobile-tabbar { display: none; }
@media (max-width: 720px) {
  .mobile-tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 80; padding: 6px 0 max(6px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(4,15,42,.08); }
  .mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
  .mobile-tabbar a span { font-size: 18px; }
  .mobile-tabbar a.active { color: var(--blue); }
  body { padding-bottom: 58px; }
  .hide-mobile { display: none; }
  .deliver-chip { display: none; }
}

/* ============ WhatsApp float ============ */
.wa-float { position: fixed; bottom: 24px; right: 20px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 8px 20px rgba(37,211,102,.4); z-index: 70; }
@media (max-width: 720px) { .wa-float { bottom: 74px; right: 14px; width: 48px; height: 48px; } }

/* ============ Hero carousel ============ */
.hc-track { position: relative; border-radius: 12px; overflow: hidden; min-height: 260px; }
.hc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; display: flex; align-items: center; }
.hc-slide.active { position: relative; opacity: 1; }
.hc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hc-slide .hc-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,15,42,.72) 0%, rgba(4,15,42,.35) 55%, rgba(4,15,42,.05) 100%); z-index: 1; }
.hc-slide .hc-content { position: relative; z-index: 2; padding: 38px 44px; max-width: 560px; }
.hc-dots { display: flex; gap: 7px; position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hc-dot.active { background: var(--yellow); width: 22px; border-radius: 4px; }

/* ============ Category photo tiles ============ */
.cat-photo { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 8px; overflow: hidden; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Campaign tiles (dynamic) ============ */
.tile-img { border-radius: 12px; overflow: hidden; position: relative; display: block; height: 140px; transition: transform .15s ease; }
.tile-img:hover { transform: translateY(-2px); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img .tile-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,15,42,.75), rgba(4,15,42,.15)); display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; color: #fff; }
.tile-img .t { font-size: 19px; font-weight: 800; }
.tile-img .s { font-size: 12.5px; opacity: .9; margin-top: 3px; }

/* ============ Product rails (horizontal scroll) ============ */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { width: 190px; flex: 0 0 190px; scroll-snap-align: start; }
.rail-arrow { position: absolute; top: 40%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(4,15,42,.14); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 5; font-size: 15px; color: var(--ink-strong); }
@media (min-width: 860px) { .rail-arrow { display: flex; } }
.rail-arrow.left { left: -14px; }
.rail-arrow.right { right: -14px; }

/* ============ Ratings ============ */
.stars { color: var(--yellow-dark); font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.stars .empty { color: #e2e5f1; }
.rating-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.rating-count { font-size: 12px; color: var(--muted); }
.rating-summary { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.rating-big { text-align: center; }
.rating-big .num { font-size: 42px; font-weight: 800; color: var(--ink-strong); line-height: 1; }
.rating-bars { flex: 1; min-width: 200px; }
.rbar-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin: 3px 0; }
.rbar-row .lbl { width: 34px; color: var(--muted); }
.rbar-track { flex: 1; height: 7px; background: var(--page); border-radius: 999px; overflow: hidden; }
.rbar-fill { height: 100%; background: var(--yellow); }
.review-card { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review-card .rc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-card .rc-name { font-weight: 700; font-size: 13.5px; }
.review-card .rc-verified { font-size: 11px; background: #e8f7e0; color: #256d02; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.review-card .rc-title { font-weight: 700; margin: 6px 0 3px; }
.review-card .rc-body { font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.review-card .rc-date { font-size: 12px; color: var(--muted); margin-top: 6px; }
.star-input { display: flex; gap: 4px; font-size: 24px; cursor: pointer; }
.star-input span { color: #e2e5f1; }
.star-input span.on { color: var(--yellow-dark); }

/* ============ Wishlist heart on cards ============ */
.wish-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); border: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); cursor: pointer; z-index: 2; }
.wish-btn.active { color: var(--red); }
.wish-btn:hover { color: var(--red); }
.card-img .card-img-2 { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.card:hover .card-img-2 { opacity: 1; }
.quick-add { position: absolute; left: 8px; right: 8px; bottom: 8px; background: var(--ink-strong); color: #fff; border: 0; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: all .15s ease; cursor: pointer; z-index: 2; }
.card:hover .quick-add { opacity: 1; transform: translateY(0); }

/* ============ PDP v2 ============ */
.breadcrumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.pdp-gallery .main { position: relative; overflow: hidden; cursor: zoom-in; }
.pdp-gallery .main img { transition: transform .3s ease; }
.pdp-gallery .main:hover img { transform: scale(1.5); }
.sticky-buybox { position: sticky; top: 90px; }
.delivery-est { background: #e8f7e0; border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 13.5px; color: #256d02; font-weight: 600; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 24px 0; border-top: 1px solid var(--line); margin-top: 30px; }
.trust-strip .ts-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); font-weight: 600; }
.trust-strip .ts-item .ic { font-size: 20px; }
.sticky-addbar { display: none; }
@media (max-width: 860px) {
  .sticky-addbar { display: flex; position: fixed; left: 0; right: 0; bottom: 58px; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; z-index: 60; align-items: center; gap: 10px; box-shadow: 0 -4px 16px rgba(4,15,42,.1); }
  .sticky-addbar .sab-price { font-weight: 800; font-size: 15px; white-space: nowrap; }
}

/* ============ Newsletter box in footer ============ */
.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 20px; background: var(--navy); color: #fff; flex-wrap: wrap; border-radius: 12px; margin: 0 auto; max-width: 1220px; }
.footer-newsletter .nl-title { font-size: 18px; font-weight: 800; }
.footer-newsletter .nl-sub { font-size: 13px; color: #cfd9ee; margin-top: 2px; }
.nl-form { display: flex; gap: 8px; }
.nl-form input { padding: 11px 16px; border-radius: 8px; border: 0; font-family: inherit; min-width: 220px; }
.pay-icons { display: flex; gap: 8px; margin-top: 14px; }
.pay-icon { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; font-size: 11px; font-weight: 800; color: var(--ink-strong); }

@media (max-width: 720px) {
  .footer-newsletter { flex-direction: column; align-items: flex-start; border-radius: 0; }
  .nl-form { width: 100%; }
  .nl-form input { flex: 1; min-width: 0; }
}
