/* ==========================================================================
   YallaToys — LEGO / STEP2 / INTEX Clearance Sale
   Mobile-first design system. Pure CSS, no framework.
   ========================================================================== */

:root {
  /* Brand palette — yellow/red/blue lifted from the real YallaToys theme
     (sale badge #D0473E, "new" badge #3456e6, amber accents #FFB100) */
  --c-yellow: #FFC700;
  --c-yellow-deep: #F5A800;
  --c-red: #D0473E;
  --c-red-deep: #B93A32;
  --c-blue: #3456E6;
  --c-blue-soft: #EAF0FF;
  --c-black: #111111;
  --c-ink: #1A1C22;
  --c-grey: #6B7280;
  --c-grey-light: #9CA3AF;
  --c-border: #ECEDF0;
  --c-bg: #F6F7FB;
  --c-white: #FFFFFF;
  --c-success: #1CA653;
  --c-danger: #D0473E;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.10);
  --shadow-lg: 0 16px 40px rgba(17, 17, 17, 0.14);
  --shadow-yellow: 0 10px 28px rgba(245, 168, 0, 0.35);

  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 62px;
  --bottom-bar-h: 78px;
  --container-pad: 18px;

  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bottom-bar-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-red);
  background: rgba(208, 71, 62, 0.09);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.section-head {
  margin-bottom: 20px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 8px;
}
.section-sub {
  color: var(--c-grey);
  font-size: 14px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 26px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--c-yellow), var(--c-yellow-deep));
  color: var(--c-black);
  box-shadow: var(--shadow-yellow);
}
.btn-dark {
  background: var(--c-black);
  color: var(--c-white);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--c-border);
  color: var(--c-ink);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   Announcement bar + Header
   ========================================================================== */

.announce-bar {
  background: var(--c-black);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.announce-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 18s linear infinite;
  padding-left: 100%;
}
.announce-track span { display: inline-flex; align-items: center; gap: 6px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 28px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn img, .icon-btn svg { width: 18px; height: 18px; }
.cart-count[hidden] { display: none; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--c-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 28px 0 36px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 199, 0, 0.35), transparent 60%),
    radial-gradient(100% 100% at 0% 100%, rgba(52, 86, 230, 0.12), transparent 55%),
    var(--c-white);
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-black);
  color: var(--c-yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
.hero h1 {
  font-size: 38px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-red), var(--c-yellow-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-grey);
}
.hero-cta-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown {
  margin-top: 26px;
  display: flex;
  gap: 10px;
}
.countdown-cell {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.countdown-num {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-grey);
}

.trust-row {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.trust-row::-webkit-scrollbar { display: none; }
.trust-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  white-space: nowrap;
}
.trust-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); }

/* ==========================================================================
   Sale strip (marquee of live discounts)
   ========================================================================== */

.sale-strip {
  background: linear-gradient(90deg, var(--c-red), var(--c-red-deep));
  color: #fff;
  padding: 12px 0;
  overflow: hidden;
}
.sale-strip-track {
  display: inline-flex;
  gap: 34px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  padding-left: 100%;
}
.sale-strip-track span {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Why choose us
   ========================================================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.benefit-card {
  background: var(--c-white);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--c-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 20px;
}
.benefit-title { font-size: 13.5px; font-weight: 700; }
.benefit-text { font-size: 12px; color: var(--c-grey); margin-top: 4px; line-height: 1.4; }

/* ==========================================================================
   Product collections
   ========================================================================== */

.shop-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-ink);
  white-space: nowrap;
}
.shop-tab span {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-grey);
  background: var(--c-bg);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.shop-tab.is-active {
  background: var(--c-black);
  border-color: var(--c-black);
  color: #fff;
}
.shop-tab.is-active span {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.product-grid .product-card {
  flex: none;
  max-width: none;
  width: 100%;
}
.product-grid .product-card.is-hidden { display: none; }

.shop-empty {
  text-align: center;
  color: var(--c-grey);
  font-size: 13px;
  padding: 40px 0;
}

.product-card {
  scroll-snap-align: start;
  flex: 0 0 62%;
  max-width: 230px;
  background: var(--c-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:active { transform: scale(0.98); }
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #F7F8FA, #EEF0F4);
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(208, 71, 62, 0.35);
}
.product-badge.badge-new { background: var(--c-blue); left: auto; right: 12px; }
.product-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 16px;
}
.product-brand {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-grey-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--c-blue);
  background: var(--c-blue-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.product-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.product-price { font-size: 17px; font-weight: 800; color: var(--c-red); }
.product-compare { font-size: 12px; color: var(--c-grey-light); text-decoration: line-through; }
.product-add {
  margin-top: auto;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--c-black);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.product-add:active { transform: scale(0.96); }
.product-add.is-added { background: var(--c-success); }

/* ==========================================================================
   Product carousel (curated rows: gifts, previews, deals, picks)
   ========================================================================== */

.product-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px var(--container-pad) 22px;
  scrollbar-width: none;
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel .product-card {
  flex: 0 0 62%;
  max-width: 240px;
}

/* ==========================================================================
   Brand banners (LEGO / STEP2 / INTEX section dividers)
   ========================================================================== */

.brand-banner {
  position: relative;
  overflow: hidden;
  padding: 44px var(--container-pad);
  text-align: center;
  color: #fff;
}
.brand-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.brand-banner-inner { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; }
.brand-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}
.brand-banner-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-top: 16px;
}
.brand-banner-sub {
  font-size: 13.5px;
  opacity: 0.9;
  margin-top: 8px;
  line-height: 1.55;
}
.brand-banner .btn { margin-top: 20px; }

