@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");
:root {
  --rose: #ae716d;
  --rose-dark: #7c4847;
  --pink: #f4d9d8;
  --cream: #fffaf7;
  --ink: #442e2c;
  --muted: #786562;
  --line: #ead9d5;
  --white: #fff;
  --shadow: 0 16px 45px #764a4017;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.65 "DM Sans",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1150px, calc(100% - 38px));
  margin: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fffaf7ed;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    700 22px "Playfair Display",
    Georgia,
    serif;
  color: var(--rose-dark);
}
.brand img {
  height: 55px;
  width: 66px;
  object-fit: contain;
  border-radius: 9px;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav a {
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--rose);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--rose-dark);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--rose);
  border-radius: 100px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.25s,
    background 0.25s,
    box-shadow 0.25s;
  text-align: center;
}
.btn:hover {
  background: var(--rose-dark);
  transform: translateY(-3px);
  box-shadow: 0 9px 20px #764a402c;
}
.btn.outline {
  background: transparent;
  color: var(--rose-dark);
}
.btn.outline:hover {
  background: var(--pink);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(36px, 5.5vw, 68px);
}
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}
h3 {
  font-size: 23px;
}
p {
  margin: 0 0 18px;
}
.muted {
  color: var(--muted);
}
.section {
  padding: 84px 0;
}
.section.soft {
  background: #f9edeb;
}
.section-head {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 36px;
}
.section-head p {
  color: var(--muted);
}
.hero {
  position: relative;
  min-height: 550px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #efd2d0, #fff6f2);
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  transition: opacity 0.6s;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 730px;
  padding: 90px 0;
}
.hero-content p {
  max-width: 540px;
  font-size: 18px;
}
.hero .controls {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
}
.round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #aa7674;
  background: #ffffffcc;
  color: var(--rose-dark);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #ba9692;
}
.dot.active {
  background: var(--rose-dark);
  transform: scale(1.2);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px #764a4008;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-photo {
  height: 220px;
  width: 100%;
  object-fit: cover;
  background: #f1dfda;
  transition: transform 0.4s;
}
.photo-wrap {
  overflow: hidden;
}
.card:hover .card-photo {
  transform: scale(1.045);
}
.card-body {
  padding: 22px;
}
.card-body h3 {
  font-size: 21px;
}
.price {
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 16px;
}
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-banner {
  background: linear-gradient(120deg, #f2d8d5, #fff7f2);
  padding: 78px 0;
  text-align: center;
}
.page-banner p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 30px;
}
.filter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 40px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
}
.filter.active {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.search {
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  max-width: 430px;
  background: #fff;
}
.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}
.icing-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.icing-list span:before {
  content: "✦ ";
  color: var(--rose);
}
.location-map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 12px;
  margin-top: 16px;
}
.footer {
  background: #432f2d;
  color: #fceae7;
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  flex-wrap: wrap;
}
.footer a:hover {
  text-decoration: underline;
}
.footer small {
  color: #d6bdb8;
}
.footer-logo {
  width: 80px;
  border-radius: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
}
.field input,
.field textarea,
.field select {
  border: 1px solid #dbc4c0;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  background: #fff;
}
.field.full {
  grid-column: 1/-1;
}
.order-modal {
  position: fixed;
  inset: 0;
  background: #291b1acb;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.order-modal.open {
  display: flex;
}
.modal-panel {
  background: var(--cream);
  width: min(640px, 100%);
  max-height: 94vh;
  overflow: auto;
  border-radius: 22px;
  padding: 25px;
  position: relative;
}
.close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  font-size: 30px;
}
.notice {
  padding: 16px;
  border-radius: 13px;
  background: #f8e8e5;
  font-size: 13px;
}
.order-status {
  margin-top: 14px;
  white-space: pre-line;
}
.small {
  font-size: 13px;
}
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s,
    transform 0.65s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.placeholder {
  background: linear-gradient(135deg, #f5ded9, #fef7f1);
  object-fit: cover;
}
.tag {
  display: inline-block;
  background: #f8e8e5;
  border-radius: 30px;
  padding: 5px 11px;
  font-size: 11px;
  color: var(--rose-dark);
  font-weight: 700;
}
.stack {
  display: grid;
  gap: 18px;
}
.center {
  text-align: center;
}
.mt {
  margin-top: 24px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  z-index: 999;
  padding: 10px;
}
@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fffaf7;
    padding: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open {
    display: flex;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .grid,
  .grid.two,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 520px;
  }
  .hero-content {
    padding: 65px 0 95px;
  }
  .section {
    padding: 56px 0;
  }
  .card-photo {
    height: 230px;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 52px;
    height: 46px;
  }
  .modal-panel {
    padding: 20px;
  }
  .icing-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Cake flavors are display-only, not form controls. */
.cake-flavors span {
  font-weight: 600;
}

/* ORIGINAL PINK-INSPIRED THEME — brighter blush pink and rose accents */
:root {
  --rose: #d96f98;
  --rose-dark: #a63e69;
  --pink: #ffd5e5;
  --cream: #fff8fc;
  --ink: #4d3040;
  --muted: #846574;
  --line: #f4d7e3;
  --shadow: 0 18px 48px #9d3b711f;
}
body {
  background: var(--cream);
}
.site-header {
  background: #fff8fcef;
  border-bottom-color: #f4d7e3;
}
.nav.open {
  background: #fff8fc;
}
.section.soft {
  background: #fff0f6;
}
.hero {
  background: linear-gradient(120deg, #ffd1e2, #fff7fb 72%);
}
.page-banner {
  background: linear-gradient(115deg, #ffd5e5, #fff8fc);
}
.footer {
  background: #59354a;
  color: #fff2f8;
}
.footer small {
  color: #f0ccdc;
}
.notice,
.tag {
  background: #ffe6f0;
}
.placeholder {
  background: linear-gradient(135deg, #f9d7e6, #fff6fb);
}
.btn:hover {
  box-shadow: 0 12px 25px #a63e6940;
}
.card {
  border-color: #f2dbe5;
  box-shadow: 0 4px 15px #9d3b710b;
}
/* More noticeable but gentle scroll animations */
.reveal {
  opacity: 0;
  transform: translate3d(0, 46px, 0) scale(0.975);
  filter: blur(5px);
  transition:
    opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.85s ease;
  will-change: opacity, transform, filter;
}
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
/* Stagger children in rows for a graceful cascading entrance */
.grid > .reveal:nth-child(3n + 2) {
  transition-delay: 0.1s;
}
.grid > .reveal:nth-child(3n + 3) {
  transition-delay: 0.2s;
}
/* Gentle section heading entrance */
.section-head.reveal {
  transform: translateY(32px);
}
.section-head.reveal.visible {
  transform: translateY(0);
}
/* Photo hover and interactive emphasis */
.card-photo {
  transition:
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.45s;
}
.card:hover .card-photo {
  transform: scale(1.09);
  filter: saturate(1.1);
}
.card:hover {
  transform: translateY(-9px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
@media (max-width: 600px) {
  .grid > .reveal {
    transition-delay: 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .section-head.reveal {
    opacity: 1;
    filter: none;
    transform: none;
    will-change: auto;
  }
  .card:hover .card-photo {
    transform: none;
    filter: none;
  }
  .card:hover {
    transform: none;
  }
}

/* Slideshow: show the original photos at full strength, without pink/white tint.
   The matching app.js removes the inline gradient applied by the slideshow. */
.hero {
  background: #fff7fb;
  isolation: isolate;
}
.hero::before,
.hero::after,
.hero .slide-bg::before,
.hero .slide-bg::after {
  content: none !important;
  display: none !important;
}
.hero .slide-bg {
  opacity: 1 !important;
  filter: none !important;
  background-blend-mode: normal !important;
  mix-blend-mode: normal !important;
  background-size: cover;
  background-position: center;
}
/* Text stays readable without a tint covering the photograph. */
.hero-content h1,
.hero-content p,
.hero-content .eyebrow {
  text-shadow:
    0 1px 4px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.75);
}

/* ============================================================
   CINNFUL BITES: READABLE SLIDESHOW TEXT / CLEAR ORIGINAL PHOTOS
   No photo-wide pink or white tint. Only a compact dark glass
   panel behind the copy for reliable contrast on every slide.
   ============================================================ */
.hero .slide-bg {
  opacity: 1 !important;
  filter: none !important;
  background-blend-mode: normal !important;
  mix-blend-mode: normal !important;
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  width: min(730px, calc(100% - 38px));
  max-width: 730px;
  margin-left: max(19px, calc((100% - 1150px) / 2));
  margin-right: auto;
  padding: 34px 38px;
  border-radius: 24px;
  background: rgba(36, 20, 30, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 55px rgba(30, 14, 23, 0.24);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.hero .hero-content h1,
.hero .hero-content p,
.hero .hero-content .eyebrow {
  color: #fff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.42) !important;
}
.hero .hero-content .eyebrow {
  color: #ffd6e8 !important;
}
.hero .hero-content .btn.outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}
.hero .hero-content .btn.outline:hover {
  background: rgba(255, 255, 255, 0.24);
}
.hero .hero-content .btn:focus-visible,
.hero .controls button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .hero .hero-content {
    width: calc(100% - 32px);
    margin: 20px 16px 75px;
    padding: 26px 22px;
    border-radius: 18px;
  }
  .hero .hero-content h1 {
    font-size: clamp(32px, 9vw, 46px);
  }
  .hero .hero-content p {
    font-size: 16px;
  }
}

/* ============================================================
   CINNFUL BITES — SOFT, COMPACT SLIDESHOW CAPTION
   Keeps slideshow photos fully visible; styles only the text panel.
   ============================================================ */
.hero .hero-content {
  width: min(580px, calc(100% - 48px));
  max-width: 580px;
  padding: 25px 30px;
  border-radius: 18px;
  background: rgba(46, 24, 35, 0.43);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(25, 12, 20, 0.13);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero .hero-content h1 {
  font-size: clamp(31px, 4.2vw, 53px);
  line-height: 1.14;
  margin-bottom: 10px;
}
.hero .hero-content p {
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.5;
  margin-bottom: 14px;
}
.hero .hero-content h1,
.hero .hero-content p,
.hero .hero-content .eyebrow {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}
.hero .hero-content .btn {
  padding: 10px 17px;
  font-size: 13px;
}
@media (max-width: 600px) {
  .hero {
    min-height: 470px;
  }
  .hero .hero-content {
    width: calc(100% - 36px);
    max-width: 410px;
    margin: 16px 18px 78px;
    padding: 18px 19px;
    border-radius: 15px;
    background: rgba(46, 24, 35, 0.48);
  }
  .hero .hero-content h1 {
    font-size: clamp(27px, 7.2vw, 37px);
    line-height: 1.16;
  }
  .hero .hero-content p {
    font-size: 14px;
    line-height: 1.45;
  }
  .hero .hero-content .eyebrow {
    font-size: 10px;
  }
  .hero .hero-content .btn {
    padding: 9px 14px;
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .hero .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
    padding: 16px;
  }
  .hero .hero-content h1 {
    font-size: 26px;
  }
}

/* Cinnful Bites: mobile-friendly order confirmation popup */
.cb-ready-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(38, 19, 31, 0.58);
}
.cb-ready-overlay.open {
  display: flex;
}
.cb-ready-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 32px 27px;
  background: #fff8fc;
  color: #4d3040;
  text-align: center;
  box-shadow: 0 20px 70px rgba(38, 19, 31, 0.25);
}
.cb-ready-close {
  position: absolute;
  right: 14px;
  top: 9px;
  border: 0;
  background: transparent;
  color: #78465c;
  font-size: 29px;
  cursor: pointer;
}
.cb-ready-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #dd5e91;
  color: white;
  font-size: 32px;
  font-weight: 700;
}
.cb-ready-card h2 {
  font-size: clamp(24px, 5vw, 30px);
  margin-bottom: 10px;
}
.cb-ready-lead {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.cb-ready-steps {
  text-align: left;
  max-width: 340px;
  margin: 0 auto 15px;
  padding-left: 28px;
  line-height: 1.7;
  font-size: 14px;
}
.cb-ready-steps li {
  padding-left: 5px;
  margin-bottom: 5px;
}
.cb-ready-note {
  font-size: 12px;
  color: #7d596b;
  margin-bottom: 16px;
}
.cb-ready-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cb-ready-buttons .btn {
  flex: 1 1 155px;
  white-space: normal;
  padding: 11px 12px;
}
.cb-ready-buttons .cb-copy-again {
  background: transparent;
  color: #a63e69;
}
.cb-ready-fallback {
  margin-top: 16px;
  text-align: left;
  font-size: 13px;
}
.cb-ready-fallback textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #e6a6c2;
  border-radius: 10px;
  padding: 10px;
}
@media (max-width: 480px) {
  .cb-ready-card {
    padding: 26px 18px;
    border-radius: 18px;
  }
  .cb-ready-buttons {
    flex-direction: column;
  }
  .cb-ready-buttons .btn {
    flex-basis: auto;
    width: 100%;
  }
}

/* Customized Cakes: tap thumbnails to view the entire original photo */
.cb-cake-thumb {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
  cursor: zoom-in;
}
.cb-cake-thumb .photo-wrap {
  display: block;
}
.cb-cake-thumb .card-photo {
  width: 100%;
  display: block;
}
.cb-cake-thumb:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: -3px;
}
.cb-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(38, 21, 31, 0.75);
  color: white;
  font:
    600 12px/1.4 "DM Sans",
    sans-serif;
  pointer-events: none;
}
.cb-lightbox[hidden] {
  display: none !important;
}
.cb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 12, 19, 0.94);
  display: grid;
  place-items: center;
  padding: 54px 54px 62px;
}
.cb-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  gap: 12px;
}
.cb-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100% - 42px);
  object-fit: contain;
  border-radius: 8px;
}
.cb-lightbox-caption {
  color: #fff;
  font:
    600 15px/1.4 "DM Sans",
    sans-serif;
  text-align: center;
}
.cb-lightbox button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cb-lightbox button:hover {
  background: rgba(255, 255, 255, 0.28);
}
.cb-lightbox button:focus-visible {
  outline: 3px solid #ffb5d2;
  outline-offset: 3px;
}
.cb-lightbox-close {
  position: absolute;
  z-index: 2;
  right: -37px;
  top: -44px;
  width: 42px;
  height: 42px;
  font-size: 30px;
}
.cb-lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 52px;
  font-size: 40px;
  line-height: 1;
}
.cb-lightbox-prev {
  left: -48px;
}
.cb-lightbox-next {
  right: -48px;
}
.cb-lightbox-count {
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
}
body.cb-lightbox-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .cb-lightbox {
    padding: 62px 14px 72px;
  }
  .cb-lightbox-close {
    top: -51px;
    right: 0;
  }
  .cb-lightbox-nav {
    top: auto;
    bottom: -53px;
    transform: none;
    width: 42px;
    height: 42px;
    font-size: 32px;
  }
  .cb-lightbox-prev {
    left: 0;
  }
  .cb-lightbox-next {
    right: 0;
  }
  .cb-lightbox-count {
    bottom: -47px;
  }
  .cb-lightbox-image {
    max-height: calc(100% - 45px);
  }
}

