

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.4);
  }

  50% {
    box-shadow: 0 0 25px rgba(139, 0, 0, 0.6);
  }
}

@keyframes float-up {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes scroll-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tier-settle {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
    filter: blur(6px);
  }

  65% {
    opacity: 1;
    transform: translateY(-3px) scale(1.005);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes garnish-settle {
  0% {
    opacity: 0;
    transform: translate(-50%, -15px) scale(0.7);
  }

  75% {
    opacity: 1;
    transform: translate(-50%, 54%) scale(1.06);
  }

  100% {
    opacity: 1;
    transform:
      translate(-50%, 50%)
      rotate(var(--rotation));
  }
}

@keyframes flame {
  from {
    transform: translateX(-50%) rotate(-4deg) scale(0.93);
  }

  to {
    transform: translateX(-50%) rotate(5deg) scale(1.06);
  }
}

/* 
   VARIABLES AND RESET
    */

:root {
  --bg: #ffffff;
  --muted: #6b6b6b;
  --accent-deep-red: #8b0000;
  --accent-royal-blue: #4169e1;
  --accent-2: #f5e9ea;
  --dark: #111111;

  --studio-ink: #2d201a;
  --studio-muted: #78675e;
  --studio-wine: #812839;
  --studio-gold: #b98a42;
  --studio-cream: #fffaf1;
  --studio-border: rgba(75, 43, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background:
    linear-gradient(
      180deg,
      #f4e4c1 0%,
      #e8d4a2 50%,
      #faf3e0 100%
    );
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  max-width: 100%;
}

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

.section[id],
.hero[id] {
  scroll-margin-top: 96px;
}

/* 
   HEADER
    */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(90, 55, 32, 0.08);
  background: rgba(244, 228, 193, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin: 0;
  color: var(--accent-deep-red);
  font-family: "Playfair Display", serif;
  font-size: 2 rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 1rem;
  color: var(--dark);
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.nav a:hover {
  color: var(--accent-deep-red);
  transform: translateY(-2px);
}

.nav a.cta {
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  color: white;
  background: var(--accent-deep-red);
}

.nav a.cta:hover {
  color: white;
  background: var(--accent-royal-blue);
  box-shadow: 0 6px 18px rgba(65, 105, 225, 0.25);
}

/* 
   HERO
    */

.hero {
  padding: 4rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  animation: fade-in-up 0.6s ease;
}

.hero-copy h2 {
  margin: 0 0 0.5rem;
  color: var(--accent-deep-red);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.08;
}

.lead {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-image {
  animation: fade-in-up 0.8s ease 0.2s backwards;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(40, 25, 18, 0.12);
  transition: transform 0.45s ease;
}

.hero-image:hover img {
  transform: scale(1.035);
}

/* 
   GENERAL SECTIONS
    */

.section {
  padding: 4rem 0;
}

.section.alt {
  background: linear-gradient(180deg, #fef9f0, #f9f1e8);
}

.section-title {
  margin: 0 0 0.25rem;
  color: var(--accent-deep-red);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}

.section-sub {
  margin: 0 0 1.25rem;
  color: #666;
  line-height: 1.65;
}

.scroll-reveal{
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.scroll-fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 
   BUTTONS
    */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-primary {
  color: white;
  background: var(--accent-royal-blue);
}

.btn-primary:hover {
  color: white;
  background: var(--accent-deep-red);
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(139, 0, 0, 0.16);
  color: var(--accent-deep-red);
  background: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  border-color: var(--accent-deep-red);
  background: var(--accent-2);
  transform: translateY(-2px);
}

/* 
   FLAVOUR CARDS
    */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(75, 43, 30, 0.07);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(45, 28, 20, 0.12);
  text-align: left;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(139, 0, 0, 0.25);
  box-shadow: 0 18px 38px rgba(80, 40, 30, 0.15);
  transform: translateY(-9px);
}

.card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover img {
  transform: scale(1.07);
}

.card h4 {
  margin: 0;
  padding: 0.85rem 1rem 0;
  font-size: 1.05rem;
}

.card p {
  margin: 0.3rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.flavors-slider-wrapper {
  position: relative;
  margin: 0 -2rem;
  padding: 0 2rem;
}

.flavors-slider {
  display: flex;
  gap: 2rem;
  overflow-x: hidden;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.flavors-slider .card {
  flex: 0 0 280px;
  min-width: 280px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--accent-royal-blue);
  box-shadow: 0 8px 22px rgba(45, 35, 30, 0.18);
  font-size: 1.4rem;
  transform: translateY(-50%);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.slider-btn:hover {
  background: var(--accent-deep-red);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

/* 
   TYPES
    */

.types-row {
  display: flex;
  gap: 1.25rem;
}

.type {
  flex: 1;
  padding: 1.25rem;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.type:hover {
  color: white;
  background:
    linear-gradient(
      135deg,
      var(--accent-deep-red),
      var(--accent-royal-blue)
    );
  box-shadow: 0 12px 28px rgba(139, 0, 0, 0.2);
  transform: translateY(-5px);
}

.type:hover h4,
.type:hover p {
  color: white;
}

/* 
   PREMIUM CAKE STUDIO
    */

#custom {
  padding-top: 5rem;
}

.studio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.studio-header > div {
  max-width: 710px;
}

.studio-header .section-title {
  color: var(--studio-ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.studio-header .section-sub {
  margin-top: 0.75rem;
  color: var(--studio-muted);
}

#randomizeCake {
  flex-shrink: 0;
  border-color: var(--studio-border);
  color: var(--studio-wine);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(59, 35, 25, 0.06);
}

.cake-studio {
  display: grid;
  grid-template-columns:
    minmax(0, 1.16fr)
    minmax(340px, 0.84fr);
  gap: 1.35rem;
  align-items: start;
}

/* Stage */

.studio-stage-panel {
  padding: 10px;
  border: 1px solid var(--studio-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 25px 70px rgba(74, 45, 30, 0.12);
  backdrop-filter: blur(18px);
}

.studio-stage {
  --light-x: 50%;
  --light-y: 20%;

  position: relative;
  display: flex;
  min-height: 570px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at var(--light-x) var(--light-y),
      rgba(255, 255, 255, 1),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #fffaf1,
      #f1ddc3 65%,
      #dfc2a2
    );
  isolation: isolate;
}

.studio-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(
      rgba(100, 70, 50, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(100, 70, 50, 0.07) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  mask-image: linear-gradient(#000, transparent 85%);
}

.studio-stage::after {
  content: "";
  position: absolute;
  bottom: -32%;
  left: 50%;
  z-index: -1;
  width: 125%;
  height: 62%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  transform: translateX(-50%);
}

.studio-stage-light,
.studio-shadow {
  display: none;
}

.studio-plate {
  position: relative;
  display: flex;
  width: min(100%, 560px);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
}

.cake-preview {
  --pointer-x: 0deg;
  --pointer-y: 0deg;

  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  isolation: isolate;
}

.cake-canvas {
  width: 100%;
  height: 100%;
}

.studio-live {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--studio-muted);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(60, 40, 25, 0.08);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
}

.studio-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5da36e;
  box-shadow: 0 0 0 4px rgba(93, 163, 110, 0.15);
}

/* Price */

.price-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.65rem 0.2rem 0.15rem;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  background: transparent;
}

.price-banner span {
  color: var(--studio-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-banner strong {
  color: var(--studio-ink);
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
}

/* Studio controls */

.studio-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--studio-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 25px 70px rgba(74, 45, 30, 0.1);
}

.option-group {
  min-width: 0;
}

.option-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--studio-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.option-group select,
.option-group input {
  width: 100%;
  min-height: 47px;
  padding: 10px 13px;
  border: 1px solid var(--studio-border);
  border-radius: 13px;
  outline: none;
  color: var(--studio-ink);
  background: #fffdf9;
  box-shadow: 0 5px 16px rgba(60, 38, 25, 0.035);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.option-group select:hover,
.option-group input:hover {
  border-color: rgba(129, 40, 57, 0.3);
}

.option-group select:focus,
.option-group input:focus {
  border-color: var(--studio-wine);
  box-shadow: 0 0 0 4px rgba(129, 40, 57, 0.09);
  transform: translateY(-1px);
}

.option-group:has(.topping-tray),
.selected-toppings,
#addToCart {
  grid-column: 1 / -1;
}

.option-group:has(.topping-tray) {
  padding-top: 0.35rem;
}

.topping-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topping-chip {
  position: relative;
  padding: 9px 13px;
  border: 1px solid var(--studio-border);
  border-radius: 11px;
  color: #76645a;
  background: #fffdf9;
  font-size: 12px;
  font-weight: 600;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.topping-chip:hover {
  border-color: rgba(129, 40, 57, 0.35);
  color: var(--studio-wine);
  background: #fff7f1;
  transform: translateY(-2px);
}

.topping-chip.active {
  border-color: var(--studio-wine);
  color: white;
  background: var(--studio-wine);
  box-shadow: 0 9px 20px rgba(129, 40, 57, 0.2);
  transform: translateY(-2px);
}

.selected-toppings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 0;
}

.selected-topping-chip {
  display: none;
}

#addToCart {
  min-height: 51px;
  border-radius: 14px;
  background: var(--studio-ink);
  box-shadow: 0 13px 27px rgba(45, 32, 26, 0.2);
  animation: none;
}

#addToCart:hover {
  background: var(--studio-wine);
  box-shadow: 0 15px 30px rgba(129, 40, 57, 0.22);
}

/* 
   PREMIUM CSS CAKE
    */

.premium-cake {
  position: relative;
  width: 100%;
  height: 100%;
  transform:
    rotateX(var(--pointer-y))
    rotateY(var(--pointer-x))
    scale(var(--cake-size));
  transform-origin: 50% 68%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pc-aura {
  position: absolute;
  top: 8%;
  left: 14%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.25) 42%,
      transparent 70%
    );
  filter: blur(5px);
}

.pc-shadow {
  position: absolute;
  bottom: 11%;
  left: 50%;
  width: 68%;
  height: 10%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      rgba(62, 35, 24, 0.32),
      rgba(62, 35, 24, 0.12) 48%,
      transparent 72%
    );
  filter: blur(11px);
  transform: translateX(-50%);
}

.pc-plate {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: 84%;
  height: 20%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 50% 38%,
      #fff 0 46%,
      #e9dfd1 48% 62%,
      #fff 64% 73%,
      #c5b39d 75%
    );
  box-shadow:
    0 28px 32px rgba(65, 38, 23, 0.16),
    inset 0 4px 6px #fff;
  transform: translateX(-50%) rotateX(64deg);
}

.pc-tier-shell {
  position: absolute;
  bottom: var(--bottom);
  left: 50%;
  z-index: var(--z);
  width: var(--width);
  height: var(--height);
  transform: translateX(-50%);
}

.pc-tier {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
}

.pc-tier-side {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8% 8% 12% 12% / 12% 12% 17% 17%;
  background:
    linear-gradient(
      90deg,
      var(--cake-dark),
      var(--cake-base) 15%,
      var(--cake-light) 55%,
      var(--cake-base)
    );
  box-shadow:
    inset 0 -13px 20px rgba(65, 31, 18, 0.13),
    inset 0 5px 12px rgba(255, 255, 255, 0.24),
    0 17px 22px rgba(65, 36, 23, 0.16);
}

.pc-tier-side::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 5px,
      rgba(255, 255, 255, 0.35) 6px,
      transparent 7px
    );
}

.pc-tier-top {
  position: absolute;
  top: -18%;
  left: 0;
  width: 100%;
  height: 38%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 52% 28%,
      var(--cake-light),
      var(--cake-base) 60%,
      var(--cake-dark)
    );
  box-shadow:
    inset 0 8px 12px rgba(255, 255, 255, 0.35),
    inset 0 -8px 10px rgba(60, 28, 17, 0.13);
}

.pc-frosting {
  position: absolute;
  top: -21%;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 35%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 50% 25%,
      var(--frost-light),
      var(--frost-mid) 63%,
      var(--frost-dark)
    );
  box-shadow:
    inset 0 8px 10px rgba(255, 255, 255, 0.4),
    0 6px 8px rgba(60, 30, 20, 0.13);
}

.pc-drip {
  position: absolute;
  top: 65%;
  width: 9%;
  border-radius: 0 0 999px 999px;
  background:
    linear-gradient(
      90deg,
      var(--frost-dark),
      var(--frost-mid),
      var(--frost-light)
    );
}

.pc-drip:nth-child(1) {
  left: 8%;
  height: 38%;
}

.pc-drip:nth-child(2) {
  left: 25%;
  height: 61%;
}

.pc-drip:nth-child(3) {
  left: 47%;
  height: 43%;
}

.pc-drip:nth-child(4) {
  left: 68%;
  height: 66%;
}

.pc-drip:nth-child(5) {
  left: 85%;
  height: 36%;
}

.premium-cake[data-frosting="fondant"] .pc-drip {
  display: none;
}

.premium-cake[data-frosting="fondant"] .pc-tier-side {
  background:
    linear-gradient(
      100deg,
      var(--frost-dark),
      var(--frost-mid) 20%,
      var(--frost-light) 56%,
      var(--frost-mid)
    );
}

.pc-finish {
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  pointer-events: none;
}

.premium-cake[data-finish="modern"] .pc-finish {
  border-bottom: 3px solid rgba(187, 142, 65, 0.8);
  background:
    linear-gradient(
      112deg,
      transparent 48%,
      rgba(187, 142, 65, 0.65) 49% 51%,
      transparent 52%
    );
}

.premium-cake[data-finish="celebration"] .pc-finish {
  background-image:
    radial-gradient(
      circle at 20% 40%,
      #d5a344 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 70% 65%,
      #fff 0 2px,
      transparent 3px
    );
  background-size: 29px 27px, 34px 32px;
}

/* Cake decorations */

.pc-garnish {
  position: absolute;
  bottom: var(--y);
  left: var(--x);
  z-index: 60;
  display: block;
  filter: drop-shadow(0 4px 3px rgba(55, 28, 18, 0.22));
  transform:
    translate(-50%, 50%)
    rotate(var(--rotation));
}

.pc-berry {
  width: 15px;
  height: 15px;
  border-radius: 48% 52% 55% 45%;
  background:
    radial-gradient(
      circle at 30% 25%,
      #ffb0aa,
      #d72f43 30%,
      #8c1320
    );
}

.pc-berry::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 3px;
  width: 9px;
  height: 6px;
  background: #5d8846;
  clip-path:
    polygon(
      50% 100%,
      0 0,
      45% 25%,
      68% 0,
      100% 35%
    );
}

