:root {
  color-scheme: light;
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-2: #eef5f3;
  --ink: #0f172a;
  --muted: #667085;
  --line: #dfe8ee;
  --green: #07a832;
  --green-2: #30d158;
  --green-dark: #087426;
  --blue: #064777;
  --navy: #041f35;
  --gold: #f5b301;
  --red: #ef4444;
  --shadow: 0 18px 48px rgba(15, 23, 42, .09);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, .06);
  --radius: 8px;
  --radius-lg: 14px;
  --max: 1480px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071522;
  --surface: #0c2031;
  --surface-2: #0f2a3e;
  --ink: #ecf7ff;
  --muted: #a9bdca;
  --line: #1e4057;
  --shadow: 0 18px 48px rgba(0, 0, 0, .35);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(7, 168, 50, .08), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(6, 71, 119, .08), transparent 28%),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 1000;
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.announcement {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.announcement__inner {
  max-width: var(--max);
  min-height: 34px;
  margin: 0 auto;
  padding: 6px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.announcement__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 800;
  color: var(--blue);
}

.header-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 26px;
  display: grid;
  grid-template-columns: 350px minmax(330px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.brand img {
  width: 335px;
  height: 106px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.mega-search {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: visible;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.mega-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent), var(--shadow-soft);
}

.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
  color: var(--muted);
  transition: color .2s ease;
}

.mega-search:focus-within .search-icon { color: var(--green-dark); }

.mega-search input {
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  font-size: 15px;
}

.search-mode,
.icon-button,
.search-submit,
.chip,
.region-picker,
.tool-link,
.account-link,
.sell-button,
.category-head,
.section-actions button,
.tabs button,
.ai-actions button,
.detail-actions button,
.seller-actions button,
.seller-actions a,
.quick-view button,
.store-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.search-mode {
  margin-left: 8px;
  padding: 0 14px;
  color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
}

.icon-button {
  width: 38px;
  min-height: 38px;
  font-size: 12px;
}

.search-submit {
  align-self: stretch;
  border: 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 0 26px;
  margin: 0;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.search-submit:hover { filter: brightness(1.06); }

.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mega-search:focus-within .suggestions,
.suggestions.is-open { display: grid; }

.suggestions h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.suggestions button {
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.region-picker {
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 12px;
  min-width: 115px;
}

.region-picker small,
.tool-link small,
.account-link small { color: var(--muted); font-size: 11px; }

.chip { min-width: 58px; padding: 0 12px; }
.tool-link { position: relative; flex-direction: column; min-width: 54px; padding: 6px 8px; font-size: 12px; }
.tool-link b {
  position: absolute;
  top: -6px;
  right: 8px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--green-dark);
  background: radial-gradient(circle at 50% 34%, var(--green-dark) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 92%, var(--green-dark) 0 11px, transparent 12px);
}

.account-link { flex-direction: column; padding: 6px 10px; }
.sell-button { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark)); padding: 0 18px; border: 0; box-shadow: 0 12px 28px rgba(7, 168, 50, .24); }

.market-layout {
  max-width: var(--max);
  margin: 22px auto 0;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  position: relative;
}

.category-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: 154px;
}

.category-head {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  justify-content: flex-start;
  padding: 18px;
}

.category-list {
  display: grid;
  padding: 10px;
}

.category-list a {
  min-height: 45px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 800;
}

.category-list a:hover,
.category-list a:focus-visible {
  background: var(--surface-2);
  color: var(--green-dark);
}

.category-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.mini-icon,
.line-icon {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 6px;
  color: var(--green-dark);
  display: inline-block;
  position: relative;
}

.mini-icon.car { border-radius: 10px 10px 5px 5px; }
.mini-icon.phone { border-radius: 6px; height: 26px; }
.mini-icon.leaf { border-radius: 70% 0 70% 0; }
.mini-icon.fashion::after,
.mini-icon.tools::after,
.mini-icon.laptop::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: currentColor;
  opacity: .18;
  border-radius: inherit;
}

.mega-panel {
  position: absolute;
  left: 326px;
  top: 70px;
  width: min(780px, calc(100% - 352px));
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: none;
  z-index: 10;
}

