/* ==========================================================================
   Blackydoo Cake Shop — Master Storefront Stylesheet
   Features: Full responsive (mobile-first), Dark/Light Mode Toggle
   Brand: Warm Cream + Strawberry Rose + Rich Cocoa + Golden Amber
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ========== CSS Custom Properties: LIGHT MODE (default) ========== */
:root {
  --bg-page:         #FFFDF9;
  --bg-card:         #FFFFFF;
  --bg-soft:         #FFF5F7;
  --bg-input:        #FFFFFF;

  --primary:         #FF4D6D;
  --primary-hover:   #E63956;
  --primary-light:   #FFE8ED;

  --cocoa-dark:      #2D150F;
  --cocoa-med:       #4A281E;
  --cocoa-light:     #70483C;

  --accent-gold:     #F59E0B;
  --accent-gold-lt:  #FEF3C7;
  --accent-green:    #10B981;

  --text-main:       #2D150F;
  --text-muted:      #6B5E59;
  --text-sub:        #9CA3AF;

  --border:          #F1E5E0;
  --border-light:    #FCE4EA;

  --shadow-sm:       0 4px 12px rgba(45,21,15,.05);
  --shadow-md:       0 10px 30px rgba(45,21,15,.08);
  --shadow-lg:       0 20px 50px rgba(255,77,109,.14);
  --shadow-card:     0 4px 20px rgba(45,21,15,.07);

  --navbar-bg:       rgba(255,253,249,.92);
  --footer-bg:       #2D150F;
  --footer-text:     #F8FAFC;

  --modal-backdrop:  rgba(45,21,15,.65);

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  26px;
  --radius-full:9999px;

  --transition: all .3s cubic-bezier(.16,1,.3,1);
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --bg-page:         #0F0A08;
  --bg-card:         #1C1210;
  --bg-soft:         #241510;
  --bg-input:        #2A1A12;

  --primary:         #FF6B85;
  --primary-hover:   #FF4D6D;
  --primary-light:   rgba(255,77,109,.18);

  --cocoa-dark:      #FFF3ED;
  --cocoa-med:       #F0C9B8;
  --cocoa-light:     #C7937A;

  --text-main:       #FFF3ED;
  --text-muted:      #C7937A;
  --text-sub:        #7A5040;

  --border:          #3D200F;
  --border-light:    #4D2A16;

  --shadow-sm:       0 4px 12px rgba(0,0,0,.3);
  --shadow-md:       0 10px 30px rgba(0,0,0,.4);
  --shadow-lg:       0 20px 50px rgba(0,0,0,.5);
  --shadow-card:     0 4px 20px rgba(0,0,0,.35);

  --navbar-bg:       rgba(15,10,8,.92);
  --footer-bg:       #0A0604;
  --footer-text:     #F8FAFC;

  --modal-backdrop:  rgba(0,0,0,.8);
}

/* ========== Base Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3, .font-serif { font-family: 'Playfair Display', serif; }
h4, h5, h6, .font-display { font-family: 'Outfit', sans-serif; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Dark Mode Toggle ========== */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: background .3s ease;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

[data-theme="dark"] .theme-toggle { background: var(--primary-light); }
[data-theme="dark"] .theme-toggle::after { transform: translateX(24px); }