.pc-sprinkle {
  width: 10px;
  height: 3px;
  border-radius: 9px;
  background: var(--sprinkle-color);
}

.pc-macaron {
  width: 21px;
  height: 12px;
  border-radius: 50%;
  background:
    linear-gradient(
      #e8b8a2 0 39%,
      #fff4e8 40% 57%,
      #c78973 58%
    );
}

.pc-chocolate {
  width: 17px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(135deg, #7c4938, #351713);
  box-shadow: inset 5px 0 rgba(255, 255, 255, 0.08);
}

.pc-flower {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #d7a83b 0 15%,
      transparent 16%
    ),
    radial-gradient(
      ellipse at 50% 15%,
      #e496af 0 22%,
      transparent 23%
    ),
    radial-gradient(
      ellipse at 85% 50%,
      #d47798 0 22%,
      transparent 23%
    ),
    radial-gradient(
      ellipse at 50% 85%,
      #efa6bc 0 22%,
      transparent 23%
    ),
    radial-gradient(
      ellipse at 15% 50%,
      #d97c9d 0 22%,
      transparent 23%
    );
}

.pc-gold {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4a648;
  box-shadow: 0 0 6px rgba(255, 220, 125, 0.9);
}

.pc-candle {
  width: 6px;
  height: 31px;
  border-radius: 3px 3px 1px 1px;
  background:
    repeating-linear-gradient(
      135deg,
      #f5d8dc 0 5px,
      #bf6879 6px 10px
    );
  transform: translate(-50%, 50%);
}