.brand-banner--lego {
  background: linear-gradient(135deg, #FFD84D 0%, #FFC700 45%, #D0473E 100%);
  color: var(--c-black);
}
.brand-banner--lego .brand-banner-eyebrow { background: rgba(17, 17, 17, 0.1); }
.brand-banner--step2 { background: linear-gradient(135deg, #1CA653, #1B7FD6); }
.brand-banner--intex { background: linear-gradient(135deg, #00B4D8, #3456E6); }

/* ==========================================================================
   Feature cards (Premium Collection wide showcase)
   ========================================================================== */

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--c-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 14px;
}
.feature-card-media {
  position: relative;
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #F7F8FA, #EEF0F4);
  overflow: hidden;
}
.feature-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.feature-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feature-card-name {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-card .product-add { width: auto; padding: 10px 20px; margin-top: 2px; align-self: flex-start; }

/* ==========================================================================
   Delivery section
   ========================================================================== */

.delivery-card {
  background: linear-gradient(135deg, var(--c-black), #24262E);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 26px 20px;
  position: relative;
  overflow: hidden;
}
.delivery-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,199,0,0.35), transparent 70%);
}
.delivery-steps {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.delivery-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.delivery-step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-black);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delivery-step-title { font-weight: 700; font-size: 14px; }
.delivery-step-text { font-size: 12.5px; opacity: 0.75; margin-top: 2px; }
.delivery-tags {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.delivery-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
}

/* ==========================================================================
   Store Pickup
   ========================================================================== */

.pickup-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pickup-group {
  background: var(--c-white);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.pickup-group-title {
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 10px;
  color: var(--c-blue);
}
.pickup-location {
  padding: 8px 0;
  border-top: 1px solid var(--c-border);
}
.pickup-location:first-of-type { border-top: none; padding-top: 0; }
.pickup-location-name { font-size: 13px; font-weight: 700; }
.pickup-location-address { font-size: 12px; color: var(--c-grey); margin-top: 2px; }

/* ==========================================================================
   Checkout fulfillment toggle (Delivery / Pickup)
   ========================================================================== */

.fulfillment-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.fulfillment-option {
  flex: 1;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  background: var(--c-white);
}
.fulfillment-option.is-selected {
  border-color: var(--c-black);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.fulfillment-option .icon { font-size: 20px; }
.fulfillment-option .label { font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.fulfillment-option .hint { font-size: 10.5px; color: var(--c-grey); margin-top: 2px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  padding: 16px;
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--c-grey);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--c-grey);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--c-black);
  color: rgba(255,255,255,0.7);
  padding: 34px 0 24px;
  font-size: 13px;
}
.footer-logo img { height: 24px; filter: brightness(0) invert(1); }
.footer-grid { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.footer-heading { color: #fff; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.footer-links a { display: block; padding: 5px 0; color: rgba(255,255,255,0.7); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
}
.payment-icons { display: flex; gap: 8px; margin-top: 10px; }
.payment-chip {
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.08);
  border-radius: 6px; padding: 5px 8px;
}

/* ==========================================================================
   Sticky bottom bar + floating WhatsApp
   ========================================================================== */

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-border);
  padding: 10px var(--container-pad);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar-info { display: flex; flex-direction: column; }
.sticky-bar-count { font-size: 11px; color: var(--c-grey); }
.sticky-bar-total { font-size: 17px; font-weight: 800; }

.fab-whatsapp {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bottom-bar-h) + 16px);
  z-index: 45;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: bottom 0.25s ease;
}
.fab-whatsapp img { width: 26px; height: 26px; filter: brightness(0) invert(1); }

