/* ==========================================================================
   VELVET CRUMB — Homemade Cake Studio
   Warm · Personal · Handmade · Authentic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&family=Caveat:wght@400;500&display=swap');

/* ===========================
   TOKENS
=========================== */
:root {
  --cream: #FAF7F2;
  --warm: #F1E8DD;
  --blush: #E8CFC5;
  --cocoa: #49352D;
  --terra: #B86F5D;
  --terra-dk: #9A5C4B;
  --muted: #7D6458;
  --border: rgba(73, 53, 45, 0.1);
  --white: #FFFFFF;
}

/* ===========================
   BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--cream);
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--cocoa);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--blush);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--terra);
}

/* ===========================
   NAVBAR / HEADER
=========================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

#site-nav {
  height: 78px;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(73, 53, 45, 0.08);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}

#site-nav.scrolled {
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(73, 53, 45, 0.06);
  border-bottom-color: rgba(73, 53, 45, 0.12);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Wordmark Logo */
.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--cocoa);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.logo-text-velvet {
  font-weight: 600;
  color: var(--cocoa);
}

.logo-text-crumb {
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
}

.logo-heart {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--terra);
  transform: translateY(-2px);
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover .logo-heart {
  transform: translateY(-4px) scale(1.25);
}

/* Center Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terra);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--cocoa);
}

.nav-link.active {
  color: var(--cocoa);
  font-weight: 500;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Right Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Nav Cart Button */
.nav-cart-btn,
.mobile-cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(73, 53, 45, 0.12);
  color: var(--cocoa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.nav-cart-btn:hover,
.mobile-cart-btn:hover {
  background: var(--warm);
  color: var(--terra);
  border-color: rgba(184, 111, 93, 0.3);
  transform: translateY(-1px);
}

.cart-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.mobile-cart-btn {
  display: none;
}

/* Cart Quantity Badge */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--terra);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(184, 111, 93, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  pointer-events: none;
}

.cart-badge.bump {
  animation: badgeBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeBounce {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--terra);
  color: var(--white);
  padding: 0.62rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(184, 111, 93, 0.25);
}

.nav-cta:hover {
  background: var(--terra-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 111, 93, 0.35);
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--cream);
  border: 1px solid rgba(73, 53, 45, 0.1);
  border-radius: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--warm);
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cocoa);
  border-radius: 99px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 26, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-menu-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: var(--white);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(73, 53, 45, 0.08);
}

.mobile-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(73, 53, 45, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--cocoa);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-close-btn:hover {
  background: var(--terra);
  color: var(--white);
  transform: rotate(90deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 0;
}

.mobile-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--cocoa);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link.active {
  color: var(--terra);
  font-style: italic;
}

.mobile-link:hover {
  color: var(--terra);
  transform: translateX(4px);
}

.mobile-menu-footer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(73, 53, 45, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-cta {
  width: 100%;
  background: var(--terra);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(184, 111, 93, 0.25);
}

.mobile-cta:hover {
  background: var(--terra-dk);
  transform: translateY(-2px);
}

.mobile-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--terra);
  text-align: center;
  margin: 0;
}

/* ===========================
   HERO
=========================== */
#hero {
  min-height: 100vh;
  padding-top: 76px;
  background: var(--cream);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Gradient wash connecting hero to next section */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--warm), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ——— Left column ——— */
.hero-text {}

.hero-hand-label {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--terra);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: .01em;
}

.hero-hand-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--terra);
  opacity: .5;
  flex-shrink: 0;
}

h1.hero-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--cocoa);
  margin-bottom: 0;
}

h1.hero-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--terra);
}

/* Thin decorative rule after heading */
.hero-rule {
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--terra), transparent);
  border-radius: 99px;
  margin: 1.4rem 0 1.4rem;
}

.hero-para {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.82;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

/* Primary button arrow icon */
.hero-btn-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.hero-btn-primary:hover .hero-btn-arrow {
  transform: translateX(3px);
}

/* Small trust line beneath buttons */
.hero-trust {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: .02em;
  opacity: .85;
}

.hero-trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
  opacity: .6;
}

