:root {
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --green-600: #16a34a;
  --green-700: #15803d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --cream-bg: #fff9f3;
  --card-bg: #ffffff;
  --ink-900: #1f1721;
  --ink-600: #5c5360;
  --ink-400: #8f8493;
  --border: #f2e4dc;
  --shadow-sm: 0 4px 14px rgba(185, 28, 28, 0.08);
  --shadow-md: 0 10px 28px rgba(31, 23, 33, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-km: 'Kantumruy Pro', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-km);
  color: var(--ink-900);
  background: radial-gradient(circle at top center, #ffe8e3 0%, #f9efe7 48%, #f3ece6 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* Snowflakes */
.snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -12px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(185, 28, 28, 0.18);
  user-select: none;
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(-10px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  88% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) translateX(24px) rotate(220deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snow-container {
    display: none;
  }
}

/* Mobile-First App Shell */
.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream-bg);
  box-shadow: 0 0 42px rgba(120, 30, 30, 0.14);
  position: relative;
  padding-bottom: 138px;
}

/* Top Ticker */
.top-ticker {
  background: linear-gradient(90deg, var(--red-700), #d92b3a, var(--green-700));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 26s linear infinite;
}

.ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sticky Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 249, 243, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.28);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--red-700);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--green-700);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red-600);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff9f3;
}

/* Hero Section */
.hero-section {
  padding: 12px 14px 8px;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #fde8e4;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(127, 29, 29, 0.55) 100%);
}

.hero-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red-700);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.hero-top-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(21, 128, 61, 0.92);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.hero-body {
  padding: 15px 14px 16px;
}

.hero-title {
  margin: 0 0 6px;
  font-size: 1.24rem;
  line-height: 1.48;
  color: var(--ink-900);
  font-weight: 700;
}

.hero-desc {
  margin: 0 0 13px;
  font-size: 0.87rem;
  color: var(--ink-600);
}

/* Countdown */
.countdown-box {
  background: linear-gradient(135deg, #fff3ed, #fff9e6);
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 10px 10px 12px;
  margin-bottom: 14px;
}

.countdown-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-700);
  margin-bottom: 8px;
}

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

.cd-unit {
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.08);
}

.cd-unit strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--red-700);
  font-weight: 800;
}

.cd-unit span {
  font-size: 0.72rem;
  color: var(--ink-600);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-600), var(--red-700));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #451a03;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}

.btn-green {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #ffffff;
}

.btn-tg {
  background: #0088cc;
  color: #ffffff;
}

.btn-fb {
  background: #1877f2;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink-900);
  border: 1.5px solid var(--border);
}

.hero-cta-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 9px;
}

/* Perks */
.perks-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.perk-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.perk-emoji {
  font-size: 1.15rem;
}

/* Section Blocks */
.section-block {
  padding: 18px 14px 4px;
  scroll-margin-top: 68px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
}

.section-title {
  margin: 2px 0 0;
  font-size: 1.14rem;
  line-height: 1.45;
  font-weight: 700;
}

.item-count-pill {
  background: #fee2e2;
  color: var(--red-700);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Lucky Spin Wheel */
.wheel-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff4ec 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.wheel-intro {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--ink-600);
}

.wheel-stage {
  position: relative;
  width: 276px;
  height: 276px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}

.wheel-pointer {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 1.65rem;
  color: var(--red-700);
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.95);
  line-height: 1;
}

#luckyWheelCanvas {
  width: 268px;
  height: 268px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.22);
  border: 5px solid #ffffff;
}

.wheel-center-btn {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
  z-index: 4;
}

.won-voucher-box {
  margin-top: 12px;
  background: #ecfdf5;
  border: 1.5px solid #34d399;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
}

.won-voucher-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.won-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
}

.won-voucher-top strong {
  font-size: 0.85rem;
  color: #065f46;
}

.won-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}

.won-code-row code {
  background: #ffffff;
  border: 1px dashed #10b981;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 800;
  color: #065f46;
}