/* CINNFUL BITES — desktop lightbox alignment (mobile layout preserved) */
@media (min-width: 601px) {
  .cb-lightbox {
    padding: 20px 24px;
    overflow: hidden;
  }
  .cb-lightbox-inner {
    width: min(100%, 1320px);
    height: min(100%, 100dvh);
    min-height: 0;
    margin: 0 auto;
  }
  .cb-lightbox-figure {
    width: calc(100% - 136px);
    height: calc(100% - 92px);
    max-width: 1120px;
    min-height: 0;
    margin: 0 auto;
    gap: 12px;
  }
  .cb-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 155px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
  }
  .cb-lightbox-caption {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 12px;
    max-width: 100%;
  }
  .cb-lightbox-close {
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
  }
  .cb-lightbox-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 48px;
    height: 56px;
    font-size: 40px;
  }
  .cb-lightbox-prev {
    left: 0;
  }
  .cb-lightbox-next {
    right: 0;
  }
  .cb-lightbox-count {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (min-width: 601px) and (max-height: 550px) {
  .cb-lightbox {
    padding: 8px 18px;
  }
  .cb-lightbox-figure {
    height: calc(100% - 60px);
  }
  .cb-lightbox-image {
    max-height: calc(100dvh - 90px);
  }
}

/* CINNFUL BITES — UNIVERSAL RESPONSIVE CARD ALIGNMENT (Nov 2026)
   Applies to homepage featured cards, product catalog and all gallery cards.
   Text can grow freely; no fixed heights or text clipping. */
.grid > .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.grid > .card > .photo-wrap,
.grid > .card > .cb-cake-thumb {
  flex: 0 0 auto;
}
.grid > .card > .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
/* The flexible space above the price ensures all prices sit on one baseline
   within each CSS grid row even if descriptions have different lengths. */
.grid > .card > .card-body > .price {
  margin-top: auto;
  flex-shrink: 0;
}
.grid > .card > .card-body > .card-actions {
  margin-top: auto;
  flex-shrink: 0;
}
/* Cards without prices: keep action buttons at the same bottom edge. */
/* Prevent long titles, URLs, or descriptions from overflowing card borders. */
.grid > .card > .card-body h3,
.grid > .card > .card-body p {
  overflow-wrap: anywhere;
}
/* Button groups wrap neatly when screen width is limited. */
.grid > .card > .card-body > .card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

/* CUSTOMIZED CAKES — readable flavor and icing choices.
   Scoped to the existing .icing-list markup on custom-cakes.html. */
body[data-page="cakes"] .icing-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 14px;
  font-size: 18px;
  line-height: 1.55;
}
body[data-page="cakes"] .icing-list > span {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  body[data-page="cakes"] .icing-list {
    grid-template-columns: 1fr;
    row-gap: 12px;
    font-size: 17px;
  }
}