/* ——— Right column ——— */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

/* Warm background panel sitting behind the image */
.hero-bg-panel {
  position: absolute;
  inset: 8% -4% 4% 10%;
  background: var(--warm);
  border-radius: 2rem;
  z-index: 0;
}

/* Blurred colour blobs */
.hero-deco-blob {
  position: absolute;
  border-radius: 50%;
  opacity: .5;
  filter: blur(55px);
  pointer-events: none;
  z-index: 1;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--blush);
  top: -40px;
  right: -60px;
}

.blob-2 {
  width: 180px;
  height: 180px;
  background: var(--blush);
  bottom: 10px;
  left: 0;
}

/* Dot grid clusters */
.hero-dots {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.hero-dots span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terra);
  opacity: .28;
}

.hero-dots-tl {
  top: 18px;
  left: 14px;
}

.hero-dots-br {
  bottom: 50px;
  right: 2px;
}

/* Decorative dashed arc SVG */
.hero-arc-line {
  position: absolute;
  width: 110px;
  height: 110px;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  opacity: .7;
}

/* Main arch image container */
.hero-arch {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  border-radius: 999px 999px 2.5rem 2.5rem;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(73, 53, 45, .04),
    0 12px 36px rgba(73, 53, 45, .11),
    0 28px 64px rgba(73, 53, 45, .08);
  border: 5px solid var(--white);
  transition: box-shadow .4s ease;
}

.hero-arch:hover {
  box-shadow:
    0 4px 6px rgba(73, 53, 45, .06),
    0 16px 44px rgba(73, 53, 45, .14),
    0 32px 72px rgba(73, 53, 45, .1);
}

.hero-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.hero-arch:hover img {
  transform: scale(1.04);
}

/* Handwritten floating note */
.hero-hand-note {
  position: absolute;
  bottom: 60px;
  left: -8px;
  background: var(--white);
  border: 1px solid rgba(184, 111, 93, .2);
  border-radius: 12px;
  padding: .55rem 1.1rem;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: var(--terra);
  box-shadow:
    0 2px 8px rgba(73, 53, 45, .07),
    0 6px 18px rgba(73, 53, 45, .05);
  white-space: nowrap;
  transform: rotate(-2.5deg);
  z-index: 5;
}

/* Floating badge — baked to order */
.hero-badge {
  position: absolute;
  top: 28px;
  right: -12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 4px 16px rgba(73, 53, 45, .09);
  z-index: 5;
  transform: rotate(1.5deg);
}

.hero-badge-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.hero-badge-line1 {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  color: var(--cocoa);
  letter-spacing: .02em;
  line-height: 1.3;
}

.hero-badge-line2 {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: .85rem;
  color: var(--terra);
  line-height: 1.2;
}

/* ===========================
   SHARED BUTTON STYLES
=========================== */
.btn-fill {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .05em;
  background: var(--terra);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .25s ease;
}

.btn-fill:hover {
  background: var(--terra-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 111, 93, .28);
}

.btn-outline {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--cocoa);
  padding: .85rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .25s ease;
}

.btn-outline:hover {
  background: var(--warm);
  border-color: rgba(73, 53, 45, .2);
}

/* ===========================
   SHARED SECTION STYLES
=========================== */
.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
  display: block;
  margin-bottom: .9rem;
}

.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--cocoa);
}

.section-sub {
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.warm-divider {
  width: 40px;
  height: 1.5px;
  background: var(--terra);
  border-radius: 99px;
  opacity: .5;
  display: block;
  margin: 1.25rem 0;
}

/* ===========================
   CAKES SECTION
=========================== */
#cakes {
  padding: 7rem 2rem;
  background: var(--warm);
}

.cakes-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.cakes-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.25rem;
}

.cakes-header .section-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

/* ===========================
   CAKES FILTER & CATEGORIES
=========================== */
.cakes-filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 30;
}