.theme-icon {
  font-size: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== Announcement Bar ========== */
.announcement-bar {
  background: linear-gradient(90deg, #FF4D6D 0%, #FF758F 50%, #F59E0B 100%);
  color: #FFF;
  padding: 10px 16px;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2px;
  position: relative;
  z-index: 100;
}

.announcement-bar a {
  color: #FFF;
  text-decoration: underline;
  margin-left: 8px;
  white-space: nowrap;
}

/* ========== Navbar ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--cocoa-med));
  color: #FFF;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(255,77,109,.3);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.1;
  color: var(--cocoa-dark);
}

.brand-text span {
  font-family: 'Outfit', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: var(--cocoa-med);
  position: relative;
  padding: 5px 0;
  white-space: nowrap;
}

.nav-link:hover { color: var(--primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after { width: 100%; }

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

/* Mobile Menu Toggle (hamburger) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.mobile-nav .nav-link:last-of-type { border-bottom: none; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #FF758F 100%);
  color: #FFF;
  box-shadow: 0 6px 20px rgba(255,77,109,.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255,77,109,.38);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--cocoa-dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFF;
  box-shadow: 0 6px 18px rgba(245,158,11,.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245,158,11,.35);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFF !important;
  box-shadow: 0 6px 18px rgba(37,211,102,.28);
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: .83rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

/* ========== Hero Section ========== */
.hero-section {
  position: relative;
  padding: 60px 0 72px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255,77,109,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,77,109,.2);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  color: var(--cocoa-dark);
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--primary);
  position: relative;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(.95rem, 1.5vw, 1.12rem);
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust-badges {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-text h4 { font-size: .88rem; font-weight: 700; color: var(--cocoa-dark); }
.trust-text p  { font-size: .75rem; color: var(--text-muted); }

/* ========== Hero Visual / Floating Cards ========== */
.hero-visual { position: relative; }

.hero-card-stack { position: relative; padding: 16px; }

.hero-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(74,40,30,.18);
  border: 6px solid var(--bg-card);
}

.floating-glass-card {
  position: absolute;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatAnim 4s ease-in-out infinite alternate;
  z-index: 3;
}

[data-theme="dark"] .floating-glass-card {
  background: rgba(28,18,16,.85);
  border-color: var(--border);
}

.card-pos-1 { top: -10px; left: -16px; }
.card-pos-2 { bottom: 20px; right: -16px; animation-delay: 2s; }

@keyframes floatAnim {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ========== Section Utilities ========== */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 42px; }

.section-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--cocoa-dark);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========== Category Tabs ========== */
.catalog-section { padding: 72px 0; }

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cat-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--cocoa-med);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}

.cat-tab:hover, .cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFF;
  box-shadow: 0 5px 16px rgba(255,77,109,.25);
  transform: translateY(-2px);
}

/* ========== Products Grid ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,77,109,.25);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.product-card:hover .product-img { transform: scale(1.08); }

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #FFF;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(255,77,109,.35);
  z-index: 2;
}

.badge-tag.gold { background: var(--accent-gold); }

.eggless-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.92);
  color: var(--accent-green);
  font-size: .69rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 3px;
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .eggless-badge { background: rgba(28,18,16,.9); }

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: .8px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--cocoa-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.price-box { display: flex; flex-direction: column; }

.current-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cocoa-dark);
  font-family: 'Outfit', sans-serif;
}

.original-price {
  font-size: .78rem;
  color: var(--text-sub);
  text-decoration: line-through;
}

.order-action-btn {
  background: var(--primary-light);
  color: var(--primary);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .83rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.product-card:hover .order-action-btn {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(255,77,109,.3);
}

/* ========== Order Tracker Section ========== */
.tracking-section {
  background: var(--bg-soft);
  padding: 72px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tracker-search-box {
  max-width: 600px;
  margin: 0 auto 36px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
}

.tracker-search-box input {
  flex-grow: 1;
  border: none;
  padding: 10px 18px;
  font-size: .95rem;
  outline: none;
  background: transparent;
  color: var(--text-main);
  min-width: 0;
}

.tracker-search-box input::placeholder { color: var(--text-sub); }

.tracker-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: none;
}

/* 5-Step Visual Timeline */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 8px;
  position: relative;
  margin: 38px 0;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 10%;
  width: 80%;
  height: 4px;
  background: var(--border);
  z-index: 1;
  border-radius: 2px;
}

.step-node {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
  border: 4px solid var(--bg-card);
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  transition: var(--transition);
}

.step-node.completed .step-icon-wrap { background: var(--accent-green); color: #FFF; }

.step-node.active .step-icon-wrap {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 0 0 6px var(--primary-light), 0 8px 20px rgba(255,77,109,.3);
  animation: pulseNode 2s infinite;
}

@keyframes pulseNode {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.step-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}

.step-node.active .step-label { color: var(--primary); }

/* ========== Reviews Section ========== */
.reviews-section { padding: 72px 0; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.review-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars { color: var(--accent-gold); margin-bottom: 12px; font-size: 1rem; }

.review-quote {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: .93rem;
}

.reviewer-meta h5 { font-size: .95rem; font-weight: 700; color: var(--cocoa-dark); }
.reviewer-meta span { font-size: .78rem; color: var(--primary); }

/* ========== About Section ========== */
.about-section { padding: 72px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.about-img-box { position: relative; }

.about-main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg-card);
  width: 100%;
  object-fit: cover;
  max-height: 440px;
}

.about-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--cocoa-dark);
  color: #FFF;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge h3 { font-size: 1.7rem; color: var(--accent-gold); }

/* ========== Modals ========== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open { opacity: 1; visibility: visible; }

.cake-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 93vh;
  overflow-y: auto;
  box-shadow: 0 -20px 50px rgba(0,0,0,.2);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.open .cake-modal { transform: translateY(0); }

/* Pull bar on mobile */
.cake-modal::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 14px auto 0;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.modal-title { font-size: 1.3rem; color: var(--cocoa-dark); }

