:root {
  --canvas: #f8f4ed;
  --card: #fffdf8;
  --card-2: #f0e8db;
  --border: #dfd4c5;
  --header-bg: #fffdf8;
  font-size: 16px;
}

.wrap { max-width: 1240px; padding-inline: 40px; }
main.wrap { padding-block: 48px 64px; }
section.page { padding-block: 0; }
p { line-height: 1.75; }
h1, h2, h3 { font-weight: 500; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 60;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.nav-row {
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  padding-block: 18px;
}
.nav-row .brand-logo { justify-self: start; }
.brand-logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-logo img { width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; }
.brand-name { font: 600 2.5rem/1.05 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; }
.brand-name small { display: block; margin-top: 7px; font: 400 0.62rem/1.3 'Lora', Georgia, serif; text-transform: uppercase; letter-spacing: 0.14em; }
nav.links { gap: 26px; }
nav.links button { min-height: 44px; font-size: 0.85rem; letter-spacing: 0; }
nav.links button:hover { color: var(--berry); border-bottom-color: var(--border); }
.cart-btn { min-height: 44px; padding: 10px 16px; border-radius: 4px; }
.cart-btn:hover { background: var(--card-2); }
.cart-count { color: var(--canvas); }

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  text-align: left;
  padding-block: 20px 32px;
}
.hero-copy { padding: 0; align-items: flex-start; gap: 22px; overflow: visible; }
.hero-copy::before, .hero-copy::after { content: ""; }
.hero-copy::before {
  background: url("/.netlify/images?url=/images/strawberry-sunshine-cake-480.webp&w=480&q=40") right center / contain no-repeat;
  opacity: 0.18;
}
.hero-copy::after {
  background: linear-gradient(to right, var(--canvas), transparent 85%), linear-gradient(to bottom, var(--canvas), transparent 15%, transparent 85%, var(--canvas));
}
.hero-title { font: 400 0.75rem/1.5 'Lora', Georgia, serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry); }
.hero h1 { max-width: 19ch; font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.hero-message { max-width: none; font-size: 1.4rem; line-height: 1.35; font-style: italic; }
.hero p.tag { max-width: 49ch; font-size: 0.92rem; color: var(--ink-soft); }
.location-line { margin: 0; font-size: 0.65rem; line-height: 1.8; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.hero-photo { width: 100%; max-width: 100%; aspect-ratio: 4 / 5; border: 0; border-radius: 120px 120px 6px 6px; margin: 0; }
.btn { min-height: 48px; justify-content: center; padding: 14px 24px; border-radius: 4px; font-size: 0.88rem; transition: background 180ms ease, transform 180ms ease; }
.btn:not(:disabled):hover { background: var(--berry); border-color: var(--berry); color: var(--canvas); transform: translateY(-2px); }
.btn:not(:disabled):active { transform: translateY(0); }
.btn.ghost:not(:disabled):hover { background: var(--card-2); color: var(--ink); border-color: var(--ink); }
.hero .btn { gap: 28px; }
.divider { margin-block: 64px; }

.menu-head, .glance-head { max-width: none; margin: 0 0 32px; text-align: left; }
.menu-head h2, .glance-head h2 { font-size: clamp(2.3rem, 4vw, 3.2rem); line-height: 1.1; }
.menu-head p, .glance-head p { max-width: 65ch; font-size: 0.94rem; margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 0; }
.grid-2 > * { min-width: 0; }
.plate, .product-card { padding: 24px; gap: 14px; border-radius: 6px; }
.plate .glyph, .product-card .card-photo { border: 0; border-radius: 3px; aspect-ratio: 4 / 3; }
.plate .glyph img, .product-card .card-photo img { transition: transform 350ms ease; }
.plate:hover .glyph img, .product-card:hover .card-photo img { transform: scale(1.035); }
.plate h3, .product-card h3 { font-size: 1.9rem; line-height: 1.15; }
.plate .price, .product-card .price { color: var(--berry); font-size: 0.95rem; }
.plate .desc, .product-card .desc { font-size: 0.88rem; line-height: 1.7; }
.plate .price { margin-top: -4px; }
.shop-now-btn { left: auto; right: 14px; bottom: 14px; transform: none; border-radius: 3px; padding: 12px 18px; font-size: 0.72rem; min-height: 44px; }
.product-card .addons { margin-top: auto; padding-top: 8px; }
.addon-row { font-size: 0.82rem; padding-block: 10px; }
.addon-row .p { flex-shrink: 0; }
.addon-row input { flex-shrink: 0; accent-color: var(--berry); width: 16px; height: 16px; }
.qty-row { gap: 12px; padding-top: 10px; }
.qty-control { border-radius: 4px; overflow: hidden; }
.qty-control button { width: 44px; height: 44px; }
.qty-control button:hover { background: var(--card-2); }
.qty-control span { min-width: 30px; }
.btn.small { min-height: 44px; font-size: 0.82rem; }

.glance { padding: 36px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; }
.glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); background: transparent; border: 0; gap: 0 36px; }
.glance-item { background: transparent; border-bottom: 1px solid var(--border); padding: 24px 0; }
.glance-item p { font-size: 0.88rem; }
.glance-item h3 { font-size: 1.6rem; }
.glance-toggle { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.glance-toggle:hover, .glance-toggle[aria-expanded="true"] { color: var(--berry); }
.faq-list { max-width: none; }
.faq-item { padding: 28px 0; }
.faq-item summary { margin: 0; font-size: 1.65rem; }
.faq-item p { font-size: 0.9rem; }

.about-row { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; padding-block: 24px; }
.about-photo { width: 100%; max-width: 100%; margin: 0; aspect-ratio: 4 / 5; border: 0; border-radius: 100px 100px 6px 6px; }
.about-row h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; }
.about-row p, .value-list li { font-size: 0.93rem; }
.checkout { max-width: 900px; margin: 64px auto 0; padding: 40px; border-radius: 6px; }
.checkout h2 { font-size: 2.5rem; }
.field input, .field select, .field textarea { border-radius: 4px; }
.contact-grid { gap: 32px; padding-block: 24px; align-items: start; }
.contact-block { padding: 32px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; min-width: 0; }
.contact-block--hello { position: relative; isolation: isolate; overflow: hidden; --ink: #2c130b; --ink-soft: #5a3d31; --focus: #7d1a22; color: var(--ink); }
.contact-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.16; pointer-events: none; }
.contact-block--hello > :not(.contact-background) { position: relative; z-index: 1; }
.contact-block h2 { font-size: 2.8rem; }
.contact-block p, .contact-list { font-size: 0.9rem; }
.contact-list { gap: 20px; }
.contact-list a, .footer-contact a { overflow-wrap: anywhere; text-underline-offset: 4px; }