.cakes-filter-bar {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 53, 45, 0.12);
  box-shadow: 0 4px 20px rgba(73, 53, 45, 0.06);
  gap: 4px;
}

.filter-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cocoa);
  padding: 8px 22px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.filter-tab:hover {
  color: var(--terra);
  background: rgba(184, 111, 93, 0.08);
}

.filter-tab.active {
  background: var(--terra);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(184, 111, 93, 0.35);
}

.filter-tab.active:hover {
  background: var(--terra-dk);
  color: var(--white);
}

.filter-divider {
  color: rgba(73, 53, 45, 0.22);
  font-weight: 300;
  padding: 0 4px;
  user-select: none;
  font-size: 0.95rem;
}

.filter-dropdown-wrap {
  position: relative;
}

.filter-dropdown-btn {
  padding-right: 14px;
}

.filter-dropdown-btn .dropdown-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.filter-dropdown-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.category-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(73, 53, 45, 0.12);
  border-radius: 1.15rem;
  box-shadow: 0 16px 42px rgba(73, 53, 45, 0.14), 0 4px 12px rgba(73, 53, 45, 0.06);
  padding: 0.55rem;
  min-width: 250px;
  max-width: 320px;
  width: max-content;
  z-index: 100;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.category-dropdown-menu[hidden] {
  display: none !important;
}

.category-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--cocoa);
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.18s ease;
  gap: 14px;
  outline: none;
}

.category-item:hover,
.category-item:focus-visible {
  background: var(--cream);
  color: var(--terra);
  transform: translateX(2px);
}

.category-item.active {
  background: rgba(184, 111, 93, 0.12);
  color: var(--terra-dk);
  font-weight: 600;
}

.category-item .cat-name {
  white-space: nowrap;
}

.category-item .cat-count {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--warm);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  transition: all 0.18s ease;
}

.category-item.active .cat-count {
  background: var(--terra);
  color: var(--white);
}

/* Empty state for categories with no cakes */
.cakes-empty-state {
  grid-column: 1 / -1;
  background: var(--white);
  border-radius: 1.5rem;
  padding: 3.75rem 2rem;
  text-align: center;
  border: 1px dashed rgba(184, 111, 93, 0.35);
  box-shadow: 0 4px 20px rgba(73, 53, 45, 0.03);
  margin: 1rem 0;
  animation: fadeInEmpty 0.3s ease;
}

@keyframes fadeInEmpty {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 0.85rem;
  display: block;
}

.empty-state-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 0.6rem;
}

.empty-state-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

/* Card hiding */
.cake-card.is-hidden {
  display: none !important;
}

/* Product grid — max 2 rows visible, then internal scroll */
.cakes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  /* Show ~2 rows of cards, then scroll inside the section */
  max-height: 1080px;
  /* approx. 2 card rows + gap on desktop */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  /* breathing room for scrollbar */
  scroll-behavior: smooth;
}

/* Thin, minimal scrollbar for the cakes grid */
.cakes-grid::-webkit-scrollbar {
  width: 4px;
}

.cakes-grid::-webkit-scrollbar-track {
  background: transparent;
}

.cakes-grid::-webkit-scrollbar-thumb {
  background: var(--blush);
  border-radius: 99px;
}

.cakes-grid::-webkit-scrollbar-thumb:hover {
  background: var(--terra);
}

/* Individual cake card */
.cake-card {
  background: var(--white);
  border-radius: 1.2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(73, 53, 45, 0.07);
  box-shadow: 0 4px 20px rgba(73, 53, 45, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}

.cake-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(73, 53, 45, 0.1);
  border-color: rgba(184, 111, 93, 0.25);
}

/* Image wrapper */
.cake-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.cake-img-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cake-card:hover .cake-img-wrap img {
  transform: scale(1.03);
}

/* On-image Badges */
.cake-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.cake-badge-weight {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cocoa);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(73, 53, 45, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.cake-badge-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--terra);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 12px rgba(184, 111, 93, 0.38);
}