.close-modal-btn {
  background: var(--bg-soft);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.close-modal-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.modal-body { padding: 24px; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--cocoa-dark);
  margin-bottom: 8px;
}

.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }

.pill-opt {
  padding: 8px 17px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pill-opt:hover, .pill-opt.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.custom-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .93rem;
  color: var(--text-main);
  background: var(--bg-input);
  outline: none;
  transition: var(--transition);
}

.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.custom-input::placeholder { color: var(--text-sub); }

select.custom-input { cursor: pointer; }

.modal-footer {
  padding: 18px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  bottom: 0;
  flex-wrap: wrap;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 46px;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: #FFF;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 9px; }

.footer-links a {
  color: #D1D5DB;
  font-size: .88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .83rem;
  color: #9CA3AF;
}

/* ========== Floating WhatsApp ========== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #FFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 998;
  transition: var(--transition);
}

.floating-whatsapp:hover { transform: scale(1.1); }

/* ========== Form 2-col grids inside checkout ========== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-2-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* ========== Info boxes ========== */
.info-card {
  background: var(--bg-soft);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  margin-bottom: 20px;
}

.info-card p { font-size: .88rem; color: var(--text-muted); }

/* ========== ===================== RESPONSIVE ===================== ========== */

/* Tablet: 992px and below */
@media (max-width: 992px) {

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-section { padding: 40px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-trust-badges { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .card-pos-1 { left: -8px; }
  .card-pos-2 { right: -8px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-img-box { max-width: 440px; margin: 0 auto; }
  .about-badge { right: -8px; bottom: -8px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Mobile: 640px and below */
@media (max-width: 640px) {
  html { font-size: 15px; }

  .container { padding: 0 16px; }

  /* Announcement */
  .announcement-bar { font-size: .78rem; padding: 8px 12px; }

  /* Brand on mobile */
  .brand-text h1 { font-size: 1.25rem; }
  .brand-text span { display: none; }
  .logo-badge { width: 36px; height: 36px; font-size: 1.1rem; }

  /* Nav actions on mobile */
  .nav-actions .btn { display: none; }
  .nav-actions { gap: 8px; }

  /* Hero */
  .hero-section { padding: 28px 0 36px; }
  .hero-pill { font-size: .75rem; padding: 6px 14px; }
  .hero-main-img { height: 260px; }
  .floating-glass-card { padding: 10px 14px; gap: 8px; font-size: .78rem; }
  .hero-cta-group { gap: 10px; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .hero-trust-badges { gap: 14px; }

  /* Section */
  .catalog-section { padding: 48px 0; }
  .tracking-section { padding: 48px 0; }
  .reviews-section { padding: 48px 0; }
  .about-section { padding: 48px 0; }

  /* Category tabs scroll */
  .category-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex-shrink: 0; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-thumb-wrap { height: 170px; }
  .product-info { padding: 14px; }
  .product-name { font-size: 1rem; }
  .product-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .order-action-btn { width: 100%; justify-content: center; }

  /* Tracker timeline: vertical on mobile */
  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .timeline-steps::before { display: none; }
  .step-node { flex-direction: row; text-align: left; gap: 14px; align-items: center; }
  .step-icon-wrap { margin-bottom: 0; flex-shrink: 0; }
  .tracker-card { padding: 20px 16px; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-badge { position: static; margin-top: 12px; display: inline-block; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Floating WA */
  .floating-whatsapp { width: 50px; height: 50px; font-size: 1.4rem; bottom: 18px; right: 18px; }

  /* Tracker search */
  .tracker-search-box { flex-direction: column; border-radius: var(--radius-md); align-items: stretch; }
  .tracker-search-box input { padding: 12px; border-radius: var(--radius-sm); }
  .tracker-search-box .btn { border-radius: var(--radius-sm) !important; }

  /* Modals go full-screen on very small screens */
  .cake-modal { border-radius: 0; max-height: 100vh; }

  /* Checkout grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-3 { grid-template-columns: 1fr; }

  /* Modal footer */
  .modal-footer { flex-direction: column; gap: 12px; }
  .modal-footer > div { width: 100%; }
  .modal-footer .btn { width: 100%; justify-content: center; }
}

/* Extra small: 360px */
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-thumb-wrap { height: 200px; }
}

/* ========== Scrollbar Styling ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ========== Focus Visibility (Accessibility) ========== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
