/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fff5f8;
  color: #4a2c40;
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

/* Color Palette */
:root {
  --primary-pink: #ff99cc;
  --secondary-pink: #ffb3d9;
  --accent-pink: #ff66a3;
  --dark-pink: #e3b8c6;
  --light-bg: #fff5f8;
  --white: #ffffff;
  --text-dark: #4a2c40;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.pulse:hover {
  animation: pulse 0.3s ease-in-out;
}

/* Scroll Animation Class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
  background-color: #20b358;
  transform: scale(1.1);
}

.whatsapp-float i {
  font-size: 1.8rem;
}

/* Navigation */
.navbar {
  background-color: var(--primary-pink);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 100px;
  width: auto;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

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

.nav-links li a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.3s, transform 0.2s;
}

.nav-links li a:hover {
  color: var(--accent-pink);
  transform: translateY(-2px);
}

.whatsapp-btn {
  background-color: #25d366;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
}

.whatsapp-btn:hover {
  background-color: #20b358;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
/* Hero Rating Image */
.rating-image {
  width: 180px;
  max-width: 100%;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 0; /* Above video, below hero-content */
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.6s;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rating-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hygiene Badge */
.hygiene-badge {
  width: 150px; /* Increased by 30% from 84px */
  max-height: 172px; /* Increased by 30% from 120px */
  position: absolute;
  bottom: 20px;
  right: 119px; /* Adjusted for larger width (109px + 10px gap) */
  z-index: 9999; /* Above hero video and rating-image, below WhatsApp button */
  animation: fadeIn 1s ease-out forwards; /* No delay */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px; /* Subtle rounded corners for badge look */
  border: 2px solid var(--accent-pink); /* Pink border */
  background: rgba(255, 255, 255, 0.1); /* Slight backdrop for contrast */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Soft glow */
  object-fit: contain; /* Show full image without cropping */
  object-position: center; /* Center image content */
  padding: 4px; /* Inner spacing for badge effect */
}

.hygiene-badge:hover {
  transform: scale(1.1); /* Slightly larger hover effect */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); /* Brighter shadow on hover */
  border-color: var(--accent-pink); /* Pink border on hover */
}

/* Responsive Design for Rating Image and Hygiene Badge */
@media (max-width: 768px) {
  .rating-image {
    width: 140px;
    bottom: 0.8rem;
    right: 0.8rem;
  }
  .hygiene-badge {
    width: 100px; /* Slightly larger for better visibility */
    max-height: 115px;
    right: 10px; /* Closer to the edge for consistency */
    bottom: 10px;
    border-radius: 6px;
    padding: 3px;
    border: 2px solid var(--accent-pink);
    background: rgba(255, 255, 255, 0.2); /* Slightly more opaque for contrast */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
  .whatsapp-float i {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .rating-image {
    width: 100px;
    bottom: 0.5rem;
    right: 0.5rem;
  }
  .hygiene-badge {
    width: 80px; /* Adjusted for smaller screens */
    max-height: 92px;
    right: 10px;
    bottom: 10px;
    border-radius: 5px;
    padding: 2px;
    border: 1px solid var(--accent-pink); /* Thinner border for smaller size */
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .whatsapp-float {
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float i {
    font-size: 1.4rem;
  }
}

/* Ensure hero content doesn't overlap with badge on very small screens */
@media (max-width: 360px) {
  .hero-content {
    padding: 1rem;
    margin-bottom: 80px; /* Add space to avoid overlap with badge */
  }
  .hygiene-badge {
    width: 70px;
    max-height: 80px;
    right: 5px;
    bottom: 5px;
  }
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem 4rem;
  border-radius: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation-delay: 0.2s;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 0; /* Adjusted to use gap in flex */
  animation-delay: 0.4s;
}

.btn {
  display: inline-block;
  background-color: var(--accent-pink);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1.1rem;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: var(--dark-pink);
  transform: translateY(-2px);
}

/* About Section */
.about {
  padding: 4rem 2rem;
  background-color: var(--white);
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 1.5rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.about-content p {
  margin-bottom: 1rem;
  flex: 1;
  min-width: 300px;
}

.about-image {
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery {
  padding: 4rem 2rem;
  background-color: var(--light-bg);
  text-align: center;
}

.gallery h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  animation: zoom 0.3s forwards;
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-caption {
  opacity: 1;
}

/* Featured Cakes Section */
.featured {
  padding: 4rem 2rem;
  background-color: var(--white);
  text-align: center;
}

.featured h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-item {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.featured-item:hover {
  transform: translateY(-5px);
}

.featured-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.featured-item h3 {
  font-size: 1.5rem;
  color: var(--dark-pink);
  margin-bottom: 0.5rem;
}

.featured-item p {
  font-size: 1rem;
  color: var(--text-dark);
}

/* Pop-up Stall Schedule */
.stall-schedule {
  padding: 4rem 2rem;
  background-color: var(--light-bg);
  text-align: center;
}

.stall-schedule h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
}

.schedule-table {
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem;
  border: 1px solid var(--secondary-pink);
  font-size: 1rem;
  color: var(--text-dark);
}

.schedule-table th {
  background-color: var(--primary-pink);
  color: var(--white);
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 2rem;
  background-color: var(--white);
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
}

.testimonial-grid {
  display: flex;
  gap: 2rem;
  max-width: none;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.testimonial-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-carousel-container::before,
.testimonial-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 10;
  pointer-events: none;
}

.testimonial-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, var(--light-bg), transparent);
}

.testimonial-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, var(--light-bg), transparent);
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.testimonial-item {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  max-width: 400px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: grab;
  user-select: none;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.testimonial-item:active {
  cursor: grabbing;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    transition: none !important;
  }

  .testimonial-item {
    transition: none !important;
  }
}

.testimonial-item p {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.testimonial-item h4 {
  font-size: 1.1rem;
  color: var(--dark-pink);
}

/* Review Button */
.review-button-container {
  text-align: center;
  margin-top: 3rem;
}

.review-btn {
  background-color: var(--accent-pink);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
}

.review-btn:hover {
  background-color: var(--dark-pink);
  transform: translateY(-2px);
}

/* Booking Section */
.booking {
  padding: 4rem 2rem;
  background-color: var(--light-bg);
  text-align: center;
}

.booking h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 1.5rem;
}

.booking p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-dark);
}

.whatsapp-booking {
  background-color: #25d366;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, transform 0.2s;
}

.whatsapp-booking:hover {
  background-color: #20b358;
  transform: translateY(-2px);
}

/* Order Section */
.order {
  padding: 4rem 2rem;
  background-color: var(--white);
  text-align: center;
}

.order h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
}

#order-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#order-form label {
  font-size: 1.1rem;
  color: var(--text-dark);
  text-align: left;
}

