/* ===========================
   CakesnBakes - Custom Styles
   =========================== */

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

/* ---------- CSS Variables ---------- */
:root {
  --primary-pink: #FFD1DA;
  --primary-pink-dark: #f7b4c2;
  --off-white: #FFFCFB;
  --accent-rose: #e8899e;
  --accent-deep: #c76b82;
  --text-dark: #3a2a2e;
  --text-muted: #7a6a6e;
  --text-light: #9a8a8e;
  --white: #ffffff;
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #1da851;
  --shadow-soft: 0 4px 20px rgba(199, 107, 130, 0.12);
  --shadow-hover: 0 12px 40px rgba(199, 107, 130, 0.22);
  --shadow-card: 0 2px 12px rgba(199, 107, 130, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--off-white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--off-white);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-pink-dark);
  border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-rose);
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 252, 251, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 209, 218, 0.3);
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 30px rgba(199, 107, 130, 0.1);
  border-bottom: 1px solid rgba(255, 209, 218, 0.6);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-deep) !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar-brand .brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

@media (max-width: 991.98px) {
  .navbar-brand {
    font-size: 1.4rem;
  }
  .navbar-brand .brand-logo {
    height: 50px;
  }
}

.footer-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  background: var(--white);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.loader-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  mix-blend-mode: multiply;
}

.navbar-brand:hover {
  color: var(--accent-rose) !important;
  transform: scale(1.02);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark) !important;
  padding: 8px 20px !important;
  border-radius: 50px;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-rose);
  border-radius: 50px;
  transition: var(--transition);
}

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

.nav-link:hover {
  color: var(--accent-deep) !important;
}

.nav-link.active {
  color: var(--accent-deep) !important;
  font-weight: 600;
}

.navbar-toggler {
  border: 2px solid var(--primary-pink-dark) !important;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 209, 218, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c76b82' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff5f7 0%, var(--primary-pink) 40%, #f7c5d0 70%, #ffe8ed 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Adjust padding for taller mobile navbar */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 180px;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: floatBubble 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: floatBubble 10s ease-in-out infinite reverse;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.05); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
  animation: fadeInUp 1s ease-out;
}

.hero-content .hero-emoji {
  display: inline-block;
  animation: bounceEmoji 2s ease-in-out infinite;
}

@keyframes bounceEmoji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(-5deg); }
  75% { transform: translateY(-4px) rotate(5deg); }
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 35px;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 44px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-deep));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(199, 107, 130, 0.35);
  animation: fadeInUp 1s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}

.btn-order::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-order:hover::before {
  left: 100%;
}

.btn-order:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 35px rgba(199, 107, 130, 0.45);
  color: var(--white);
}

.btn-order:active {
  transform: translateY(0) scale(0.98);
}

/* Decorative shapes */
.hero-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero-shape-1 {
  width: 120px;
  height: 120px;
  background: var(--accent-deep);
  top: 15%;
  left: 8%;
  animation: floatShape 7s ease-in-out infinite;
}

.hero-shape-2 {
  width: 80px;
  height: 80px;
  background: var(--accent-rose);
  top: 25%;
  right: 12%;
  animation: floatShape 5s ease-in-out infinite 1s;
}

.hero-shape-3 {
  width: 60px;
  height: 60px;
  background: var(--accent-deep);
  bottom: 20%;
  right: 20%;
  animation: floatShape 6s ease-in-out infinite 2s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(180deg); }
}

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

/* ---------- Section Common ---------- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--off-white) 0%, #fff5f7 50%, var(--off-white) 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-rose), var(--primary-pink));
  border-radius: 50px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 20px;
  font-weight: 300;
}

/* ---------- Product Image Placeholder ---------- */
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff5f7, var(--primary-pink), #f7c5d0);
  color: var(--accent-rose);
  font-size: 3.5rem;
}

/* ---------- Navbar Dropdown ---------- */
.nav-item.dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(199, 107, 130, 0.18);
  border: 1px solid rgba(255, 209, 218, 0.4);
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
}

.nav-item.dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.nav-dropdown-menu a:hover {
  background: #fff5f7;
  color: var(--accent-deep);
  padding-left: 24px;
}

.nav-dropdown-menu a i {
  color: var(--accent-rose);
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(255, 209, 218, 0.25);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-rose));
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 209, 218, 0.5);
}

.product-card:hover::before {
  opacity: 1;
}

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

.product-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-img .price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  font-family: var(--font-body);
}

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

.product-body h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.product-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.6;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--whatsapp-green);
  color: var(--white) !important;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp i {
  font-size: 1.1rem;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  color: var(--white) !important;
}

.btn-whatsapp:active {
  transform: translateY(0);
}

/* ---------- View All Button ---------- */
.view-all-wrapper {
  text-align: center;
  margin-top: 30px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--accent-deep);
  background: var(--white);
  border: 2px solid var(--primary-pink-dark);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.btn-view-all:hover {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-deep));
  color: var(--white);
  border-color: var(--accent-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(199, 107, 130, 0.35);
}

.btn-view-all:active {
  transform: translateY(0);
}

