/**
 * Priceory — professional marketing layer
 * Trust · dopamine · demand fulfillment
 * Loaded after app.bundle; does not replace core layout CSS.
 */

:root {
  --mk-ink: #0f172a;
  --mk-muted: #64748b;
  --mk-line: #e2e8f0;
  --mk-teal: #0f766e;
  --mk-teal-soft: #ecfdf5;
  --mk-gold: #f59e0b;
  --mk-gold-soft: #fffbeb;
  --mk-shopee: #ee4d2d;
  --mk-radius: 1.05rem;
  --mk-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --mk-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
}

/* —— Global page polish —— */
body {
  background:
    radial-gradient(900px 380px at 6% -6%, rgba(13, 148, 136, 0.1), transparent 55%),
    radial-gradient(700px 320px at 96% 0%, rgba(245, 158, 11, 0.07), transparent 50%),
    #f8fafc;
}

.page-wrap {
  padding-top: 1.1rem;
  padding-bottom: 2rem;
}

/* —— Nav: premium trust chrome —— */
.navbar.bg-priceory {
  background: linear-gradient(105deg, #0b1220 0%, #0f172a 42%, #134e4a 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18) !important;
}

.navbar-brand .brand-text {
  letter-spacing: -0.02em;
  font-weight: 800;
}

.nav-basket-badge,
.nav-alerts-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #422006 !important;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
}

.nav-search .form-control {
  border-radius: 999px 0 0 999px;
  border: 0;
}

.nav-search .btn {
  border-radius: 0 999px 999px 0;
  font-weight: 800;
}

/* Site-wide trust ribbon under nav */
.site-trust-ribbon {
  background: #fff;
  border-bottom: 1px solid var(--mk-line);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.site-trust-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  padding: 0.45rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mk-muted);
}

.site-trust-ribbon-lead {
  color: var(--mk-teal);
  font-weight: 800;
}

.site-trust-ribbon-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-trust-ribbon-pills span {
  background: var(--mk-teal-soft);
  color: #0f766e;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .site-trust-ribbon {
    display: none; /* mobile uses bottom nav + page-local trust */
  }
}

/* —— Shared marketing atoms —— */
.mk-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mk-teal);
}

.mk-title {
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--mk-ink);
  line-height: 1.15;
}

.mk-sub {
  color: var(--mk-muted);
  line-height: 1.45;
}

.mk-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  background: var(--mk-teal-soft);
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.mk-pill-gold {
  background: var(--mk-gold-soft);
  color: #b45309;
  border-color: #fde68a;
}

.mk-pill-ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

.mk-card {
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  box-shadow: var(--mk-shadow);
}

.mk-keep {
  background: linear-gradient(145deg, #042f2e, #0f766e 55%, #b45309 160%);
  color: #ecfdf5;
  border-radius: 0.95rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.mk-keep-amt {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fde68a;
  line-height: 1.05;
}

.btn-warning {
  font-weight: 800 !important;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}

.btn-priceory {
  font-weight: 800;
}

/* —— Homepage marketing lift —— */
.home-hero-v3 {
  border-radius: 1.2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--mk-shadow-lg) !important;
}

.home-trust-bar {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 0.9rem !important;
  backdrop-filter: blur(8px);
}

.home-save-now-v3 {
  border-radius: 1.1rem !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18) !important;
}

