/* =========================================================
   MURUGAN BAKES — PREMIUM BAKERY THEME
   ========================================================= */
:root {
  --choco-dark: #351400;
  --coffee-deep: #4A200B;
  --warm-brown: #713B19;
  --cream-bg: #FFF4DF;
  --light-beige: #F8EBD5;
  --lime-green: #A6D927;
  --leaf-green: #347A0B;
  --white: #FFFFFF;

  --shadow-soft: 0 10px 30px rgba(53, 20, 0, 0.08);
  --shadow-card: 0 14px 34px rgba(53, 20, 0, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cream-bg);
  color: var(--choco-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

.text-lime {
  color: var(--lime-green);
}

/* =========================================================
   PREMIUM OPENING INTRO SCREEN
   ========================================================= */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #4A200B 0%, #351400 72%, #220b00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.75s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.75s cubic-bezier(0.25, 0.8, 0.25, 1),
              visibility 0.75s ease;
}

.intro-overlay.intro-exit {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}

.intro-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-particle {
  position: absolute;
  color: rgba(166, 217, 39, 0.22);
  font-size: 2rem;
  animation: introFloat 4.5s ease-in-out infinite;
}

.p-1 { top: 14%; left: 12%; animation-delay: 0s; font-size: 2.3rem; }
.p-2 { top: 22%; right: 14%; animation-delay: 0.6s; color: rgba(255, 244, 223, 0.18); }
.p-3 { bottom: 20%; left: 16%; animation-delay: 1.1s; color: rgba(255, 244, 223, 0.16); }
.p-4 { bottom: 18%; right: 18%; animation-delay: 0.4s; font-size: 2.2rem; }
.p-5 { top: 48%; left: 7%; animation-delay: 1.4s; color: rgba(166, 217, 39, 0.28); }
.p-6 { top: 44%; right: 8%; animation-delay: 0.9s; color: rgba(255, 244, 223, 0.16); }

.intro-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(166, 217, 39, 0.45);
  box-shadow: 0 0 12px rgba(166, 217, 39, 0.7);
  animation: introTwinkle 3s ease-in-out infinite;
}

.d-1 { top: 28%; left: 28%; animation-delay: 0.2s; }
.d-2 { top: 32%; right: 26%; animation-delay: 1s; }
.d-3 { bottom: 28%; left: 32%; animation-delay: 1.5s; }
.d-4 { bottom: 30%; right: 30%; animation-delay: 0.7s; }

@keyframes introFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(10deg); }
}

@keyframes introTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 0.95; transform: scale(1.3); }
}

.intro-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 680px;
}

.intro-logo-ring {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, rgba(166, 217, 39, 0.7), rgba(255, 215, 130, 0.45));
  box-shadow: 0 0 36px rgba(166, 217, 39, 0.3), 0 0 60px rgba(255, 215, 130, 0.2);
  animation: introLogoPop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-logo-badge {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--choco-dark);
  color: var(--lime-green);
  display: grid;
  place-items: center;
  font-size: 2.3rem;
}

.intro-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--cream-bg);
  text-shadow: 0 0 28px rgba(255, 224, 150, 0.35), 0 4px 18px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: introTextReveal 0.9s ease 0.35s forwards;
}

.intro-tagline {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--lime-green);
  margin-top: 8px;
  text-shadow: 0 0 18px rgba(166, 217, 39, 0.3);
  opacity: 0;
  animation: introTextReveal 0.9s ease 0.75s forwards;
}

.intro-progress-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 244, 223, 0.15);
  border-radius: 10px;
  margin: 26px auto 0;
  overflow: hidden;
  opacity: 0;
  animation: introTextReveal 0.6s ease 0.9s forwards;
}

.intro-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--leaf-green), var(--lime-green));
  animation: introProgress 3.3s linear 0.2s forwards;
}

@keyframes introLogoPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes introTextReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.skip-intro-btn {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 244, 223, 0.3);
  background: rgba(53, 20, 0, 0.65);
  color: var(--cream-bg);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.skip-intro-btn:hover {
  background: var(--lime-green);
  color: var(--choco-dark);
  border-color: var(--lime-green);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-green {
  background: var(--lime-green);
  color: var(--choco-dark);
  box-shadow: 0 6px 18px rgba(166, 217, 39, 0.35);
}

.btn-green:hover {
  background: var(--leaf-green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-cream {
  border: 1.5px solid rgba(255, 244, 223, 0.55);
  color: var(--cream-bg);
}

.btn-outline-cream:hover {
  background: rgba(255, 244, 223, 0.12);
  border-color: var(--cream-bg);
}

.btn-outline-brown {
  border: 1.5px solid var(--choco-dark);
  color: var(--choco-dark);
}

.btn-outline-brown:hover {
  background: var(--choco-dark);
  color: var(--cream-bg);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(53, 20, 0, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 244, 223, 0.08);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-bg);
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lime-green);
  color: var(--choco-dark);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.logo-text small {
  font-size: 0.68rem;
  letter-spacing: 3px;
  color: var(--lime-green);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--light-beige);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--lime-green);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lime-green);
}

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

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--cream-bg);
  background: rgba(255, 244, 223, 0.08);
  display: grid;
  place-items: center;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--lime-green);
  color: var(--choco-dark);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--lime-green);
  color: var(--choco-dark);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mobile-menu-btn {
  display: none;
  color: var(--cream-bg);
  font-size: 1.4rem;
  padding: 6px;
}

