/* ================================================
   BREVA COFFEE — CATALOG STYLES (3-step flow)
   ================================================ */

/* ---- STEP SYSTEM ---- */
.step { display: none; }
.step.active { display: block; animation: slideUp 0.3s ease; }

/* ================================================================
   STEP 1 — ONBOARDING
   ================================================================ */
.onboarding {
  min-height: 100dvh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- OB TOPBAR ---- */
.ob-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.ob-brand { display: flex; align-items: center; gap: 7px; }
.ob-brand-icon { font-size: 22px; line-height: 1; }
.ob-brand-name { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -0.01em; }

/* WA help button (text version in step 1) */
.btn-wa-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #e7f7ef;
  color: #1a7a3c;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-wa-help:hover { background: #d0f0df; }

/* WA icon-only button (in catalog topbar) */
.btn-wa-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f7ef;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-wa-icon:hover { background: #d0f0df; }

/* ---- HEADLINE ---- */
.ob-content { padding: 0 20px; }

.ob-headline {
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 32px 20px 6px;
}

.ob-sub {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 20px 24px;
}

/* ---- ORDER TYPE CARDS ---- */
.order-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 20px 20px;
}

.order-type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
  position: relative;
  user-select: none;
}

.order-type-card:hover { border-color: var(--latte); transform: translateY(-2px); }

.order-type-card.selected { border-color: var(--primary); background: var(--latte-xlight); }

.order-type-card.selected::after {
  content: '✓';
  position: absolute;
  top: 9px;
  right: 11px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: var(--latte-light);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-type-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.order-type-name { font-size: 17px; font-weight: 800; color: var(--text-dark); display: block; margin-bottom: 2px; }
.order-type-desc { font-size: 12px; color: var(--text-soft); font-weight: 500; display: block; }

/* ---- PICKUP ADDRESS ---- */
.pickup-address-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px;
  display: none;
  gap: 12px;
  align-items: flex-start;
  margin: 0 20px 20px;
  animation: fadeUp 0.3s ease;
}

.pickup-address-card.visible { display: flex; }