/* Card Body */
.cake-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cake-bespoke-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.3rem;
  display: block;
}

.cake-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.cake-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

/* ===========================
   CAKE WEIGHT & CUSTOM STEPPER
=========================== */
.cake-weight-control {
  margin-top: auto;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.weight-pills {
  display: flex;
  background: var(--cream);
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(73, 53, 45, 0.09);
  gap: 0.25rem;
}

.weight-pill {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.weight-pill:hover {
  color: var(--cocoa);
}

.weight-pill.active {
  background: var(--white);
  color: var(--terra-dk);
  box-shadow: 0 2px 6px rgba(73, 53, 45, 0.08);
  font-weight: 700;
}

.weight-pills.single-weight {
  background: transparent;
  border: none;
  padding: 0;
}

.weight-pill.single {
  background: rgba(184, 111, 93, 0.08);
  color: var(--terra-dk);
  border: 1px solid rgba(184, 111, 93, 0.2);
  cursor: default;
  display: inline-block;
  padding: 0.28rem 0.65rem;
  box-shadow: none;
  width: 100%;
}

/* Custom Weight Stepper Panel */
.custom-weight-panel {
  background: #FFFDF9;
  border: 1px dashed rgba(184, 111, 93, 0.35);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  animation: cwFadeIn 0.2s ease-out;
}

@keyframes cwFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-weight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.custom-weight-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cocoa);
}

.custom-weight-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(73, 53, 45, 0.15);
  border-radius: 999px;
  padding: 0.12rem 0.3rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.cw-step-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  color: var(--cocoa);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cw-step-btn:hover {
  background: var(--terra);
  color: var(--white);
}

.cw-step-btn:active {
  transform: scale(0.92);
}

.cw-input {
  width: 38px;
  text-align: center;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cocoa);
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
}

.cw-input::-webkit-outer-spin-button,
.cw-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cw-input:focus {
  outline: none;
}

.cw-unit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.25rem;
}

.custom-weight-notice {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cw-price-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--terra-dk);
  background: rgba(184, 111, 93, 0.14);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.cw-info-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.cw-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #128C7E;
  text-decoration: none;
  margin-top: 0.15rem;
  transition: color 0.15s ease;
}

.cw-wa-link:hover {
  color: #075E54;
  text-decoration: underline;
}

.cw-wa-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

.cart-subtotal-custom-badge {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--terra-dk);
  margin-top: 0.2rem;
}

/* Card Footer & Compact Add to Cart button */
.cake-footer {
  margin-top: auto;
  padding-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cake-order-btn,
.add-to-cart-btn {
  width: auto;
  min-width: 135px;
  max-width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--terra);
  border: 1px solid var(--terra);
  padding: 0 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 12px rgba(184, 111, 93, 0.22);
}

.cake-btn-cart-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cake-order-btn:hover,
.add-to-cart-btn:hover {
  background: var(--terra-dk);
  border-color: var(--terra-dk);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 111, 93, 0.35);
}

.cake-order-btn:hover .cake-btn-cart-icon,
.add-to-cart-btn:hover .cake-btn-cart-icon {
  transform: scale(1.12);
}

.cake-order-btn:active,
.add-to-cart-btn:active {
  transform: translateY(0);
}

/* Custom Bespoke card highlight */
.cake-card-custom {
  background: #FFFDF9;
  border: 1px solid rgba(184, 111, 93, 0.16);
}

/* ===========================
   PERSONAL STORY
=========================== */
#story {
  padding: 7rem 2rem;
  background: var(--cream);
}

.story-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Baker image */
.story-visual {
  position: relative;
}

.story-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 2rem 1rem 2rem 1rem;
  overflow: hidden;
  box-shadow:
    0 12px 48px rgba(73, 53, 45, .1),
    0 2px 8px rgba(73, 53, 45, .05);
  border: 5px solid var(--white);
}

.story-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Floating warm detail */
.story-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--blush);
  border: 3px solid var(--white);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(73, 53, 45, .12);
}

