.bakery-slider-slide {
  opacity: 0;
  transition:
    opacity 0.8s ease-in-out,
    transform 0.8s ease-in-out;
  transform: scale(1.05);
  pointer-events: none;
  z-index: 0;
}
.bakery-slider-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 10;
}
.bakery-slider-nav {
  background: rgba(255, 249, 244, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.text-shadow-elegant {
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* categories */
.cakes-category-atelier-wrapper {
  perspective: 1500px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.cakes-category-atelier-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .cakes-category-atelier-slide {
    flex-direction: row;
  }
}

.cakes-category-atelier-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* SVG Box Frame */
.atelier-box-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.atelier-box-frame svg {
  width: 100%;
  height: 100%;
}

.atelier-path {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
}

/* Themes - Backgrounds & Borders */
.theme-boutique .bg-layer {
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
}
.theme-patisserie .bg-layer {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 20px
  );
}
.theme-playful .bg-layer {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 30%
    );
}
.theme-studio .bg-layer {
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
}
.theme-bakery .bg-layer {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    transparent
  );
}

/* Labels (Left Content) */
.atelier-label-content {
  position: relative;
  z-index: 20;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.label-bg {
  position: absolute;
  inset: -1rem;
  z-index: -1;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.label-bg svg {
  width: 100%;
  height: 100%;
  fill: #fff9f4;
}

/* 3D Image breaking frame */
.atelier-image-container {
  position: relative;
  z-index: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

@media (min-width: 1024px) {
  .atelier-image-container {
    height: 100%;
  }
}

.atelier-image-wrapper {
  position: relative;
  width: 80%;
  max-width: 450px;
  aspect-ratio: 1;
  z-index: 30;
  /* Allow breaking bounds */
  transform: translateZ(50px);
  filter: drop-shadow(20px 30px 40px rgba(0, 0, 0, 0.4));
}

.atelier-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.theme-boutique .atelier-image {
  border-radius: 40px 40px 10px 10px;
}
.theme-patisserie .atelier-image {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.theme-playful .atelier-image {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.theme-studio .atelier-image {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
.theme-bakery .atelier-image {
  border-radius: 10px;
}

/* Badges / Navigation */
.atelier-nav {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.atelier-nav-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff9f4;
  color: #f53639;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px dashed #f53639;
}

.atelier-nav-btn:hover {
  transform: scale(1.1);
  background: #f53639;
  color: #fff9f4;
  border-color: #fff9f4;
}

.atelier-nav-counter {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  color: #fff9f4;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.atelier-text-animate {
  opacity: 0;
}

/* Watermark Title */
.watermark-title {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: 15vw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* PRODUCT LIST */
.bakery-product-list-container {
  display: flex;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  position: relative;
}
.bakery-product-list-container:active {
  cursor: grabbing;
}

.bakery-product-list-track {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: max-content;
}

.bakery-product-list-row {
  display: flex;
  gap: 2rem;
  width: max-content;
}

.bakery-product-list-row-1 {
  animation: scroll-left 160s linear infinite;
}

.bakery-product-list-row-2 {
  animation: scroll-right 160s linear infinite;
}

@media (max-width: 768px) {
  .bakery-product-list-row-1 {
    animation: scroll-left 160s linear infinite;
  }
  .bakery-product-list-row-2 {
    animation: scroll-right 160s linear infinite;
  }
}

.bakery-product-list-container:hover .bakery-product-list-row-1,
.bakery-product-list-container:hover .bakery-product-list-row-2 {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(calc(-50% - 1rem));
  }
  100% {
    transform: translateX(0);
  }
}

.bakery-product-list-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #b80e1f;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
  z-index: 30;
  cursor: pointer;
}

.bakery-product-list-container:hover .bakery-product-list-arrow {
  opacity: 1;
}

.bakery-product-list-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

.bakery-product-list-arrow-left {
  left: 1rem;
}

.bakery-product-list-arrow-right {
  right: 1rem;
}

.ambient-shadow {
  box-shadow:
    0 16px 24px rgba(23, 23, 23, 0.04),
    0 4px 8px rgba(23, 23, 23, 0.02);
}

.hover-lift {
  transition:
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 32px rgba(23, 23, 23, 0.08),
    0 8px 16px rgba(23, 23, 23, 0.04);
}

.decorative-bg {
  background-color: #fcf9f8;
  background-image:
    radial-gradient(circle at 100% 0%, #fff9f4 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, #ffdad6 0%, transparent 30%);
}

.bakery-product-list-card-bg {
  background: linear-gradient(135deg, #f53639 0%, #930014 100%);
  color: #ffffff !important;
}

.bakery-product-list-card-bg h3,
.bakery-product-list-card-bg p,
.bakery-product-list-card-bg span,
.bakery-product-list-card-bg button {
  color: #ffffff !important;
}

.bakery-product-list-card-bg button:hover {
  color: #ffdad6 !important;
}

.bakery-product-list-card-bg .border-surface-variant {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* how it works */
.circular-text-svg {
  animation: rotateText 20s linear infinite;
}
@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle red accents and floating shapes */
.bg-pattern {
  background-image: radial-gradient(#f53639 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.03;
}

.mask-edges {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

/* new mega navbar */
/* .ribbon-shape {
  clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%);
}
.ribbon-ends::before,
.ribbon-ends::after {
  content: "";
  position: absolute;
  bottom: -10px;
  z-index: -1;
  border: 15px solid transparent;
}
.ribbon-ends::before {
  left: -20px;
  border-right-color: #8b0000;
  border-top-color: #8b0000;
}
.ribbon-ends::after {
  right: -20px;
  border-left-color: #8b0000;
  border-top-color: #8b0000;
} */
.stitched-border {
  border: 2px dashed #fff9f4;
  box-shadow: 0 0 0 4px #bb0019;
}

/* Bakery Mega Menu Styles */
.bakery-mega-menu-overlay {
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
}
.bakery-mega-menu-overlay.bakery-mega-menu-open {
  opacity: 1;
  visibility: visible;
}

.bakery-mega-menu-link {
  position: relative;
  display: inline-block;
  transition: color 0.4s ease;
}

.bakery-mega-menu-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #f53639;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bakery-mega-menu-link:hover::after,
.bakery-mega-menu-link.bakery-mega-menu-active::after {
  width: 100%;
}

.bakery-mega-menu-image-container {
  position: relative;
  overflow: hidden;
}

.bakery-mega-menu-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 0.6s ease-in-out,
    transform 0.6s ease-in-out;
}

.bakery-mega-menu-image.bakery-mega-menu-image-active {
  opacity: 1;
  transform: scale(1);
}
#bakery-mega-menu-overlay {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
#bakery-mega-menu-overlay.bakery-mega-menu-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.custom-lavender-bg {
  background-color: #d3c5f1; /* Approximating the lavender from the image */
}

/* New reviews */
/* Marquee Animation */
@keyframes bakery-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.bakery-testimonial-marquee-inner {
  display: flex;
  width: max-content;
  animation: bakery-scroll 20s linear infinite;
}

.bakery-testimonial-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Hide scrollbar for clean window look */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.font-hero {
  font-family: "Kaushan Script", cursive !important;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 4px !important;
}

.category-section h3 {
  font-family: "Chicle", serif !important;
  letter-spacing: 2px !important;
}

.hero-marquee span:nth-of-type(2) {
  font-family: "Chicle", serif !important;
  letter-spacing: 2px !important;
  font-size: 1.5rem !important;
}

.editorial-window {
  clip-path: polygon(
    10% 0,
    90% 0,
    100% 10%,
    100% 90%,
    90% 100%,
    10% 100%,
    0 90%,
    0 10%
  );
}

/* new contact section */
.glass-panel {
  background: rgb(49 48 48 / 33%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-ghost {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transition: all 0.3s ease;
}

.input-ghost:focus {
  outline: none;
  border-bottom-color: #bb0019;
  box-shadow: 0 1px 0 0 #bb0019;
}

.input-ghost::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.checkbox-custom {
  appearance: none;
  background-color: transparent;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.15em;
  display: grid;
  place-content: center;
}

.checkbox-custom::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #bb0019;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-custom:checked::before {
  transform: scale(1);
}

/* New product slider  */
.hero-product-slider__star-badge {
  clip-path: polygon(
    50% 0%,
    61% 16%,
    80% 12%,
    84% 30%,
    100% 41%,
    91% 58%,
    98% 77%,
    81% 85%,
    72% 100%,
    53% 94%,
    35% 100%,
    25% 84%,
    6% 77%,
    14% 59%,
    0% 42%,
    18% 30%,
    20% 11%,
    39% 15%
  );
  transition: background-color 0.5s ease;
}

@keyframes hero-product-slider__spin-slow {
  from {
    transform: translate(-50%, -60%) scale(1.2) rotate(0deg);
  }
  to {
    transform: translate(-50%, -60%) scale(1.2) rotate(360deg);
  }
}

.hero-product-slider__animate-spin-slow {
  animation: hero-product-slider__spin-slow 20s linear infinite;
}

.hero-product-slider__hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hero-product-slider__hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-product-slider__item {
  transition: all 0.5s ease;
}

.hero-product-slider__item.active {
  transform: scale(1.1);
  z-index: 10;
}

.hero-product-slider__item.active .hero-product-slider__star-badge-container {
  opacity: 1;
}

.hero-product-slider__star-badge-container {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* text animated section */
  @keyframes splitSlideTop {
            0% { transform: translateX(-100%); opacity: 0; }
            15%, 85% { transform: translateX(0); opacity: 1; }
            100% { transform: translateX(100%); opacity: 0; }
        }
        
        @keyframes splitSlideBottom {
            0% { transform: translateX(100%); opacity: 0; }
            15%, 85% { transform: translateX(0); opacity: 1; }
            100% { transform: translateX(-100%); opacity: 0; }
        }

        .split-text-top {
            clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
            animation: splitSlideTop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
            opacity: 0;
        }
        
        .split-text-bottom {
            clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
            animation: splitSlideBottom 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
            opacity: 0;
        }

        #text-top-1 { animation-delay: 0s; }
        #text-bottom-1 { animation-delay: 0.1s; }
        #text-top-2 { animation-delay: 0.2s; }
        #text-bottom-2 { animation-delay: 0.3s; }
        #text-top-3 { animation-delay: 0.4s; }
        #text-bottom-3 { animation-delay: 0.5s; }
        #text-top-4 { animation-delay: 0.6s; }
        #text-bottom-4 { animation-delay: 0.7s; }
        
        .parallax-image {
            transition: transform 0.1s ease-out;
        }

/* news section */
 .baker-news-section-container {
            display: flex;
            height: 600px;
            gap: 8px;
            overflow: hidden;
            border-radius: 1.5rem;
            padding: 0 24px;
        }

        .baker-news-section-card {
            flex: 0 0 48px;
            border-radius: 1rem;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
        }

        .baker-news-section-card.active {
            flex: 1 1 70%;
        }

        .baker-news-section-label {
            position: absolute;
            top: 50%;
            left: 24px;
            transform: translateY(-50%) rotate(-90deg);
            transform-origin: left center;
            white-space: nowrap;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            transition: opacity 0.3s ease;
        }
        
        .baker-news-section-card.active .baker-news-section-label {
            opacity: 0;
            pointer-events: none;
        }

        .baker-news-section-content {
            opacity: 0;
            width: 100%;
            height: 100%;
            display: flex;
            padding: 24px;
            gap: 24px;
            transition: opacity 0.4s ease 0.1s;
            pointer-events: none;
        }

        .baker-news-section-card.active .baker-news-section-content {
            opacity: 1;
            pointer-events: auto;
        }

        .baker-news-section-image {
            flex: 1;
            border-radius: 0.75rem;
            overflow: hidden;
            position: relative;
        }

        .baker-news-section-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .baker-news-section-text {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .baker-news-section-title {
          font-family: Playfair Display;
            font-size: 3rem;
            line-height: 1;
            font-weight: 800;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