/* ==========================================================================
   Cart drawer
   ========================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.is-visible { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(92vw, 420px);
  background: var(--c-bg);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}
.drawer-title { font-weight: 800; font-size: 16px; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--c-bg);
  font-size: 16px;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer-empty { text-align: center; color: var(--c-grey); padding: 60px 20px; font-size: 13px; }

.cart-line {
  display: flex;
  gap: 12px;
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--c-border);
}
.cart-line img { width: 60px; height: 60px; object-fit: contain; background: #F1F2F5; border-radius: 10px; padding: 6px; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-line-name { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.cart-line-price { font-size: 12.5px; font-weight: 700; color: var(--c-red); }
.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-bg);
  border-radius: var(--radius-pill);
  padding: 4px 6px;
  align-self: flex-start;
}
.qty-btn {
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--c-white); box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.qty-val { font-size: 12.5px; font-weight: 700; min-width: 14px; text-align: center; }
.cart-line-remove {
  align-self: flex-start;
  border: none; background: none; color: var(--c-grey-light); font-size: 11px; font-weight: 700;
}

.drawer-foot {
  padding: 16px 18px;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--c-grey); margin-bottom: 6px;
}
.summary-row.total { font-size: 16px; font-weight: 800; color: var(--c-ink); margin-top: 8px; }

/* ==========================================================================
   Checkout wizard
   ========================================================================== */

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.checkout-modal.is-open { transform: translateY(0); }

.checkout-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}
.checkout-back {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--c-bg); font-size: 15px;
}
.checkout-steps {
  display: flex;
  gap: 6px;
  flex: 1;
}
.checkout-steps .dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--c-border);
}
.checkout-steps .dot.is-active { background: var(--c-black); }
.checkout-steps .dot.is-done { background: var(--c-yellow-deep); }

.checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px var(--container-pad) 100px;
}
.checkout-step { display: none; }
.checkout-step.is-active { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.checkout-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.checkout-sub { font-size: 13px; color: var(--c-grey); margin-bottom: 20px; }

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--c-white);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-black);
}
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field-error {
  font-size: 11.5px;
  color: var(--c-danger);
  margin-top: 4px;
  display: none;
}
.field.has-error input, .field.has-error select { border-color: var(--c-danger); }
.field.has-error .field-error { display: block; }

.card-preview {
  background: linear-gradient(135deg, #1A1C22, #33363F);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
  position: relative;
  min-height: 130px;
  box-shadow: var(--shadow-md);
}
.card-preview-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; opacity: 0.7; }
.card-preview-number { font-size: 18px; font-weight: 700; letter-spacing: 0.12em; margin-top: 26px; font-variant-numeric: tabular-nums; }
.card-preview-bottom { display: flex; justify-content: space-between; margin-top: 18px; font-size: 11px; }
.card-preview-bottom span:first-child { text-transform: uppercase; opacity: 0.8; }
.card-network { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; }

.secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--c-grey);
  margin-top: -6px;
  margin-bottom: 18px;
}

.otp-boxes {
  display: flex;
  gap: 10px;
  margin: 22px 0 14px;
}
.otp-boxes input {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
}
.otp-boxes input:focus { outline: none; border-color: var(--c-black); }
.otp-resend { font-size: 12.5px; color: var(--c-grey); }
.otp-resend button { background: none; border: none; color: var(--c-blue); font-weight: 700; }
.otp-resend button:disabled { color: var(--c-grey-light); }

.result-screen {
  text-align: center;
  padding: 30px 10px;
}
.result-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 40px;
}
.result-icon.success { background: rgba(28, 166, 83, 0.12); color: var(--c-success); }
.result-icon.fail { background: rgba(208, 71, 62, 0.12); color: var(--c-danger); }
.result-title { font-size: 21px; font-weight: 800; }
.result-text { font-size: 13.5px; color: var(--c-grey); margin-top: 8px; line-height: 1.5; }
.result-order-id { margin-top: 16px; font-size: 13px; font-weight: 700; background: var(--c-white); border: 1px dashed var(--c-border); border-radius: var(--radius-md); padding: 12px; }
.result-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

.checkout-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  padding: 14px var(--container-pad);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Tablet / desktop refinements (secondary priority)
   ========================================================================== */

@media (min-width: 768px) {
  :root { --container-pad: 32px; }
  .hero h1 { font-size: 52px; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .product-carousel .product-card { flex-basis: 280px; max-width: 280px; }
  .footer-grid { flex-direction: row; justify-content: space-between; }
  .drawer { width: 400px; }

  /* The checkout wizard is a mobile app-style flow; on wider screens show
     it as a centered phone-width card instead of stretching edge to edge
     (otherwise OTP boxes, buttons etc. balloon to the full browser width).
     The modal's own `transform` already makes it the containing block for
     its `position: fixed` .checkout-footer, so the footer follows along. */
  .checkout-modal {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: 430px;
    max-width: 92vw;
    height: 85vh;
    max-height: 780px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translate(-50%, -46%) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .checkout-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1025px) {
  .sticky-bar, .fab-whatsapp { display: none; }
  body { padding-bottom: 0; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