.story-badge-text {
  font-family: 'Caveat', cursive;
  font-size: .9rem;
  color: var(--cocoa);
  text-align: center;
  line-height: 1.3;
}

.story-badge-heart {
  font-size: 1.1rem;
  color: var(--terra);
}

/* Story text */
.story-text {}

.story-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.story-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: .96rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Inline highlights */
.story-highlights {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 2.5rem;
}

.story-highlight-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--cocoa);
}

.sh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
  opacity: .7;
}

/* ===========================
   WHY US (SMALL)
=========================== */
#why-us {
  padding: 5rem 2rem;
  background: var(--warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}

.why-item {
  text-align: center;
}

.why-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.3rem;
}

.why-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cocoa);
  margin-bottom: .4rem;
}

.why-text {
  font-size: .875rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ===========================
   GALLERY
=========================== */
#gallery {
  padding: 7rem 2rem;
  background: var(--cream);
}

.gallery-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 3.5rem;
}

.gallery-header .section-heading {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

/* Masonry grid via CSS columns */
.gallery-masonry {
  columns: 4;
  column-gap: 1rem;
}

.g-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .4s ease, box-shadow .4s ease;
}

.g-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(73, 53, 45, .13);
}

.g-item img {
  width: 100%;
  display: block;
  transition: transform .8s ease;
}

.g-item:hover img {
  transform: scale(1.04);
}

.g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(73, 53, 45, .35);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-item:hover .g-overlay {
  opacity: 1;
}

.g-zoom-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--cocoa);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(37, 27, 23, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lb-wrap {
  position: relative;
  max-width: 820px;
  width: 100%;
  background: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  max-height: 88vh;
  transform: scale(.97) translateY(10px);
  transition: transform .35s ease;
}

#lightbox.active .lb-wrap {
  transform: scale(1) translateY(0);
}

#lb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 88vh;
}

.lb-info {
  padding: 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--cream);
}

.lb-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

#lb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cocoa);
  margin-bottom: .5rem;
}

.lb-sub {
  font-size: .875rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--cocoa);
  z-index: 5;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(73, 53, 45, .12);
}

.lb-close:hover {
  background: var(--terra);
  color: var(--white);
  transform: rotate(90deg);
}

.btn-lb {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  background: var(--terra);
  color: var(--white);
  padding: .8rem 1.5rem;
  border-radius: 999px;
  width: 100%;
  text-align: center;
  transition: all .25s ease;
}

.btn-lb:hover {
  background: var(--terra-dk);
}

/* ===========================
   CONTACT
=========================== */
#contact {
  padding: 7rem 2rem;
  background: var(--warm);
  position: relative;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-heading {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
}

.contact-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 480px;
}

.contact-wa-block {
  background: var(--white);
  border: 1px solid rgba(73, 53, 45, 0.09);
  border-radius: 1.25rem;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(73, 53, 45, 0.04);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.contact-wa-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-wa-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-wa-text {
  display: flex;
  flex-direction: column;
}

.contact-wa-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  display: block;
}

.contact-wa-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cocoa);
  margin: 0;
}

.contact-wa-btn {
  margin-left: auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--terra);
  color: var(--white);
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.contact-wa-btn:hover {
  background: var(--terra-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 111, 93, 0.3);
}

.contact-loc-block {
  background: var(--white);
  border: 1px solid rgba(73, 53, 45, 0.09);
  border-radius: 1.25rem;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(73, 53, 45, 0.04);
  margin-bottom: 1.5rem;
}

.contact-loc-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-loc-icon {
  width: 22px;
  height: 22px;
}

.contact-loc-text {
  display: flex;
  flex-direction: column;
}

.contact-loc-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  display: block;
}

.contact-loc-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--cocoa);
  margin: 0;
}

.contact-hand-note {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--terra);
  display: block;
}

/* Right Card */
.contact-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(73, 53, 45, 0.08);
  box-shadow: 0 12px 36px rgba(73, 53, 45, 0.06);
}

