/* ===========================================================
   Sweetisserie — Cakes Page Styles
   =========================================================== */

/* ---- Hero slideshow ---- */
.hero--slideshow {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0;
}

/* ---- Standalone slideshow section ---- */
.cake-slideshow-section {
  padding: 4rem 0;
  background: var(--sw-cream);
  overflow: hidden;
}

.slideshow-frame {
  position: relative;
  max-width: 50%;
  margin: 0 auto;
  overflow: visible;
}

.slideshow {
  display: flex;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

.slideshow__slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  padding: 0 12px;
  opacity: .3;
  transition: opacity .7s ease, transform .7s ease;
  transform: scale(.88);
}

.slideshow__slide.active {
  opacity: 1;
  transform: scale(1);
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .35) 0%,
    rgba(0, 0, 0, .55) 100%
  );
  z-index: 1;
  display: none;
}

.hero--slideshow .hero__overlay {
  display: block;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 2rem 1.5rem;
}

.hero--slideshow .hero__tagline,
.hero--slideshow .hero__title,
.hero--slideshow .hero__description {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero--slideshow .hero__tagline {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: .5rem;
  opacity: .85;
}

.hero--slideshow .hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero--slideshow .hero__description {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .9;
  margin-bottom: 1.5rem;
}

.hero--slideshow .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.hero--slideshow .btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

/* Slideshow dots */
.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
  position: relative;
  z-index: 3;
}

.slideshow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--sw-primary, #c8a246);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s, border-color .3s;
}

.slideshow__dot:hover {
  border-color: var(--sw-text, #3a2a0a);
}

.slideshow__dot.active {
  background: var(--sw-primary, #c8a246);
  border-color: var(--sw-primary, #c8a246);
}

/* Slideshow arrows */
.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, opacity .25s;
  opacity: .7;
  backdrop-filter: blur(6px);
}

.slideshow-frame:hover .slideshow__arrow {
  opacity: 1;
}

.slideshow__arrow:hover {
  background: rgba(0, 0, 0, .6);
}

.slideshow__arrow--prev {
  left: calc(12px + .75rem);
}

.slideshow__arrow--next {
  right: calc(12px + .75rem);
}

/* ---- Cake intro ---- */
.cake-intro {
  padding: var(--section-padding);
  background: var(--sw-white);
  text-align: center;
}

.cake-intro__inner {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Pricing badges */
.cake-pricing {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cake-pricing__card {
  background: var(--sw-cream);
  border: 1px solid var(--sw-border);
  border-radius: 14px;
  padding: 1.25rem 2rem;
  text-align: center;
  min-width: 140px;
}

.cake-pricing__size {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sw-text);
  margin-bottom: .25rem;
}

.cake-pricing__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sw-primary);
}

/* ---- Cake category sections ---- */
.cake-category {
  padding: var(--section-padding);
  background: var(--sw-cream);
}

.cake-category--alt {
  background: var(--sw-white);
}

.cake-category__header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ---- Cake grid ---- */
.cake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

/* ---- Individual cake card ---- */
.cake-card {
  background: var(--sw-card);
  border: 1px solid var(--sw-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.cake-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.cake-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sw-cream-dark);
}

.cake-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.cake-card:hover .cake-card__img img {
  transform: scale(1.04);
}

/* Placeholder for cakes without photos */
.cake-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sw-cream) 0%, var(--sw-cream-dark) 100%);
}

.cake-card__img--placeholder span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sw-text-muted);
  opacity: .6;
  text-align: center;
  padding: 1rem;
}

.cake-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.cake-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sw-text);
  margin-bottom: .35rem;
}

.cake-card__desc {
  font-size: .85rem;
  color: var(--sw-text-muted);
  line-height: 1.65;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {

@media (max-width: 768px) {
  .slideshow-frame {
    max-width: 70%;
  }

  .slideshow__slide {
    aspect-ratio: 4 / 3;
  }

  .slideshow__slide img {
    border-radius: 14px;
  }

  .cake-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
  }

  .cake-pricing {
    gap: 1rem;
  }

  .cake-pricing__card {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .slideshow-frame {
    max-width: 85%;
  }

  .slideshow__slide {
    padding: 0 6px;
  }

  .slideshow__slide img {
    border-radius: 10px;
  }

  .hero__content {
    padding: 1.5rem 1rem;
  }

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

  .cake-card__body {
    padding: .85rem 1rem 1rem;
  }

  .cake-card__name {
    font-size: .95rem;
  }

  .cake-card__desc {
    font-size: .8rem;
  }
}