/* =========================================================
   Bulkdrop Design System — bulkdrop-new.css
   Mobile-first. Breakpoints: 480 · 768 · 1024 · 1280
   ========================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* --- CSS Variables --- */
:root {
  --color-primary:      #3dada0;
  --color-primary-dark: #2d8f83;
  --color-primary-light:#e8f7f6;
  --color-navy:         #1a3a5c;
  --color-navy-light:   #234b78;
  --color-surface:      #f8fbff;
  --color-white:        #ffffff;
  --color-border:       #e0e8f0;
  --color-muted:        #6b7280;
  --color-text:         #1f2937;
  --color-success:      #3b6d11;
  --color-success-bg:   #ecfdf5;
  --color-danger:       #a32d2d;
  --color-danger-bg:    #fff1f1;
  --color-warning:      #854f0b;
  --color-warning-bg:   #fffbeb;
  --color-info:         #1e5a9c;
  --font-body:          'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-heading:       'DM Serif Display', Georgia, serif;
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          16px;
  --radius-xl:          24px;
  --shadow-sm:          0 1px 3px 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);
  --transition:         0.22s ease;
  --nav-height:         70px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
.font-serif { font-family: var(--font-heading) !important; }
p { margin-bottom: 0; }
.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary) !important; }
.text-navy { color: var(--color-navy) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
small, .small { font-size: 0.8rem; }

/* --- Layout utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.row { display: flex; flex-wrap: wrap; gap: 16px; }
.col-half { flex: 1 1 calc(50% - 8px); min-width: 280px; }
.col-third { flex: 1 1 calc(33.333% - 11px); min-width: 240px; }
.col-quarter { flex: 1 1 calc(25% - 12px); min-width: 200px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }
.mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-lg { padding: 80px 0; }

/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */
.announcement-bar {
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-navy));
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}
.announcement-bar .countdown { font-variant-numeric: tabular-nums; }
.announcement-bar .timer { font-family: monospace; font-size: 14px; letter-spacing: 1px; }

/* =========================================================
   NAV / HEADER
   ========================================================= */
.site-nav {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-nav.nav--scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.10); }

/* Top strip */
.nav-top-strip {
  background: var(--color-navy);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  padding: 5px 0;
  display: none;
}
@media (min-width: 768px) { .nav-top-strip { display: block; } }
.nav-top-strip .container { display: flex; align-items: center; justify-content: space-between; }
.nav-top-strip a { color: rgba(255,255,255,.85); transition: color var(--transition); }
.nav-top-strip a:hover { color: #fff; }
.nav-top-strip-left, .nav-top-strip-right { display: flex; align-items: center; gap: 16px; }

/* Main nav row */
.nav-main { height: var(--nav-height); display: flex; align-items: center; }
.nav-main .container { display: flex; align-items: center; gap: 16px; width: 100%; }

.nav-logo img { height: 44px; width: auto; }
.nav-logo { flex-shrink: 0; }

/* Search bar */
.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: none;
}
@media (min-width: 768px) { .nav-search { display: block; } }
.nav-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--color-border);
  border-radius: 24px;
  font-size: 14px;
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition);
}
.nav-search input:focus { border-color: var(--color-primary); }
.nav-search .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  font-size: 14px;
}

/* Nav icons row */
.nav-icons { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--color-navy);
  font-size: 18px;
  transition: background var(--transition), color var(--transition);
}
.nav-icon-btn:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
  animation: badgePop 0.3s ease;
}
@keyframes badgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--color-primary-light); color: var(--color-primary); }

/* User dropdown */
.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
  cursor: pointer;
}
.nav-user-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 999;
  overflow: hidden;
  /* use opacity/visibility so we can add a close delay */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  transition-delay: 0.22s; /* delay before hiding — gives cursor time to reach it */
}
/* invisible bridge between button and dropdown so mouse doesn't leave hover zone */
.nav-user-dropdown::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 8px;
}
.nav-user:hover .nav-user-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s; /* appear immediately on hover */
}
.nav-user-dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition);
}
.nav-user-dropdown a:hover { background: var(--color-surface); color: var(--color-primary); }
.nav-user-dropdown a + a { border-top: 1px solid var(--color-border); }