.contact-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--cocoa);
  margin-bottom: 0.25rem;
}

.contact-card-sub {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.contact-field-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-field-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cocoa);
}

.contact-field-group input,
.contact-field-group textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(73, 53, 45, 0.15);
  background: #FAF7F2;
  color: var(--cocoa);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-field-group input:focus,
.contact-field-group textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184, 111, 93, 0.15);
}

.contact-field-group input.invalid,
.contact-field-group textarea.invalid {
  border-color: #D32F2F;
  background: #FFF8F8;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.contact-submit-btn {
  width: 100%;
  background: var(--cocoa);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(73, 53, 45, 0.2);
  margin-top: 0.5rem;
}

.contact-submit-btn:hover {
  background: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 111, 93, 0.3);
}

.contact-submit-wa-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-wa-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ===========================
   FOOTER
=========================== */
#site-footer {
  background: var(--cocoa);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .5rem;
  display: block;
}

.footer-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--blush);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-col-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  display: block;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-links a,
.footer-links button {
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
  text-align: left;
  font-family: inherit;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--blush);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .35);
  flex-wrap: wrap;
}

.footer-dev-credit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-dev-credit a {
  color: var(--blush);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-dev-credit a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ===========================
   FLOATING WHATSAPP
=========================== */
#float-wa {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(184, 111, 93, .4);
  transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
}

#float-wa:hover {
  transform: scale(1.1);
  background: var(--terra-dk);
  box-shadow: 0 12px 32px rgba(184, 111, 93, .45);
}

#float-wa svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ===========================
   CART DRAWER / MODAL
=========================== */
.cart-drawer-wrap {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-wrap.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 26, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cart-drawer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: var(--white);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-wrap.active .cart-drawer {
  transform: translateX(0);
}

/* Cart Header */
.cart-header {
  padding: 1.35rem 1.6rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(73, 53, 45, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--cocoa);
  line-height: 1;
}

.cart-title-heart {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--terra);
}

.cart-count-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--blush);
  color: var(--terra-dk);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(73, 53, 45, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--cocoa);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-close-btn:hover {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
  transform: rotate(90deg);
}

/* Cart Body */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Empty State */
.cart-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  margin: auto 0;
}

.cart-empty.show {
  display: flex;
}

.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.cart-empty-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 0.35rem;
}

.cart-empty-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.cart-explore-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--terra);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(184, 111, 93, 0.3);
}

.cart-explore-btn:hover {
  background: var(--terra-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 111, 93, 0.4);
}

/* Items List Wrap */
.cart-items-wrap {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-items-wrap.show {
  display: flex;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Individual Cart Item Row */
.cart-item-row {
  display: flex;
  gap: 0.95rem;
  padding: 0.85rem;
  background: var(--cream);
  border-radius: 1.15rem;
  border: 1px solid rgba(73, 53, 45, 0.08);
  align-items: center;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-row:hover {
  border-color: rgba(184, 111, 93, 0.2);
  box-shadow: 0 4px 12px rgba(73, 53, 45, 0.04);
}

.cart-item-thumb {
  width: 68px;
  height: 68px;
  border-radius: 0.85rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(73, 53, 45, 0.08);
}

.cart-item-details {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cocoa);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-remove-btn {
  color: var(--muted);
  opacity: 0.6;
  font-size: 0.85rem;
  padding: 0.2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  transition: all 0.2s ease;
}

.cart-item-remove-btn:hover {
  opacity: 1;
  color: #D32F2F;
  transform: scale(1.15);
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.cart-item-weight {
  background: var(--white);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(73, 53, 45, 0.08);
  font-weight: 500;
}

.cart-item-unit-price {
  font-size: 0.75rem;
  color: var(--muted);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

/* Quantity Control */
.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(73, 53, 45, 0.14);
  border-radius: 999px;
  padding: 0.15rem;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cocoa);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-qty-btn:hover {
  background: var(--warm);
  color: var(--terra);
}

.cart-qty-btn:active {
  transform: scale(0.92);
}

.cart-qty-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cocoa);
  min-width: 24px;
  text-align: center;
}

.cart-item-total {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terra);
}

/* Cart Subtotal Summary Card */
.cart-summary-card {
  background: var(--warm);
  border: 1px solid rgba(184, 111, 93, 0.18);
  border-radius: 1.15rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-summary-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cocoa);
}