/* Search Bar Panel */
.search-bar-panel {
  background: var(--coffee-deep);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.search-bar-panel.open {
  max-height: 80px;
  border-top: 1px solid rgba(255, 244, 223, 0.1);
}

.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--cream-bg);
}

.search-bar-inner input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
}

.search-bar-inner input::placeholder {
  color: rgba(255, 244, 223, 0.6);
}

.search-clear {
  color: var(--cream-bg);
  font-size: 1.5rem;
  line-height: 1;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  background: radial-gradient(circle at 75% 40%, var(--coffee-deep) 0%, var(--choco-dark) 70%);
  color: var(--cream-bg);
  padding: 64px 0 84px;
  position: relative;
  overflow: hidden;
}

.floating-leaf {
  position: absolute;
  color: rgba(166, 217, 39, 0.18);
  font-size: 2.4rem;
  pointer-events: none;
  animation: floatLeaf 6s ease-in-out infinite;
}

.leaf-1 { top: 14%; left: 6%; animation-delay: 0s; }
.leaf-2 { bottom: 18%; left: 45%; animation-delay: 2s; font-size: 1.8rem; }
.leaf-3 { top: 20%; right: 5%; animation-delay: 3.5s; }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(12deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 44px;
}

.hero-script {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: var(--lime-green);
  display: block;
  line-height: 1.1;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--light-beige);
  margin-bottom: 14px;
}

.hero-desc {
  color: rgba(255, 244, 223, 0.8);
  max-width: 480px;
  margin-bottom: 28px;
  font-size: 0.96rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.play-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime-green);
  color: var(--choco-dark);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 244, 223, 0.12);
}

.hero-image-frame img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.04);
}

/* =========================================================
   CATEGORY BAR
   ========================================================= */
.category-section {
  margin-top: -38px;
  position: relative;
  z-index: 10;
  padding-bottom: 24px;
}

.category-bar {
  background: var(--light-beige);
  border-radius: 50px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 20px;
  transition: var(--transition);
  color: var(--choco-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.cat-img-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--white);
  box-shadow: 0 4px 10px rgba(53, 20, 0, 0.15);
  transition: var(--transition);
}

.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-pill:hover,
.category-pill.active {
  background: var(--choco-dark);
  color: var(--cream-bg);
  transform: translateY(-3px);
}

.category-pill.active .cat-img-wrap,
.category-pill:hover .cat-img-wrap {
  border-color: var(--lime-green);
}

/* =========================================================
   SPECIAL ITEMS SECTION
   ========================================================= */
.special-items-section {
  padding: 56px 0 72px;
}

.section-header {
  text-align: center;
  margin-bottom: 42px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--leaf-green);
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  color: var(--choco-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--warm-brown);
  font-size: 0.96rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--light-beige);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(113, 59, 25, 0.08);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.product-img-box {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--cream-bg);
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(53, 20, 0, 0.82);
  color: var(--cream-bg);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
}

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

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--choco-dark);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.86rem;
  color: var(--warm-brown);
  margin-bottom: 16px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--choco-dark);
}

.add-btn {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.no-products-msg {
  text-align: center;
  padding: 48px 20px;
  color: var(--warm-brown);
}

.no-products-msg i {
  font-size: 2.5rem;
  color: var(--leaf-green);
  margin-bottom: 12px;
}

.no-products-msg p {
  margin-bottom: 18px;
}

/* =========================================================
   PROMOTIONAL BANNER
   ========================================================= */
.promo-banner-section {
  background: linear-gradient(135deg, var(--choco-dark) 0%, var(--coffee-deep) 100%);
  color: var(--cream-bg);
  padding: 64px 0;
  overflow: hidden;
}

.promo-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.promo-tag {
  display: inline-block;
  background: rgba(166, 217, 39, 0.16);
  color: var(--lime-green);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.promo-banner-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.promo-sub {
  font-size: 1.1rem;
  color: var(--light-beige);
  margin-bottom: 24px;
}

.promo-banner-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.promo-banner-visual img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.promo-banner-visual:hover img {
  transform: scale(1.04);
}

/* =========================================================
   WHY CHOOSE US SECTION
   ========================================================= */
.why-choose-section {
  padding: 56px 0;
  background: var(--light-beige);
}

.why-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.why-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px;
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(166, 217, 39, 0.22);
  color: var(--leaf-green);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.why-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--choco-dark);
}

