:root {
  --sage: #647c6e;
  --sage-hover: #586e62;
  --deep: #3d4f45;
  --light-sage: #dddfbe;
  --cream: #f7f5ee;
  --white: #ffffff;
  --tile: #fbfaf7;
  --muted: #8a9c8f;
  --pad-x: 64px;
  --font-display: "Jost", system-ui, sans-serif;
  --font-body: "Tenor Sans", system-ui, sans-serif;
  --shadow-lift: 0 18px 44px rgba(61, 79, 69, 0.2);
  --shadow-deep: 0 30px 70px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: #33413a;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sage);
}

a:hover {
  color: #4d6355;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 44px;
}

.btn:hover {
  background: var(--sage-hover);
  color: var(--white);
}

.btn--lg {
  padding: 19px 34px;
  font-size: 16px;
}

.btn--white {
  background: var(--white);
  color: var(--deep);
}

.btn--white:hover {
  background: #f0eee6;
  color: var(--deep);
}

.btn--outline {
  background: transparent;
  color: var(--sage);
  border: 1px solid rgba(100, 124, 110, 0.35);
}

.btn--outline:hover {
  background: rgba(100, 124, 110, 0.06);
  color: var(--sage-hover);
}

.link-text {
  font-size: 15px;
  color: var(--sage);
  text-underline-offset: 5px;
}

.link-text:hover {
  color: #4d6355;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px var(--pad-x);
  background: var(--cream);
  border-bottom: 1px solid rgba(100, 124, 110, 0.14);
}

.site-header__logo {
  justify-self: start;
}

.site-header__logo img {
  height: 58px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 36px;
  font-size: 15px;
  letter-spacing: 1px;
}

.site-nav a {
  color: var(--sage);
  text-decoration: none;
}

.site-nav a:hover {
  color: #4d6355;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.site-header__caption {
  font-size: 13px;
  color: rgba(51, 65, 58, 0.6);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

.menu-toggle__bars {
  width: 26px;
  height: 2px;
  background: var(--sage);
  box-shadow: 0 7px 0 var(--sage), 0 -7px 0 var(--sage);
  position: relative;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sage);
  transform: rotate(-90deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(47, 61, 53, 0.45);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--cream);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.nav-drawer__panel a {
  display: block;
  padding: 14px 8px;
  color: var(--deep);
  text-decoration: none;
  font-size: 17px;
  border-bottom: 1px solid rgba(100, 124, 110, 0.14);
}

.nav-drawer__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--sage);
  cursor: pointer;
  padding: 4px 8px;
  margin-bottom: 8px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  background: var(--cream);
  overflow: hidden;
}

.hero__copy {
  padding: 96px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 26px;
  min-width: 0;
}

.hero__copy h1 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.03;
  color: var(--deep);
  max-width: 520px;
  text-wrap: pretty;
}

.hero__sub {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(51, 65, 58, 0.75);
  max-width: 460px;
}

.hero__actions {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
  min-height: 720px;
  background: var(--light-sage);
  overflow: visible;
}

.hero__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__inset {
  position: absolute;
  left: -72px;
  bottom: 64px;
  width: 250px;
  border: 8px solid var(--cream);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  z-index: 2;
}

.hero__inset img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.hero__media-mobile {
  display: none;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 42%;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--light-sage);
  color: var(--deep);
}

.facts__cell {
  padding: 30px 34px;
  border-right: 1px solid rgba(100, 124, 110, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
}

.facts__cell:last-child {
  border-right: none;
}

.facts__cell strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}

.facts__cell span {
  font-size: 14px;
  color: rgba(51, 65, 58, 0.7);
  margin-top: auto;
}

/* Gallery */
.gallery {
  padding: 26px var(--pad-x) 0;
  background: var(--white);
}

.gallery__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 34px 0 22px;
  border-bottom: 1px solid rgba(100, 124, 110, 0.16);
}

.gallery__head h2 {
  margin: 0;
  font-size: 36px;
  color: var(--deep);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-chip {
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid rgba(100, 124, 110, 0.3);
  background: transparent;
  color: var(--sage);
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.filter-chip.is-active {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.filter-chip:hover:not(.is-active) {
  border-color: var(--sage);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 34px 0 48px;
}

.cake-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
  font-family: inherit;
  color: inherit;
}

.cake-tile__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream);
}

.cake-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cake-tile:hover .cake-tile__img img {
  transform: scale(1.04);
}

.cake-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--deep);
}

.cake-tile__theme {
  font-size: 12px;
  color: rgba(51, 65, 58, 0.6);
}

.cake-tile.is-hidden {
  display: none;
}

.cake-tile.is-selected {
  background: var(--sage);
  border-radius: 10px;
  padding: 8px;
}

.cake-tile.is-selected .cake-tile__img {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45), 0 10px 28px rgba(61, 79, 69, 0.22);
}

.cake-tile.is-selected .cake-tile__name,
.cake-tile.is-selected .cake-tile__theme {
  color: var(--white);
}