.cart-subtotal-val {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--terra-dk);
}

.cart-summary-note {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 300;
}

/* Customer Order Form Inside Cart */
.cart-order-section {
  background: var(--white);
  border: 1px solid rgba(73, 53, 45, 0.1);
  border-radius: 1.25rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-order-header {
  margin-bottom: 0.25rem;
}

.cart-order-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cocoa);
  margin-top: 0.15rem;
}

.cart-submit-wrap {
  margin-top: 0.75rem;
}

.order-modal-submit-btn {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.order-modal-submit-btn:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.order-submit-wa-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.order-form-hint {
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* Form inputs & errors */
.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cocoa);
}

.req {
  color: var(--terra);
  font-weight: 600;
}

.opt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(73, 53, 45, 0.15);
  background: #FAF7F2;
  color: var(--cocoa);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184, 111, 93, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #D32F2F;
  background: #FFF8F8;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.field-error {
  font-size: 0.72rem;
  color: #D32F2F;
  display: none;
  margin-top: 0.15rem;
}

.field-error.show {
  display: block;
}

/* Toast Notification */
.cart-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cart-toast-inner {
  background: var(--cocoa);
  color: var(--white);
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
  font-weight: 400;
}

.cart-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-toast-text {
  color: var(--cream);
}

.cart-toast-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blush);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
}

.cart-toast-btn:hover {
  color: var(--white);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: .1s;
}

.reveal-d2 {
  transition-delay: .2s;
}

.reveal-d3 {
  transition-delay: .32s;
}

.reveal-d4 {
  transition-delay: .44s;
}

/* ===========================
   RESPONSIVE — TABLET
=========================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-hand-label {
    justify-content: center;
  }

  .hero-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-para {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
    min-height: auto;
  }

  .hero-arch {
    max-width: 340px;
  }

  .hero-bg-panel {
    inset: 6% 0 4% 8%;
  }

  .hero-badge {
    top: 16px;
    right: 10px;
  }

  .cakes-grid {
    grid-template-columns: 1fr 1fr;
    max-height: 1080px;
  }

  .story-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .why-grid {
    gap: 2rem;
  }

  .gallery-masonry {
    columns: 3;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .lb-wrap {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  #lb-img {
    max-height: 300px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  #nav-toggle {
    display: flex;
  }

  .hero-inner {
    padding: 3rem 1.5rem 2.5rem;
    gap: 2.5rem;
  }

  h1.hero-heading {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .hero-arch {
    max-width: 280px;
  }

  .hero-bg-panel {
    display: none;
  }

  .hero-dots {
    display: none;
  }

  .hero-arc-line {
    display: none;
  }

  .hero-badge {
    right: 0;
    top: 10px;
  }

  .hero-hand-note {
    bottom: 48px;
    left: -4px;
  }

  .cakes-grid {
    grid-template-columns: 1fr;
    max-height: 840px;
    padding-right: 4px;
  }

  .cakes-filter-container {
    margin-bottom: 2rem;
  }

  .filter-tab {
    padding: 7px 16px;
    font-size: 0.84rem;
  }

  .category-dropdown-menu {
    min-width: 230px;
    max-width: calc(100vw - 32px);
  }

  .custom-strip {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 2rem;
  }

  .story-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-badge {
    width: 90px;
    height: 90px;
    bottom: -14px;
    right: -12px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-item {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .why-item .why-icon-wrap {
    margin: 0;
    flex-shrink: 0;
  }

  .gallery-masonry {
    columns: 2;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  #cakes,
  #story,
  #gallery,
  #wa-cta,
  #why-us {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-fill,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .gallery-masonry {
    columns: 1;
  }
}