.btn-mini-apply {
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Search & Category Filters */
.search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-400);
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 0.88rem;
  color: var(--ink-900);
  outline: none;
}

.search-input:focus {
  border-color: var(--red-600);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #f1e6df;
  color: var(--ink-600);
  cursor: pointer;
  font-size: 0.78rem;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-600);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cat-pill.active {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #ffffff;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 12px rgba(31, 23, 33, 0.05);
}

.product-thumb-btn {
  position: relative;
  border: none;
  padding: 0;
  background: #fff6ee;
  aspect-ratio: 1 / 1;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-thumb-btn.price-on-image img {
  object-fit: contain;
  background: #ffffff;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(185, 28, 28, 0.92);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.product-info {
  padding: 10px 10px 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-texture {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 2px;
}

.product-name {
  margin: 0 0 6px;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-block {
  margin-top: auto;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.price-usd {
  font-size: 1rem;
  font-weight: 800;
  color: var(--red-700);
}

.price-khr {
  font-size: 0.74rem;
  color: var(--ink-600);
  font-weight: 600;
}

.price-old {
  font-size: 0.74rem;
  color: var(--ink-400);
  text-decoration: line-through;
}

.price-on-photo-note {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-700);
}

.card-add-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  border: none;
  background: #fef2f2;
  color: var(--red-700);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.card-add-btn:active {
  background: var(--red-600);
  color: #ffffff;
}

.empty-state {
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 24px 14px;
  text-align: center;
  font-size: 0.9rem;
}

/* Store & Socials */
.store-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.store-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.store-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.store-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff3ed;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.store-row strong {
  display: block;
  font-size: 0.85rem;
}

.store-row p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ink-600);
}

.phone-link {
  color: var(--red-700);
  font-weight: 800;
  text-decoration: none;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.social-tile {
  text-decoration: none;
  border-radius: 13px;
  padding: 10px 11px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-badge {
  font-weight: 800;
  font-size: 0.86rem;
}

.social-handle {
  font-size: 0.74rem;
  opacity: 0.92;
}

.social-fb { background: #1877f2; }
.social-tg { background: #0088cc; }
.social-tt { background: #171717; }
.social-yt { background: #dc2626; }

/* Footer */
.app-footer {
  text-align: center;
  padding: 20px 14px 10px;
  font-size: 0.78rem;
  color: var(--ink-600);
}

.app-footer p {
  margin: 3px 0;
}

/* Floating Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 452px;
  z-index: 32;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: #ffffff;
  border: none;
  border-radius: 15px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.35);
  cursor: pointer;
}

.fcb-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fcb-qty {
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.fcb-text {
  font-size: 0.86rem;
  font-weight: 700;
}

.fcb-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

/* Bottom Sticky Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 33;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.bnav-item {
  border: none;
  background: transparent;
  color: var(--ink-600);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.71rem;
  font-weight: 600;
  padding: 4px 2px;
  cursor: pointer;
}

.bnav-item.active {
  color: var(--red-700);
  font-weight: 700;
}

.bnav-ico {
  font-size: 1.15rem;
  line-height: 1.1;
}

/* Modals & Cart Drawer */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 12, 16, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease-out;
}

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

.sheet-close {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-900);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.modal-img-wrap {
  position: relative;
  background: #fff5ec;
  max-height: 44vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.modal-img-wrap img {
  width: 100%;
  max-height: 44vh;
  object-fit: contain;
}

.modal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red-600);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.modal-body {
  padding: 14px 16px 22px;
  overflow-y: auto;
}

.modal-texture {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-700);
}

.modal-title {
  margin: 4px 0 8px;
  font-size: 1.08rem;
  line-height: 1.48;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-price-usd {
  font-size: 1.24rem;
  color: var(--red-700);
  font-weight: 800;
}

.modal-price-khr {
  font-size: 0.88rem;
  color: var(--ink-600);
  font-weight: 600;
}

.modal-price-old {
  font-size: 0.86rem;
  color: var(--ink-400);
  text-decoration: line-through;
}

.modal-desc {
  margin: 0 0 10px;
  font-size: 0.87rem;
  color: var(--ink-600);
}

.modal-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.meta-chip {
  background: #fff5ec;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf6;
}

.qty-stepper button {
  width: 36px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.qty-stepper span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.modal-add-btn {
  flex: 1;
}

/* Cart Drawer */
.cart-drawer {
  height: 88vh;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.sheet-close-inline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff9f3;
  cursor: pointer;
  font-weight: 700;
}

.cart-scroll {
  padding: 14px 16px 26px;
  overflow-y: auto;
  flex: 1;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-item-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdfb;
}

.cart-item-img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff5ec;
}

.cart-item-mid {
  flex: 1;
  min-width: 0;
}

.cart-item-mid strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--red-700);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.cart-mini-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.cart-del-btn {
  border: none;
  background: transparent;
  color: var(--ink-400);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
}

.cart-empty {
  text-align: center;
  padding: 34px 12px;
}

.voucher-input-group {
  background: #fff7ef;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.voucher-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.voucher-row {
  display: flex;
  gap: 8px;
}

.voucher-row input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.btn-apply {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: var(--red-700);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.voucher-status {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.voucher-status.ok {
  color: var(--green-700);
}

.voucher-status.err {
  color: var(--red-600);
}

.totals-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 12px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.discount-line {
  color: var(--green-700);
  font-weight: 700;
}

.bonus-line {
  color: #b45309;
  font-weight: 700;
}

.grand-total {
  border-top: 1px dashed var(--border);
  padding-top: 7px;
  margin: 7px 0 0;
  font-weight: 700;
}

.grand-total strong {
  color: var(--red-700);
  font-size: 1.08rem;
}

.grand-total small {
  color: var(--ink-600);
  margin-left: 4px;
}

.customer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.customer-form h4 {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.customer-form input {
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.no-aba-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.79rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.channel-picker-wrap {
  margin-bottom: 12px;
}

.channel-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.channel-picker-head h4 {
  margin: 0;
  font-size: 0.88rem;
}

.best-mobile-pill {
  background: #dcfce7;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

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

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  padding: 15px 10px 10px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.channel-card.active {
  border-color: #0088cc;
  background: #f0f9ff;
}

.channel-card[data-channel="messenger"].active {
  border-color: #1877f2;
  background: #eff6ff;
}

.channel-rec-tag {
  position: absolute;
  top: -8px;
  right: 8px;
  background: #f59e0b;
  color: #451a03;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

.channel-title {
  font-size: 0.92rem;
  color: var(--ink-900);
}

.channel-sub {
  font-size: 0.72rem;
  color: var(--ink-600);
}

.msg-preview-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 12px;
}

.msg-preview-head {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-600);
  margin-bottom: 5px;
}

.msg-preview-text {
  margin: 0;
  font-family: inherit;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-900);
  white-space: pre-wrap;
  word-break: break-word;
}

.btn-lg-send {
  padding: 13px 14px;
  font-size: 0.94rem;
}

.secondary-send-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.btn-sm-action {
  padding: 8px 6px;
  font-size: 0.76rem;
}

/* Prize Popup */
.prize-modal {
  margin: auto 16px;
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.prize-emoji {
  font-size: 2.8rem;
  line-height: 1.1;
}

.prize-modal h3 {
  margin: 8px 0 4px;
  color: var(--red-700);
}

.prize-modal p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ink-600);
}

.prize-code-pill {
  display: inline-block;
  background: #fef3c7;
  border: 2px dashed #f59e0b;
  color: #92400e;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 7px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.prize-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: rgba(31, 23, 33, 0.92);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto 8px;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.18);
}

.voucher-spin-link {
  margin-top: 7px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--red-700);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 380px) {
  .hero-cta-row {
    grid-template-columns: 1fr;
  }

  .secondary-send-row .btn-sm-action {
    font-size: 0.71rem;
    padding: 8px 3px;
  }
}
