/* Version 3, "The lineup". One skin that joins the two earlier versions:
   Oshara's soft pink and plum, the real A&M magenta, and the shared ordering engine.
   Structure follows the big dessert brands: a solid pink bar, a white page, large photo tiles with no card chrome,
   one heavy typeface, dark pill buttons. The pink and lilac come from A&M's own product photography.
   Loaded after styles.css; only re-skins, never changes behaviour. */
:root {
  --pink: #ffbfda;          /* header bar, bands: the backdrop of A&M's cake photos */
  --pink-soft: #fff0f6;
  --lilac: #e6daf8;         /* the backdrop of A&M's cupcake photos, lightened */
  --plum: #8b1a7a;          /* Oshara's plum: hovers, links on tint */
  --ink: #230b20;
  --ink-2: #63485d;
  --raspberry: #230b20;     /* buttons and links read as ink in this skin */
  --raspberry-dark: #8b1a7a;
  --tag: #8b1a7a;
  --glass: #fbeef4;
  --line: #f0dde7;
  --display: Gabarito, system-ui, sans-serif;
  --body: Gabarito, system-ui, sans-serif;
  --max: 1320px;
}

body { font-size: 17px; line-height: 1.5; }
h1, h2, .display { font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1; text-wrap: balance; }
h3 { letter-spacing: -0.01em; }
a { color: var(--ink); }
a:hover { color: var(--plum); }
.btn { font-weight: 700; letter-spacing: 0; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.text-link { color: var(--plum); }

/* Header: solid pink bar, white planner strip under it */
.sign { background: var(--pink); backdrop-filter: none; }
.sign.scrolled { box-shadow: 0 10px 24px -14px rgba(35,11,32,.35); }
.sign-row { min-height: 72px; }
.logo img { height: 48px; background: #fff; border-radius: 14px; padding: 4px 10px; box-sizing: content-box; }
.nav { font-size: 16px; font-weight: 700; gap: 24px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--ink); }
.icon-btn:hover { background: rgba(255,255,255,.55); }
.bag-count { background: var(--ink); }
.order-now { display: inline-flex; min-height: 44px; padding: 0 22px; font-size: 15px; margin-left: 6px; }
@media (max-width: 1100px) { .order-now { display: none; } .nav.open a::after { display: none; } }
.awning { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 15px; }
.awning::after { display: none; }
.awning .area-btn, .awning .link-btn { color: var(--ink); }
.search-panel .input, .input { border-radius: 14px; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(139,26,122,.18); }

/* Hero: the line, then the photograph */
.l-hero { padding: clamp(28px, 4vw, 56px) 0 0; }
.l-hero-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.l-hero h1 { font-size: clamp(50px, 7.4vw, 116px); line-height: .9; letter-spacing: -0.05em; text-wrap: balance; }
.l-hero-side p { margin: 0 0 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 26em; }
.l-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.l-stage { position: relative; margin-top: clamp(24px, 3vw, 40px); height: clamp(300px, 50vh, 540px); border-radius: 36px; overflow: hidden; background: #b79ad6; }
.l-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
.l-slide.on { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.l-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.l-sticker { position: absolute; right: clamp(16px, 4vw, 48px); top: clamp(16px, 4vw, 40px); width: 148px; height: 148px; border-radius: 50%; background: var(--pink); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; rotate: 8deg; font-size: 14px; font-weight: 600; line-height: 1.2;
  box-shadow: 0 14px 30px -10px rgba(35,11,32,.45); transition: rotate .25s cubic-bezier(.3,1.4,.5,1), scale .25s; }
.l-sticker b { font-size: 20px; font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 4px; }
.l-slide:hover .l-sticker { rotate: -4deg; scale: 1.05; }
.l-stage-ctl { position: absolute; left: 20px; bottom: 18px; display: flex; align-items: center; gap: 12px; }
.l-stage-ctl button { width: 40px; height: 40px; border-radius: 50%; border: none; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.l-stage-ctl button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.l-dots { display: flex; gap: 6px; background: rgba(35,11,32,.45); padding: 8px 10px; border-radius: 999px; }
.l-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .3s, width .3s; }
.l-dots i.on { background: #fff; width: 22px; border-radius: 4px; }
@media (max-width: 860px) {
  .l-hero-top { grid-template-columns: 1fr; }
  .l-stage { height: auto; aspect-ratio: 1; border-radius: 28px; }
  .l-slide img { object-position: 50% 50%; }
  .l-sticker { width: 116px; height: 116px; font-size: 12px; }
  .l-sticker b { font-size: 16px; }
  .l-ctas .btn { flex: 1 1 auto; }
}

/* Category rail */
.l-cats { padding: clamp(28px, 4vw, 48px) 0 0; }
.l-cat-rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); text-align: center; }
.cat .ring { display: block; aspect-ratio: 1; border-radius: 24px; overflow: hidden; }
.cat .ring img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.cat:hover .ring img { transform: scale(1.06); }
.cat b { font-size: 16px; font-weight: 700; line-height: 1.2; }
@media (max-width: 900px) {
  .l-cat-rail { display: flex; overflow-x: auto; gap: 12px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .cat { flex: 0 0 104px; scroll-snap-align: start; }
  .cat .ring { border-radius: 20px; }
  .cat b { font-size: 14px; }
}

/* Section scaffolding */
.l-section { padding: clamp(56px, 7vw, 104px) 0; }
.l-tint-pink { background: var(--pink-soft); }
.l-head { margin-bottom: clamp(24px, 3vw, 40px); }
.l-head p, .l-sub { margin: 12px 0 0; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 34em; }
.l-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }

/* Product tiles: a big photo, a name, a price. No card. */
.case { background: none; }
.shelf { overflow: visible; column-gap: 24px; row-gap: 36px; padding: 0; }
.item-photo { border-radius: 24px; background: var(--glass); }
.ledge { display: none; }
.item .tag, a.tag:hover { background: none; color: var(--ink); box-shadow: none; padding: 14px 2px 0; margin: 0; gap: 2px; border-radius: 0; }
.item .tag-name { text-transform: none; letter-spacing: -0.015em; font-size: 19px; font-weight: 800; line-height: 1.2; }
.item .tag-price { color: var(--ink-2); font-size: 16px; font-weight: 500; }
a.tag:hover .tag-name { color: var(--plum); }
.item .item-meta { padding: 0 2px; margin-top: 6px; font-size: 15px; }
.item-add { background: var(--ink); color: #fff; box-shadow: 0 6px 14px rgba(35,11,32,.3); }
.item-add:hover { background: var(--plum); }
.item-add.in { background: var(--magenta); }
.item-step { background: var(--ink); }
.item-flag { font-weight: 700; }
@media (max-width: 640px) {
  .shelf, .shelf[style] { column-gap: 12px; row-gap: 24px; }
  .item-photo { border-radius: 18px; }
  .item .tag { padding-top: 10px; }
  .item .tag-name { font-size: 16px; }
  .item .tag-price { font-size: 14px; }
  .item .item-meta { font-size: 13px; }
}

/* Build a box: the box stays in view on the left while the lineup scrolls on the right */
.l-build { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); scroll-margin-top: 72px; }
.l-build-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.l-build-grid > * { min-width: 0; }
.l-boxpanel { position: sticky; top: 88px; background: var(--lilac); border-radius: 32px; padding: 28px; max-height: calc(100dvh - 104px); overflow-y: auto; scrollbar-width: thin; }
.l-boxpanel .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "box" "copy"; row-gap: 18px; }
.l-boxpanel .hero-title { font-family: var(--display); font-size: 32px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; align-self: start; }
.l-boxpanel .box { margin: 0 auto; max-width: 340px; }
.l-boxpanel .box-caption { margin-top: 16px; min-height: 0; }
.l-boxpanel .hero-copy { gap: 14px; }
.l-boxpanel .lede { font-size: 15px; line-height: 1.45; }
.sizes { background: rgba(255,255,255,.6); align-self: stretch; }
.sizes button { flex: 1; padding: 0 10px; font-family: var(--body); }
.mixes button, .fam-filter button { font-family: var(--body); border-color: transparent; }
.mixes button { background: rgba(255,255,255,.75); }
.mixes button:hover { border-color: var(--ink); color: var(--ink); }
.mixes button[data-mix="surprise"] { border-color: var(--ink); }
.lid-note-field summary { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.l-box-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 14px; border-top: 1px solid rgba(35,11,32,.14); }
.l-box-buy .box-total { flex-direction: column; gap: 0; font-size: 14px; }
.l-box-buy .box-total b { font-size: 28px; letter-spacing: -0.03em; }
.l-box-buy .btn { flex: 1 1 180px; min-height: 52px; padding: 0 18px; font-size: 16px; }
.l-lineup .fam-filter { margin-bottom: 24px; }
.fam-filter button { background: var(--glass); font-size: 15px; min-height: 42px; padding: 0 18px; }
.fam-filter button:hover { border-color: var(--ink); }
.l-lineup .shelf { --item: 200px; }
@media (max-width: 900px) {
  .l-build-grid { grid-template-columns: minmax(0, 1fr); }
  .l-boxpanel { position: static; max-height: none; padding: 22px 18px; border-radius: 26px; }
}

/* Cakes */
.l-wide { --item: 320px; }
.l-sizes { margin-top: clamp(32px, 4vw, 56px); background: var(--glass); border-radius: 28px; padding: 28px 32px; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px 40px; align-items: center; }
.l-sizes h3 { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.l-sizes .size-guide { border: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 32px; }
.l-sizes .size-guide li { border: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.l-sizes .size-guide b { font-size: 22px; letter-spacing: -0.02em; }
.l-sizes .size-guide span { text-align: left; align-self: auto; font-weight: 700; }
@media (max-width: 760px) { .l-sizes { grid-template-columns: 1fr; padding: 22px; } }

/* Occasions */
.occasions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); }
.occ-photo { border-radius: 32px; aspect-ratio: 1; }
.occ-photo .tag { background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 16px; left: 18px; bottom: 18px; }
.occ-photo .tag-name { text-transform: none; letter-spacing: -0.01em; font-size: 16px; }
.occ-list { border-top-color: rgba(35,11,32,.14); margin-top: 28px; }
.occ-list a { border-bottom-color: rgba(35,11,32,.14); padding: 14px 0; }
.occ-list .display { font-size: clamp(30px, 3.8vw, 52px); }
.occ-list a:hover .display, .occ-list a[aria-current="true"] .display { color: var(--plum); }
@media (max-width: 860px) { .occasions { grid-template-columns: 1fr; } .occ-photo { order: 0; aspect-ratio: 4 / 3; } }

/* Feature rows */
.l-features { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 104px); }
.l-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.l-feature-photo { display: block; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--glass); }
.l-feature-photo img[data-photo] { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.l-feature-photo:hover img[data-photo] { transform: scale(1.04); }
.l-feature-card { background: var(--lilac); display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); text-decoration: none; }
.l-feature-card .gift-card { width: min(440px, 100%); display: flex; flex-direction: column; rotate: -4deg; box-shadow: 0 30px 50px -24px rgba(35,11,32,.55); transition: rotate .3s cubic-bezier(.3,1.4,.5,1); }
.l-feature-card:hover .gift-card { rotate: 0deg; }
.gift-card { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%), linear-gradient(135deg, #ff7fc0, #8b1a7a); }
.l-feature p { margin: 16px 0 24px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 30em; }
.l-flip .l-feature-photo { order: 2; }
@media (max-width: 800px) { .l-feature { grid-template-columns: 1fr; } .l-flip .l-feature-photo { order: 0; } }

/* Christmas band */
.season { border-radius: 36px; margin: 0 var(--gut); padding: clamp(48px, 6vw, 88px) 0; }
.season .item-photo { background: rgba(255,255,255,.08); }
.season .item .tag, .season .item a.tag:hover { color: #fff; background: none; }
.season a.tag:hover .tag-name { color: #fff; }
.season .item .tag-price, .season .item-meta { color: #cfe2da; }
.season .item-add { background: #fff; color: var(--xmas); }
.season .btn:hover { color: var(--xmas); }
@media (min-width: 1400px) { .season { max-width: calc(var(--max) - 2 * var(--gut)); margin: 0 auto; } }

/* ANM10 band */
.l-promo { background: var(--pink); border-radius: 36px; padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.l-promo p { margin: 10px 0 0; font-size: 18px; }
.l-code { border: 2.5px dashed var(--ink); border-radius: 20px; padding: 14px 30px; font: 900 clamp(26px, 3vw, 38px)/1 var(--display); letter-spacing: .04em; color: var(--ink); background: rgba(255,255,255,.45); cursor: pointer; }
.l-code:hover { background: #fff; }

/* Visit and delivery */
.visit { align-items: center; gap: clamp(28px, 5vw, 72px); }
.storefront { border-radius: 32px; box-shadow: none; }
.outlets { border-top: none; margin-top: 20px; }
.outlets b { font-size: 26px; letter-spacing: -0.03em; }
.rating .stars span { color: var(--plum); }
.rating-line { font-size: 22px; letter-spacing: -0.02em; }
.checker { border-radius: 28px; padding: clamp(22px, 3vw, 36px); margin-top: clamp(36px, 5vw, 64px); }
.checker h3 { font-size: 28px; letter-spacing: -0.03em; }

/* Questions */
.l-faq { padding-top: 0; }
.l-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 24px 64px; align-items: start; }
.l-faq details { border-bottom: 1px solid var(--line); }
.l-faq details:first-child { border-top: 1px solid var(--line); }
.l-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.015em; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--glass); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; transition: rotate .2s, background .2s; }
.l-faq details[open] summary::after { rotate: 45deg; background: var(--pink); }
.l-faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 38em; }
.l-faq details a { color: var(--plum); font-weight: 700; }
@media (max-width: 800px) { .l-faq-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { margin-top: 0; border-radius: 36px 36px 0 0; }
.footer::before { display: none; }

/* Shop, product, bag and checkout in the same voice */
.page-top h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.045em; line-height: .95; }
.tabs { gap: 8px; border-bottom: none; padding-bottom: 4px; }
.tabs a { padding: 10px 18px; border-radius: 999px; border: none; margin: 0; background: var(--glass); color: var(--ink); font-weight: 700; }
.tabs a[aria-current="true"] { background: var(--ink); color: #fff; }
.summary, .plan-row, .pairs { border-radius: 24px; }
.pdp-photo .frame { border-radius: 32px; }
.pdp-photo .ledge { display: none; }
.pdp-photo .tag { margin: 14px 0 0; background: var(--pink); color: var(--ink); border-radius: 999px; padding: 6px 14px; }
.pdp-photo .tag-name { text-transform: none; letter-spacing: 0; font-size: 14px; }
.quick { border-radius: 28px; }
.quick-photo img { border-radius: 20px; }
.quick-photo .tag { display: none; }
.quick-body .quick-fam { color: var(--plum); }
.seg button[aria-checked="true"], .options label:has(input:checked), .day-chips input:checked + span, .check:has(input:checked) { background: var(--pink-soft); }
.size-viz span.on { background: var(--pink); border-color: var(--ink); }
.toast { border-radius: 999px; }
#toast-action { color: var(--pink); }
.box-bar .dots i.on { background: var(--pink); }
.box-bar .btn, .buy-bar .btn { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.box-bar .btn[disabled] { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.lid-note { color: var(--plum); }
.foot-brand img { align-self: flex-start; }