.home-save-amt {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.home-conf-chip.home-conf-ok {
  background: #d1fae5 !important;
  color: #065f46 !important;
  font-weight: 800;
}

.home-scenario-rail {
  gap: 0.5rem !important;
}

.home-scenario-tile {
  border-radius: 0.95rem !important;
  border: 1px solid var(--mk-line) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-scenario-tile:hover {
  transform: translateY(-2px);
  border-color: #5eead4 !important;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.12);
}

/* Demand path strip (home) */
.home-demand-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 0.85rem 0 1.1rem;
}

@media (max-width: 767.98px) {
  .home-demand-path {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-demand-step {
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 0.95rem;
  padding: 0.75rem 0.8rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-demand-step:hover {
  border-color: #5eead4;
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.1);
  transform: translateY(-1px);
  color: inherit;
}

.home-demand-n {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.4rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
  margin-bottom: 0.4rem;
}

.home-demand-step strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--mk-ink);
  margin-bottom: 0.15rem;
}

.home-demand-step span {
  font-size: 0.75rem;
  color: var(--mk-muted);
  line-height: 1.3;
}

/* —— Search marketing —— */
.search-page-head .search-form-compact {
  border-radius: 1.05rem !important;
  box-shadow: var(--mk-shadow) !important;
  border: 1px solid var(--mk-line) !important;
}

.search-mkt-hero {
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, #0b1220 0%, #134e4a 70%, #0f766e 100%);
  color: #ecfdf5;
  box-shadow: var(--mk-shadow);
}

.search-mkt-hero h1 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.35rem;
  color: #fff;
}

.search-mkt-hero p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(236, 253, 245, 0.88);
  line-height: 1.4;
  max-width: 36rem;
}

.search-mkt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.search-mkt-pills span {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.popular-search-chip {
  border-radius: 999px !important;
  font-weight: 700 !important;
  border: 1px solid #99f6e4 !important;
  background: #f0fdfa !important;
  color: #0f766e !important;
}

.popular-search-chip:hover,
.popular-search-chip.is-active {
  background: #ccfbf1 !important;
  border-color: #2dd4bf !important;
}

/* Product cards / deal cards lift */
.deal-card,
.product-card,
.card.panel {
  border-radius: 1rem !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

/* —— Product PDP v2 (trust + dopamine) —— */
.pdp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.75rem;
}
.pdp-crumb a { color: #0f766e; text-decoration: none; font-weight: 700; }
.pdp-crumb a:hover { text-decoration: underline; }
.pdp-crumb-now { color: #0f172a; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pdp-hero {
  overflow: hidden;
  border-radius: 1.15rem !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07) !important;
}
.pdp-hero-body { padding: 1rem 1.1rem 1.25rem !important; }
@media (min-width: 768px) {
  .pdp-hero-body { padding: 1.35rem 1.5rem 1.5rem !important; }
}
.pdp-hero-grid {
  display: grid;
  gap: 1.15rem 1.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .pdp-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr); }
}
@media (min-width: 992px) {
  .pdp-hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 1.75rem; }
}

.pdp-stage-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 1.1rem;
  overflow: hidden;
  background: linear-gradient(165deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}