/* RP pill in nav */
.nav-rp-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Hamburger */
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: 4px;
}
@media (min-width: 1024px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block; height: 2px; background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-nav a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.mobile-nav a + a { border-top: 1px solid var(--color-border); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(61,173,160,.35); }
.btn-navy {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}
.btn-navy:hover { background: var(--color-navy-light); border-color: var(--color-navy-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-outline-navy {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-outline-navy:hover { background: var(--color-navy); color: #fff; }
.btn-outline-primary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); border-radius: var(--radius-md); padding: 10px 22px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; transition: all var(--transition); }
.btn-outline-primary:hover { background: var(--color-primary); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-surface); color: var(--color-navy); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-xl { padding: 16px 40px; font-size: 16px; border-radius: var(--radius-lg); }

/* Add-to-cart special button */
.btn-add-to-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  border: none;
}
.btn-add-to-cart:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-add-to-cart--fallback { /* same styles — rendered before React mounts */ }
.btn-add-to-cart--loading { opacity: 0.7; pointer-events: none; }

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--color-border); font-weight: 700; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--color-border); }

/* =========================================================
   BADGES / PILLS
   ========================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-primary { background: var(--color-primary-light); color: var(--color-primary-dark); }
.badge-navy { background: #e8f0fb; color: var(--color-navy); }
.badge-sale { background: #fff0e0; color: #b35900; }
.badge-flash { background: #fff1f0; color: #c0392b; }
.badge-special { background: #f3e8ff; color: #7c3aed; }
.badge-rp { background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; }
.badge-new { background: var(--color-success-bg); color: var(--color-success); }
.badge-discount { background: #fff7e0; color: var(--color-warning); }
.badge-super { background: linear-gradient(135deg,#854f0b,#e8a55c); color: #fff; }

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.product-grid--6 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) { .product-grid--6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .product-grid--6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid--6 { grid-template-columns: repeat(6, 1fr); gap: 16px; } }

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 5;
  display: flex; flex-direction: column; gap: 4px;
}
.product-card__img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-surface);
}
.product-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__body { padding: 14px 14px 8px; flex: 1; }
.product-card__category {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--color-primary); margin-bottom: 4px;
}
.product-card__name {
  font-size: 14px; font-weight: 700; color: var(--color-navy);
  line-height: 1.3; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__wholesaler { font-size: 11px; color: var(--color-muted); margin-bottom: 6px; }
.product-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-current { font-size: 16px; font-weight: 700; color: var(--color-navy); }
.price-old { font-size: 13px; color: var(--color-muted); text-decoration: line-through; }
.price-rp { font-size: 13px; font-weight: 600; color: #7c3aed; }
.product-card__footer { padding: 10px 14px 14px; }

/* Wishlist heart overlay */
.product-card__actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-card__actions { opacity: 1; }
.wishlist-island button,
.product-action-btn {
  width: 34px; height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  color: var(--color-muted);
  transition: color var(--transition), background var(--transition);
  border: none; cursor: pointer;
}
.wishlist-island button:hover,
.product-action-btn:hover { color: #e53935; background: #fff0f0; }
.wishlist-island button.active { color: #e53935; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  background: linear-gradient(135deg, #e8f7f6 0%, #e8f0fb 60%, #f8fbff 100%);
  min-height: 540px;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section .container { display: flex; align-items: center; gap: 40px; width: 100%; }
.hero-text { flex: 1; min-width: 280px; padding: 40px 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 16px; color: var(--color-muted);
  margin-bottom: 28px; max-width: 480px; line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media {
  flex: 0 0 420px; max-width: 100%;
  display: none;
}
@media (min-width: 768px) { .hero-media { display: block; } }
.hero-media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); object-fit: cover; height: 400px; width: 100%; }

/* Hero slides */
.hero-slide { display: none; animation: heroFadeIn 0.6s ease; }
.hero-slide.active { display: block; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-dots { display: flex; gap: 6px; margin-top: 28px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); border: none; cursor: pointer; transition: all var(--transition); }
.hero-dot.active { width: 24px; border-radius: 4px; background: var(--color-primary); }

/* =========================================================
   VALUE PROPOSITIONS
   ========================================================= */
.value-props { background: var(--color-white); padding: 40px 0; border-bottom: 1px solid var(--color-border); }
.value-props .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .value-props .container { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.value-prop {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.value-prop:hover { background: var(--color-surface); }
.value-prop__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--color-primary);
}
.value-prop__text h4 { font-size: 13px; font-weight: 700; color: var(--color-navy); margin-bottom: 3px; }
.value-prop__text p { font-size: 12px; color: var(--color-muted); line-height: 1.4; }

/* =========================================================
   USE-CASE DELIVERY CARDS
   ========================================================= */
.use-case-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 600px) { .use-case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .use-case-grid { grid-template-columns: repeat(3, 1fr); } }
.use-case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.use-case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.use-case-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--color-primary);
}
.use-case-card:nth-child(2)::before { background: var(--color-navy); }
.use-case-card:nth-child(3)::before { background: linear-gradient(90deg, var(--color-primary), var(--color-navy)); }
.use-case-card__icon { font-size: 36px; margin-bottom: 14px; color: var(--color-primary); }
.use-case-card h3 { font-size: 16px; font-weight: 700; color: var(--color-navy); margin-bottom: 8px; }
.use-case-card p { font-size: 14px; color: var(--color-muted); line-height: 1.55; }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading__label {
  display: inline-block;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 10px;
}
.section-heading h2 { color: var(--color-navy); margin-bottom: 8px; }
.section-heading p { color: var(--color-muted); max-width: 560px; margin: 0 auto; }