.why-text p {
  color: var(--warm-brown);
  font-size: 0.92rem;
}

.why-divider {
  width: 1px;
  height: 60px;
  background: rgba(113, 59, 25, 0.2);
}

/* =========================================================
   SECONDARY PROMO & TESTIMONIALS
   ========================================================= */
.secondary-promo-section {
  padding: 72px 0;
}

.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.secondary-promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-card);
}

.secondary-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secondary-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(53, 20, 0, 0.9) 10%, rgba(53, 20, 0, 0.25) 100%);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: var(--cream-bg);
}

.secondary-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.secondary-overlay p {
  margin-bottom: 18px;
  color: var(--light-beige);
}

.testimonial-card {
  background: var(--light-beige);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--choco-dark);
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.testimonial-profile img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--lime-green);
}

.testimonial-profile h4 {
  font-size: 1.05rem;
  color: var(--choco-dark);
}

.stars {
  color: #F59E0B;
  font-size: 0.9rem;
}

.testimonial-quote {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--coffee-deep);
  margin-bottom: 24px;
  min-height: 64px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--choco-dark);
  color: var(--cream-bg);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--lime-green);
  color: var(--choco-dark);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(53, 20, 0, 0.2);
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--leaf-green);
  width: 24px;
  border-radius: 10px;
}

/* =========================================================
   CONTACT STRIP
   ========================================================= */
.contact-strip {
  background: var(--light-beige);
  padding: 44px 0;
  border-top: 1px solid rgba(113, 59, 25, 0.12);
}

.contact-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-info p {
  color: var(--warm-brown);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--leaf-green);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--choco-dark);
  color: var(--cream-bg);
  position: relative;
  padding-top: 64px;
  margin-top: 32px;
}

.footer-curve {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 26px;
  background: var(--lime-green);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer-tagline {
  margin-top: 14px;
  color: var(--light-beige);
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--lime-green);
}

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

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

.footer-links a {
  color: var(--light-beige);
  font-size: 0.92rem;
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 244, 223, 0.1);
  display: grid;
  place-items: center;
  color: var(--cream-bg);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--lime-green);
  color: var(--choco-dark);
  transform: translateY(-3px);
}

.newsletter-desc {
  font-size: 0.9rem;
  color: var(--light-beige);
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 244, 223, 0.25);
  background: rgba(255, 244, 223, 0.08);
  color: var(--white);
  outline: none;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 244, 223, 0.6);
}

.newsletter-msg {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--lime-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 244, 223, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255, 244, 223, 0.75);
}

/* =========================================================
   CART DRAWER & MODALS
   ========================================================= */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--cream-bg);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  transition: right 0.35s ease;
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  background: var(--choco-dark);
  color: var(--cream-bg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-close {
  font-size: 1.7rem;
  color: inherit;
  line-height: 1;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--warm-brown);
}

.cart-empty i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--leaf-green);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light-beige);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.cart-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  color: var(--choco-dark);
}

.cart-item-info span {
  font-size: 0.85rem;
  color: var(--warm-brown);
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--choco-dark);
  color: var(--cream-bg);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.remove-btn {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-left: 4px;
}

.cart-drawer-footer {
  padding: 18px 22px;
  background: var(--light-beige);
  border-top: 1px solid rgba(113, 59, 25, 0.15);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.total-row {
  font-size: 1.15rem;
  color: var(--choco-dark);
  margin-bottom: 14px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-form input {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(113, 59, 25, 0.25);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.order-status-msg {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--leaf-green);
}

/* Video Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--cream-bg);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  padding: 28px;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--choco-dark);
}

.video-placeholder {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.video-placeholder img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.video-caption {
  background: var(--choco-dark);
  color: var(--lime-green);
  padding: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--choco-dark);
  color: var(--cream-bg);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 1400;
  opacity: 0;
  transition: var(--transition);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Scroll Reveal */
.reveal-up,
.reveal-scale {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal-up.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 992px) {
  .hero-grid,
  .promo-banner-grid,
  .secondary-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--choco-dark);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-order-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .why-grid {
    flex-direction: column;
  }

  .why-divider {
    width: 60%;
    height: 1px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-img-box {
    height: 160px;
  }

  .product-body {
    padding: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }
}