.pdp-stage-img,
.pdp-stage-frame .product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 1.25rem !important;
  box-sizing: border-box;
  background: #fff;
}
.pdp-stage-save {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 900;
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}
.pdp-trust-row {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pdp-trust-row li {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}

.pdp-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.pdp-brand {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
}
.pdp-pack-chip {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.pdp-title {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
  margin: 0 0 0.85rem;
}

.pdp-prefer-card {
  background: linear-gradient(145deg, #ecfdf5 0%, #fff 55%);
  border: 2px solid #6ee7b7;
  border-radius: 1rem;
  padding: 0.95rem 1.05rem 1.05rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.12);
}
.pdp-prefer-kicker {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 0.25rem;
}
.pdp-prefer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.pdp-prefer-rm {
  font-size: 1rem;
  font-weight: 900;
  color: #047857;
}
.pdp-prefer-amt {
  font-size: clamp(2rem, 6vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #047857;
}
.pdp-prefer-at {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
.pdp-prefer-keep {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #15803d;
  line-height: 1.35;
}
.pdp-prefer-vs { color: #64748b; font-weight: 700; }
.pdp-prefer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.pdp-prefer-cta {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 20rem;
}

.pdp-this-price { margin-bottom: 0.85rem; }
.pdp-this-price.is-secondary .pdp-this-amt {
  font-size: 1.25rem;
  color: #334155;
}
.pdp-this-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
}
.pdp-this-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.pdp-this-amt {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.pdp-unit {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f766e;
  margin-top: 0.2rem;
}

.pdp-cta-stack { display: grid; gap: 0.55rem; margin-bottom: 0.75rem; }
.pdp-cta-primary { width: 100%; }
.pdp-cta-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pdp-cta-secondary .btn { flex: 1 1 auto; min-width: 6.5rem; }

/* No shop link — avoid “can buy online here” misunderstanding */
.pdp-no-shop {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
}
.pdp-no-shop-body {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 0.55rem;
}
.pdp-no-shop-body-only {
  margin-bottom: 0.65rem;
}
.pdp-store-no-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}
.pdp-store-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  margin: 0.35rem 0 0.35rem;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border: 0;
  color: #fff !important;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}
.pdp-store-search-btn:hover {
  filter: brightness(1.06);
  color: #fff !important;
}
.pdp-store-search-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: #78716c;
  line-height: 1.4;
  margin: 0 0 0.45rem;
  max-width: 28rem;
}

.pdp-trust-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}
.pdp-trust-details summary {
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
}
.pdp-trust-details ul {
  margin: 0.5rem 0 0.15rem;
  padding-left: 1.1rem;
  color: #64748b;
  line-height: 1.45;
}
.pdp-fine-print {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0.35rem 0 0;
}
.pdp-share-wrap { margin-top: 0.5rem; }

/* Sticky mobile CTA removed — actions stay in the buy box only. */

/* Multi-store offer cards */
.pdp-stores-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.pdp-stores-gap {
  font-size: 0.9rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.pdp-store-list {
  display: grid;
  gap: 0.65rem;
}
.pdp-store-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.pdp-store-card.is-prefer {
  border-color: #6ee7b7;
  background: linear-gradient(135deg, #ecfdf5, #fff 60%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.12);
}
.pdp-store-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}
.pdp-store-rank {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  background: #f1f5f9;
  color: #475569;
}
.pdp-store-card.is-prefer .pdp-store-rank {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
}
.pdp-prefer-badge {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #047857;
  color: #fff;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}
.pdp-store-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-store-name:hover { color: #0f766e; }
.pdp-store-pack {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 0.15rem;
}
.pdp-store-shop {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f766e;
  text-decoration: none;
}
.pdp-store-shop:hover { text-decoration: underline; }
.pdp-store-price { text-align: right; }
.pdp-store-amt {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.pdp-store-amt span { font-size: 0.8rem; font-weight: 800; color: #64748b; }
.pdp-store-price.is-prefer .pdp-store-amt { color: #047857; font-size: 1.4rem; }
.pdp-store-unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e;
  margin-top: 0.1rem;
}
.pdp-stores-foot {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}
.pdp-stores-foot a { color: #0f766e; font-weight: 800; }

.conf-chip-ok { font-weight: 800 !important; }

/* —— Mobile bottom nav polish —— */
.mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--mk-line) !important;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08) !important;
}

.mbn-center {
  background: linear-gradient(145deg, #0f766e, #14b8a6) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

.mbn-center .mbn-lbl {
  color: #fff !important;
  font-weight: 800;
}

/* —— Popular multi-store picks (large product photos) —— */
.home-picks {
  margin: 0.35rem 0 0.5rem;
}
.home-picks-head {
  margin: 0 0 0.65rem;
}
.home-picks-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.home-hero-clean .home-picks-title { color: #fff; }
.home-picks-sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.home-hero-clean .home-picks-sub { color: rgba(255,255,255,0.82); }
.home-picks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 576px) {
  .home-picks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
}
@media (min-width: 992px) {
  .home-picks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .home-pick-card-hero {
    grid-column: span 1;
  }
}
/* When few picks, make each card bigger */
.home-picks-grid:has(.home-pick-card:nth-child(1):nth-last-child(-n+3)) {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
@media (min-width: 768px) {
  .home-picks-grid:has(.home-pick-card:nth-child(1):nth-last-child(-n+3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-picks-grid:has(.home-pick-card:nth-child(1):nth-last-child(-n+3)) .home-pick-media {
    aspect-ratio: 1 / 1;
    min-height: 12rem;
  }
}
.home-pick-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 100%;
}
.home-hero-clean .home-pick-card {
  background: #fff;
  border-color: rgba(255,255,255,0.35);
}
.home-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-color: #99f6e4;
  color: inherit;
}
.home-pick-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f8fafc, #fff);
  overflow: hidden;
}
.home-pick-card-hero .home-pick-media {
  aspect-ratio: 1 / 1;
}
.home-pick-media .product-img,
.home-pick-media img.product-img,
.home-pick-media .mono-ph {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0.85rem !important;
  box-sizing: border-box;
  background: #fff;
}
.home-pick-card-hero .home-pick-media .product-img,
.home-pick-card-hero .home-pick-media img.product-img {
  padding: 1.1rem !important;
}
.home-pick-save {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}
.home-pick-card-hero .home-pick-save {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
}
.home-pick-body {
  padding: 0.65rem 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.home-pick-card-hero .home-pick-body {
  padding: 0.8rem 0.9rem 0.95rem;
}
.home-pick-name {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}
.home-pick-card-hero .home-pick-name {
  font-size: 1rem;
}
.home-pick-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.3;
}
.home-pick-chip {
  align-self: flex-start;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.home-picks-empty { padding: 0.5rem 0 0.25rem; }

/* —— Clean home first screen —— */
.home-hero-clean {
  padding-top: 0.85rem !important;
  padding-bottom: 0.75rem !important;
}
.home-hero-clean .home-hero-bg {
  opacity: 0.45;
}
.home-scenario-rail-tight {
  margin: 0.85rem 0 1rem !important;
  gap: 0.45rem !important;
}
.home-scenario-rail-tight .home-scenario-tile {
  padding: 0.45rem 0.55rem !important;
  min-width: 4.5rem;
}
.home-scenario-rail-tight .home-scenario-lbl {
  font-size: 0.72rem !important;
}

/* —— Marketplace promo rail (large, Shopee/Lazada-style) —— */
.home-promo-rail {
  margin: 0 0 0.35rem;
  position: relative;
}
.home-promo-rail-lg .home-promo-viewport {
  aspect-ratio: 2.15 / 1;
  min-height: 220px;
  max-height: 380px;
}
.home-promo-viewport {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #0f172a;
  aspect-ratio: 2.15 / 1;
  min-height: 220px;
  max-height: 380px;
}
@media (min-width: 992px) {
  .home-promo-rail-lg .home-promo-viewport {
    min-height: 280px;
    max-height: 420px;
    aspect-ratio: 2.4 / 1;
  }
}
@media (max-width: 575.98px) {
  .home-promo-viewport,
  .home-promo-rail-lg .home-promo-viewport {
    aspect-ratio: 16 / 10;
    min-height: 200px;
    max-height: 260px;
    border-radius: 14px;
  }
}
.home-promo-track {
  position: absolute;
  inset: 0;
}
.home-promo-slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 1;
}
.home-promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.home-promo-media {
  position: absolute;
  inset: 0;
}
.home-promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}
.home-promo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 48%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.45) 0%, transparent 50%);
}
.home-promo-slide.tone-amber .home-promo-shade {
  background:
    linear-gradient(90deg, rgba(120, 53, 15, 0.9) 0%, rgba(180, 83, 9, 0.45) 50%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.4), transparent 55%);
}
.home-promo-slide.tone-orange .home-promo-shade {
  background:
    linear-gradient(90deg, rgba(154, 52, 18, 0.9) 0%, rgba(234, 88, 12, 0.4) 50%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.4), transparent 55%);
}
.home-promo-slide.tone-pink .home-promo-shade {
  background:
    linear-gradient(90deg, rgba(131, 24, 67, 0.88) 0%, rgba(219, 39, 119, 0.35) 50%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.4), transparent 55%);
}
.home-promo-slide.tone-blue .home-promo-shade {
  background:
    linear-gradient(90deg, rgba(30, 58, 138, 0.9) 0%, rgba(37, 99, 235, 0.4) 50%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.4), transparent 55%);
}
.home-promo-slide.tone-green .home-promo-shade {
  background:
    linear-gradient(90deg, rgba(6, 78, 59, 0.9) 0%, rgba(5, 150, 105, 0.4) 50%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.4), transparent 55%);
}
.home-promo-copy {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  max-width: min(94%, 30rem);
  gap: 0.35rem;
}
@media (min-width: 768px) {
  .home-promo-copy { padding: 1.6rem 2rem; max-width: 34rem; gap: 0.45rem; }
}
@media (min-width: 992px) {
  .home-promo-copy { padding: 1.85rem 2.25rem; max-width: 38rem; }
}
.home-promo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  backdrop-filter: blur(6px);
}
.home-promo-title {
  margin: 0;
  font-size: clamp(1.25rem, 3.6vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}
.home-promo-sub {
  margin: 0;
  font-size: clamp(0.86rem, 2.1vw, 1.02rem);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.93);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.home-promo-slide:hover .home-promo-cta {
  filter: brightness(1.05);
}
.home-promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.home-promo-nav:hover { background: rgba(15, 23, 42, 0.7); }
.home-promo-prev { left: 0.45rem; }
.home-promo-next { right: 0.45rem; }
@media (max-width: 575.98px) {
  .home-promo-nav { width: 1.75rem; height: 1.75rem; font-size: 1.1rem; }
}
.home-promo-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.home-promo-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.home-promo-dot.is-active {
  width: 1.15rem;
  background: #0f766e;
}

/* —— Footer (clean 4-row layout) —— */
footer.site-footer,
.site-footer {
  border-top: 1px solid var(--mk-line, #e2e8f0);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 0;
  margin-top: auto;
}

.site-footer .footer-inner {
  padding: 1.75rem 0 1.25rem;
}

.site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.site-footer .footer-brand-block {
  max-width: 28rem;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.site-footer .footer-brand:hover {
  color: #0f766e;
}

.site-footer .footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 0.45rem;
}

.site-footer .footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #64748b;
  font-weight: 500;
  max-width: 26rem;
}

.site-footer .footer-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-start;
}