/* ---------- Gallery Cards (Home Page) ---------- */
.gallery-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(255, 209, 218, 0.25);
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 209, 218, 0.5);
}

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

.gallery-img {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.gallery-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#gallery-grid,
#all-gallery-grid {
  align-items: start;
}



/* ---------- Menu Section ---------- */
.menu-images {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

.menu-img-wrapper {
  flex: 1 1 400px;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
  border: 3px solid rgba(255, 209, 218, 0.4);
}

.menu-img-wrapper:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(199, 107, 130, 0.25);
}

.menu-full-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Menu Category Grid ---------- */
.menu-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.menu-category-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 209, 218, 0.3);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.menu-category-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-rose));
  opacity: 0;
  transition: var(--transition);
}

.menu-category-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 209, 218, 0.6);
}

.menu-category-container:hover::before,
.menu-category-container.active::before {
  opacity: 1;
}

.menu-category-container.active {
  border-color: var(--accent-rose);
  box-shadow: 0 8px 30px rgba(199, 107, 130, 0.25);
  background: linear-gradient(135deg, #fff5f7, var(--white));
}

.menu-category-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

.menu-category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-category-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-dark);
}

.menu-category-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.menu-category-arrow {
  display: none;
}

/* ---------- Menu Expanded Area ---------- */
#menu-expanded-area {
  display: none;
  animation: fadeInUp 0.5s ease;
}

#menu-expanded-area.active {
  display: block;
  padding: 10px 0 40px;
}

.menu-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 209, 218, 0.4);
}

.menu-expanded-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.menu-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--accent-deep);
  background: transparent;
  border: 2px solid var(--primary-pink-dark);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.menu-close-btn:hover {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-deep));
  color: var(--white);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 107, 130, 0.25);
}

/* ---------- Responsive: Menu Category Grid ---------- */
@media (max-width: 576px) {
  .menu-category-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .menu-category-container {
    padding: 18px 16px;
    gap: 12px;
  }

  .menu-category-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .menu-category-info h3 {
    font-size: 1rem;
  }

  .menu-expanded-header h2 {
    font-size: 1.5rem;
  }
}

/* ---------- Testimonial Carousel ---------- */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 10px 4px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px 24px;
  box-shadow: 0 4px 24px rgba(199, 107, 130, 0.1);
  border: 1px solid rgba(255, 209, 218, 0.3);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(199, 107, 130, 0.18);
  border-color: rgba(255, 209, 218, 0.6);
}

.testimonial-quote {
  color: var(--primary-pink-dark);
  font-size: 1.6rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.testimonial-stars i {
  color: #f5a623;
  font-size: 0.85rem;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 209, 218, 0.3);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.testimonial-badge {
  font-size: 0.72rem;
  color: #28a745;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.testimonial-badge i {
  font-size: 0.7rem;
}

/* Testimonial Navigation Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-pink-dark);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.testimonial-dot.active {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-deep));
  border-color: var(--accent-deep);
  transform: scale(1.2);
}

.testimonial-dot:hover {
  background: var(--primary-pink-dark);
}

/* Testimonial Arrow Controls */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 209, 218, 0.5);
  background: var(--white);
  color: var(--accent-deep);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(199, 107, 130, 0.12);
}

.testimonial-arrow:hover {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-deep));
  color: var(--white);
  border-color: var(--accent-deep);
  transform: translateY(-50%) scale(1.08);
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.7rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float:hover {
  background: var(--whatsapp-green-dark);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

@keyframes pulseWhatsapp {
  0% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.12); }
  100% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4); }
}

.whatsapp-float .tooltip-text {
  position: absolute;
  right: 72px;
  background: var(--text-dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.whatsapp-float:hover .tooltip-text {
  opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-rose), var(--accent-deep));
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand .brand-icon {
  color: var(--primary-pink);
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  font-weight: 300;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact i {
  color: var(--primary-pink);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--accent-rose);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--accent-rose);
}

