/* ==========================================================================
   Anyday Twist Cafe: menu page
   Modelled on the "camera bag store" reference: a rounded card split into a
   warm copper panel and a cream panel, with the product photo straddling the seam.
   1 Stage  2 Deck  3 Left panel  4 Photo  5 Right panel  6 Full menu  7 Responsive
   ========================================================================== */

[hidden] { display: none !important; }
.menu-page { background: #0F0806; }

/* 1. Stage: dark top and bottom, a split band behind the card ------------ */
.stage {
  position: relative; isolation: isolate; overflow: hidden; padding: 7.5rem 0 5.5rem;
  background:
    radial-gradient(900px 460px at 100% 52%, rgba(190, 145, 115, 0.22), transparent 70%),
    radial-gradient(800px 460px at 0% 44%, rgba(110, 68, 50, 0.3), transparent 70%),
    linear-gradient(180deg, #0F0806, #1A100C 50%, #0F0806);
}
.stage__band {
  --W: min(1240px, calc(100% - 2rem));
  --split: calc((100% - var(--W)) / 2 + var(--W) * 0.64);
  position: absolute; z-index: -1; left: 0; right: 0; top: 13%; bottom: 7%;
  background: linear-gradient(90deg, #5A382B 0%, #69402F var(--split), #A97E66 var(--split), #B88E75 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

/* 2. Deck: the rounded card ---------------------------------------------- */
.deck {
  position: relative; width: min(1240px, calc(100% - 2rem)); height: clamp(660px, 82vh, 760px); margin-inline: auto;
  display: grid; grid-template-columns: 64% 36%; border-radius: 24px; box-shadow: 0 50px 110px rgba(0, 0, 0, 0.6);
}

/* 3. Left panel ---------------------------------------------------------- */
.deck__left {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px 0 0 24px; padding: 1.75rem 2.5rem 2rem 3rem;
  background: linear-gradient(118deg, #5A3629 0%, #794D3B 55%, #946049 100%); color: #fff;
}
.deck__left::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 340px at 85% 20%, rgba(255, 255, 255, 0.1), transparent 70%); }

.deck__bar { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.deck__label { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.tabs { display: inline-flex; gap: 0.2rem; padding: 0.25rem; border-radius: 999px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.16); }
.tab { padding: 0.45rem 1.05rem; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; font-weight: 550; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tab:hover { background: rgba(255, 255, 255, 0.14); }
.tab[aria-selected="true"] { background: #fff; color: #5A3629; }

.deck__info { position: relative; z-index: 1; margin-block: auto; max-width: min(27rem, 54%); transition: opacity 0.2s, transform 0.2s var(--ease); }
.deck__info.is-swapping { opacity: 0; transform: translateY(8px); }
.deck__price { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: #F0DDBA; }
.deck__title { margin-top: 0.35rem; font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
.deck__desc { margin-top: 1.1rem; max-width: 34ch; font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.deck__star { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; font-weight: 600; color: #F0DDBA; }
.deck__star svg { width: 1rem; height: 1rem; }
.deck__star[hidden] { display: none; }
.deck__btn { margin-top: 1.25rem; display: flex; width: max-content; max-width: 100%; align-items: center; gap: 0.6rem; padding: 0.85rem 1.4rem; border-radius: 10px; background: #fff; color: #5A3629; font-weight: 650; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.deck__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }

.deck__facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: min(30rem, 56%); padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.deck__facts dt { font-size: 0.85rem; font-weight: 700; color: #F0DDBA; }
.deck__facts dd { margin-top: 0.25rem; font-size: 0.85rem; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }

/* 4. Photo straddling the seam ------------------------------------------- */
.deck__photo { position: absolute; z-index: 3; left: 45%; top: 9%; width: 37%; height: 65%; overflow: hidden; border-radius: 26px; background: #2A1812; box-shadow: 0 44px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.deck__photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s, transform 0.8s var(--ease); }
.deck__photo img.is-swapping { opacity: 0; transform: scale(1.05); }

/* 5. Right panel --------------------------------------------------------- */
.deck__right { position: relative; display: flex; flex-direction: column; border-radius: 0 24px 24px 0; padding: 1.5rem 1.75rem 1.75rem; background: linear-gradient(165deg, #F6F1E9, #E8E0D4); color: var(--on-light); }
.deck__rtop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.deck__count { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--on-light-muted); }
.deck__cart { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #7B4D3A; color: #fff; transition: transform 0.2s var(--ease), background-color 0.2s; }
.deck__cart:hover { transform: scale(1.08); background: #5A3629; }

.thumbs { margin: 1.1rem 0 0 auto; width: 7.25rem; max-height: 22.5rem; display: grid; gap: 0.6rem; overflow-y: auto; padding: 0.25rem 0.3rem 0.25rem 0.25rem; scrollbar-width: thin; scrollbar-color: rgba(56, 35, 28, 0.3) transparent; }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: #D8CCBC; cursor: pointer; opacity: 0.78; transition: opacity 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; transform: translateX(-3px); }
.thumb[aria-selected="true"] { opacity: 1; border-color: #5A3629; box-shadow: 0 8px 20px rgba(56, 35, 28, 0.28); }
.thumb:focus-visible { outline-color: #5A3629; }

.related { margin-top: auto; display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem; border-radius: 16px; background: #fff; border: 1px solid rgba(56, 35, 28, 0.08); box-shadow: 0 14px 34px rgba(56, 35, 28, 0.1); }
.related img { flex: none; width: 4.2rem; height: 4.2rem; object-fit: cover; border-radius: 12px; }
.related__label { font-size: 0.8rem; font-weight: 700; color: #8A5A3F; }
.related__text { margin-top: 0.1rem; font-size: 0.92rem; line-height: 1.35; font-weight: 550; }
.related__link { display: inline-block; margin-top: 0.25rem; font-size: 0.85rem; font-weight: 600; color: #5A3629; text-underline-offset: 0.25em; }

/* 6. Full menu (cream) --------------------------------------------------- */
.full { padding-block: var(--section-pad); background: #EFE9DF; color: var(--on-light); }
.full__head h2, .deals__head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.015em; }
.full__head p, .deals__head p { margin-top: 0.8rem; font-size: 1.1rem; color: var(--on-light-muted); }
.full__head { margin-bottom: 2.5rem; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.col { padding: 1.9rem 1.9rem 1.4rem; border-radius: 28px; background: #fff; border: 1px solid rgba(56, 35, 28, 0.08); box-shadow: 0 18px 44px rgba(56, 35, 28, 0.08); }
.col:nth-child(2) { margin-top: 2rem; }
.col h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.col__tag { margin-top: 0.3rem; color: var(--on-light-muted); }
.rows { margin-top: 1.1rem; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.8rem 0.25rem; border: 0; border-bottom: 1px dotted rgba(56, 35, 28, 0.35); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background-color 0.2s, padding 0.2s var(--ease); }
.rows li:last-child .row { border-bottom: 0; }
.row:hover { background: rgba(169, 126, 102, 0.12); padding-inline: 0.6rem; }
.row__name { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.row__star svg { width: 0.95rem; height: 0.95rem; color: #B07A2A; }
.row__price { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }

.deals { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 36px; background: linear-gradient(118deg, #5A3629, #794D3B 60%, #946049); color: #fff; }
.deals__head h2 { color: #fff; }
.deals__head p { color: rgba(255, 255, 255, 0.85); }
.deals__list { display: grid; gap: 1rem; }
.deals__list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; padding: 1rem 1.2rem; border-radius: 22px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.16); }
.deals__num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: #F0DDBA; }
.deals__list p { line-height: 1.4; }

/* 7. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .col:nth-child(2) { margin-top: 0; }
  .deals { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .stage { padding-top: 6.5rem; }
  .stage__band { top: 10%; bottom: 5%; background: linear-gradient(180deg, #5A382B 52%, #A97E66 52%); }
  .deck { display: flex; flex-direction: column; height: auto; }
  .deck__left { order: 1; border-radius: 24px 24px 0 0; padding: 1.5rem 1.25rem 7.5rem; }
  .deck__photo { order: 2; position: relative; left: auto; top: auto; width: min(86%, 22rem); height: auto; aspect-ratio: 5 / 6; margin: -6rem auto -6rem; }
  .deck__right { order: 3; border-radius: 0 0 24px 24px; padding: 7.5rem 1.25rem 1.5rem; }
  .deck__info, .deck__facts { max-width: none; }
  .deck__info { margin-block: 1.75rem 2rem; }
  .deck__facts { grid-template-columns: 1fr; gap: 0.8rem; }
  .thumbs { display: flex; width: auto; max-height: none; margin: 1rem -1.25rem 0; padding: 0.4rem 1.25rem 0.8rem; overflow-x: auto; overflow-y: hidden; }
  .thumb { flex: 0 0 6.5rem; }
  .thumb:hover { transform: none; }
  .related { margin-top: 1rem; }
}

@media (max-width: 640px) {
  .deck__bar { flex-direction: column; align-items: flex-start; }
  .deals__list li { grid-template-columns: auto 1fr; }
  .deals__list .btn { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .deck__info, .deck__photo img, .thumb { transition: none; }
}