/* =========================================================
   DEALS STRIP
   ========================================================= */
.deals-strip { padding: 48px 0; }
.deals-strip__banner {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.deals-strip__banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; margin: 0; }
.deals-strip__banner p { color: rgba(255,255,255,.85); font-size: 14px; margin: 0; }
.deals-strip__banner-cta { flex-shrink: 0; }
.deals-strip__banner-text { flex: 1; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-it-works { background: var(--color-navy); padding: 64px 0; }
.how-it-works .section-heading h2 { color: #fff; }
.how-it-works .section-heading p { color: rgba(255,255,255,.7); }
.steps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.step-card { text-align: center; padding: 24px 16px; position: relative; }
.step-card::after {
  content: '→';
  position: absolute; right: -12px; top: 28px;
  font-size: 20px; color: rgba(255,255,255,.3);
  display: none;
}
@media (min-width: 768px) { .step-card::after { display: block; } }
.step-card:last-child::after { display: none; }
.step-num {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 auto 14px;
}
.step-icon { font-size: 30px; margin-bottom: 12px; color: var(--color-primary); }
.step-card h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.step-card p { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.5; }

/* =========================================================
   NEWSLETTER / CTA STRIP
   ========================================================= */
.cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 100%);
  padding: 56px 0; text-align: center; color: #fff;
}
.cta-strip h2 { color: #fff; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.cta-strip-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap;
}
.cta-strip-form input {
  flex: 1; min-width: 200px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: none; outline: none;
  font-size: 14px;
}

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 400px;
  background: #fff;
  z-index: 1101;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-header h3 { font-size: 18px; font-weight: 700; color: var(--color-navy); }
.cart-close-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); font-size: 18px;
  transition: background var(--transition);
  border: none; background: none; cursor: pointer;
}
.cart-close-btn:hover { background: var(--color-surface); color: var(--color-danger); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--color-surface);
}
.cart-item__info { flex: 1; }
.cart-item__name { font-size: 13px; font-weight: 600; color: var(--color-navy); margin-bottom: 3px; }
.cart-item__price { font-size: 13px; font-weight: 700; color: var(--color-primary); }
.cart-item__actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  font-size: 14px; font-weight: 700; color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.qty-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.qty-display { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-remove-btn { color: var(--color-muted); font-size: 14px; cursor: pointer; transition: color var(--transition); margin-left: 4px; background: none; border: none; }
.cart-remove-btn:hover { color: var(--color-danger); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cart-subtotal span { font-size: 14px; color: var(--color-muted); }
.cart-subtotal strong { font-size: 18px; font-weight: 700; color: var(--color-navy); }
.cart-empty {
  text-align: center; padding: 48px 20px;
  color: var(--color-muted);
}
.cart-empty-icon { font-size: 56px; margin-bottom: 12px; }
.cart-empty h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--color-navy); }