.pc-candle::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 9px;
  height: 14px;
  border-radius: 70% 30% 65% 35%;
  background:
    radial-gradient(
      circle at 50% 68%,
      #fff4b3 0 14%,
      #f2aa3d 33%,
      #d95f27 70%,
      transparent 72%
    );
  filter: drop-shadow(0 0 5px rgba(255, 170, 65, 0.8));
  transform-origin: 50% 100%;
  animation: flame 1.1s ease-in-out infinite alternate;
}

/* Cake message */

.pc-message {
  position: absolute;
  bottom: 23%;
  left: 50%;
  z-index: 75;
  max-width: 48%;
  text-align: center;
  transform: translateX(-50%);
}

.pc-message span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 12px;
  border: 1px solid rgba(185, 138, 66, 0.55);
  border-radius: 999px;
  color: #704836;
  background: linear-gradient(#fffef8, #ecdbbf);
  box-shadow:
    0 7px 16px rgba(60, 32, 22, 0.14),
    inset 0 1px #fff;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-message.font-script span {
  font-family: "Great Vibes", cursive;
  font-size: 20px;
}

.pc-message.font-elegant span {
  font-family: "Playfair Display", serif;
}

.pc-message.font-modern span {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pc-message.font-bold span {
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Cake change animations */

.premium-cake.is-changing .pc-tier {
  animation:
    tier-settle
    0.65s
    cubic-bezier(0.18, 0.89, 0.25, 1.16)
    both;
  animation-delay: var(--delay);
}

.premium-cake.is-changing .pc-garnish {
  animation:
    garnish-settle
    0.5s
    cubic-bezier(0.18, 0.89, 0.3, 1.2)
    both;
  animation-delay: var(--garnish-delay);
}

/* Existing font helpers */

.font-script {
  font-family: "Great Vibes", cursive;
}

.font-elegant {
  font-family: "Playfair Display", serif;
}

.font-modern {
  font-family: "Poppins", sans-serif;
}

.font-bold {
  font-family: "Cinzel", serif;
}

/* 
   CUSTOM GALLERY / FORM
    */

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: start;
}

.custom-gallery img {
  width: 100%;
  height: 240px;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  object-fit: cover;
  animation: float-up 3s ease-in-out infinite;
}

.custom-gallery img:nth-child(2) {
  animation-delay: 0.4s;
}

.custom-form label {
  display: block;
  margin-bottom: 0.75rem;
}

.custom-form input,
.custom-form textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #eee;
  border-radius: 8px;
}