.pickup-pin { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.pickup-info-label { font-size: 11px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.pickup-info-name  { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 3px; }
.pickup-info-addr  { font-size: 13px; font-weight: 500; color: var(--text-mid); line-height: 1.5; margin-bottom: 3px; }
.pickup-info-hours { font-size: 12px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.pickup-maps-link  { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; }
.pickup-maps-link:hover { text-decoration: underline; }

/* ---- DATE SECTION ---- */
.date-section {
  margin: 0 20px 24px;
  display: none;
  animation: fadeUp 0.3s ease;
}

.date-section.visible { display: block; }

.date-section-label { font-size: 13px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }

.date-chips-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.date-chips-wrap::-webkit-scrollbar { display: none; }

.date-chip {
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--white);
  min-width: 60px;
  user-select: none;
}

.date-chip:hover { border-color: var(--latte); background: var(--latte-xlight); }
.date-chip.selected { border-color: var(--primary); background: var(--primary); }

.date-chip.selected .dc-day,
.date-chip.selected .dc-date,
.date-chip.selected .dc-month,
.date-chip.selected .dc-label,
.date-chip.selected .dc-sublabel { color: var(--white) !important; opacity: 1 !important; }

.dc-day    { display: block; font-size: 11px; font-weight: 600; color: var(--text-soft); margin-bottom: 2px; }
.dc-date   { display: block; font-size: 20px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.dc-month  { display: block; font-size: 11px; font-weight: 600; color: var(--text-soft); margin-top: 2px; }
.dc-label  { display: block; font-size: 14px; font-weight: 800; color: var(--text-dark); }
.dc-sublabel { display: block; font-size: 12px; font-weight: 500; color: var(--text-soft); margin-top: 2px; }

.date-chip.chip-today,
.date-chip.chip-tomorrow { min-width: 80px; }

/* ---- STEP 1 CTA ---- */
.ob-footer { margin-top: auto; padding: 20px 20px 0; }

.btn-next {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: -0.01em;
}

.btn-next:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(85,49,37,0.28);
}
.btn-next:active:not(:disabled) { transform: translateY(0); }
.btn-next:disabled { opacity: 0.28; cursor: not-allowed; }

/* ================================================================
   STEP 2 — CATALOG
   ================================================================ */

/* ---- CATALOG TOPBAR ---- */
.catalog-topbar {
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.topbar-back {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-dark);
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.topbar-back:hover { background: var(--border); }

.topbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.topbar-icon { font-size: 18px; line-height: 1; }
.topbar-brand-name { font-size: 16px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.01em; }

/* ---- ORDER INFO STRIP ---- */
.order-info-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

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

.ois-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.ois-sep  { font-size: 12px; color: var(--text-soft); }
.ois-date { font-size: 13px; font-weight: 600; color: var(--text-mid); }

.ois-change {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ois-change:hover { background: var(--latte-xlight); }

/* ---- BANNER ---- */
.catalog-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #7a4a38 55%, #9a6248 100%);
  margin: 16px 16px 0;
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.banner-texts { flex: 1; }
.banner-title  { font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: -0.01em; margin-bottom: 4px; }
.banner-sub    { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); }
.banner-deco   { font-size: 44px; opacity: 0.2; flex-shrink: 0; line-height: 1; margin-left: 8px; }

.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  opacity: 0.22;
  pointer-events: none;
}

/* Background circle deco */
.catalog-banner::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

/* ---- PRODUCTS SECTION ---- */
.products-section {
  padding: 20px 16px 120px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  margin-top: 16px;
}

/* ---- PRODUCT GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 520px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

/* ---- PRODUCT CARD ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.4s ease both;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--latte-light);
}

/* ---- BADGE ---- */
.product-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}

.badge-new        { background: #fff3e0; color: #c05000; }
.badge-bestseller { background: var(--primary); color: #fff; }

/* ---- PRODUCT IMAGE ---- */
.product-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-image-wrap img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img { transform: scale(1.08); }
.product-image-placeholder { font-size: 42px; opacity: 0.3; }

/* ---- PRODUCT INFO ---- */
.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

@media (min-width: 480px) { .product-name { font-size: 14px; } }

.product-price { font-size: 14px; font-weight: 800; color: var(--primary); }

/* ---- QTY CONTROLS ---- */
.product-controls { display: flex; align-items: center; gap: 8px; }

.qty-btn {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
}

.qty-btn:hover { border-color: var(--primary); background: var(--primary); color: var(--white); }
.qty-btn.bounce { animation: bounce 0.32s ease; }
.qty-btn.plus  { background: var(--primary); border-color: var(--primary); color: var(--white); }
.qty-btn.plus:hover { background: var(--primary-hover); }
.qty-btn.minus-disabled { opacity: 0.22; pointer-events: none; }

.qty-display { font-size: 15px; font-weight: 800; color: var(--text-dark); min-width: 20px; text-align: center; }

/* ---- STICKY FOOTER (cart) ---- */
.catalog-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(85,49,37,0.1);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.catalog-sticky-footer.visible { transform: translateY(0); }

.csf-left  { display: flex; align-items: center; gap: 12px; }
.csf-icon  { font-size: 26px; flex-shrink: 0; }
.csf-qty   { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.csf-total { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-top: 1px; }

.csf-cta {
  flex-shrink: 0;
  padding: 13px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.csf-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.csf-cta:active { transform: translateY(0); }

/* ---- LOADING / EMPTY / ERROR ---- */
.loading-state { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; gap: 14px; color: var(--text-soft); font-weight: 600; }

.catalog-empty, .catalog-error { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-soft); }
.catalog-empty-icon, .catalog-error-icon { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.4; }
.catalog-empty h3, .catalog-error h3 { font-size: 18px; font-weight: 800; color: var(--text-mid); margin-bottom: 6px; }
.catalog-empty p, .catalog-error p { font-size: 14px; font-weight: 500; }

/* ================================================================
   STEP 3 — CHECKOUT
   ================================================================ */
.checkout-body {
  background: var(--cream);
  padding: 16px;
  padding-bottom: 0;
  min-height: calc(100dvh - 57px);
  display: flex;
  flex-direction: column;
}

/* ---- CO SECTION ---- */
.co-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
}

.co-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 14px;
}

/* ---- CO META CARD ---- */
.co-meta-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 4px;
}

.co-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.co-meta-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.co-meta-icon  { font-size: 20px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.co-meta-label { font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.co-meta-value { font-size: 15px; font-weight: 700; color: var(--text-dark); }

/* ---- CO PICKUP CARD ---- */
.co-pickup-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 10px;
}

.co-pickup-addr { font-size: 13px; font-weight: 500; color: var(--text-mid); line-height: 1.5; margin-top: 4px; }

/* ---- DELIVERY ADDRESS INPUT ---- */
.address-input-wrap { display: flex; flex-direction: column; gap: 8px; }

.btn-use-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--latte-xlight);
  color: var(--primary);
  border: 1.5px solid var(--latte-light);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.btn-use-location:hover  { background: var(--latte-light); }
.btn-use-location:active { transform: scale(0.97); }
.btn-use-location:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loc-icon { font-size: 15px; line-height: 1; }

.address-maps-verify {
  font-size: 12px;
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.address-maps-verify:hover { text-decoration: underline; }

/* ---- CO ITEMS LIST ---- */
.co-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream);
}

