/* =============================================
   TOKO DAGING NUSANTARA — Shared Styles
   ============================================= */

:root {
  --primary:       #D82226;
  --primary-dark:  #B01C1F;
  --primary-hover: #c01e22;
  --primary-light: #fff0f0;
  --primary-pale:  #fef2f2;

  --text-primary:   #1a1a1a;
  --text-secondary: #555555;
  --text-muted:     #999999;

  --bg-app:     #ffffff;
  --bg-page:    #e5e5e5;
  --bg-section: #f7f7f7;
  --border:     #eeeeee;

  --green:  #16a34a;
  --orange: #ea580c;
  --blue:   #1d4ed8;
  --gold:   #d97706;

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 6px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --nav-h:  68px;
  --app-w:  430px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; background: none; font: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input { font: inherit; }

/* ── App Shell ── */
.app-shell {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.22);
}
.page-content { padding-bottom: calc(var(--nav-h) + 4px); }

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--app-w);
  height: var(--nav-h);
  background: var(--bg-app);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s;
  position: relative;
  padding-top: 8px;
}
.nav-item:hover, .nav-item.active { color: var(--primary); }
.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--primary);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; }
.nav-item span { font-size: 10px; font-weight: 500; letter-spacing: .1px; }
.nav-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -6px; right: -9px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
}

/* ── App Header ── */
.app-header {
  background: var(--primary);
  padding: 14px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.header-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.logo-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-brand { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.2px; }
.logo-sub   { color: rgba(255,255,255,.8); font-size: 10px; font-weight: 400; }
.header-icons { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: var(--r-md);
  position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.15); }