#order-form input,
#order-form select,
#order-form textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--secondary-pink);
  border-radius: 5px;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

#order-form textarea {
  resize: vertical;
}

#order-form button {
  align-self: center;
  background-color: var(--accent-pink);
  border: none;
}

#form-message {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--dark-pink);
}

/* Contact Section */
.contact {
  padding: 4rem 2rem;
  background-color: var(--white);
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--light-bg);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-entry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s;
}

.contact-entry:hover {
  background-color: var(--white);
}

.contact-entry i {
  font-size: 1.8rem;
  color: var(--accent-pink);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.contact-text {
  text-align: left;
  flex: 1;
}

.contact-text span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-text a {
  color: var(--accent-pink);
  text-decoration: none;
}

.contact-text a:hover {
  color: var(--primary-pink);
  text-decoration: underline;
}

.contact-social {
  border-top: 1px solid var(--secondary-pink);
  padding-top: 2rem;
}

.contact-social h3 {
  font-size: 1.5rem;
  color: var(--dark-pink);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-pink);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: background-color: 0.3s, transform: 0.2s;
}

.social-link:hover {
  background-color: var(--accent-pink);
  transform: none;
  scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact {
    padding: 3rem 1rem;
  }
  .contact-container {
    padding: 1.5rem;
  }
  .contact-entry {
    padding: 0.8rem;
  }
  .contact-entry i {
    font-size: 1.5rem;
  }
  .contact-text span {
    font-size: 0.85rem;
  }
  .contact-text a,
  .contact-text p {
    font-size: 0.95rem;
  }
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .contact h2 {
    font-size: 2rem;
  }
  .contact-container {
    padding: 1rem;
  }
  .contact-entry {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .contact-text {
    text-align: center;
  }
  .contact-social h3 {
    font-size: 1.3rem;
  }
  .social-links {
    flex-direction: row; /* Keep icons in a row */
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping if needed on very small screens */
  }
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Footer */
footer {
  background-color: var(--primary-pink);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

footer p {
  font-size: 1rem;
}

footer a {
  color: var(--accent-pink);
  transition: color 0.3s;
}

footer a:hover {
  color: var(--white);
}

/* Original Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-pink);
    padding-top: 80px;
    align-items: center;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links li a {
    font-size: 1.5rem;
  }

  .whatsapp-btn {
    margin: 1rem 0;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-content {
    padding: 1.5rem 2rem;
  }

  .about-content {
    padding: 0 1rem;
    flex-direction: column;
  }

  .about-image {
    max-width: 150px;
  }

  .schedule-table th,
  .schedule-table td {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 45px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

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

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

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

  .logo-img {
    height: 30px;
  }

  .logo-text {
    font-size: 1.5rem;
  }
}

/* Enhanced Responsive Design for Mobile and Tablets Only */
@media (max-width: 1000px) {
  /* Adjust font sizes for better readability */
  h1,
  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  p,
  .btn,
  .whatsapp-booking,
  .social-link {
    font-size: 1rem;
  }

  /* Increase tap target sizes for buttons and links */
  .btn,
  .whatsapp-booking,
  .whatsapp-float,
  .nav-links li a {
    padding: 0.8rem 1.2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Ensure hero section is fully responsive */
  .hero {
    height: 100vh;
  }

  .hero-content {
    padding: 1rem 1.5rem;
    margin: 0 1rem;
  }

  /* Optimise gallery for tablets */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  /* Adjust featured and testimonial grids */
  .featured-grid,
  .testimonial-item {
    min-width: 280px;
    max-width: 350px;
  }

  .testimonial-carousel-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .testimonial-carousel-container::before,
  .testimonial-carousel-container::after {
    width: 20px;
  }

  /* Make schedule table scrollable on smaller screens */
  .schedule-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Form inputs for better mobile interaction */
  #order-form input,
  #order-form select,
  #order-form textarea {
    font-size: 1rem;
    padding: 0.8rem;
    min-height: 44px;
  }

  /* Footer links */
  footer p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  /* Navigation menu adjustments */
  .nav-links.active {
    padding-top: 60px;
    justify-content: flex-start;
  }

  .nav-links li a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Further reduce font sizes */
  h1,
  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p,
  .btn,
  .whatsapp-booking,
  .social-link {
    font-size: 0.9rem;
  }

  /* Adjust navbar */
  .navbar {
    padding: 0.8rem 1rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 40px;
  }

  /* Hero section */
  .hero {
    height: 70vh;
  }

  .hero-content {
    padding: 1rem;
    margin: 0 0.5rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  /* Optimise section padding */
  .about,
  .gallery,
  .featured,
  .stall-schedule,
  .testimonials,
  .booking,
  .order,
  .contact {
    padding: 2rem 1rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .gallery-item img {
    height: 200px;
  }

  /* Featured items */
  .featured-item img {
    height: 150px;
  }

  /* Form adjustments */
  #order-form label {
    font-size: 0.9rem;
  }

  #order-form button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Contact section */
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-item {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.8rem;
  }

  .btn,
  .whatsapp-booking {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .logo-img {
    height: 35px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .navbar {
    padding: 0.6rem 0.8rem;
  }
}

/* Mobile-Specific Optimisations (only affect 768px and below) */
@media (max-width: 768px) {
  /* Optimise video for mobile */
  .hero video {
    object-fit: cover;
    width: 100vw;
    height: 100%;
    max-width: none;
    max-height: none;
    transform: scale(1.1); /* Slightly zoom to ensure full coverage */
  }

  /* Ensure images are responsive */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Improve touch interactions */
  a,
  button,
  .btn,
  .whatsapp-float,
  .whatsapp-booking,
  .nav-links li a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Prevent horizontal scrolling */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Optimise form for touch */
  #order-form input:focus,
  #order-form select:focus,
  #order-form textarea:focus {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
  }

  /* Ensure table cells wrap text */
  .schedule-table td,
  .schedule-table th {
    white-space: normal;
    word-wrap: break-word;
  }

  /* Adjust animation timing for mobile */
  .animate-on-scroll {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
}

/* Shop Page Styles */
.shop-hero {
  height: 60vh;
  background: linear-gradient(
    135deg,
    var(--primary-pink),
    var(--secondary-pink)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 100px;
}

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

/* Shop Hero Section */
.shop-hero {
  position: relative;
  height: 50vh;
  background: url('candies-scattered-pink-table.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 245, 248, 0.6); /* --light-bg with opacity to soften the image */
  z-index: 1;
}

.shop-hero .container {
  position: relative;
  z-index: 2;
}

.shop-hero .hero-content {
  background: rgba(255, 255, 255, 0.85); /* Translucent white for contrast */
  padding: 2rem 3rem;
  border-radius: 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.shop-hero h1 {
  font-size: 3.5rem;
  color: var(--accent-pink);
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.8rem;
  position: relative;
  text-shadow: 0 0 12px rgba(255, 102, 163, 0.8), 0 0 6px rgba(255, 102, 163, 0.6); /* Stronger glow effect */
  letter-spacing: 1.5px;
  font-weight: 700;
}

.decorative-flourish {
  width: 150px;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--accent-pink), transparent);
  margin: 0 auto 1.2rem;
  border-radius: 2px;
}

.shop-hero p {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
}

/* Sparkle Animation */
.shop-hero h1::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0;
  animation: sparkle 3s infinite ease-in-out;
}

.shop-hero h1::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0;
  animation: sparkle 3s infinite ease-in-out 1.5s;
}

@keyframes sparkle {
  0% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.85; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(0.5); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .shop-hero {
    height: 45vh;
    margin-top: 60px;
  }

  .shop-hero .hero-content {
    padding: 1.5rem 2rem;
    max-width: 90%;
  }

  .shop-hero h1 {
    font-size: 2.8rem;
  }

  .shop-hero p {
    font-size: 1.1rem;
  }

  .decorative-flourish {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .shop-hero {
    height: 40vh;
    margin-top: 50px;
  }

  .shop-hero .hero-content {
    padding: 1.2rem 1.5rem;
  }

  .shop-hero h1 {
    font-size: 2.2rem;
  }

  .shop-hero p {
    font-size: 0.95rem;
  }

  .decorative-flourish {
    width: 90px;
  }
}

/* Featured Products */
.featured-products {
  padding: 4rem 2rem;
  background-color: var(--light-bg);
  text-align: center;
}

.featured-products h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-item {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-item:hover .product-overlay {
  opacity: 1;
}

.btn-enquire {
  background-color: var(--accent-pink);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.btn-enquire:hover {
  background-color: var(--dark-pink);
  transform: translateY(-2px);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-info h3 {
  font-size: 1.3rem;
  color: var(--dark-pink);
  margin-bottom: 0.5rem;
  text-align: center;
}

.product-info p {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-pink);
}

/* How to Order */
.how-to-order {
  padding: 4rem 2rem;
  background-color: var(--white);
  text-align: center;
}

.how-to-order h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.order-step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.order-step h3 {
  font-size: 1.3rem;
  color: var(--dark-pink);
  margin-bottom: 0.5rem;
}

.order-step p {
  color: var(--text-dark);
  font-size: 1rem;
}

/* Quick Order */
.quick-order {
  padding: 4rem 2rem;
  background-color: var(--light-bg);
  text-align: center;
}

.quick-order h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 1rem;
}

.quick-order p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.order-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Section */
.services-section {
  padding: 4rem 2rem;
}

.services-section h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.service-item h3 {
  font-size: 1.5rem;
  color: var(--dark-pink);
  margin-bottom: 1rem;
}

.service-item p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Product Category Section */
.product-category {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--secondary-pink) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/candy-doodle.png') repeat;
  opacity: 0.05;
  z-index: 0;
}

.product-category .container {
  position: relative;
  z-index: 1;
}

.product-category h2 {
  font-size: 2.5rem;
  color: var(--dark-pink);
  margin-bottom: 2.5rem;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-category h2 i {
  color: var(--accent-pink);
  font-size: 1.8rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), 
                    radial-gradient(circle at 10px 10px, var(--secondary-pink) 3px, transparent 3px),
                    radial-gradient(circle at bottom right, var(--primary-pink) 3px, transparent 3px);
  background-clip: padding-box, border-box, border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 245, 248, 0.2), rgba(255, 179, 217, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.product-item:hover .product-overlay {
  opacity: 1;
}

.btn-enquire {
  background: var(--accent-pink);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-enquire:hover {
  background: var(--primary-pink);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.product-info {
  padding: 1.2rem;
}

.product-info h3 {
  font-size: 1.3rem;
  color: var(--dark-pink);
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-category {
    padding: 3rem 1rem;
  }

  .product-category h2 {
    font-size: 2rem;
  }

  .product-category h2 i {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .product-image {
    height: 180px;
  }

  .product-info h3 {
    font-size: 1.2rem;
  }

  .product-info p {
    font-size: 0.85rem;
  }

  .btn-enquire {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .product-category {
    padding: 2rem 1rem;
  }

  .product-category h2 {
    font-size: 1.8rem;
  }

  .product-category h2 i {
    font-size: 1.3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-image {
    height: 160px;
  }

  .product-info h3 {
    font-size: 1.1rem;
  }

  .product-info p {
    font-size: 0.8rem;
  }

  .btn-enquire {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Cookie Modal & Banner Styles */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cookieModalSlideIn 0.3s ease-out;
}

@keyframes cookieModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-modal-header {
  padding: 1.5rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--light-bg);
  margin-bottom: 1rem;
}

.cookie-modal-header h3 {
  color: var(--dark-pink);
  font-size: 1.5rem;
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.cookie-modal-close:hover {
  background-color: var(--light-bg);
}

.cookie-modal-body {
  padding: 0 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-body p {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-categories {
  margin: 1.5rem 0;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 10px;
  border-left: 4px solid var(--accent-pink);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.cookie-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  transition: background-color 0.3s;
  margin-right: 1rem;
  flex-shrink: 0;
}

.cookie-slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background-color: white;
  transition: transform 0.3s;
}

.cookie-toggle input:checked + .cookie-slider {
  background-color: var(--accent-pink);
}

.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(26px);
}

.cookie-slider.essential {
  background-color: var(--accent-pink);
}

.cookie-category-title {
  font-weight: 600;
  color: var(--dark-pink);
  font-size: 1rem;
}

.cookie-status {
  font-size: 0.8rem;
  color: var(--accent-pink);
  font-weight: 500;
}

.cookie-category-description {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
}

.cookie-policy-link {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-bg);
}

.cookie-policy-link p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-link {
  color: var(--accent-pink);
  text-decoration: underline;
  transition: color 0.3s;
}

.cookie-link:hover {
  color: var(--dark-pink);
}

.cookie-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--light-bg);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 120px;
}

.cookie-btn-primary {
  background-color: var(--accent-pink);
  color: var(--white);
}

.cookie-btn-primary:hover {
  background-color: var(--dark-pink);
  transform: translateY(-2px);
}

.cookie-btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--light-bg);
}

.cookie-btn-secondary:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.cookie-btn-tertiary {
  background-color: var(--primary-pink);
  color: var(--white);
}

.cookie-btn-tertiary:hover {
  background-color: var(--dark-pink);
  transform: translateY(-2px);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--accent-pink);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner-content {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.cookie-banner-text h4 {
  color: var(--dark-pink);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner-link {
  background: none;
  border: none;
  color: var(--accent-pink);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

.cookie-banner-link:hover {
  color: var(--dark-pink);
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  min-width: 100px;
}

/* Cookie Settings Toggle Button */
.cookie-settings-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-pink);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  z-index: 9998;
  display: none;
}

.cookie-settings-toggle.active {
  display: block;
}

.cookie-settings-toggle:hover {
  background-color: var(--dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile Optimisations for Shop */
@media (max-width: 768px) {
  .shop-hero {
    height: 50vh;
    margin-top: 80px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .order-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .order-buttons {
    flex-direction: column;
    align-items: center;
  }

  .order-buttons a {
    width: 100%;
    max-width: 300px;
  }

  /* Cookie Modal Mobile Styles */
  .cookie-modal-content {
    margin: 1rem;
    max-height: 95vh;
  }

  .cookie-modal-header {
    padding: 1rem 1.5rem 0;
  }

  .cookie-modal-body {
    padding: 0 1.5rem;
  }

  .cookie-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-btn-small {
    flex: 1;
  }

  .cookie-settings-toggle {
    bottom: 10px;
    left: 10px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}