footer { background: var(--card-2); margin-top: 0; padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.footer-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.footer-name { font: 500 2.2rem/1.2 'Cormorant Garamond', Georgia, serif; color: var(--ink); margin-bottom: 12px; }
.footer-brand > p:not(.footer-name) { font-size: 0.82rem; }
.footer-contact { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 16px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding-top: 10px; }
.footer-links a { justify-self: start; border-bottom-color: var(--border); padding-bottom: 4px; }
.footer-links a:hover { color: var(--berry); }

/* Homemade Goodness */
.goods-eyebrow { margin: 0 0 10px; color: var(--berry); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.goods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.goods-grid > * { min-width: 0; }
.goods-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: box-shadow 250ms ease, transform 250ms ease; }
.goods-card:hover { box-shadow: 0 14px 34px rgba(44, 19, 11, 0.1); transform: translateY(-3px); }
.goods-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card-2); }
.goods-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 350ms ease; }
.goods-card:hover .goods-photo img { transform: scale(1.04); }
.goods-photo--soon { display: flex; align-items: center; justify-content: center; }
.goods-photo--soon span { font-family: 'Lora', 'Lora Fallback', Georgia, serif; font-style: italic; color: var(--ink-soft); font-size: 1rem; border: 1px solid var(--border); padding: 10px 18px; border-radius: 3px; }
.goods-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.goods-body h3 { font-size: 1.6rem; line-height: 1.15; }
.goods-body .desc { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.7; }
.goods-cta { margin-top: 32px; }
@media (max-width: 960px) { .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 600px) { .goods-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .goods-body h3 { font-size: 1.5rem; } }