.icon-btn svg { width: 22px; height: 22px; }
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: #FFD600;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
}
.location-row {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  margin-bottom: 9px;
}
.location-row svg { width: 13px; height: 13px; }
.loc-name { font-weight: 700; color: #fff; }
.loc-change { color: rgba(255,255,255,.7); font-size: 11px; display: flex; align-items: center; gap: 2px; }
.loc-change svg { width: 12px; height: 12px; }
.delivery-badge {
  margin-left: auto;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 10.5px; font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  display: flex; align-items: center; gap: 4px;
}
.search-bar {
  display: flex; align-items: center;
  background: #fff;
  border-radius: var(--r-full);
  padding: 0 14px; height: 40px; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.search-bar input { flex: 1; border: none; outline: none; font-size: 13px; color: var(--text-secondary); background: transparent; }
.search-bar svg  { color: var(--text-muted); width: 17px; height: 17px; flex-shrink: 0; }

/* ── Back Header ── */
.back-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.back-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.back-btn svg { width: 20px; height: 20px; color: var(--text-primary); stroke-width: 2; }
.back-title { font-size: 16px; font-weight: 700; flex: 1; }
.back-actions { display: flex; gap: 4px; }

/* ── Banner Carousel ── */
.banner-wrap { overflow: hidden; }
.banner-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.banner-slide {
  min-width: 100%; height: 176px;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.slide-red    { background: linear-gradient(130deg, #D82226 0%, #7b0d10 100%); }
.slide-navy   { background: linear-gradient(130deg, #1a237e 0%, #283593 100%); }
.slide-forest { background: linear-gradient(130deg, #1b5e20 0%, #2e7d32 100%); }
.slide-amber  { background: linear-gradient(130deg, #b45309 0%, #d97706 100%); }
.banner-content { position: relative; z-index: 2; padding: 0 20px; color: #fff; }
.banner-eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; opacity: .8; margin-bottom: 4px; }
.banner-title   { font-size: 24px; font-weight: 900; line-height: 1.1; margin-bottom: 6px; }
.banner-desc    { font-size: 12px; opacity: .85; margin-bottom: 14px; max-width: 170px; line-height: 1.45; }
.banner-btn {
  display: inline-block;
  background: #fff; color: var(--primary);
  font-size: 12px; font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--r-full);
}
.banner-visual {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 190px;
  display: flex; align-items: center; justify-content: center;
  font-size: 88px;
  opacity: .9;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
  pointer-events: none;
}
.banner-dots {
  display: flex; justify-content: center; align-items: center;
  gap: 5px; padding: 9px 0;
  background: var(--bg-app);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all .3s; cursor: pointer;
}
.dot.active { background: var(--primary); width: 20px; border-radius: 3px; }

/* ── Section ── */
.section { padding: 18px 0 4px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; margin-bottom: 12px;
}
.section-title {
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.section-title em { font-style: normal; font-weight: 400; font-size: 13.5px; color: var(--text-muted); }
.section-link { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.section-divider { height: 8px; background: var(--bg-section); }

/* ── Categories ── */
.cats-scroll {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 2px 16px 10px;
  scrollbar-width: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; min-width: 66px; cursor: pointer;
  transition: transform .2s;
}
.cat-item:hover { transform: translateY(-2px); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border: 2px solid transparent;
  transition: border-color .2s, background .2s;
  box-shadow: var(--shadow-sm);
}
.cat-item:hover .cat-icon,
.cat-item.active .cat-icon { border-color: var(--primary); background: var(--primary-light); }
.cat-name { font-size: 10.5px; font-weight: 500; color: var(--text-secondary); text-align: center; line-height: 1.3; }

/* ── Promo Grid ── */
.promo-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 4px 16px 12px;
}
.promo-card {
  border-radius: var(--r-md); height: 94px;
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .2s;
}
.promo-card:hover { transform: scale(1.02); }
.promo-card.p-red    { background: linear-gradient(130deg, #D82226, #8B0000); }
.promo-card.p-orange { background: linear-gradient(130deg, #ea580c, #f97316); }
.promo-card.p-blue   { background: linear-gradient(130deg, #1565C0, #1976D2); }
.promo-card.p-green  { background: linear-gradient(130deg, #166534, #16a34a); }
.promo-label { position: absolute; left: 12px; top: 10px; color: #fff; }
.promo-tag   { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; opacity: .8; margin-bottom: 1px; }
.promo-name  { font-size: 13px; font-weight: 800; line-height: 1.2; }
.promo-disc  { font-size: 20px; font-weight: 900; line-height: 1; }
.promo-visual{ position: absolute; right: 8px; bottom: 4px; font-size: 40px; opacity: .8; }

/* ── Flash Sale ── */
.flash-header {
  background: linear-gradient(130deg, #D82226 0%, #8B0000 100%);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.flash-title { color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.flash-right { display: flex; align-items: center; gap: 10px; }
.countdown   { display: flex; align-items: center; gap: 3px; }
.cd-unit {
  background: rgba(0,0,0,.28); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 4px 7px; border-radius: 6px;
  min-width: 30px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.cd-sep { color: rgba(255,255,255,.8); font-weight: 700; font-size: 13px; }
.flash-link { color: rgba(255,255,255,.88); font-size: 12px; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* ── Horizontal Scroll Products ── */
.hscroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 16px 14px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

/* ── Product Grid ── */
.pgrid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 10px; padding: 4px 16px 14px;
}

/* ── Product Card ── */
.pcard {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  width: 152px; /* for hscroll */
}
.pgrid .pcard { width: auto; }
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pcard-img {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; position: relative; overflow: hidden;
}
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pbadge {
  position: absolute; top: 8px; left: 8px;
  font-size: 9.5px; font-weight: 700;
  padding: 3px 7px; border-radius: var(--r-xs);
  text-transform: uppercase;
}
.pbadge.sale  { background: var(--primary); color: #fff; }
.pbadge.flash { background: var(--orange); color: #fff; }
.pbadge.new   { background: var(--green);  color: #fff; }
.pbadge.hot   { background: var(--gold);   color: #fff; }
.wish-btn {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.wish-btn:hover { transform: scale(1.1); }
.wish-btn svg { width: 14px; height: 14px; color: #ccc; stroke-width: 2; }
.wish-btn.active svg { color: var(--primary); fill: var(--primary); }
.pcard-body { padding: 8px 10px 10px; }
.pcard-name {
  font-size: 12.5px; font-weight: 600; line-height: 1.3;
  color: var(--text-primary); margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-unit { font-size: 10.5px; color: var(--text-muted); margin-bottom: 6px; }
.pcard-prices { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin-bottom: 7px; }
.pcard-price  { font-size: 14px; font-weight: 800; color: var(--primary); }
.pcard-orig   { font-size: 10.5px; color: var(--text-muted); text-decoration: line-through; }
.pcard-disc   { font-size: 9.5px; font-weight: 700; color: var(--primary); background: var(--primary-pale); padding: 1px 5px; border-radius: var(--r-xs); }
.add-btn {
  width: 100%; height: 32px;
  background: var(--primary); color: #fff;
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: background .2s;
}
.add-btn:hover { background: var(--primary-dark); }
.qty-ctrl {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary-pale); border-radius: var(--r-sm);
  padding: 2px; height: 32px;
}
.qty-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  border-radius: var(--r-xs);
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qty-num { font-size: 13px; font-weight: 700; color: var(--primary); min-width: 28px; text-align: center; }

/* ── Voucher Bar ── */
.voucher-bar {
  background: linear-gradient(130deg, var(--primary), var(--primary-dark));
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.voucher-icon  { font-size: 22px; flex-shrink: 0; }
.voucher-texts { flex: 1; }
.voucher-texts strong { display: block; color: #fff; font-size: 13px; font-weight: 700; }
.voucher-texts span   { color: rgba(255,255,255,.82); font-size: 11.5px; }
.voucher-arrow { color: rgba(255,255,255,.8); font-size: 20px; }

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex; gap: 7px; overflow-x: auto;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  background: #fff; scrollbar-width: none;
  position: sticky; top: 0; z-index: 50;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.ftab {
  padding: 7px 15px;
  border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary); white-space: nowrap;
  cursor: pointer; transition: all .2s; background: #fff;
  flex-shrink: 0;
}
.ftab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.ftab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ── Category Header ── */
.cat-page-header {
  background: var(--primary); padding: 14px 16px 12px;
  position: sticky; top: 0; z-index: 100;
}
.cat-page-header-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 11px;
}
.cat-search {
  flex: 1; display: flex; align-items: center;
  background: #fff; border-radius: var(--r-full);
  padding: 0 14px; height: 40px; gap: 8px;
}
.cat-search input { flex: 1; border: none; outline: none; font-size: 13px; color: var(--text-secondary); background: transparent; }
.cat-search svg   { color: var(--text-muted); width: 17px; height: 17px; flex-shrink: 0; }

/* Category Grid (4-col) */
.cat-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px; padding: 16px;
}
.cg-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.cg-icon {
  width: 60px; height: 60px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; border: 1.5px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.cg-item:hover .cg-icon, .cg-item.active .cg-icon { border-color: var(--primary); transform: scale(1.05); }
.cg-name { font-size: 10px; font-weight: 600; text-align: center; color: var(--text-secondary); line-height: 1.3; }

/* Sort Bar */
.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: #fff;
}
.sort-count { font-size: 12.5px; color: var(--text-muted); }
.sort-select-wrap { display: flex; align-items: center; gap: 6px; }
.sort-select-wrap svg { width: 14px; height: 14px; color: var(--text-muted); }
.sort-select {
  border: none; outline: none; font-size: 12.5px; font-weight: 600;
  color: var(--primary); background: transparent; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  padding-right: 14px;
}

/* ── Checkout ── */
.checkout-block { padding: 16px; border-bottom: 8px solid var(--bg-section); }
.checkout-block-title {
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.checkout-block-title svg { width: 17px; height: 17px; color: var(--primary); }

/* Address Card */
.addr-card {
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start;
}
.addr-icon {
  width: 38px; height: 38px; background: var(--primary-pale);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.addr-icon svg { width: 18px; height: 18px; color: var(--primary); }
.addr-info { flex: 1; }
.addr-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin-bottom: 2px; }
.addr-name  { font-size: 13.5px; font-weight: 600; }
.addr-text  { font-size: 12px; color: var(--text-secondary); line-height: 1.45; margin-top: 2px; }
.addr-change { font-size: 12px; font-weight: 600; color: var(--primary); flex-shrink: 0; cursor: pointer; }

/* Cart Item */
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.ci-img {
  width: 66px; height: 66px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0;
  border: 1px solid var(--border);
}
.ci-info { flex: 1; }
.ci-name { font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 3px; }
.ci-unit { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; }
.ci-price { font-size: 14px; font-weight: 800; color: var(--primary); }
.ci-qty {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-pale); border-radius: var(--r-sm); padding: 3px 7px;
}
.ci-qty-btn {
  width: 24px; height: 24px;
  background: var(--primary); color: #fff;
  border-radius: 6px; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ci-qty-num { font-size: 13px; font-weight: 700; color: var(--primary); min-width: 20px; text-align: center; }

/* Delivery Options */
.delivery-opts { display: flex; gap: 8px; }
.del-opt {
  flex: 1; border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 11px 12px; cursor: pointer; transition: all .2s;
}
.del-opt.active { border-color: var(--primary); background: var(--primary-pale); }
.del-opt-title { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.del-opt.active .del-opt-title { color: var(--primary); }
.del-opt-sub   { font-size: 11px; color: var(--text-secondary); }
.del-opt-price { font-size: 11.5px; font-weight: 600; margin-top: 4px; }
.del-opt.active .del-opt-price { color: var(--primary); }

/* Voucher Input */
.voucher-input-row {
  display: flex; gap: 8px; align-items: center;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 0 5px 0 14px; height: 44px;
}
.voucher-input-row input { flex: 1; border: none; outline: none; font-size: 13px; color: var(--text-secondary); background: transparent; }
.apply-btn {
  background: var(--primary); color: #fff;
  border-radius: var(--r-sm); padding: 8px 16px;
  font-size: 12.5px; font-weight: 700; transition: background .2s;
}
.apply-btn:hover { background: var(--primary-dark); }

/* Summary Rows */
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 13.5px; color: var(--text-secondary);
}
.summary-row.total {
  font-size: 15px; font-weight: 800; color: var(--text-primary);
  border-top: 1.5px dashed var(--border); padding-top: 11px; margin-top: 4px;
}
.summary-row.total .val { color: var(--primary); }
.summary-row .free { color: var(--green); font-weight: 600; }
.summary-row .disc { color: var(--primary); font-weight: 600; }

/* Payment Methods */
.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1.5px solid var(--border);
  border-radius: var(--r-md); cursor: pointer; transition: all .2s;
}
.pay-method.selected { border-color: var(--primary); background: var(--primary-pale); }
.pay-icon {
  width: 42px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; background: var(--bg-section); flex-shrink: 0;
}
.pay-name { flex: 1; font-size: 13px; font-weight: 600; }
.pay-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.radio {
  width: 18px; height: 18px; border: 2px solid var(--border);
  border-radius: 50%; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.pay-method.selected .radio { border-color: var(--primary); }
.radio::after { content:''; width:8px; height:8px; border-radius:50%; }
.pay-method.selected .radio::after { background: var(--primary); }

/* ── Checkout Sticky Footer ── */
.checkout-footer {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: var(--app-w); background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.checkout-footer-inner { display: flex; gap: 10px; align-items: center; }
.checkout-total-mini { flex: 1; }
.checkout-total-mini small { display: block; font-size: 10.5px; color: var(--text-muted); }
.checkout-total-mini strong { font-size: 17px; font-weight: 900; color: var(--primary); }
.confirm-btn {
  flex: 0 0 auto;
  height: 48px; padding: 0 24px;
  background: var(--primary); color: #fff;
  border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
}
.confirm-btn:hover { background: var(--primary-dark); }

/* ── Product Detail ── */
.product-gallery {
  height: 290px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.product-info-section { padding: 16px; border-bottom: 1px solid var(--border); }
.product-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-xs); text-transform: uppercase; letter-spacing: .4px;
}
.tag-halal { background: #dcfce7; color: #166534; }
.tag-segar { background: #dbeafe; color: #1e40af; }
.tag-promo { background: var(--primary-pale); color: var(--primary); }
.product-name-big { font-size: 20px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.product-name-en  { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.price-main { font-size: 24px; font-weight: 900; color: var(--primary); }
.price-orig { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.price-disc {
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--primary-pale); padding: 2px 7px; border-radius: var(--r-xs);
}
.stock-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.stock-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #dcfce7; color: var(--green);
  font-size: 11.5px; font-weight: 600;
  padding: 4px 11px; border-radius: var(--r-full);
}
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); }
.stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.weight-opts { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.wopt {
  padding: 7px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all .2s; color: var(--text-secondary); background: #fff;
}
.wopt.active { border-color: var(--primary); background: var(--primary-pale); color: var(--primary); }
.freshness-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(130deg, #dcfce7, #bbf7d0);
  border-radius: var(--r-md); padding: 12px 14px; margin: 14px 0;
}
.freshness-icon { font-size: 28px; }
.freshness-title { font-size: 13px; font-weight: 700; color: var(--green); }
.freshness-sub   { font-size: 11.5px; color: #166534; opacity: .8; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.qty-label { font-size: 14px; font-weight: 600; }
.detail-qty-ctrl {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-section); border-radius: var(--r-md); padding: 5px 14px;
}
.dqb {
  width: 32px; height: 32px; background: var(--primary); color: #fff;
  border-radius: var(--r-sm); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dqn { font-size: 17px; font-weight: 700; min-width: 32px; text-align: center; }
.desc-section { padding: 16px; }
.desc-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.desc-text  { font-size: 13px; line-height: 1.65; color: var(--text-secondary); }
.info-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.info-item  { background: var(--bg-section); border-radius: var(--r-sm); padding: 10px 12px; }
.info-key   { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.info-val   { font-size: 13px; font-weight: 600; }
.product-detail-footer {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: var(--app-w); background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 16px; z-index: 200;
  display: flex; gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.cart-action {
  flex: 1; height: 48px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
}
.cart-action.outline { border: 2px solid var(--primary); color: var(--primary); background: #fff; }
.cart-action.filled  { background: var(--primary); color: #fff; }
.cart-action.outline:hover { background: var(--primary-pale); }
.cart-action.filled:hover  { background: var(--primary-dark); }

/* ── Trust Bar ── */
.trust-bar {
  display: flex; padding: 14px 16px; gap: 0;
  background: var(--bg-section);
  border-radius: 0;
}
.trust-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 0 4px; }
.trust-icon { font-size: 22px; }
.trust-title { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.trust-sub   { font-size: 10px; color: var(--text-muted); line-height: 1.3; }
.trust-divider { width: 1px; background: var(--border); margin: 4px 0; }

/* ── Misc ── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer; background: #fff; white-space: nowrap;
  transition: all .2s;
}
.chip.active { background: var(--primary-pale); border-color: var(--primary); color: var(--primary); }

.halal-strip {
  background: linear-gradient(130deg, #166534, #16a34a);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.halal-strip span { color: #fff; font-size: 12.5px; font-weight: 600; }

::-webkit-scrollbar { width: 0; height: 0; }