/* Homepage wholesale supplier spotlight */
.cb-wholesale-highlight {
  padding-top: 46px;
  padding-bottom: 20px;
}
.cb-wholesale-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4.5vw, 54px);
  border: 1px solid #e7c7c7;
  border-radius: 24px;
  background: linear-gradient(120deg, #fff6f2 0%, #f9dfe3 100%);
  box-shadow: 0 16px 38px #764a4014;
}
.cb-wholesale-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8a464f;
  margin-bottom: 12px;
}
.cb-wholesale-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.16;
  margin: 0 0 17px;
  color: #66343d;
}
.cb-wholesale-copy p {
  max-width: 640px;
  margin: 0 0 13px;
  line-height: 1.7;
}
.cb-wholesale-copy .cb-wholesale-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 600;
}
.cb-wholesale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 23px;
}
.cb-wholesale-actions .btn {
  white-space: normal;
  text-align: center;
}
.cb-wholesale-primary {
  background: #8c4b57;
  color: white;
  border-color: #8c4b57;
}
.cb-wholesale-primary:hover {
  background: #733743;
  color: white;
}
.cb-wholesale-art {
  min-height: 245px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 26px 14px;
  text-align: center;
  background: linear-gradient(150deg, #dba4ae, #b96f7e);
  color: white;
}
.cb-wholesale-art-icon {
  font-size: 68px;
  line-height: 1.3;
}
.cb-wholesale-art-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
}
.cb-wholesale-art-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
@media (max-width: 760px) {
  .cb-wholesale-feature {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cb-wholesale-art {
    min-height: 145px;
  }
  .cb-wholesale-art-icon {
    font-size: 44px;
  }
  .cb-wholesale-art-title {
    font-size: 22px;
  }
}
@media (max-width: 440px) {
  .cb-wholesale-actions {
    flex-direction: column;
  }
  .cb-wholesale-actions .btn {
    width: 100%;
  }
}

/* Multi-product cart — responsive across homepage and product listings */
.cb-cart-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: #d86691;
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 26px #64304440;
  padding: 13px 19px;
  font: 700 15px/1.2 inherit;
  cursor: pointer;
  display: flex;
  gap: 9px;
  align-items: center;
}
.cb-cart-fab strong {
  background: #fff;
  color: #a93f69;
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.cb-cart-overlay[hidden],
#cb-cart-ready[hidden],
#cb-cart-checkout[hidden],
#cb-address-wrap[hidden] {
  display: none !important;
}
.cb-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #22121bc9;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.cb-cart-panel {
  width: min(100%, 530px);
  height: 100%;
  overflow-y: auto;
  background: #fff8fb;
  padding: 28px clamp(18px, 4vw, 34px) 40px;
  box-shadow: -10px 0 38px #24101a30;
}
.cb-cart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cb-cart-top h2 {
  margin: 0;
}
.cb-cart-close {
  border: 0;
  background: transparent;
  font-size: 36px;
  cursor: pointer;
  color: #60334c;
  line-height: 1;
}
.cb-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f2d6e1;
  padding: 17px 0;
  flex-wrap: wrap;
}
.cb-cart-item-name {
  flex: 1;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cb-cart-item-name strong {
  color: #553346;
  line-height: 1.4;
}
.cb-cart-item-name small {
  color: #9a687e;
}
.cb-cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cb-cart-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid #e3aac0;
  background: #fff;
  border-radius: 50%;
  font-size: 20px;
  color: #b74770;
  cursor: pointer;
}
.cb-cart-qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}
.cb-cart-remove {
  background: none;
  border: 0;
  color: #b74770;
  text-decoration: underline;
  cursor: pointer;
}
.cb-cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 4px;
  font-size: 18px;
  color: #553346;
}
.cb-cart-summary strong {
  text-align: right;
  color: #ba4675;
}
.cb-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.cb-cart-actions .btn {
  flex: 1;
  min-width: 150px;
  text-align: center;
}
.cb-cart-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#cb-cart-checkout {
  border-top: 1px solid #efc7d8;
  margin-top: 24px;
  padding-top: 20px;
}
#cb-cart-checkout h3 {
  margin: 0 0 18px;
}
body.cb-cart-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .cb-cart-fab {
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }
  .cb-cart-panel {
    padding: 20px 16px 30px;
  }
  .cb-cart-item-name {
    min-width: 150px;
  }
  .cb-cart-actions .btn {
    min-width: 125px;
  }
}