.site-footer .footer-trust li {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

/* Equal link columns */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.35rem;
}

.site-footer .footer-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

.site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.site-footer .footer-links a {
  color: #334155;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  line-height: 1.35;
}

.site-footer .footer-links a:hover {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Store chips */
.site-footer .footer-stores-block {
  padding: 1rem 0 1.15rem;
  margin-bottom: 0.25rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.site-footer .footer-store-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.site-footer .footer-store-chips li {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  line-height: 1.2;
}

/* Legal bar — one strip, no duplicated walls */
.site-footer .footer-bar {
  display: grid;
  gap: 0.45rem;
  padding-top: 1rem;
  text-align: center;
}

.site-footer .footer-copy {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.site-footer .footer-legal-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}

.site-footer .footer-legal-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
}

.site-footer .footer-legal-nav a:hover {
  text-decoration: underline;
}

.site-footer .footer-fine {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 42rem;
  margin-inline: auto;
}

@media (max-width: 991.98px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .site-footer .footer-inner {
    padding: 1.35rem 0 1.1rem;
  }
  .site-footer .footer-top {
    flex-direction: column;
    gap: 0.75rem;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1rem;
  }
  .site-footer .footer-links a {
    font-size: 0.85rem;
  }
  /* Room above mobile bottom nav */
  .site-footer .footer-inner {
    padding-bottom: 4.5rem;
  }
}

/* Toast dopamine */
.priceory-basket-toast {
  border-radius: 1rem !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2) !important;
  border: 1px solid #99f6e4 !important;
}

/* Utility */
.mk-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  display: inline-block;
  animation: mkPulse 1.6s ease infinite;
}

@keyframes mkPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
