/* ============================================================
   PG Market — Redesign
   Brand: royal blue + orange (Cambodian multi-vendor marketplace)
   ============================================================ */

:root {
  /* Brand */
  --navy: #0c2456;
  --blue-900: #102f63;
  --blue-800: #143a7c;
  --blue-700: #1b4bae;
  --blue-600: #2360d8;
  --blue-500: #3b7bf0;
  --blue-100: #dbe7ff;
  --blue-50: #eef4ff;

  --orange: #f15a22;
  --orange-600: #e24e18;
  --orange-700: #c8420f;
  --orange-100: #ffe0d2;
  --orange-50: #fff2ec;

  /* Neutrals (cool slate) */
  --ink: #0e1b2e;
  --ink-2: #33455c;
  --muted: #6b7c92;
  --faint: #97a5b8;
  --line: #e6ecf4;
  --line-2: #eef2f8;
  --bg: #f4f7fc;
  --card: #ffffff;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(16, 38, 76, .06), 0 1px 3px rgba(16, 38, 76, .05);
  --shadow: 0 6px 18px rgba(16, 38, 76, .07), 0 2px 6px rgba(16, 38, 76, .05);
  --shadow-lg: 0 22px 50px rgba(16, 38, 76, .14);
  --shadow-orange: 0 10px 26px rgba(241, 90, 34, .34);

  --maxw: 1240px;

  --font-display: 'Sora', system-ui, sans-serif;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
}
.section-head p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.view-all {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--blue-700);
  padding: 9px 14px; border-radius: 999px; transition: .2s; white-space: nowrap;
}
.view-all:hover { background: var(--blue-50); gap: 11px; }
.view-all svg { width: 15px; height: 15px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-blue { background: var(--blue-700); color: #fff; box-shadow: 0 10px 26px rgba(27,75,174,.3); }
.btn-blue:hover { background: var(--blue-800); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--navy); color: #cdd9ef; font-size: 12.5px; font-weight: 500;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-left svg { width: 13px; height: 13px; opacity: .8; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right a { transition: .2s; }
.topbar-right a:hover { color: #fff; }
.topbar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; transition: box-shadow .25s; }
.header.stuck { box-shadow: var(--shadow); }
.header-main { display: flex; align-items: center; gap: 28px; height: 78px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-800)); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.04em;
  position: relative; box-shadow: 0 6px 16px rgba(27,75,174,.3);
}
.logo-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 5px; background: var(--orange); border: 2.5px solid #fff; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1.05; }
.logo-text b { color: var(--blue-700); }
.logo-text span { color: var(--orange); }
.logo-text small { display: block; font-family: var(--font); font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.search {
  flex: 1; display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 5px 5px 5px 18px; transition: .2s; max-width: 620px;
}
.search:focus-within { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.search .cat-pick {
  display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--ink-2);
  padding-right: 14px; margin-right: 12px; border-right: 1.5px solid var(--line); white-space: nowrap;
}
.search .cat-pick svg { width: 13px; height: 13px; color: var(--muted); }
.search input { flex: 1; border: none; background: none; outline: none; font-size: 14.5px; color: var(--ink); font-family: inherit; }
.search input::placeholder { color: var(--faint); }
.search button {
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; flex-shrink: 0; transition: .2s;
}
.search button:hover { background: var(--orange-600); }
.search button svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--ink-2); transition: .2s;
}
.icon-btn:hover { background: var(--bg); color: var(--blue-700); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .badge {
  position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff; transition: transform .2s;
}
.cart-btn .label, .acct .label { display: none; }
.acct { display: flex; align-items: center; gap: 10px; padding-left: 8px; }
.acct .login { font-weight: 700; font-size: 14.5px; color: var(--ink-2); padding: 11px 8px; }
.acct .login:hover { color: var(--blue-700); }

/* ===== Nav bar ===== */
.navbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 78px; z-index: 55; }
.navbar .wrap { display: flex; align-items: center; gap: 8px; height: 54px; }
.allcats {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: #fff;
  background: var(--blue-700); padding: 11px 20px; border-radius: 12px; margin-right: 10px; transition: .2s;
}
.allcats:hover { background: var(--blue-800); }
.allcats svg { width: 17px; height: 17px; }
.allcats .chev { margin-left: 2px; transition: transform .25s; }
.navbar.open-mega .allcats .chev { transform: rotate(180deg); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600; font-size: 14.5px; color: var(--ink-2); padding: 10px 16px; border-radius: 10px; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-700); background: var(--blue-50); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-right .seller-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--orange); }
.nav-right .seller-link svg { width: 16px; height: 16px; }
.nav-phone { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.nav-phone b { font-weight: 800; color: var(--ink); }
.nav-phone svg { width: 17px; height: 17px; color: var(--blue-700); }

/* ===== Mega menu ===== */
.mega {
  position: fixed; top: 132px; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid var(--blue-700);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(16,38,76,.14), 0 4px 12px rgba(16,38,76,.06);
  padding: 0 0 20px;
  transform: translateY(-10px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 200;
}
.navbar.open-mega .mega { transform: none; opacity: 1; pointer-events: auto; }
/* reset: .navbar .wrap applies flex+height to ALL nested .wrap — override for mega */
.mega .wrap { display: block; height: auto; }

/* header row */
.mega-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mega-head-title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.mega-head-title svg { width: 15px; height: 15px; color: var(--orange); }
.mega-viewall {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--blue-700);
  padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--blue-100);
  transition: .15s;
}
.mega-viewall:hover { background: var(--blue-50); gap: 10px; border-color: var(--blue-400); }
.mega-viewall svg { width: 14px; height: 14px; }