/* =========================================================
   TOAST
   ========================================================= */
.toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--color-text);
  min-width: 220px; max-width: 340px;
  animation: toastSlide 0.3s ease;
}
@keyframes toastSlide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.toast.success { border-left: 4px solid var(--color-primary); }
.toast.error { border-left: 4px solid var(--color-danger); }
.toast.warning { border-left: 4px solid var(--color-warning); }
.toast-icon { font-size: 18px; flex-shrink: 0; }

/* =========================================================
   FORMS
   ========================================================= */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--color-navy); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px; color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(61,173,160,.12); }
.form-control.error { border-color: var(--color-danger); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--color-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--color-danger); margin-top: 4px; }

/* =========================================================
   ALERTS / FLASH MESSAGES
   ========================================================= */
.alert {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
  border-left: 4px solid;
}
.alert-success { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-success); }
.alert-error, .alert-danger { background: var(--color-danger-bg); border-color: var(--color-danger); color: var(--color-danger); }
.alert-warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: var(--color-warning); }

/* =========================================================
   PRODUCT FILTERS
   ========================================================= */
.filter-bar {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 16px 20px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 28px;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--color-navy); white-space: nowrap; }
.filter-btn {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--color-border);
  background: #fff; font-size: 13px; font-weight: 500; color: var(--color-muted);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary-dark); }
.filter-select {
  padding: 7px 32px 7px 12px; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: 13px; background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  cursor: pointer;
}

/* =========================================================
   ORDER TRACKER
   ========================================================= */
.order-tracker { display: flex; align-items: flex-start; gap: 0; padding: 20px 0; overflow-x: auto; }
.tracker-step {
  flex: 1; text-align: center; position: relative; min-width: 80px;
}
.tracker-step::before {
  content: '';
  position: absolute; top: 17px; left: 50%; right: -50%;
  height: 2px; background: var(--color-border); z-index: 0;
}
.tracker-step:last-child::before { display: none; }
.tracker-step.done::before { background: var(--color-primary); }
.tracker-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-border); border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  position: relative; z-index: 1;
  font-size: 14px; color: var(--color-muted);
  transition: all var(--transition);
}
.tracker-step.done .tracker-dot { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.tracker-step.current .tracker-dot { background: var(--color-navy); border-color: var(--color-navy); color: #fff; box-shadow: 0 0 0 4px rgba(26,58,92,.18); }
.tracker-step h5 { font-size: 11px; font-weight: 600; color: var(--color-muted); }
.tracker-step.done h5 { color: var(--color-primary-dark); }
.tracker-step.current h5 { color: var(--color-navy); }

/* =========================================================
   DELIVERY SCHEDULER
   ========================================================= */
.scheduler { background: var(--color-surface); border-radius: var(--radius-lg); border: 1px solid var(--color-border); padding: 20px; }
.scheduler h4 { font-size: 15px; font-weight: 700; color: var(--color-navy); margin-bottom: 14px; }
.time-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.time-slot-btn {
  padding: 8px 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--color-muted);
  cursor: pointer; transition: all var(--transition);
}
.time-slot-btn:hover, .time-slot-btn.selected {
  border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary-dark);
}
.recurring-toggle { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--color-border); border-radius: 12px;
  cursor: pointer; transition: background var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  left: 3px; top: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* =========================================================
   CART PAGE TABLE
   ========================================================= */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-muted); border-bottom: 2px solid var(--color-border); background: var(--color-surface); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--color-border); vertical-align: middle; font-size: 14px; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-product-info h4 { font-size: 14px; font-weight: 600; color: var(--color-navy); }