.mega-panel.is-open { display: block; animation: fadeUp .22s ease both; }
.mega-panel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mega-panel h3 { margin: 0 0 10px; }
.mega-panel a { display: block; padding: 8px 0; color: var(--muted); font-weight: 750; }
.mega-promo {
  min-height: 160px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #063b60, #08a833);
  color: #fff;
  display: grid;
  align-content: end;
  gap: 8px;
}

.hero-slider {
  min-height: 530px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #041f35;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) 430px;
  gap: 28px;
  align-items: center;
  padding: 64px 72px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 50%, rgba(48, 209, 88, .26), transparent 28%),
    linear-gradient(125deg, #061b30 0 47%, #063b60 47% 68%, #0b5d79);
  transition: opacity .55s ease, transform .55s ease;
  transform: scale(1.02);
}

.hero-slide.is-active { opacity: 1; pointer-events: auto; transform: scale(1); }
.hero-slide:nth-child(2) { background: linear-gradient(125deg, #061b30, #0b3b52 52%, #075f3d); }
.hero-slide:nth-child(3) { background: linear-gradient(125deg, #071522, #113b6f 56%, #0a7c45); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-copy h1 {
  margin: 0 0 16px;
  max-width: 680px;
  font-size: clamp(44px, 5vw, 78px);
  line-height: .94;
  font-weight: 950;
}

.hero-copy h1 strong {
  display: block;
  color: #61f43f;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 7px;
  text-underline-offset: 8px;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.5;
  color: #d7e8f5;
  font-weight: 700;
}

.hero-actions,
.hero-badges,
.section-actions,
.tabs,
.ai-actions,
.detail-actions,
.seller-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.primary-cta { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 16px 32px rgba(7, 168, 50, .3); }
.secondary-cta { color: #0f172a; background: #fff; }
.primary-cta.small { min-height: 42px; padding: 0 18px; }

.hero-badges { margin-top: 34px; }
.hero-badges span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  color: #e8f6ff;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  min-height: 360px;
  position: relative;
}

.phone-scene,
.escrow-visual,
.ai-visual {
  position: absolute;
  inset: 0;
}

.phone-frame {
  position: absolute;
  left: 22px;
  top: 8px;
  width: 170px;
  height: 300px;
  border-radius: 32px;
  border: 8px solid #111827;
  background: linear-gradient(160deg, #0b4e7a, #061b30);
  transform: rotate(-8deg);
  box-shadow: 0 28px 46px rgba(0,0,0,.45);
}

.phone-frame::after {
  content: "SOKONI";
  position: absolute;
  inset: 36px 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  background: radial-gradient(circle at 50% 35%, var(--green) 0 28px, transparent 29px), #092b46;
}

.cart-scene {
  position: absolute;
  right: 8px;
  top: 112px;
  width: 280px;
  height: 150px;
  border: 8px solid #dbe7ef;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  transform: skewX(-7deg);
}

.cart-scene::before {
  content: "";
  position: absolute;
  left: 15px;
  right: -20px;
  top: 34px;
  height: 7px;
  background: #f7a620;
  box-shadow: 0 34px 0 #f7a620, 0 68px 0 #f7a620;
}

.shield-scene,
.escrow-lock {
  position: absolute;
  right: 20px;
  bottom: 6px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #65ee61, #11a93a);
  box-shadow: 0 18px 28px rgba(0,0,0,.28);
}

.shield-scene::after,
.escrow-lock::after {
  content: "";
  width: 42px;
  height: 22px;
  border-left: 7px solid #fff;
  border-bottom: 7px solid #fff;
  transform: rotate(-45deg);
}

.parcel {
  position: absolute;
  width: 64px;
  height: 80px;
  background: #f8b942;
  border-radius: 7px;
  box-shadow: inset 0 -16px rgba(0,0,0,.08);
}

.parcel.one { right: 225px; top: 80px; }
.parcel.two { right: 145px; top: 45px; height: 110px; background: #f59e0b; }
.parcel.three { right: 58px; top: 86px; background: #facc15; }

.timeline-card {
  position: absolute;
  inset: 24px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 52px;
  width: 8px;
  height: 230px;
  border-radius: 99px;
  background: linear-gradient(var(--green), var(--gold));
  box-shadow: 0 0 0 10px rgba(255,255,255,.08);
}

.timeline-card::after {
  content: "Paid  >  Delivered  >  Confirmed";
  position: absolute;
  left: 80px;
  top: 76px;
  right: 30px;
  color: #fff;
  font-weight: 900;
  line-height: 3.3;
}

.escrow-lock { right: 70px; bottom: 54px; }

.ai-orbit {
  position: absolute;
  inset: 45px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.35);
  animation: spin 18s linear infinite;
}

.ai-card {
  position: absolute;
  width: 150px;
  height: 110px;
  border-radius: 16px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 20px 35px rgba(0,0,0,.22);
}

.ai-card.a { left: 20px; top: 60px; }
.ai-card.b { right: 30px; top: 120px; }
.ai-card.c { left: 120px; bottom: 50px; }

.slider-controls {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.slider-controls button {
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #fff;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.slider-dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.slider-dots button {
  width: 30px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.45);
  border-radius: 999px;
}

.slider-dots button.is-active { background: var(--green); }

.trust-strip,
.section-block,
.stats-band,
.premium-footer {
  max-width: var(--max);
  margin: 24px auto 0;
  padding-left: 26px;
  padding-right: 26px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.trust-strip article,
.section-block > .nearby-products,
.ai-panel,
.deals-panel,
.product-detail__grid,
.seller-store,
.dashboard-grid article,
.escrow-system,
.stats-band,
.footer-grid {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.trust-strip article {
  padding: 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
}

.trust-strip strong,
.trust-strip small { display: block; }
.trust-strip small { color: var(--muted); margin-top: 3px; }
.line-icon { width: 34px; height: 34px; border-color: var(--green); }
.line-icon::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  left: 8px;
  top: 10px;
  transform: rotate(-45deg);
}

.section-block {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading.compact { margin-bottom: 14px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
}

.section-heading a { color: var(--green-dark); font-weight: 900; }
.section-actions button { min-width: 72px; }

.store-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.store-card {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  display: grid;
  align-content: end;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.store-card::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

.store-card span { font-size: 31px; font-weight: 950; position: relative; }
.store-card strong, .store-card small, .store-card b { position: relative; }
.store-card b {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.samsung { background: linear-gradient(145deg, #0b43a0, #061b55); }
.hisense { background: linear-gradient(145deg, #00a8a0, #026c78); }
.tcl { background: linear-gradient(145deg, #ef1b24, #a10d16); }
.lg { background: linear-gradient(145deg, #cc0a46, #6f0833); }
.digisat { background: linear-gradient(145deg, #f8fafc, #dbeafe); color: #134e4a; }
.store-card .store-logo {
  position: relative;
  align-self: start;
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}
.digisat b { background: rgba(19, 78, 74, .12); color: #134e4a; }
.apple { background: linear-gradient(145deg, #111827, #030712); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.category-grid a {
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: end;
  gap: 8px;
  text-align: center;
}

.cat-art,
.near-art,
.product-art,
.quick-view__art {
  display: block;
  width: 120px;
  height: 82px;
  margin: 0 auto;
  position: relative;
}

.car-art::before {
  content: "";
  position: absolute;
  width: 102px;
  height: 38px;
  left: 8px;
  top: 24px;
  border-radius: 28px 36px 10px 10px;
  background: linear-gradient(#1b75bc, #0e3d76);
  box-shadow: 13px 26px 0 -11px #111827, 78px 26px 0 -11px #111827;
}

.phone-art::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 76px;
  left: 34px;
  top: 2px;
  border-radius: 12px;
  background: linear-gradient(140deg, #111827 0 48%, #eef2ff 49%, #f97316 75%);
  box-shadow: 14px 0 0 -5px #2563eb;
}

.laptop-art::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 56px;
  left: 15px;
  top: 12px;
  border: 6px solid #1f2937;
  border-bottom-width: 12px;
  border-radius: 5px;
  background: linear-gradient(135deg, #38bdf8, #0f172a);
}

.sofa-art::before {
  content: "";
  position: absolute;
  width: 104px;
  height: 50px;
  left: 8px;
  top: 24px;
  border-radius: 16px 16px 8px 8px;
  background: #c49a6c;
  box-shadow: -8px 18px 0 -9px #8b5e34, 8px 18px 0 -9px #8b5e34;
}

.fashion-art::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 64px;
  left: 23px;
  top: 8px;
  border-radius: 8px 8px 3px 3px;
  background: repeating-linear-gradient(90deg, #1f2937 0 7px, #e5e7eb 7px 14px);
  box-shadow: 44px 0 0 #64748b;
}

.land-art::before {
  content: "";
  position: absolute;
  inset: 10px 5px;
  border-radius: 8px;
  background: linear-gradient(#8ed0ff 0 40%, #65a30d 41% 70%, #3f6212 71%);
}

.drill-art::before {
  content: "";
  position: absolute;
  width: 82px;
  height: 30px;
  left: 26px;
  top: 19px;
  border-radius: 7px;
  background: #334155;
  box-shadow: -22px 8px 0 -4px #111827, 35px 31px 0 -8px #0f766e;
}

.commerce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}

.commerce-main,
.nearby-products,
.ai-panel {
  min-width: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 360px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card:hover .product-art { transform: scale(1.06); }
.product-art { transition: transform .22s ease; height: 124px; }

.discount {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 950;
}

.product-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: .2s ease;
}

.product-card:hover .product-tools {
  opacity: 1;
  transform: translateX(0);
}

.product-tools button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 50%;
  font-size: 11px;
}

.product-card h3 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.price {
  display: block;
  color: var(--red);
  font-size: 20px;
  font-weight: 950;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 12px;
  margin-left: 6px;
  font-weight: 600;
}

.rating { color: var(--gold); font-size: 13px; margin: 7px 0; }
.seller-meta { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.product-actions button {
  min-height: 38px;
  border-radius: 7px;
  border: 1px solid var(--green);
  background: var(--surface);
  color: var(--green-dark);
  font-weight: 900;
}
.product-actions button:last-child { background: var(--green); color: #fff; }

.tabs button.is-active,
.tabs button:hover,
.section-actions button:hover,
.ai-actions button:hover,
.detail-actions button:hover,
.seller-actions button:hover,
.seller-actions a:hover,
.quick-view button:hover,
.store-button:hover,
.chip:hover,
.tool-link:hover,
.account-link:hover,
.region-picker:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--green) 60%, var(--line));
  box-shadow: var(--shadow-soft);
}

.tabs button.is-active { color: #fff; background: var(--green); }

.deals-panel {
  padding: 20px;
  align-self: start;
  overflow: hidden;
  position: relative;
}

.deal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 950;
  color: var(--red);
}

.deal-header strong {
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface-2);
}

.deal-visual {
  height: 160px;
  margin: 18px 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, #dbeafe);
  display: grid;
  place-items: center;
}

.deal-visual span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ef4444, #2454d6);
  color: #fff;
  font-size: 52px;
  font-weight: 950;
  transform: rotate(8deg);
}

.split-section {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
}

.nearby-products,
.ai-panel {
  padding: 20px;
}

.nearby-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.nearby-list a {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.near-art { width: 82px; height: 58px; margin: 0; }
.nearby-list strong, .nearby-list b, .nearby-list small { display: block; }
.nearby-list b { color: var(--green-dark); }
.nearby-list small { color: var(--muted); }

.ai-panel output {
  display: block;
  min-height: 76px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
}

.product-detail__grid {
  padding: 20px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 280px;
  gap: 22px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-main {
  grid-column: 1 / -1;
  min-height: 270px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.phone-art.large { width: 190px; height: 210px; }
.phone-art.large::before { width: 92px; height: 160px; left: 50px; }
.gallery button { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}
.badge.verified { color: var(--green-dark); background: color-mix(in srgb, var(--green) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)); }
.detail-copy h3 { font-size: 28px; margin: 10px 0; }
.detail-price { display: block; color: var(--red); font-size: 32px; margin: 12px 0; }
.spec-card { padding: 18px; border-radius: var(--radius); background: var(--surface-2); }
.spec-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-card dt { color: var(--muted); }
.spec-card dd { margin: 0; font-weight: 900; }

.seller-store { padding: 0; overflow: hidden; }
.seller-cover {
  min-height: 210px;
  padding: 28px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: end;
  gap: 20px;
  background:
    radial-gradient(circle at 80% 30%, rgba(48,209,88,.25), transparent 25%),
    linear-gradient(135deg, #061b30, #075f3d);
  color: #fff;
}

.seller-logo {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: var(--green-dark);
  font-size: 32px;
  font-weight: 950;
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-metrics article {
  padding: 18px;
  background: var(--surface);
  text-align: center;
}

.trust-metrics strong { display: block; font-size: 28px; }
.trust-metrics span { color: var(--muted); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dashboard-grid article {
  padding: 22px;
  min-height: 270px;
}

.chart {
  display: block;
  height: 110px;
  margin-top: 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 45%, rgba(255,255,255,.12) 45% 48%, transparent 48%),
    linear-gradient(90deg, var(--green) 0 18%, #60a5fa 18% 45%, var(--gold) 45% 70%, #ef4444 70%);
  mask-image: linear-gradient(to top, #000 0 65%, transparent);
}

.escrow-system { padding: 22px 26px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline article {
  position: relative;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.timeline b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  margin-bottom: 12px;
}

.timeline strong, .timeline span { display: block; }
.timeline span { color: var(--muted); margin-top: 6px; }

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 22px;
  padding-bottom: 22px;
  text-align: center;
}

.stats-band strong { display: block; font-size: 32px; }
.stats-band span { color: var(--muted); font-weight: 800; }

.premium-footer {
  max-width: none;
  margin-top: 34px;
  padding: 34px 26px 18px;
  background: linear-gradient(180deg, #06263f, #041926);
  color: #fff;
}

.footer-grid,
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
  padding: 24px;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.footer-grid img {
  width: 220px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 8px;
}

.footer-grid h3 { margin: 0 0 12px; }
.footer-grid a,
.footer-grid p {
  display: block;
  color: #d7e8f5;
  line-height: 1.7;
  font-size: 14px;
}

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a,
.store-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
}

.qr {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #041926;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px),
    linear-gradient(#fff, #fff);
  border: 8px solid #fff;
  border-radius: 6px;
  font-weight: 950;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #d7e8f5;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  margin-top: 20px;
  font-size: 13px;
}

.quick-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 25, 38, .68);
  display: grid;
  place-items: center;
  padding: 24px;
}

.quick-view[hidden] { display: none; }
.quick-view__panel {
  width: min(760px, 100%);
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
}

.quick-view__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,.45);
  animation: ripple .55s linear;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(5); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1240px) {
  .site-header { position: static; }
  .header-shell {
    grid-template-columns: 300px 1fr;
  }

  .brand img { width: 292px; height: 92px; }
  .header-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .market-layout { grid-template-columns: 1fr; }
  .category-rail { position: static; }
  .category-list { grid-template-columns: repeat(4, 1fr); }
  .mega-panel { left: 26px; top: 100px; width: calc(100% - 52px); }
  .hero-slide { grid-template-columns: 1fr; padding: 54px 44px 72px; }
  .hero-visual { min-height: 280px; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .commerce-grid,
  .split-section,
  .product-detail__grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .announcement__inner,
  .header-shell,
  .market-layout,
  .trust-strip,
  .section-block,
  .stats-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-shell {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: min(330px, 100%);
    height: 104px;
  }

  .mega-search {
    grid-template-columns: auto 1fr auto;
    min-height: 54px;
  }

  .search-submit { padding: 0 16px; }
  .suggestions { grid-template-columns: 1fr; }
  .header-actions { gap: 8px; }
  .region-picker, .tool-link, .account-link, .chip, .sell-button { min-width: calc(50% - 4px); }
  .category-list { grid-template-columns: 1fr; }
  .mega-panel { position: static; width: auto; margin: 0 16px 16px; }
  .mega-panel__grid { grid-template-columns: 1fr; }
  .hero-slider { min-height: 700px; margin: 0 -2px; }
  .hero-slide { padding: 34px 24px 82px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy p { font-size: 16px; }
  .hero-actions a { width: 100%; }
  .hero-visual { transform: scale(.82); transform-origin: left top; width: 120%; }
  .slider-controls { left: 24px; right: 24px; }
  .trust-strip,
  .category-grid,
  .product-grid,
  .dashboard-grid,
  .timeline,
  .stats-band,
  .trust-metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .store-carousel { grid-auto-columns: 82%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .tabs { width: 100%; }
  .tabs button { flex: 1 1 45%; }
  .seller-cover { grid-template-columns: 1fr; align-items: start; }
  .quick-view__panel { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