.co-item:last-child { border-bottom: none; }

.co-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  object-fit: contain;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.co-item-info     { flex: 1; min-width: 0; }
.co-item-name     { font-size: 14px; font-weight: 700; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item-variants { font-size: 12px; font-weight: 600; color: var(--primary); margin-top: 1px; }
.co-item-qty      { font-size: 13px; font-weight: 500; color: var(--text-soft); margin-top: 2px; }
.co-item-price    { font-size: 14px; font-weight: 800; color: var(--primary); flex-shrink: 0; }

.co-item-del {
  width: 26px;
  height: 26px;
  border: none;
  background: #fde8e8;
  color: #c0392b;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.co-item-del:hover { background: #c0392b; color: white; }

/* ---- CO TOTAL ---- */
.co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1.5px solid var(--border);
}

.co-total-label  { font-size: 15px; font-weight: 600; color: var(--text-mid); }
.co-total-amount { font-size: 20px; font-weight: 800; color: var(--primary); }

/* ---- CO SUBMIT ---- */
.co-submit { margin-top: 8px; }

.btn-wa-send {
  width: 100%;
  padding: 18px;
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: -0.01em;
}

.btn-wa-send:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

.btn-wa-send:active { transform: translateY(0); }

/* Logo image in header (replaces emoji when set) */
.brand-icon-logo {
  height: 26px;
  width: auto;
  max-width: 38px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ================================================================
   SITE FOOTER
   ================================================================ */

.site-footer {
  text-align: center;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 7px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--latte-xlight);
  color: var(--primary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.footer-social-link:hover {
  background: var(--latte-light);
  transform: translateY(-1px);
}

.footer-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.footer-powered {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-mid);
}

/* ================================================================
   VARIANT — "Pilih" button on product card
   ================================================================ */

.btn-pick-variant {
  position: relative;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-pick-variant:hover  { background: var(--latte); }
.btn-pick-variant:active { transform: scale(0.95); }

.vbadge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  background: #e74c3c;
  color: white;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}

/* ================================================================
   VARIANT SELECTION SHEET
   ================================================================ */

.variant-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 26, 16, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.variant-overlay.active { opacity: 1; pointer-events: all; }

.variant-sheet {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.34, 1.08, 0.64, 1);
  padding-bottom: env(safe-area-inset-bottom);
}

.variant-overlay.active .variant-sheet { transform: translateY(0); }

.variant-sheet-drag {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.variant-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 10px;
}

.variant-sheet-product { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.variant-sheet-img-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--latte-xlight);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.variant-sheet-img    { width: 100%; height: 100%; object-fit: cover; }
.variant-sheet-img-ph { font-size: 24px; }
.variant-sheet-info   { flex: 1; min-width: 0; }
.variant-sheet-name   { font-size: 15px; font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.variant-sheet-price  { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 2px; }

.variant-sheet-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--latte-xlight);
  color: var(--text-mid);
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  flex-shrink: 0;
}

.variant-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vs-group-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.vs-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.vs-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
}

.vs-chip:hover:not(.selected) { border-color: var(--latte); background: var(--latte-xlight); }
.vs-chip.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }

.variant-sheet-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.vs-qty-row { display: flex; align-items: center; justify-content: space-between; }
.vs-qty-label { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.vs-qty-ctrl  { display: flex; align-items: center; gap: 14px; }

.vs-add-btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

/* ================================================================
   PRODUCT DESCRIPTION on catalog card
   ================================================================ */
.product-desc {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.35;
  margin: 2px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   PROMO CODE — checkout section
   ================================================================ */
.promo-input-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.promo-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.promo-input:focus { border-color: var(--primary); }
.promo-input::placeholder { letter-spacing: 0; font-weight: 500; color: var(--text-soft); }

.promo-apply-btn {
  padding: 11px 18px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.promo-apply-btn:hover    { background: var(--latte); }
.promo-apply-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.promo-result {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.promo-ok  { color: #1a7a3c; }
.promo-err { color: #c0392b; }

.promo-remove-btn {
  padding: 5px 12px;
  background: #fde8e8;
  color: #c0392b;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.promo-remove-btn:hover { background: #fbc9c9; }

/* Discount row in order summary */
.co-discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
}

.co-discount-amount {
  font-size: 15px;
  font-weight: 700;
  color: #1a7a3c;
}