.cart-product-info p { font-size: 12px; color: var(--color-muted); }
.qty-stepper { display: flex; align-items: center; gap: 4px; }
.qty-stepper input { width: 44px; text-align: center; padding: 5px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.cart-summary { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); padding: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.cart-summary-row:last-child { border-bottom: none; font-size: 16px; font-weight: 700; color: var(--color-navy); }
.cart-empty-state { text-align: center; padding: 80px 20px; }
.cart-empty-state .empty-icon { font-size: 72px; margin-bottom: 16px; }
.cart-empty-state h2 { font-size: 22px; color: var(--color-navy); margin-bottom: 8px; }
.cart-empty-state p { color: var(--color-muted); margin-bottom: 24px; }

/* =========================================================
   CHECKOUT
   ========================================================= */
.checkout-layout {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 1fr 380px; } }
.checkout-section { margin-bottom: 24px; }
.checkout-section h3 { font-size: 16px; font-weight: 700; color: var(--color-navy); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.order-summary-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.order-summary-item:last-child { border-bottom: none; }
.order-summary-img { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; }
.order-summary-name { font-size: 13px; font-weight: 600; flex: 1; }
.order-summary-price { font-size: 13px; font-weight: 700; color: var(--color-navy); }
.order-total-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.order-total-row.grand-total { font-size: 16px; font-weight: 800; color: var(--color-navy); border-top: 2px solid var(--color-border); margin-top: 8px; padding-top: 12px; }

/* =========================================================
   ORDER CONFIRMATION
   ========================================================= */
.order-confirmation { text-align: center; padding: 64px 0; }
.checkmark-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--color-success-bg);
  border: 3px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  animation: confirmPop 0.5s ease;
}
@keyframes confirmPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.checkmark-circle .fa { font-size: 36px; color: var(--color-primary); }
.order-confirmation h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-navy); margin-bottom: 8px; }
.order-confirmation p { color: var(--color-muted); margin-bottom: 6px; }
.order-confirmation .order-id { font-family: monospace; background: var(--color-surface); padding: 6px 16px; border-radius: var(--radius-sm); display: inline-block; font-size: 15px; color: var(--color-navy); border: 1px solid var(--color-border); margin: 12px 0; }
.rp-earned-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; padding: 10px 22px; border-radius: 30px;
  font-weight: 700; font-size: 15px; margin: 16px 0;
}

/* =========================================================
   ACCOUNT PAGE
   ========================================================= */
.account-layout {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 1024px) { .account-layout { grid-template-columns: 240px 1fr; } }
.account-sidebar {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  padding: 24px; height: fit-content;
}
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--color-primary);
  margin: 0 auto 12px;
}
.account-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--color-text);
  transition: all var(--transition);
}
.account-nav-link:hover, .account-nav-link.active { background: var(--color-primary-light); color: var(--color-primary); }
.account-nav-link + .account-nav-link { margin-top: 4px; }
.account-stat-card {
  background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border);
  padding: 16px; text-align: center;
}
.account-stat-card .stat-value { font-size: 22px; font-weight: 800; color: var(--color-navy); }
.account-stat-card .stat-label { font-size: 12px; color: var(--color-muted); margin-top: 2px; }
.account-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 380px; } }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-primary);
}
.contact-info-icon.navy { background: #e8f0fb; color: var(--color-navy); }
.contact-info-text h4 { font-size: 14px; font-weight: 700; color: var(--color-navy); margin-bottom: 2px; }
.contact-info-text p { font-size: 13px; color: var(--color-muted); }
.contact-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; transition: transform var(--transition), opacity var(--transition);
}
.social-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.social-btn.fb { background: #1877f2; }
.social-btn.ig { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }
.social-btn.tw { background: #1da1f2; }
.social-btn.wa { background: #25d366; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,.8);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: rgba(255,255,255,.8);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,.15);
}
.footer-social-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.65); transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: var(--color-primary); padding-left: 4px; }
.footer-bottom {
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-payment { display: flex; gap: 8px; align-items: center; }
.footer-payment-badge {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75);
  letter-spacing: 0.4px;
}

/* =========================================================
   LOADING SPINNER
   ========================================================= */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-spinner {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.animate-fade { animation: fadeIn 0.4s ease; }
.animate-slide-up { animation: slideUp 0.5s ease; }

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.product-detail-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .product-detail-layout { grid-template-columns: 1fr 1fr; } }
.product-gallery { position: relative; }
.product-gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--color-surface); border: 1px solid var(--color-border); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery-thumb {
  width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color var(--transition);
}
.product-gallery-thumb.active { border-color: var(--color-primary); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--color-navy); margin-bottom: 10px; }
.product-detail-price { font-size: 28px; font-weight: 800; color: var(--color-navy); margin-bottom: 16px; }
.product-detail-price .old-price { font-size: 16px; font-weight: 400; color: var(--color-muted); text-decoration: line-through; margin-left: 8px; }