/* Clickable cake/cheesecake serving prices — isolated from other product cards */
.cb-serving-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}
.cb-serving-choice {
  min-width: 0;
  border: 1.5px solid #eac0d1;
  border-radius: 12px;
  background: #fff9fb;
  color: #6f3652;
  cursor: pointer;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font: inherit;
  text-align: center;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.cb-serving-choice span {
  font-size: 0.86rem;
  font-weight: 700;
}
.cb-serving-choice strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.cb-serving-choice.selected {
  border: 2px solid #d94d87;
  background: #ffebf3;
  color: #9c2859;
}
.cb-serving-choice:focus-visible {
  outline: 3px solid #a33270;
  outline-offset: 2px;
}
@media (max-width: 380px) {
  .cb-serving-options {
    gap: 5px;
  }
  .cb-serving-choice {
    padding: 9px 3px;
  }
  .cb-serving-choice strong {
    font-size: 0.78rem;
  }
}

/* LOCATIONS ONLY: larger, wider branch photography (Nov 2026).
   Keeps the original image and click-to-enlarge behavior. */
body[data-page="locations"] #locations-grid {
  gap: 28px;
}
body[data-page="locations"] #locations-grid .cb-cake-thumb .photo-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
}
body[data-page="locations"] #locations-grid .cb-cake-thumb .card-photo {
  display: block;
  width: 100%;
  height: clamp(300px, 33vw, 460px);
  object-fit: cover;
  object-position: center;
}
@media (max-width: 760px) {
  body[data-page="locations"] #locations-grid .cb-cake-thumb .card-photo {
    height: clamp(280px, 68vw, 420px);
  }
}