.gallery-more-wrap {
  display: flex;
  justify-content: center;
  padding: 28px var(--pad-x) 8px;
}

.gallery-more-wrap .btn {
  min-width: 180px;
}

/* Builder */
.builder {
  padding: 82px var(--pad-x);
  background: var(--sage);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.builder__intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.builder__intro .eyebrow {
  color: var(--light-sage);
}

.builder__intro h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.1;
}

.builder__intro > p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 440px;
}

.builder__points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.builder__points li {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.builder__points li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.builder__diet {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 6px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.builder__diet h3 {
  margin: 0;
  font-size: 19px;
}

.builder__diet p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.builder__diet-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.builder__diet-tags span {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 15px;
}

.builder__intro .link-text {
  color: rgba(255, 255, 255, 0.8);
}

.builder__intro .link-text:hover {
  color: var(--white);
}

.builder__form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.field__label-note {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  opacity: 0.75;
  margin-left: 6px;
}

#sugar-sponge-field[hidden],
#mode-options[hidden],
#design-chosen[hidden],
#design-change[hidden] {
  display: none !important;
}

.builder__form .form-row:has(#sugar-sponge-field[hidden]) {
  grid-template-columns: 1fr;
}

.field input[type="date"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: var(--white);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: 15px;
}

.phone-split {
  display: grid;
  grid-template-columns: minmax(132px, 168px) 1fr;
  gap: 8px;
}

.dial-combobox {
  position: relative;
}

.dial-combobox__input {
  width: 100%;
}

.dial-combobox__list {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 40;
  width: min(280px, 70vw);
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white);
  color: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dial-combobox__list li {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.dial-combobox__list li.is-active,
.dial-combobox__list li:hover {
  background: rgba(61, 79, 69, 0.1);
}

.field.is-invalid input,
.field.is-invalid select {
  box-shadow: 0 0 0 2px rgba(255, 180, 160, 0.7);
}

.option-row {
  display: flex;
  gap: 8px;
}

.option-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-btn {
  flex: 1;
  text-align: center;
  padding: 13px 15px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  font-family: inherit;
  position: relative;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.option-btn.is-active {
  background: var(--white);
  color: var(--deep);
  border-color: var(--white);
}

.option-btn--center {
  text-align: center;
  padding: 12px 8px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.option-btn__price {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.8;
  line-height: 1.2;
}

.option-btn.is-active .option-btn__price {
  opacity: 0.7;
}

.option-btn--sm {
  padding: 13px 0;
  font-size: 14px;
}

.size-wrap {
  flex: 1;
  position: relative;
  display: flex;
}

.size-wrap .option-btn {
  width: 100%;
  min-height: 58px;
}

.size-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 190px;
  background: var(--deep);
  color: var(--white);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.size-wrap:hover .size-tip,
.size-wrap:focus-within .size-tip {
  opacity: 1;
}

.field__hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.field__hint--soft {
  color: rgba(255, 255, 255, 0.6);
}

.design-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 2px;
  padding: 2px;
}

.design-grid.is-visible {
  display: grid;
}

.design-pick {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: inherit;
}

.design-pick__img {
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  background: var(--cream);
  overflow: hidden;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.design-pick.is-selected .design-pick__img {
  border-color: var(--white);
}

.design-pick__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-pick span {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.file-drop {
  display: none;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 20px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  cursor: pointer;
  text-align: center;
  margin-top: 2px;
}

.file-drop.is-visible {
  display: flex;
}

.file-drop input {
  display: none;
}

.file-drop__label {
  font-size: 15px;
}

.file-drop__hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.builder__submit {
  display: block;
  text-align: center;
  width: 100%;
}

.builder__submit-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.form-status {
  margin: 0;
  font-size: 14px;
  text-align: center;
  min-height: 1.2em;
}

.form-status.is-error {
  color: #ffd0d0;
}

.form-status.is-success {
  color: var(--light-sage);
}

.builder__diet-mobile,
.builder__points-mobile {
  display: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(40, 52, 45, 0.82);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 48px;
  cursor: zoom-out;
  animation: cakeFade 0.28s ease both;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  cursor: default;
  animation: cakePop 0.38s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  max-width: 100%;
}

.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(920px, 88vw);
  max-height: min(78vh, 820px);
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.lightbox__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.lightbox__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.lightbox__theme {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

@keyframes cakeFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cakePop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Footer */
.site-footer {
  padding: 44px var(--pad-x);
  background: var(--deep);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer__brand img {
  height: 48px;
  width: auto;
}

.site-footer__brand span {
  font-size: 14px;
}

.site-footer__links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}

.footer-link:hover {
  color: var(--white);
}

.footer-link__icon {
  width: 38px;
  height: 38px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile sticky */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(100, 124, 110, 0.18);
  padding: 12px 20px;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(8px);
}

.mobile-sticky.is-visible {
  display: flex;
}

.mobile-sticky .btn {
  flex: 1;
  padding: 15px;
  font-size: 15px;
}

.mobile-sticky .btn--outline {
  flex: 0 0 auto;
  padding: 15px 18px;
}

/* Responsive */
@media (max-width: 1200px) and (min-width: 901px) {
  :root {
    --pad-x: 40px;
  }

  .site-header__caption {
    display: none;
  }

  .hero__inset {
    left: -40px;
    width: 200px;
  }

  .hero__inset img {
    height: 250px;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

@media (max-width: 900px) {
  :root {
    --pad-x: 24px;
  }

  body {
    padding-bottom: 76px;
  }

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
  }

  .site-header__logo img {
    height: 42px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .hero {
    display: block;
  }

  .hero__copy {
    padding: 32px var(--pad-x) 26px;
    gap: 16px;
  }

  .hero__copy h1 {
    font-size: 37px;
    line-height: 1.04;
  }

  .hero__sub {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    padding: 16px;
    font-size: 15px;
  }

  .hero__actions .link-text {
    display: none;
  }

  .hero__media {
    display: none;
  }

  .hero__media-mobile {
    display: block;
  }

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

  .facts__cell {
    padding: 20px 24px;
    gap: 4px;
    min-height: 0;
    border-right: 1px solid rgba(100, 124, 110, 0.25);
    border-bottom: 1px solid rgba(100, 124, 110, 0.25);
  }

  .facts__cell:nth-child(2n) {
    border-right: none;
  }

  .facts__cell:nth-child(n + 3) {
    border-bottom: none;
  }

  .facts__cell strong {
    font-size: 20px;
  }

  .facts__cell span {
    font-size: 13px;
  }

  .gallery {
    padding: 26px var(--pad-x) 30px;
  }

  .gallery__head {
    padding: 0 0 0;
    border-bottom: none;
    gap: 16px;
  }

  .gallery__head h2 {
    font-size: 26px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    padding: 9px 16px;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    padding: 0;
  }

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

  .cake-tile {
    gap: 8px;
  }

  .cake-tile__name {
    font-size: 15px;
    line-height: 1.2;
  }

  .cake-tile__theme {
    font-size: 13px;
  }

  .builder {
    padding: 32px var(--pad-x);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .builder__intro h2 {
    font-size: 30px;
  }

  .builder__intro > p {
    font-size: 15px;
  }

  .builder__points,
  .builder__diet,
  .builder__intro .link-text {
    display: none;
  }

  .builder__form {
    padding: 0;
    background: transparent;
    border: none;
    gap: 18px;
  }

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

  .field__label {
    font-size: 11px;
  }

  .builder__diet-mobile {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 20px;
    flex-direction: column;
    gap: 10px;
  }

  .builder__diet-mobile h3 {
    margin: 0;
    font-size: 17px;
  }

  .builder__diet-mobile p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
  }

  .builder__points-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .builder__points-mobile li {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .builder__points-mobile li:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .builder__submit {
    padding: 16px;
    font-size: 15px;
  }

  .lightbox {
    padding: 24px;
  }

  .lightbox__img {
    max-width: min(100%, 92vw);
    max-height: 70vh;
  }

  .lightbox__name {
    font-size: 19px;
  }

  .site-footer {
    padding: 26px var(--pad-x);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer__brand img {
    height: 46px;
  }

  .site-footer__brand span {
    font-size: 13px;
  }

  .site-footer__links {
    gap: 12px;
  }

  .footer-link__label {
    display: none;
  }
}

@media (min-width: 901px) {
  .mobile-sticky {
    display: none !important;
  }
}

/* Cake gallery + builder parity with birthdays/builder #cakes section */
#cakes .option-btn.is-active {
  background: var(--sage) !important;
  border-color: var(--sage) !important;
  color: #fff !important;
}

#cakes .builder .option-btn.is-active {
  background: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--deep) !important;
}

#cakes .filter-chip.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

#cakes .design-pick.is-selected {
  border-color: var(--sage);
  background: rgba(100, 124, 110, 0.1);
}

#cakes .builder .design-pick.is-selected .design-pick__img {
  border-color: var(--white);
  background: transparent;
}

.cake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.cake-summary {
  position: sticky;
  top: 96px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(100, 124, 110, 0.28);
}

.cake-summary h3 {
  margin: 0 0 8px;
}

.cake-summary ul {
  margin: 0;
  padding-left: 18px;
}

.cake-summary p,
.cake-section-nav {
  margin-top: 12px;
}

.cake-section-nav {
  display: flex;
  gap: 12px;
}

.cake-section[hidden] {
  display: none;
}

@media (max-width: 800px) {
  .cake-layout {
    grid-template-columns: 1fr;
  }

  .cake-summary {
    position: static;
    order: -1;
  }
}

#cakes .cake-tile.is-selected {
  background: var(--sage);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(61, 79, 69, 0.2);
}

#cakes .cake-tile.is-selected .cake-tile__img {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45), 0 10px 28px rgba(61, 79, 69, 0.22);
}

#cakes .cake-tile.is-selected .cake-tile__name,
#cakes .cake-tile.is-selected .cake-tile__theme {
  color: var(--white);
}