/* =========================================================
   ORDER HISTORY
   ========================================================= */
.order-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden; margin-bottom: 16px;
}
.order-card-header {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.order-card-body { padding: 16px 20px; }
.order-status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.order-status.pending { background: var(--color-warning-bg); color: var(--color-warning); }
.order-status.processing { background: #e8f0fb; color: var(--color-navy); }
.order-status.out_for_delivery { background: var(--color-primary-light); color: var(--color-primary-dark); }
.order-status.delivered { background: var(--color-success-bg); color: var(--color-success); }
.order-status.cancelled { background: var(--color-danger-bg); color: var(--color-danger); }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { color: var(--color-muted); }

/* =========================================================
   PAGE HERO (for inner pages) — legacy dark style
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  padding: 48px 0; color: #fff; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.75); }

/* =========================================================
   PAGE BANNER — editorial hero style (white + lines + squares)
   Used on all inner-page banners to match homepage hero aesthetic.
   Decoration via pseudo-elements — no extra HTML needed per page.
   ========================================================= */
.page-banner {
  position: relative;
  background: #fff;
  overflow: hidden;
  padding: 40px 20px 36px;
}
/* diagonal hairlines */
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -52deg,
    transparent 0, transparent 56px,
    #eeeeee 56px, #eeeeee 57px
  );
  pointer-events: none;
  z-index: 0;
}
/* scattered logo watermarks — slow individual float via background-position animation */
@keyframes pbLogoFloat {
  0%, 100% { background-position: 4% 18%, 91% 76%, 24% 82%, 88% 14%, 56% 92%; }
  25%      { background-position: 4% 13%, 91% 80%, 24% 77%, 88% 19%, 56% 87%; }
  75%      { background-position: 4% 23%, 91% 72%, 24% 87%, 88% 9%,  56% 97%; }
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('/assets/images/bulkdroplogo.png'),
    url('/assets/images/bulkdroplogo.png'),
    url('/assets/images/bulkdroplogo.png'),
    url('/assets/images/bulkdroplogo.png'),
    url('/assets/images/bulkdroplogo.png');
  background-size:  90px 90px, 60px 60px, 44px 44px, 72px 72px, 36px 36px;
  background-position: 4% 18%, 91% 76%, 24% 82%, 88% 14%, 56% 92%;
  background-repeat: no-repeat;
  opacity: 0.38;
  animation: pbLogoFloat 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
/* content sits above pseudo-elements */
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--color-navy); margin-bottom: 8px; }
.page-banner p  { color: var(--color-muted); }
.page-banner .breadcrumb { margin-bottom: 10px; }
/* mobile: fade decoration */
@media (max-width: 768px) {
  .page-banner::before { opacity: 0.45; }
  .page-banner::after  { opacity: 0.22; }
  .page-banner { padding: 32px 16px 28px; }
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; color: var(--color-navy); margin-bottom: 8px; }
.empty-state p { color: var(--color-muted); margin-bottom: 24px; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 32px; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--color-navy);
  cursor: pointer; transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 479px) {
  .hero-ctas { flex-direction: column; }
  .btn-xl { padding: 13px 28px; font-size: 14px; }
  .value-props .container { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .deals-strip__banner { flex-direction: column; text-align: center; }
}

@media (min-width: 480px) {
  .product-grid { gap: 18px; }
}

@media (min-width: 768px) {
  body { font-size: 15px; }
  .hero-section { min-height: 580px; }
  .cart-drawer { max-width: 440px; }
}

@media (min-width: 1024px) {
  .use-case-grid { gap: 24px; }
  .product-grid { gap: 24px; }
}

@media (min-width: 1280px) {
  .hero-section { min-height: 620px; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-nav, .site-footer, .cart-drawer, .toast-container { display: none !important; }
  body { background: #fff; color: #000; }
}