@media (max-width: 1000px) {
  .wrap { padding-inline: 28px; }
  .nav-row { gap: 22px; }
  nav.links { gap: 18px; }
  .brand-name { font-size: 2.1rem; }
  .hero { gap: 32px; }
  .hero h1 { font-size: 3rem; }
  .grid-2 { gap: 24px; }
  .plate, .product-card { padding: 20px; }
  .about-row { gap: 32px; }
}

@media (max-width: 760px) {
  .wrap { padding-inline: 20px; }
  main.wrap { padding-block: 32px 48px; }
  .nav-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'logo cart' 'nav nav'; gap: 12px; padding-block: 12px 8px; }
  .nav-row .brand-logo { grid-area: logo; justify-self: start; }
  .nav-row .cart-btn { grid-area: cart; }
  .nav-row .links { grid-area: nav; justify-self: stretch; justify-content: space-between; flex-wrap: nowrap; gap: 10px; }
  .brand-logo { gap: 12px; }
  .brand-logo img { width: 84px; height: 84px; }
  .brand-name { font-size: 2rem; }
  .brand-name small { font-size: 0.56rem; margin-top: 5px; }
  nav.links button { font-size: 0.8rem; white-space: nowrap; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 8px 0; }
  .hero-copy { padding: 0; gap: 18px; }
  .hero h1 { max-width: 20ch; font-size: clamp(2.65rem, 8vw, 3.8rem); }
  .hero p.tag { max-width: 60ch; font-size: 0.94rem; }
  .hero-message { font-size: 1.35rem; }
  .hero-photo { width: 100%; max-width: 100%; margin: 0; aspect-ratio: 4 / 3; border-radius: 70px 70px 4px 4px; }
  .location-line { margin: 0; font-size: 0.63rem; }
  .divider { margin-block: 44px; }
  .grid-2 { gap: 20px; }
  .plate, .product-card { padding: 16px; }
  .plate h3, .product-card h3 { font-size: 1.65rem; }
  .qty-row { flex-wrap: wrap; }
  .glance { padding: 24px; }
  .glance-grid { gap: 0 24px; }
  .glance-item { column-gap: 14px; }
  .glance-item p { grid-column: 1 / -1; }
  .faq-item { padding-block: 24px; }
  .about-row, .contact-grid { grid-template-columns: minmax(0, 1fr); padding-block: 0; gap: 32px; }
  .about-photo { width: 100%; max-width: 100%; margin: 0; aspect-ratio: 4 / 3; }
  .checkout { padding: 24px; margin-top: 40px; }
  #checkout { scroll-margin-top: 150px; }
  .contact-block { padding: 24px; }
  .field input, .field select, .field textarea { font-size: 1rem; }
  .footer-row { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .grid-2, .glance-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { gap: 24px; }
  .plate, .product-card { padding: 20px; }
  .glance-item p { grid-column: 2; }
  .shop-now-btn { padding: 12px 18px; font-size: 0.72rem; }
  .qty-row { flex-wrap: nowrap; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .brand-logo { gap: 8px; }
  .brand-logo img { width: 72px; height: 72px; }
  .brand-name { font-size: 1.65rem; }
  .cart-btn { padding-inline: 10px; }
  .plate, .product-card, .checkout { padding: 16px; }
  .qty-control button { width: 40px; }
  .btn.small { padding-inline: 12px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --canvas: #20140e; --card: #2b1c14; --card-2: #33221a; --border: #4a372b; --header-bg: #33221a; }
}
:root[data-theme='dark'] { --canvas: #20140e; --card: #2b1c14; --card-2: #33221a; --border: #4a372b; --header-bg: #33221a; }

@media (prefers-reduced-motion: reduce) {
  .btn, .plate .glyph img, .product-card .card-photo img, .goods-card, .goods-photo img { transition: none; }
  .btn:not(:disabled):hover, .plate:hover .glyph img, .product-card:hover .card-photo img, .goods-card:hover, .goods-card:hover .goods-photo img { transform: none; }
}

/* Menu: Cakes / Homemade Goodness switch */
.menu-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 32px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; }
.menu-tabs button { min-height: 44px; padding: 10px 24px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 0.9rem; letter-spacing: 0.02em; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.menu-tabs button:hover { color: var(--ink); background: var(--card-2); }
.menu-tabs button[aria-selected="true"] { background: var(--ink); color: var(--canvas); }
.menu-tabs button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.product-card .price .unit { color: var(--ink-soft); font-size: 0.82rem; }
.product-card .card-photo--soon { display: flex; align-items: center; justify-content: center; }
.product-card .card-photo--soon span { font-family: 'Lora', 'Lora Fallback', Georgia, serif; font-style: italic; color: var(--ink-soft); border: 1px solid var(--border); padding: 10px 18px; border-radius: 3px; }
@media (max-width: 600px) { .menu-tabs { display: flex; } .menu-tabs button { flex: 1; padding-inline: 12px; } }

/* Home: Homemade Goodness promo */
.goods-promo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.goods-promo-photo { position: relative; height: 100%; min-height: 340px; overflow: hidden; background: var(--card-2); }
.goods-promo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; transition: transform 350ms ease; }
.goods-promo:hover .goods-promo-photo img { transform: scale(1.035); }
.goods-promo-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(28px, 5vw, 56px); }
.goods-promo-copy .goods-eyebrow { margin: 0; }
.goods-promo-copy h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.1; }
.goods-promo-copy p:not(.goods-eyebrow) { max-width: 46ch; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.7; }
.goods-promo-copy .btn { margin-top: 8px; }
@media (max-width: 760px) {
  .goods-promo { grid-template-columns: minmax(0, 1fr); }
  .goods-promo-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .goods-promo-copy { padding: 24px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .goods-promo-photo img, .menu-tabs button { transition: none; } .goods-promo:hover .goods-promo-photo img { transform: none; } }
/* Home: Signature cake feature */
.signature-cake { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; margin-bottom: 32px; background: var(--card); border: 2px solid var(--berry); border-radius: 6px; overflow: hidden; }
.signature-cake-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; align-self: stretch; align-content: center; background: var(--card-2); }
.signature-cake-photo img { width: 100%; height: auto; aspect-ratio: 1122 / 1402; object-fit: cover; display: block; border-radius: 4px; transition: transform 350ms ease; }
.signature-cake:hover .signature-cake-photo img { transform: scale(1.02); }
.signature-cake-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(28px, 5vw, 56px); }
.signature-cake-copy .goods-eyebrow { margin: 0; }
.signature-cake-copy h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; }
.signature-cake-copy .price { color: var(--berry); font-size: 1.05rem; margin-top: -4px; }
.signature-cake-copy .desc { max-width: 52ch; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.7; }
.signature-cake-copy .btn { margin-top: 8px; }
@media (max-width: 760px) {
  .signature-cake { grid-template-columns: minmax(0, 1fr); }
  .signature-cake-photo { gap: 8px; padding: 8px; }
  .signature-cake-copy { padding: 24px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .signature-cake-photo img { transition: none; } .signature-cake:hover .signature-cake-photo img { transform: none; } }
.goods-body .price { margin-top: -2px; font-family: 'Lora', 'Lora Fallback', Georgia, serif; color: var(--berry); font-size: 0.95rem; }

/* Homemade Goodness: bulk order quote note */
.bulk-note { margin: 4px 0 0; padding: 10px 14px; background: var(--card-2); border-left: 3px solid var(--berry); border-radius: 3px; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.6; }
.bulk-note strong { display: block; color: var(--ink); font-weight: 600; }
.bulk-note a, .bulk-note .link-btn { color: var(--berry); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.bulk-note .link-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.bulk-note a:focus-visible, .bulk-note .link-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.goods-body { flex: 1; }
.goods-body .bulk-note { margin-top: auto; }
.product-card .bulk-note { margin-top: 0; }

/* ---------- Best sellers carousel ---------- */
.favs { --fav-w: 270px; --fav-gap: 24px; --bleed: 40px; }
.favs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.favs-head h2 { font-size: clamp(2.3rem, 4vw, 3.2rem); line-height: 1.1; }
.favs-head p { margin: 0; max-width: 34ch; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; text-align: right; }
.favs-viewport { margin-inline: calc(-1 * var(--bleed)); -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent); }
.favs-track { display: flex; gap: var(--fav-gap); margin: 0; padding: 8px var(--bleed) 18px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.favs-track::-webkit-scrollbar { display: none; }
.favs-track.is-gliding { scroll-snap-type: none; }
.favs-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.favs-track.is-dragging .fav-link { pointer-events: none; }
.fav { flex: 0 0 var(--fav-w); scroll-snap-align: start; contain: layout paint; }
.fav-link { display: flex; flex-direction: column; gap: 6px; height: 100%; color: inherit; text-decoration: none; cursor: pointer; -webkit-user-drag: none; user-select: none; }
.fav-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 10px; border-radius: 6px; background: var(--card-2); box-shadow: 0 1px 0 var(--border); transition: box-shadow 300ms ease, transform 300ms ease; }
.fav-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms cubic-bezier(.2,.7,.2,1); -webkit-user-drag: none; }
.fav-photo::after { content: "View & order  →"; position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; background: linear-gradient(to top, rgba(44, 19, 11, 0.62), transparent); opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 300ms ease; }
.fav-link:hover .fav-photo, .fav-link:focus-visible .fav-photo { box-shadow: 0 16px 36px rgba(44, 19, 11, 0.14); transform: translateY(-4px); }
.fav-link:hover .fav-photo img, .fav-link:focus-visible .fav-photo img { transform: scale(1.05); }
.fav-link:hover .fav-photo::after, .fav-link:focus-visible .fav-photo::after { opacity: 1; transform: none; }
.fav-link:focus-visible { outline: none; }
.fav-link:focus-visible .fav-photo { outline: 2px solid var(--focus); outline-offset: 4px; }
.fav-tag { color: var(--berry); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.fav-name { font: 500 1.45rem/1.15 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; color: var(--ink); }
.fav-price { color: var(--ink-soft); font-size: 0.84rem; }
.favs-progress { position: relative; height: 2px; max-width: 220px; margin: 18px auto 0; background: var(--border); border-radius: 2px; overflow: hidden; }
.favs-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--berry); border-radius: 2px; transition: transform 120ms linear; }
@media (hover: none) { .fav-photo::after { opacity: 1; transform: none; content: "Tap to order  →"; } }
@media (max-width: 1000px) { .favs { --bleed: 28px; } }
@media (max-width: 960px) { .favs { --fav-w: 38vw; --fav-gap: 18px; } }
@media (max-width: 760px) {
  .favs { --bleed: 20px; }
  .favs-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .favs-head p { text-align: left; }
}
@media (max-width: 600px) {
  .favs { --fav-w: 72vw; --fav-gap: 14px; }
  .favs-viewport { -webkit-mask-image: none; mask-image: none; }
  .fav-name { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fav-photo, .fav-photo img, .fav-photo::after, .favs-progress span { transition: none; }
  .fav-link:hover .fav-photo, .fav-link:hover .fav-photo img { transform: none; }
}
.product-card.is-highlight { animation: fav-highlight 2.4s ease-out; }
@keyframes fav-highlight { 0%, 30% { box-shadow: 0 0 0 3px var(--berry), 0 18px 40px rgba(44, 19, 11, 0.16); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .product-card.is-highlight { animation-duration: 0.01ms; animation-iteration-count: 1; outline: 3px solid var(--berry); outline-offset: 2px; } }

/* ================= Christmas collection ================= */
.xmas {
  --x-green: #0f3b2c; --x-green-2: #165340; --x-red: #b8262f; --x-gold: #f2cf7e; --x-snow: #fffaf1;
  position: relative; margin-top: 64px; overflow: hidden; isolation: isolate;
  border-radius: 10px; color: var(--x-snow);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(242, 207, 126, 0.16), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(184, 38, 47, 0.28), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(184, 38, 47, 0.18), transparent 60%),
    linear-gradient(180deg, var(--x-green-2), var(--x-green));
  box-shadow: 0 24px 60px rgba(15, 59, 44, 0.28);
}
.xmas::before { /* candy-cane trim */
  content: ""; position: absolute; inset: 0 0 auto; height: 8px; z-index: 2;
  background: repeating-linear-gradient(-45deg, var(--x-red) 0 12px, var(--x-snow) 12px 24px);
}
.xmas-inner { position: relative; z-index: 2; padding: 76px clamp(20px, 5vw, 64px) 56px; text-align: center; }

/* String of fairy lights */
.xmas-lights { position: absolute; top: 8px; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-around; height: 34px; pointer-events: none; }
.xmas-lights::before { content: ""; position: absolute; left: -2%; right: -2%; top: -14px; height: 30px; border-bottom: 2px solid rgba(255, 250, 241, 0.35); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.xmas-lights span { position: relative; top: 10px; width: 10px; height: 15px; border-radius: 50% 50% 45% 45%; background: var(--x-gold); box-shadow: 0 0 12px 3px rgba(242, 207, 126, 0.7); animation: xmas-twinkle 1.6s ease-in-out infinite alternate; }
.xmas-lights span::before { content: ""; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; border-radius: 2px; background: #3a4a40; }
.xmas-lights span:nth-child(4n+1) { background: #ff5a5f; box-shadow: 0 0 12px 3px rgba(255, 90, 95, 0.65); animation-delay: .2s; }
.xmas-lights span:nth-child(4n+2) { background: #7ee0a3; box-shadow: 0 0 12px 3px rgba(126, 224, 163, 0.6); animation-delay: .7s; }
.xmas-lights span:nth-child(4n+3) { background: #8fc8ff; box-shadow: 0 0 12px 3px rgba(143, 200, 255, 0.6); animation-delay: 1.1s; }
.xmas-lights span:nth-child(odd) { top: 16px; }
@keyframes xmas-twinkle { from { opacity: 1; } to { opacity: 0.35; box-shadow: none; } }

/* Gentle snowfall */
.xmas-snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.8;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 110px 80px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 170px 150px, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(3px 3px at 60px 190px, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(2px 2px at 230px 40px, #fff 50%, transparent 51%),
    radial-gradient(4px 4px at 260px 210px, rgba(255,255,255,.7) 50%, transparent 51%);
  background-size: 280px 240px;
  animation: xmas-snow 14s linear infinite;
}
.xmas-snow::after { content: ""; position: absolute; inset: 0; opacity: 0.6;
  background-image:
    radial-gradient(2px 2px at 40px 60px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 140px 20px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 90px 130px, #fff 50%, transparent 51%);
  background-size: 180px 160px;
  animation: xmas-snow-2 22s linear infinite;
}
@keyframes xmas-snow { to { background-position: 40px 240px, -30px 240px, 20px 240px, -20px 240px, 30px 240px, -40px 240px; } }
@keyframes xmas-snow-2 { to { background-position: -20px 160px, 20px 160px, -10px 160px; } }

.xmas-eyebrow { display: inline-flex; gap: 10px; align-items: center; margin: 0 0 14px; padding: 7px 16px; border: 1px solid rgba(242, 207, 126, 0.45); border-radius: 999px; color: var(--x-gold); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(15, 59, 44, 0.45); }
.xmas-head h2 { margin: 0; color: var(--x-snow); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.xmas-lede { max-width: 56ch; margin: 14px auto 0; color: rgba(255, 250, 241, 0.86); font-size: 0.95rem; line-height: 1.7; }

/* Coverflow carousel */
.xmas-carousel { --slide-w: clamp(240px, 30vw, 380px); margin-top: 40px; }
.xmas-stage { position: relative; height: calc(var(--slide-w) * 1.25 + 86px); perspective: 1400px; touch-action: pan-y; }
.xmas-slide {
  position: absolute; top: 0; left: 50%; width: var(--slide-w); padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transform: translateX(-50%); transition: transform 700ms cubic-bezier(.2,.75,.2,1), opacity 600ms ease, filter 600ms ease;
  -webkit-tap-highlight-color: transparent;
}
.xmas-slide.is-active { z-index: 3; transform: translateX(-50%) scale(1); }
.xmas-slide.is-prev { z-index: 2; transform: translateX(-118%) scale(0.8) rotateY(14deg); opacity: 0.6; filter: saturate(0.8) brightness(0.8); }
.xmas-slide.is-next { z-index: 2; transform: translateX(18%) scale(0.8) rotateY(-14deg); opacity: 0.6; filter: saturate(0.8) brightness(0.8); }
.xmas-slide.is-hidden { z-index: 1; opacity: 0; transform: translateX(-50%) scale(0.6); pointer-events: none; }
.xmas-slide:not(.is-active):hover { opacity: 0.85; }
.xmas-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #e9e2d4; border: 4px solid var(--x-snow); box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35); }
.xmas-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
.xmas-slide.is-active .xmas-photo::after { content: "Tap for price & details"; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 14px; white-space: nowrap; border-radius: 999px; background: rgba(15, 59, 44, 0.88); color: var(--x-snow); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.xmas-slide.is-active:hover .xmas-photo img, .xmas-slide.is-active:focus-visible .xmas-photo img { transform: scale(1.05); }
.xmas-slide:focus-visible { outline: none; }
.xmas-slide:focus-visible .xmas-photo { outline: 3px solid var(--x-gold); outline-offset: 4px; }
.xmas-ribbon { position: absolute; top: 18px; left: -8px; padding: 6px 14px 6px 16px; background: var(--x-red); color: #fff; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 0 3px 3px 0; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.xmas-ribbon::before { content: ""; position: absolute; left: 0; bottom: -8px; border-top: 8px solid #7a1219; border-left: 8px solid transparent; }
.xmas-caption { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; text-align: center; transition: opacity 400ms ease; }
.xmas-slide:not(.is-active) .xmas-caption { opacity: 0; }
.xmas-name { font: 500 1.7rem/1.1 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; color: var(--x-snow); }
.xmas-price { color: var(--x-gold); font-size: 0.84rem; letter-spacing: 0.04em; }

.xmas-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.xmas-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 250, 241, 0.5); border-radius: 50%; background: rgba(255, 250, 241, 0.08); color: var(--x-snow); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.xmas-arrow:hover { background: rgba(255, 250, 241, 0.2); transform: scale(1.06); }
.xmas-dots { display: flex; gap: 8px; }
.xmas-dot { position: relative; width: 34px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.xmas-dot span { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 250, 241, 0.3); overflow: hidden; }
.xmas-dot span::after { content: ""; position: absolute; inset: 0; background: var(--x-gold); transform: scaleX(0); transform-origin: left; }
.xmas-dot.is-on span::after { transform: scaleX(1); }
.xmas-carousel.is-ticking .xmas-dot.is-on span::after { animation: xmas-progress var(--xmas-interval, 3200ms) linear both; }
@keyframes xmas-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.xmas-pause { min-height: 44px; padding: 0 14px; border: 0; background: none; color: rgba(255, 250, 241, 0.75); font: inherit; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.xmas-arrow:focus-visible, .xmas-dot:focus-visible, .xmas-pause:focus-visible, .xmas-shop-all:focus-visible { outline: 2px solid var(--x-gold); outline-offset: 3px; }

.xmas-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255, 250, 241, 0.88); font-size: 0.85rem; }
.xmas-perks li { display: inline-flex; gap: 8px; align-items: center; }
.xmas-shop-all { margin-top: 26px; min-height: 48px; padding: 14px 26px; border: 1px solid var(--x-gold); border-radius: 4px; background: var(--x-gold); color: #2c130b; font: inherit; font-size: 0.88rem; cursor: pointer; transition: transform 180ms ease, background 180ms ease; }
.xmas-shop-all:hover { background: #fff1c9; transform: translateY(-2px); }

@media (max-width: 760px) {
  .xmas { margin-top: 44px; border-radius: 8px; }
  .xmas-inner { padding-top: 64px; padding-bottom: 44px; }
  .xmas-carousel { --slide-w: 68vw; }
  .xmas-slide.is-prev { transform: translateX(-128%) scale(0.78); }
  .xmas-slide.is-next { transform: translateX(28%) scale(0.78); }
  .xmas-lights span:nth-child(n+11) { display: none; }
  .xmas-pause { padding-inline: 8px; }
}

/* Details & preorder dialog */
.xmas-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: auto; }
.xmas-dialog::backdrop { background: rgba(15, 30, 22, 0.66); backdrop-filter: blur(3px); }
.xmas-dialog[open] { animation: xmas-pop 320ms cubic-bezier(.2,.8,.2,1); }
@keyframes xmas-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.xmas-dialog::before { content: ""; display: block; height: 6px; background: repeating-linear-gradient(-45deg, #b8262f 0 10px, #fffaf1 10px 20px); }
.xmas-dlg-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 250, 241, 0.92); color: #2c130b; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.xmas-dlg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.xmas-dlg-photo { position: relative; min-height: 420px; background: var(--card-2); }
.xmas-dlg-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.xmas-dlg-copy { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 4vw, 44px); }
.xmas-dlg-tag { margin: 0; color: #1d6b4f; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.xmas-dlg-copy h3 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.05; }
.xmas-dlg-price { margin: 0; color: var(--berry); font: 600 1.6rem/1 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; }
.xmas-dlg-desc { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.7; }
.xmas-dlg-notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.xmas-dlg-notes li { padding: 5px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); font-size: 0.76rem; color: var(--ink-soft); }
.xmas-dlg-notes li::before { content: "✦ "; color: #b8262f; }
.xmas-dlg-addon { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px dashed var(--border); border-radius: 6px; font-size: 0.88rem; cursor: pointer; }
.xmas-dlg-addon input { width: 18px; height: 18px; accent-color: #b8262f; }
.xmas-dlg-addon span { margin-left: auto; color: var(--ink-soft); }
.xmas-dlg-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.xmas-preorder { flex: 1; min-width: 180px; gap: 10px; background: #b8262f; border-color: #b8262f; color: #fff; }
.xmas-preorder:not(:disabled):hover { background: #8f1b23; border-color: #8f1b23; color: #fff; }
.xmas-dlg-fine { margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.6; }
@media (max-width: 700px) {
  .xmas-dlg-grid { grid-template-columns: 1fr; }
  .xmas-dlg-photo { min-height: 0; aspect-ratio: 5 / 4; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .xmas-dlg-tag { color: #7ee0a3; } }
:root[data-theme='dark'] .xmas-dlg-tag { color: #7ee0a3; }

/* Christmas tab and menu cards */
.menu-tabs button.tab-festive[aria-selected="true"] { background: #165340; color: #fffaf1; }
.product-card.is-festive { position: relative; border-top: 4px solid #b8262f; }
.product-card.is-festive::before { content: "Christmas"; position: absolute; top: 36px; left: 36px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: #165340; color: #fffaf1; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.product-card .card-base { margin: -4px 0 6px; color: var(--berry); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .xmas-lights span, .xmas-snow, .xmas-snow::after, .xmas-dialog[open] { animation: none; }
  .xmas-slide, .xmas-photo img { transition: none; }
}

/* Cake size picker (Christmas chiffon cakes: 6″ / 8″) */
.size-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
.size-pick legend { width: 100%; margin-bottom: 6px; padding: 0; color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.size-pick label { position: relative; cursor: pointer; }
.size-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-pick span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.88rem; background: var(--card-2); }
.size-pick em { font-style: normal; color: var(--ink-soft); }
.size-pick input:checked + span { border-color: #b8262f; background: #b8262f; color: #fffaf1; }
.size-pick input:checked + span em { color: #fffaf1; }
.size-pick input:focus-visible + span { outline: 2px solid #165340; outline-offset: 2px; }