.custom-form input:focus,
.custom-form textarea:focus {
  outline: none;
  border-color: var(--accent-royal-blue);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* 
   ORDER SECTION
    */

.order-section {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 35px rgba(26, 166, 63, 0.09);
}

.order-items {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.order-item {
  opacity: 0;
  padding: 1.25rem;
  border: 2px solid #eee;
  border-radius: 14px;
  background: #f9f9f9;
  cursor: pointer;
  animation: scroll-fade-in 0.6s ease-out forwards;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.order-item:nth-child(1) {
  animation-delay: 0.1s;
}

.order-item:nth-child(2) {
  animation-delay: 0.2s;
}

.order-item:nth-child(3) {
  animation-delay: 0.3s;
}

.order-item:nth-child(4) {
  animation-delay: 0.4s;
}

.order-item:nth-child(5) {
  animation-delay: 0.5s;
}

.order-item:nth-child(6) {
  animation-delay: 0.6s;
}

.order-item:hover {
  border-color: var(--accent-deep-red);
  box-shadow: 0 10px 26px rgba(139, 0, 0, 0.14);
  transform: translateY(-5px);
}

.order-item img {
  width: 100%;
  height: 150px;
  margin-bottom: 0.75rem;
  border-radius: 9px;
  object-fit: cover;
}

.order-item h4 {
  margin: 0.5rem 0 0;
  color: var(--accent-deep-red);
}

.order-item .price {
  margin-top: 0.5rem;
  color: var(--accent-royal-blue);
  font-size: 1.1rem;
  font-weight: 600;
}

.order-item.selected {
  border-color: var(--accent-royal-blue);
  background: rgba(65, 105, 225, 0.05);
}

/* Cart */

.cart-summary {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  color: white;
  background:
    linear-gradient(
      135deg,
      rgba(232, 47, 14, 0.96),
      rgba(65, 225, 134, 0.96)
    );
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.cart-summary h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.cart-card {
  margin: 0.75rem 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.cart-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.cart-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.cart-card__meta span {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.28);
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-form {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 14px;
  color: var(--dark);
  background: #f9f9f9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.checkout-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.checkout-form input {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem;
  border: 1px solid #ddd;
  border-radius: 7px;
}

/* 
   MODAL
    */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
}

.modal.active {
  display: flex;
  animation: fade-in-up 0.3s ease;
}

.modal-content {
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  border-radius: 20px;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  margin: 0;
  color: var(--accent-deep-red);
  font-size: 1.8rem;
}

.close-btn {
  border: 0;
  color: var(--accent-deep-red);
  background: none;
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.15);
}

.cake-designer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.designer-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.designer-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-cake {
  display: flex;
  width: 280px;
  height: 280px;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ddd;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.preview-cake svg {
  width: 100%;
  height: 100%;
}

.designer-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.designer-actions .btn {
  flex: 1;
}

/* 
   FOOTER
    */

.footer-cta {
  border-top: 1px solid #d4c5a0;
  background:
    linear-gradient(
      90deg,
      #f4e4c1,
      #e8d4a2
    );
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
}

.site-footer {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c9c9c9;
  background: #161616;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-branding,
.footer-bakery-info {
  max-width: 420px;
}

.footer-branding p,
.footer-bakery-info p {
  margin: 0.25rem 0;
}

.footer-bakery-info strong {
  color: white;
}

/* 
   RESPONSIVE — TABLET
    */

@media screen and (max-width: 900px) {
  .hero-inner,
  .custom-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    height: 380px;
  }

  .cake-studio {
    grid-template-columns: 1fr;
  }

  .studio-stage {
    min-height: 520px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .types-row {
    flex-wrap: wrap;
  }

  .type {
    flex: 1 1 45%;
  }

  .studio-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cake-designer {
    grid-template-columns: 1fr;
  }

  .order-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* 
   RESPONSIVE — MOBILE
    */

@media screen and (max-width: 600px) {
  .container {
    padding: 1.15rem;
  }

  .site-header {
    padding: 0.7rem 0;
  }

  .header-inner {
    align-items: flex-start;
    gap: 0.8rem;
  }

  .brand {
    font-size: 1.3rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.65rem;
  }

  .nav a {
    margin: 0;
    font-size: 0.78rem;
  }

  .nav a.cta {
    padding: 0.45rem 0.7rem;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero-copy h2 {
    font-size: 2.15rem;
  }

  .hero-image img {
    height: 230px;
  }

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

  .flavors-slider-wrapper {
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .flavors-slider {
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }


  .flavors-slider::-webkit-scrollbar {
    display: none;
  }

  .flavors-slider .card {
    flex-basis: 82%;
    min-width: 82%;
    scroll-snap-align: center;
  }

  .slider-btn {
    display: none;
  }

  .types-row {
    flex-direction: column;
  }

  #custom {
    padding-top: 3rem;
  }

  .studio-header .section-title {
    font-size: 2.25rem;
  }

  .studio-stage-panel {
    padding: 6px;
    border-radius: 22px;
  }

  .studio-stage {
    min-height: 400px;
    border-radius: 18px;
  }

  .studio-live {
    top: 12px;
    left: 12px;
  }

  .studio-controls {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
  }

  .option-group:has(.topping-tray),
  .selected-toppings,
  #addToCart {
    grid-column: 1;
  }

  .price-banner {
    flex-direction: row;
    align-items: center;
  }

  .pc-message {
    bottom: 22%;
    max-width: 58%;
  }

  .order-section {
    padding: 1rem;
  }

  .order-items {
    grid-template-columns: 1fr;
  }

  .footer-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* 
   ACCESSIBILITY
    */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .premium-cake,
  .pc-tier,
  .pc-garnish,
  .pc-candle::before,
  .scroll-reveal,
  .scroll-fade-in {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===========================================
   OUR MASTERPIECES
=========================================== */

.masterpieces-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

    margin-top:40px;

}

.masterpiece-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.35s;

    display:flex;

    flex-direction:column;

}

.masterpiece-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(0,0,0,.18);

}

.masterpiece-card img{

    width:100%;

    height:330px;

    object-fit:contain;

    transition:.45s;

    display:block;

}

.masterpiece-card:hover img{

    transform:scale(1.08);

}

.masterpiece-content{

    padding:18px;

    text-align:center;

    background:#fff;

}

.masterpiece-category{

    display:inline-block;

    background:#ffedf4;

    color:#d63384;

    padding:6px 14px;

    border-radius:50px;

    font-size:.8rem;

    font-weight:600;

    margin-bottom:12px;

}

.masterpiece-content h4{

    margin-bottom:10px;

    color:#4b2e2e;

}

.masterpiece-btn{

    margin-top:18px;

    width:100%;

    padding:12px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    color:white;

    background:#8d1d2d;

    transition:.3s;

}

.masterpiece-btn:hover{

    background:#b52a3c;

    transform:translateY(-2px);

}
.cart-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:10px;

}

.cart-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:12px;

}

.remove-btn{

    background:#c62828;

    color:#fff;

    border:none;

    border-radius:8px;

    padding:8px 18px;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:all .3s ease;

    box-shadow:0 4px 12px rgba(198,40,40,.25);

}

.remove-btn:hover{

    background:#a81d1d;

    transform:translateY(-2px);

    box-shadow:0 8px 18px rgba(198,40,40,.35);

}

.remove-btn:active{

    transform:scale(.96);

}
.masterpiece-info{

    margin:10px 0 18px;

    color:#777;

    font-size:.95rem;

}

.masterpiece-bottom{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:18px;

    padding-top:15px;

    border-top:1px solid rgba(0,0,0,.08);

}

.masterpiece-price{

    font-size:1.35rem;

    font-weight:700;

    color:#8b0000;

    font-family:"Playfair Display", serif;

}

.masterpiece-btn{

    border:1px solid #8b0000;

    background:#fff;

    color:#8b0000;

    padding:10px 18px;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.masterpiece-btn:hover{

    background:#8b0000;

    color:#fff;

}
/* ===========================
   RESPONSIVE NAVBAR
=========================== */

.menu-toggle{

    display:none;

    font-size:1.8rem;

    background:none;

    border:none;

    cursor:pointer;

    color:var(--accent-deep-red);

}

@media(max-width:768px){

    .menu-toggle{

        display:block;

    }

    .nav{

        position:absolute;

        top:70px;

        left:0;

        width:100%;

        background:#fff;

        display:none;

        flex-direction:column;

        padding:1rem 0;

        box-shadow:0 10px 25px rgba(0,0,0,.15);

    }

    .nav.show{

        display:flex;

    }

    .nav a{

        margin:12px 0;

        text-align:center;

    }

}