.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);
      }


