/* =============================================
   DOLLOPS ICE CREAM — MAIN STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --pink: #FF6B9D;
  --pink-light: #FFB3D1;
  --yellow: #FFD93D;
  --teal: #06D6A0;
  --purple: #8B5CF6;
  --coral: #FF6B6B;
  --bg: #FFFBF5;
  --dark: #1a1a2e;
  --text: #333;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fredoka One', cursive; }

a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary {
  background: var(--pink);
  color: white;
  box-shadow: 0 4px 16px rgba(255,107,157,0.4);
}
.btn-primary:hover {
  background: #e0578a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,157,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 2.5px solid var(--dark);
}
.btn-ghost:hover {
  background: var(--dark);
  color: white;
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.full-width { width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255,251,245,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pink-light);
  box-shadow: 0 2px 12px rgba(255,107,157,0.08);
}
.nav-logo img { height: 48px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 3px;
  background: var(--pink);
  border-radius: 2px;
  transition: width 0.2s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--pink); }
.nav-cart {
  background: var(--yellow);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.nav-cart:hover { transform: scale(1.05); background: #f5c800; }
.burger { display: none; background: none; border: none; font-size: 28px; cursor: pointer; }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  position: fixed;
  top: 70px; left: 0; right: 0;
  z-index: 99;
  padding: 20px;
  gap: 16px;
  border-bottom: 2px solid var(--pink-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu a { font-weight: 700; font-size: 18px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.mobile-menu.open { display: flex; }

/* ---- HERO ---- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0f8 0%, #fffbf5 50%, #f0fff8 100%);
}
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob1 { width: 500px; height: 500px; background: var(--pink-light); top: -100px; right: -100px; animation-delay: 0s; }
.blob2 { width: 350px; height: 350px; background: #b3f5d8; bottom: -50px; left: -80px; animation-delay: 2s; }
.blob3 { width: 250px; height: 250px; background: var(--yellow); top: 40%; right: 30%; animation-delay: 4s; }
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(52px, 7vw, 84px);
  line-height: 1.05;
  color: var(--dark);
  animation: fadeUp 0.8s 0.1s ease both;
}
.highlight {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin: 20px 0 36px;
  max-width: 480px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.8s 0.3s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Decorative scoop stack */