/* category grid */
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mega-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff;
  transition: .18s; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 3px rgba(16,38,76,.04);
}
.mega-item:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27,75,174,.1);
}
.mega-item .mi-ic {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  transition: .18s;
}
.mega-item:hover .mi-ic { transform: scale(1.08); }
.mega-item .mi-ic svg { width: 20px; height: 20px; }
.mega-item .mi-text b { font-size: 13.5px; font-weight: 700; display: block; color: var(--ink); line-height: 1.2; }
.mega-item .mi-text small {
  font-size: 11.5px; color: var(--faint); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 3px;
}

/* promo footer strip */
.mega-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.mega-footer-label {
  font-size: 12px; font-weight: 800; color: var(--faint);
  letter-spacing: .08em; text-transform: uppercase; margin-right: 4px;
}
.mega-promo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 700; transition: .15s;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
}
.mega-promo:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.mega-promo.sale  { background: #fff5f2; border-color: #fbd5cf; color: #c0391b; }
.mega-promo.new   { background: #eef4ff; border-color: var(--blue-100); color: var(--blue-700); }
.mega-promo.best  { background: #fff7e0; border-color: #ffe099; color: #c47c00; }
.mega-promo.shops { background: #e6f9f1; border-color: #a3e9cc; color: #1aa06d; }
.mega-promo svg { width: 14px; height: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--blue-900); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 88% 18%, rgba(241,90,34,.55), transparent 60%),
    radial-gradient(900px 600px at 8% 100%, rgba(59,123,240,.5), transparent 60%),
    linear-gradient(135deg, #0b2350 0%, #143a7c 48%, #1b4bae 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1.4px);
  background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 60px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 15px 7px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); margin-bottom: 22px;
}
.hero-badge .kh { background: var(--orange); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }
.hero h1 {
  font-family: var(--font-display); font-size: 58px; line-height: 1.04; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px;
}
.hero h1 .accent { color: #ffb37a; position: relative; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: var(--orange); opacity: .9; border-radius: 4px; z-index: -1; }
.hero p.lede { font-size: 17.5px; color: #d4e0f5; max-width: 480px; margin-bottom: 28px; line-height: 1.6; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 30px; }
.hero-stats .st b { font-family: var(--font-display); font-size: 26px; font-weight: 800; display: block; letter-spacing: -.02em; }
.hero-stats .st span { font-size: 13px; color: #aebfdc; font-weight: 500; }
.hero-stats .div { width: 1px; background: rgba(255,255,255,.16); }

/* Hero product collage */
.hero-art { position: relative; height: 440px; }
.float-card {
  position: absolute; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 12px;
  color: var(--ink); width: 200px;
}
.float-card .ph { height: 130px; border-radius: 12px; margin-bottom: 10px; }
.float-card .fc-name { font-weight: 700; font-size: 13.5px; }
.float-card .fc-shop { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.float-card .fc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.float-card .fc-price { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--orange); }
.float-card .fc-cart { width: 30px; height: 30px; border-radius: 9px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.float-card .fc-cart svg { width: 15px; height: 15px; }
.fc-1 { top: 0; left: 8px; animation: floaty 6s ease-in-out infinite; }
.fc-2 { top: 92px; right: 0; width: 215px; animation: floaty 6s ease-in-out infinite .8s; }
.fc-3 { bottom: 0; left: 46px; width: 210px; animation: floaty 6.5s ease-in-out infinite 1.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-tag {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
}
.hero-tag .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.hero-tag .ic svg { width: 18px; height: 18px; }
.hero-tag small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.ht-verified { top: 28px; right: -14px; z-index: 3; }
.ht-deliver { bottom: 36px; right: -8px; z-index: 3; }

/* Trust strip */
.trust { background: #fff; border-top: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust .t {
  display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-right: 1px solid var(--line);
}
.trust .t:last-child { border-right: none; }
.trust .t .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--blue-50); color: var(--blue-700); }
.trust .t .ic svg { width: 22px; height: 22px; }
.trust .t b { font-size: 14.5px; font-weight: 700; display: block; }
.trust .t span { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px; text-align: center;
  transition: .22s; cursor: pointer;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 12px; transition: .22s; }
.cat-card .ic svg { width: 26px; height: 26px; }
.cat-card:hover .ic { transform: scale(1.06) rotate(-4deg); }
.cat-card b { font-size: 13.5px; font-weight: 700; display: block; letter-spacing: -.01em; }
.cat-card small { font-size: 11.5px; color: var(--muted); }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.promo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 38px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: center; color: #fff; isolation: isolate;
}
.promo .ph-bg { position: absolute; inset: 0; z-index: -2; }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.promo-1 .ph-bg { --hue: 28; }
.promo-1::after { background: linear-gradient(90deg, rgba(46,28,12,.95) 0%, rgba(46,28,12,.82) 45%, rgba(46,28,12,.5) 80%); }
.promo-2 .ph-bg { --hue: 220; }
.promo-2::after { background: linear-gradient(150deg, rgba(9,28,66,.94), rgba(20,58,124,.78)); }
.promo .tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffce9e; margin-bottom: 12px; }
.promo h3 { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 8px; max-width: 320px; }
.promo p { font-size: 14px; color: rgba(255,255,255,.82); max-width: 280px; margin-bottom: 20px; }
.promo .btn-sm { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 11px 18px; border-radius: 999px; transition: .2s; }
.promo .btn-sm:hover { gap: 12px; }
.promo .btn-sm svg { width: 15px; height: 15px; }
.promo .countdown { display: flex; gap: 8px; margin-bottom: 20px; }
.promo .countdown .u { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 7px 11px; text-align: center; backdrop-filter: blur(4px); }
.promo .countdown .u b { font-family: var(--font-display); font-size: 20px; font-weight: 800; display: block; line-height: 1; }
.promo .countdown .u span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); }

/* ============================================================
   TOP SHOPS
   ============================================================ */
.shops-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shop-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s;
}
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.shop-cover { height: 76px; position: relative; }
.shop-body { padding: 0 18px 18px; margin-top: -26px; }
.shop-ava {
  width: 56px; height: 56px; border-radius: 16px; border: 3px solid #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.shop-card .name { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; }
.shop-card .name svg { width: 16px; height: 16px; color: var(--blue-600); }
.shop-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.shop-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line-2); }
.shop-card .rate { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.shop-card .rate svg { width: 14px; height: 14px; color: #f5a623; }
.shop-card .visit { font-size: 13px; font-weight: 700; color: var(--blue-700); display: inline-flex; align-items: center; gap: 5px; }
.shop-card .visit svg { width: 13px; height: 13px; }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.prod-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.prod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s;
  position: relative; display: flex; flex-direction: column;
}
.prod:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prod-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.prod-media .ph { width: 100%; height: 100%; transition: transform .4s; }
.prod:hover .prod-media .ph { transform: scale(1.05); }
.prod-badge {
  position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; padding: 5px 10px; border-radius: 999px; z-index: 2;
}
.badge-feat { background: var(--orange); }
.badge-new { background: var(--blue-600); }
.badge-sale { background: #1aa06d; }
.prod-disc { position: absolute; top: 12px; right: 12px; background: #1aa06d; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; z-index: 2; }
.wish {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; color: var(--ink-2); z-index: 3; transition: .2s; backdrop-filter: blur(4px); box-shadow: var(--shadow-sm);
}
.wish:hover { color: var(--orange); transform: scale(1.08); }
.wish svg { width: 18px; height: 18px; transition: .2s; }
.wish.on { color: var(--orange); }
.wish.on svg { fill: var(--orange); }
.prod-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.prod .shop { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.prod .shop .sd { width: 14px; height: 14px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 800; flex-shrink: 0; }
.prod .title { font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; min-height: 38px; text-wrap: pretty; }
.prod .stars { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.prod .stars .s { display: inline-flex; gap: 1px; }
.prod .stars svg { width: 12px; height: 12px; color: #f5a623; }
.prod .stars span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.prod .buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.prod .price { display: flex; align-items: baseline; gap: 7px; }
.prod .price b { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.prod .price s { font-size: 12.5px; color: var(--faint); }
.add {
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center;
  transition: .2s; flex-shrink: 0;
}
.add:hover { background: var(--orange); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.add svg { width: 19px; height: 19px; }
.add.added { background: #1aa06d; color: #fff; }

/* soon (no price yet) */
.prod .soon { font-size: 12.5px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); padding: 7px 12px; border-radius: 999px; }

/* ============================================================
   PLACEHOLDER TILES (product images)
   ============================================================ */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, hsl(var(--hue) 58% 93%), hsl(var(--hue) 52% 85%));
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(135deg, hsla(var(--hue) 40% 60% / .14) 0 10px, transparent 10px 20px);
}
.ph .mono {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4em; color: hsl(var(--hue) 42% 46%); opacity: .85;
  letter-spacing: -.03em; z-index: 1;
}
.ph .ph-tag {
  position: absolute; bottom: 8px; left: 8px; font-family: 'Sora', monospace; font-size: 9px; font-weight: 600;
  color: hsl(var(--hue) 35% 40%); background: hsla(0 0% 100% / .55); padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; z-index: 1;
}

/* ============================================================
   SELLER CTA
   ============================================================ */
.seller {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 52px 56px; color: #fff; isolation: isolate;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.seller::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #0b2350, #1b4bae 70%, #2360d8); }
.seller::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background: radial-gradient(700px 300px at 100% 0%, rgba(241,90,34,.7), transparent 60%);
}
.seller h2 { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 14px; }
.seller p { font-size: 15.5px; color: #cfdcf3; max-width: 440px; margin-bottom: 26px; }
.seller .scta { display: flex; gap: 14px; }
.seller-bullets { display: grid; gap: 16px; }
.seller-bullets .sb { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 16px 18px; backdrop-filter: blur(4px); }
.seller-bullets .sb .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.seller-bullets .sb .ic svg { width: 21px; height: 21px; }
.seller-bullets .sb b { font-size: 15px; font-weight: 700; display: block; }
.seller-bullets .sb span { font-size: 12.5px; color: #b9c8e6; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: #aebfdc; position: relative; overflow: hidden; margin-top: 20px; }
.footer-skyline { position: absolute; bottom: 0; left: 0; right: 0; height: 130px; opacity: .14; background-repeat: repeat-x; }
.footer .wrap { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.footer .fb-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer .fb-logo .logo-mark { width: 42px; height: 42px; }
.footer .fb-logo .logo-text, .footer .fb-logo .logo-text b, .footer .fb-logo .logo-text span { color: #fff; }
.footer .about { font-size: 13.5px; line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-contact { display: grid; gap: 11px; }
.footer-contact .c { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.footer-contact .c svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 13.5px; transition: .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.newsletter p { font-size: 13.5px; margin-bottom: 16px; line-height: 1.6; }
.newsletter .nl-form { display: flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 5px 5px 16px; margin-bottom: 22px; }
.newsletter .nl-form input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 13.5px; font-family: inherit; }
.newsletter .nl-form input::placeholder { color: #8497ba; }
.newsletter .nl-form button { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: .2s; }
.newsletter .nl-form button:hover { background: var(--orange-600); }
.newsletter .nl-form button svg { width: 16px; height: 16px; }
.socials { display: flex; gap: 9px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--orange); transform: translateY(-3px); }
.socials a svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.footer-bottom a { color: #cdd9ef; font-weight: 600; }
.pay { display: flex; align-items: center; gap: 10px; }
.pay span { font-size: 12.5px; }
.pay .chip { background: #fff; color: var(--navy); font-weight: 800; font-size: 11px; padding: 5px 9px; border-radius: 7px; letter-spacing: .02em; }
.pay .chip.khqr { background: var(--orange); color: #fff; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 13px 18px 13px 14px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: toastIn .3s cubic-bezier(.2,.8,.3,1.2);
}
.toast .tic { width: 30px; height: 30px; border-radius: 9px; background: #1aa06d; display: grid; place-items: center; flex-shrink: 0; }
.toast .tic svg { width: 17px; height: 17px; color: #fff; }
.toast small { display: block; font-weight: 500; color: #9fb0c9; font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .prod-grid, .prod-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .shops-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .promos { grid-template-columns: 1fr; }
  .seller { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .topbar, .nav-links, .nav-right, .navbar .allcats span:last-child { display: none; }
  .cat-grid, .prod-grid, .prod-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust .t:nth-child(2) { border-right: none; }
  .trust .t:nth-child(1), .trust .t:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero h1 { font-size: 40px; }
  .header-main { gap: 14px; }
  .search { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