.footer-social a.whatsapp:hover {
  background: var(--whatsapp-green);
  border-color: var(--whatsapp-green);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 30px 0;
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-copyright span {
  color: var(--primary-pink);
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: linear-gradient(160deg, #fff5f7 0%, var(--primary-pink) 50%, #ffe8ed 100%);
  padding: 100px 0;
  position: relative;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: #fef5f7;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-dark);
}

.contact-method:hover {
  background: var(--primary-pink);
  transform: translateX(6px);
  color: var(--text-dark);
}

.contact-method i {
  font-size: 1.4rem;
  color: var(--accent-deep);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-method-info {
  text-align: left;
}

.contact-method-info .label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.contact-method-info .value {
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-rose);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(232, 137, 158, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-deep);
  transform: translateY(-3px);
}

/* ---------- Mobile Bottom Navbar ---------- */
.bottom-nav {
  display: none;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .section {
    padding: 40px 0;
  }

  /* Hide hamburger toggler & collapse — use bottom nav instead */
  .navbar-toggler,
  .navbar-collapse {
    display: none !important;
  }

  /* Show bottom nav */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 252, 251, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 209, 218, 0.4);
    box-shadow: 0 -4px 20px rgba(199, 107, 130, 0.1);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    justify-content: space-around;
    align-items: center;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 6px 6px;
    flex: 1;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: var(--radius-sm);
  }

  .bottom-nav-item i {
    font-size: 1.15rem;
    transition: var(--transition);
  }

  .bottom-nav-item span {
    letter-spacing: 0.3px;
  }

  .bottom-nav-item.active {
    color: var(--accent-deep);
    font-weight: 600;
  }

  .bottom-nav-item.active i {
    transform: scale(1.1);
  }

  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-deep));
    border-radius: 0 0 50px 50px;
  }

  .bottom-nav-item:hover {
    color: var(--accent-deep);
  }

  /* Center Floating Action Button */
  .bottom-nav-action {
    position: relative;
    overflow: visible;
  }

  .bottom-nav-action i {
    background: linear-gradient(135deg, var(--accent-rose), var(--primary-pink-dark));
    color: var(--white) !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(199, 107, 130, 0.4);
    transform: translateY(-22px);
    border: 4px solid var(--white);
    margin-bottom: -15px; /* Adjust spacing to keep text visible */
  }

  .bottom-nav-action span {
    font-weight: 600;
    color: var(--accent-deep);
    transform: translateY(-5px);
  }

  .bottom-nav-action.active i {
    transform: translateY(-22px) scale(1.05);
    box-shadow: 0 6px 20px rgba(199, 107, 130, 0.6);
  }

  .bottom-nav-action.active::before {
    display: none; /* No top dash for floating button */
  }

  /* Adjust floating elements above bottom nav */
  body {
    padding-bottom: 70px;
  }

  .whatsapp-float {
    bottom: 80px;
  }

  .back-to-top {
    bottom: 140px;
  }

  .footer {
    padding-bottom: 80px;
  }

  .testimonial-slide {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonial-slide .testimonial-card:nth-child(3) {
    display: none;
  }

  .testimonial-carousel {
    padding: 0 48px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .btn-order {
    padding: 14px 36px;
    font-size: 1rem;
  }

  .section {
    padding: 30px 0;
  }

  .view-all-wrapper {
    margin-top: 15px;
  }

  .section-title h2 {
    font-size: 1.9rem;
  }

  .product-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .product-img img {
    object-fit: cover !important;
    object-position: center top;
  }

  .gallery-img {
    aspect-ratio: auto !important;
    overflow: hidden;
    height: auto !important;
    max-height: none !important;
  }

  .gallery-img img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
  }

  #gallery-grid .col-md-6,
  #all-gallery-grid .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .contact-card {
    padding: 35px 20px;
  }

  .contact-method {
    padding: 12px 16px;
  }

  .contact-method-info {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    right: 16px;
  }

  .back-to-top {
    right: 18px;
    width: 38px;
    height: 38px;
  }

  .testimonial-slide {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-carousel {
    padding: 0 12px;
  }

  .testimonial-arrow {
    display: none;
  }

  .testimonial-card {
    padding: 24px 20px 20px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-section {
    padding: 100px 0 60px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .footer {
    padding: 40px 0 80px;
  }

  .bottom-nav-item {
    font-size: 0.6rem;
    padding: 6px 4px 4px;
  }

  .bottom-nav-item i {
    font-size: 1.05rem;
  }
}

/* ---------- Loading Animation ---------- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 20px;
}

.loader-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.loader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-rose);
  animation: loaderDot 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---------- Permanent Navbar Search ---------- */
.search-pill {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(255, 209, 218, 0.6);
  border-radius: 50px;
  padding: 8px 18px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 209, 218, 0.2);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .search-pill {
    margin-left: 20px;
    margin-right: 20px;
  }
}

.search-pill:focus-within {
  box-shadow: 0 4px 20px rgba(199, 107, 130, 0.2);
  border-color: rgba(199, 107, 130, 0.3);
}

.search-pill .search-icon {
  color: #a0aab5;
  font-size: 1.1rem;
  margin-right: 12px;
}

.search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 4px 0;
  font-size: 1.05rem;
  color: var(--text-dark);
  font-family: var(--font-body);
  outline: none;
  width: 100%;
}

.search-pill input::placeholder {
  color: #a0aab5;
  font-weight: 500;
}

.voice-search-btn {
  background: none;
  border: none;
  color: var(--accent-rose);
  font-size: 1.25rem;
  margin-left: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.voice-search-btn.listening {
  color: #dc3545;
  animation: pulse 1.5s infinite;
}

/* Smooth filtering transition classes */
.filterable-item {
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: center top;
}

.filterable-item.filtered-out {
  opacity: 0 !important;
  transform: scale(0.8) translateY(20px) !important;
  pointer-events: none;
  position: relative !important; /* Remove from flow seamlessly */
  visibility: hidden;
}

/* Adjust scroll padding for better mobile navigation */
@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 170px;
  }
}



/* Responsive spacing for general sections */
@media (max-width: 991.98px) {
  section.section, 
  .contact-section,
  #all-cakes,
  #all-brownies,
  #menu-categories,
  #all-gallery-grid {
    padding-top: 160px !important;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