.hero-image { position: relative; z-index: 2; flex-shrink: 0; }
.scoop-stack {
  position: relative;
  width: 200px; height: 320px;
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.scoop {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  left: 35px;
  box-shadow: inset -8px -8px 20px rgba(0,0,0,0.15);
}
.s1 { background: radial-gradient(circle at 35% 35%, #ffb3d1, #ff6b9d); top: 0; }
.s2 { background: radial-gradient(circle at 35% 35%, #fffacd, #FFD93D); top: 80px; }
.s3 { background: radial-gradient(circle at 35% 35%, #a8f0d8, #06D6A0); top: 155px; }
.cone {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-top: 130px solid #D4A574;
}

/* ---- FLAVOUR STRIP ---- */
.flavours-strip {
  background: var(--pink);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}
.strip-inner {
  display: inline-flex;
  gap: 40px;
  animation: scroll 25s linear infinite;
  padding: 0 20px;
}
.strip-inner span {
  font-weight: 800;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(36px, 5vw, 54px);
  text-align: center;
  color: var(--dark);
  margin-bottom: 48px;
}
.section-title.left { text-align: left; }

/* ---- HOW IT WORKS ---- */
.how-it-works { padding: 100px 0; background: white; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step {
  text-align: center;
  padding: 40px 32px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px solid #f0f0f0;
  transition: all 0.3s;
}
.step:hover { transform: translateY(-8px); border-color: var(--pink); box-shadow: var(--shadow); }
.step-icon { font-size: 52px; margin-bottom: 20px; }
.step h3 { font-family: 'Fredoka One', cursive; font-size: 24px; margin-bottom: 12px; color: var(--dark); }
.step p { color: #666; line-height: 1.6; }

/* ---- PRODUCT GRID ---- */
.featured { padding: 100px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--card-bg, #fff0f5);
  border-radius: var(--radius);
  padding: 28px;
  border: 2.5px solid transparent;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: var(--card-accent, #ff6b9d);
  border-radius: 50%;
  opacity: 0.08;
  transition: transform 0.4s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--card-accent, var(--pink)); }
.product-card:hover::before { transform: scale(1.5); }
.product-emoji { font-size: 52px; margin-bottom: 12px; display: block; }
.product-category {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--card-accent, var(--pink));
  background: var(--card-bg, #fff0f5);
  border: 1.5px solid var(--card-accent, var(--pink));
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.product-name { font-family: 'Fredoka One', cursive; font-size: 26px; color: var(--dark); margin-bottom: 6px; }
.product-size { font-size: 13px; color: #888; margin-bottom: 8px; font-weight: 600; }
.product-desc { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 16px; }
.product-allergen-badge {
  font-size: 12px;
  font-weight: 700;
  color: #e65100;
  background: #fff3e0;
  border: 1px solid #e65100;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.product-allergen-badge:hover { background: #e65100; color: white; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Fredoka One', cursive; font-size: 28px; color: var(--dark); }
.see-all-wrap { text-align: center; margin-top: 48px; }

/* ---- ABOUT ---- */
.about {
  padding: 100px 0;
  background: linear-gradient(135deg, #fff0f8, #f0fff8);
}
.about-inner { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: center; }
.about-text p { font-size: 17px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.about-graphic { text-align: center; }
.big-scoop-graphic {
  font-size: 180px;
  line-height: 1;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(255,107,157,0.3));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ---- CONTACT ---- */
.contact { padding: 100px 0; background: white; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px solid #f0f0f0;
  transition: all 0.3s;
}
.contact-card:hover { border-color: var(--pink); transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-icon { font-size: 44px; margin-bottom: 16px; }
.contact-card h3 { font-family: 'Fredoka One', cursive; font-size: 22px; margin-bottom: 10px; }
.contact-card a { color: var(--pink); font-weight: 700; }
.contact-card p { color: #666; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 40px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-logo img { height: 56px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.7); font-weight: 700; transition: color 0.2s; }
.footer-links a:hover { color: var(--pink); }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 14px; }

/* ---- CART DRAWER ---- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.show { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 100vw;
  background: white;
  z-index: 200;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 48px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 24px 24px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid #f0f0f0;
}
.cart-header h2 { font-family: 'Fredoka One', cursive; font-size: 28px; }
.cart-header button { background: none; border: none; font-size: 22px; cursor: pointer; color: #888; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: #aaa; font-size: 16px; margin-top: 40px; }
.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #f5f5f5;
}
.cart-item-emoji { font-size: 28px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info strong { display: block; font-size: 15px; }
.cart-item-info span { font-size: 13px; color: #888; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-item-controls button {
  width: 28px; height: 28px;
  border-radius: 50%; border: 2px solid var(--pink);
  background: white; color: var(--pink);
  font-size: 18px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cart-item-controls button:hover { background: var(--pink); color: white; }
.cart-item-controls span { font-weight: 800; min-width: 20px; text-align: center; }
.cart-item-price { font-weight: 800; font-size: 16px; color: var(--dark); min-width: 56px; text-align: right; }
.cart-remove { background: none; border: none; color: #ccc; cursor: pointer; font-size: 16px; }
.cart-remove:hover { color: var(--coral); }
.cart-footer { padding: 20px 24px; border-top: 2px solid #f0f0f0; }
.cart-total { font-family: 'Fredoka One', cursive; font-size: 24px; text-align: right; margin-bottom: 16px; }

/* ---- TOAST ---- */
.cart-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--dark); color: white;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 700; z-index: 9999;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.cart-toast.show { transform: translateX(-50%) translateY(0); }

/* ---- SHOP HERO ---- */
.shop-hero {
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0f8 0%, #f0fff8 100%);
}
.shop-hero h1 { font-family: 'Fredoka One', cursive; font-size: clamp(48px, 8vw, 80px); color: var(--dark); }
.shop-hero p { font-size: 18px; color: #666; margin-top: 12px; }

/* ---- FILTER BAR ---- */
.filter-bar { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2.5px solid #ddd;
  background: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
  box-shadow: 0 4px 12px rgba(255,107,157,0.35);
}
.shop-section { padding: 60px 0 100px; }

/* ---- MODALS ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  width: 100%; max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal.show { transform: scale(1); }
.modal-sm { max-width: 480px; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 22px; cursor: pointer; color: #888;
}
.modal h2 { font-family: 'Fredoka One', cursive; font-size: 28px; margin-bottom: 24px; color: var(--dark); }

/* ---- CHECKOUT STEPS ---- */
.checkout-step { display: none; }
.checkout-step.active { display: block; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; color: #555; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--pink); }
.form-group textarea { min-height: 80px; resize: vertical; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-weight: 700; font-size: 15px;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.2s;
}
.radio-label:has(input:checked) { border-color: var(--pink); background: #fff0f8; }
.radio-label input { accent-color: var(--pink); }
.order-summary-mini { background: var(--bg); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.order-summary-mini h4 { font-family: 'Fredoka One', cursive; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; border-bottom: 1px solid #f0f0f0; }
.total-row { font-size: 18px; border: none; padding-top: 12px; }
.order-review { background: var(--bg); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.review-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.review-block p { font-size: 15px; margin-bottom: 4px; }
#card-container { margin: 20px 0; min-height: 80px; border: 2px solid #e0e0e0; border-radius: 12px; padding: 16px; }
.payment-note { font-size: 13px; color: #888; text-align: center; margin-bottom: 16px; }
.payment-error { color: var(--coral); font-size: 14px; padding: 12px; background: #fff5f5; border-radius: 8px; }
.btn-ghost { margin-top: 12px; }
.order-success { text-align: center; padding: 20px 0; }
.success-icon { font-size: 80px; margin-bottom: 20px; }
.order-success h3 { font-family: 'Fredoka One', cursive; font-size: 36px; margin-bottom: 12px; color: var(--teal); }
.order-success p { font-size: 16px; color: #555; margin-bottom: 12px; line-height: 1.7; }

/* ---- ALLERGEN MODAL ---- */
.allergen-list {}
.allergen-list h4 { font-family: 'Fredoka One', cursive; font-size: 18px; margin: 16px 0 10px; color: var(--dark); }
.allergen-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.allergen-tag {
  background: #fff3e0; color: #e65100;
  border: 1.5px solid #e65100;
  padding: 5px 14px; border-radius: 50px;
  font-weight: 700; font-size: 14px;
}
.allergen-tag.safe { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; }
.ingredients-text { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.allergen-warning {
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #5d4037;
  font-weight: 600;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 24px; text-align: center; }
  .hero-image { display: none; }
  .hero-btns { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-graphic { display: none; }
  .nav-links { display: none; }
  .burger { display: block; }
  .navbar { padding: 16px 24px; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 16px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .modal { padding: 24px 20px; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---- PAYMENT METHOD SELECTOR ---- */
.payment-method-selector { display:flex; flex-direction:column; gap:12px; margin-bottom:20px; }
.payment-method-option { cursor:pointer; }
.payment-method-option input { display:none; }
.payment-method-box {
  display:flex; align-items:center; gap:16px;
  padding:16px 20px;
  border:2.5px solid #e0e0e0;
  border-radius:14px;
  transition:all 0.2s;
  background:white;
}
.payment-method-option input:checked + .payment-method-box {
  border-color:var(--pink);
  background:#fff0f8;
  box-shadow:0 4px 16px rgba(255,107,157,0.15);
}
.payment-method-box:hover { border-color:var(--pink-light); }
.payment-method-icon { font-size:32px; flex-shrink:0; }
.payment-method-box strong { display:block; font-size:16px; color:var(--dark); }
.payment-method-box p { font-size:13px; color:#888; margin:2px 0 0; }

/* ---- CASH PAYMENT BOX ---- */
.cash-info-box {
  background:linear-gradient(135deg,#e8f5e9,#f1f8e9);
  border:2px solid #66bb6a;
  border-radius:16px;
  padding:28px 24px;
  text-align:center;
  margin-bottom:20px;
}
.cash-info-icon { font-size:52px; margin-bottom:12px; }
.cash-info-box h4 { font-family:'Fredoka One',cursive; font-size:22px; color:#2e7d32; margin-bottom:10px; }
.cash-info-box p { font-size:15px; color:#555; line-height:1.6; margin-bottom:8px; }
.cash-total { font-size:17px !important; margin-top:16px !important; }
.cash-total strong { font-family:'Fredoka One',cursive; font-size:24px; color:#2e7d32; }