/* Xyncema Daily — cozy cafe & bakery composition. Tokens: [data-theme="cafe"] */

[data-theme="cafe"] body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.d-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.d-serif { font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.01em; }
.d-h1 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -0.02em; }
.d-h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; }
.d-h3 { font-family: var(--font-heading); font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
.d-h1 em, .d-h2 em { font-style: italic; color: var(--primary-ink); }
.d-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--primary-ink); background: #F1E2CB; padding: .3rem .7rem; border-radius: 999px; }
.d-muted { color: var(--muted); }
.d-section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.d-center { text-align: center; margin-inline: auto; }

.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .75rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--primary); background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.d-btn:hover { background: #4A3123; border-color: #4A3123; }
.d-btn svg { width: 18px; height: 18px; }
.d-btn--line { background: transparent; color: var(--primary-ink); }
.d-btn--line:hover { background: var(--primary); color: var(--on-primary); }
.d-btn--sm { min-height: 40px; padding: .45rem .95rem; font-size: .9rem; }
.d-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Header */
.d-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.d-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.d-logo { text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }
.d-logo i { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--secondary); display: grid; place-items: center; font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; }
.d-logo b { font-family: var(--font-heading); font-weight: 400; font-size: 1.6rem; }
.d-logo small { display: block; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: -.15rem; }
.d-nav { display: flex; align-items: center; gap: .25rem; background: #fff; border-radius: 999px; padding: .3rem; box-shadow: 0 6px 20px -12px rgba(62,42,31,.35); }
.d-nav a { text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.d-nav a:hover, .d-nav a[aria-current="page"] { background: #F1E2CB; }
.d-tray-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--primary); background: transparent; color: var(--primary-ink); font-weight: 700; }
.d-tray-btn svg { width: 18px; height: 18px; }
.d-tray-btn span[data-tray-count] { background: var(--primary); color: #fff; border-radius: 999px; min-width: 22px; padding: 0 .35rem; font-size: .78rem; }
.d-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--primary); background: transparent; place-items: center; color: var(--primary-ink); }
.d-toggle svg { width: 22px; height: 22px; }
.d-mobile { display: none; }
@media (max-width: 860px) {
  .d-nav { display: none; }
  .d-toggle { display: inline-grid; }
  .is-nav-open .d-mobile { display: grid; gap: .3rem; padding-block: .25rem 1rem; }
  .d-mobile a { text-decoration: none; padding: .8rem 1rem; border-radius: 14px; background: #fff; font-family: var(--font-heading); font-size: 1.4rem; }
  .d-tray-btn .d-tray-label { display: none; }
}

/* Hero: centered headline above a wide still life */
.d-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.d-hero__text { display: grid; gap: 1.25rem; justify-items: center; text-align: center; max-width: 880px; margin-inline: auto; }
.d-hero__text p { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.d-hero__actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.d-hero__img { position: relative; margin-top: clamp(2rem, 4vw, 3rem); }
.d-hero__img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 28px; }
.d-note { position: absolute; right: clamp(1rem, 3vw, 2rem); top: clamp(1rem, 3vw, 2rem); background: #FFF7E8; border-radius: 16px; padding: 1rem 1.1rem; width: min(260px, 70%); box-shadow: 0 16px 34px -18px rgba(46,32,25,.5); transform: rotate(2deg); display: grid; gap: .25rem; }
.d-note b { font-family: var(--font-heading); font-weight: 400; font-size: 1.3rem; }
.d-note span { font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .d-hero__img img { aspect-ratio: 4 / 3; } .d-note { position: static; transform: none; width: auto; margin: -1.5rem 1rem 0; position: relative; } }

/* Morning favourites (tickets) */
.d-favs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.d-fav { background: #fff; border-radius: 22px; padding: .65rem; display: grid; gap: .8rem; text-decoration: none; transition: transform .25s, box-shadow .25s; box-shadow: 0 10px 30px -22px rgba(46,32,25,.5); }
.d-fav:hover { transform: translateY(-4px) rotate(-.5deg); }
.d-fav img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.d-fav div { padding: 0 .4rem .5rem; display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.d-fav b { font-family: var(--font-heading); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.d-fav span { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .d-favs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .d-favs { grid-template-columns: minmax(0, 1fr); } }
.d-favs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .d-favs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .d-favs--3 { grid-template-columns: minmax(0, 1fr); } }

/* Menu board with tabs */
.d-board { background: var(--surface-2); color: var(--on-surface-2); border-radius: 30px; padding: clamp(1.5rem, 4vw, 3rem); }
.d-board .d-muted { color: #D8C6B2; }
.d-board .d-h2 em { color: var(--primary-on-dark); }
.d-tabs [role="tablist"] { display: inline-flex; gap: .25rem; background: rgba(255,255,255,.08); padding: .3rem; border-radius: 999px; margin-block: 1.5rem; flex-wrap: wrap; }
.d-tabs [role="tab"] { border: 0; background: transparent; color: #EADBC7; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; min-height: 42px; }
.d-tabs [role="tab"][aria-selected="true"] { background: var(--secondary); color: var(--on-secondary); }
.d-board :focus-visible { outline-color: var(--primary-on-dark); }
.d-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.d-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px dashed rgba(234,219,199,.25); text-decoration: none; }
.d-line img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.d-line b { font-family: var(--font-heading); font-weight: 400; font-size: 1.35rem; display: block; }
.d-line small { color: #D8C6B2; }
.d-line span.d-p { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primary-on-dark); }
.d-line:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .d-lines { grid-template-columns: 1fr; } }

/* Bakery counter polaroids */
.d-counter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.d-polaroids { position: relative; height: clamp(360px, 42vw, 520px); }
.d-polaroid { position: absolute; background: #fff; padding: .6rem .6rem 2.2rem; border-radius: 6px; box-shadow: 0 20px 40px -24px rgba(46,32,25,.6); width: 52%; text-decoration: none; }
.d-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.d-polaroid span { position: absolute; left: .8rem; bottom: .55rem; font-family: var(--font-heading); font-size: 1.15rem; }
.d-polaroid:nth-child(1) { left: 0; top: 4%; transform: rotate(-5deg); }
.d-polaroid:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); }
.d-polaroid:nth-child(3) { left: 24%; bottom: 0; transform: rotate(-1deg); }
.d-polaroid:hover { z-index: 3; transform: rotate(0) scale(1.03); }
@media (max-width: 860px) { .d-counter { grid-template-columns: 1fr; } .d-polaroids { height: 420px; } }

/* Brewing story */
.d-story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.d-story__img { grid-column: 1 / span 5; border-radius: 26px; overflow: hidden; }
.d-story__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.d-story__text { grid-column: 7 / span 6; display: grid; gap: 1.25rem; padding-top: 2rem; }
.d-steps { display: grid; gap: .75rem; counter-reset: s; }
.d-steps li { counter-increment: s; background: #fff; border-radius: 18px; padding: 1rem 1.1rem; display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem 1rem; }
.d-steps li::before { content: counter(s); grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #F1E2CB; display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.3rem; color: var(--primary-ink); }
.d-steps b { font-weight: 700; }
.d-steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .d-story__img, .d-story__text { grid-column: 1 / -1; } .d-story__img img { aspect-ratio: 16 / 10; } }

/* Atmosphere + visit */
.d-atmos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.d-atmos img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.d-atmos > div { display: grid; gap: 1rem; }
.d-atmos blockquote { background: var(--secondary); color: var(--on-secondary); border-radius: 24px; padding: 1.5rem; font-family: var(--font-heading); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
@media (max-width: 760px) { .d-atmos { grid-template-columns: 1fr; } .d-atmos img { aspect-ratio: 4 / 3; } }
.d-visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem; }
.d-card { background: #fff; border-radius: 26px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 12px 30px -24px rgba(46,32,25,.5); }
.d-hours { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; margin-block: .6rem; }
.d-faq details { border-bottom: 1px dashed var(--border); }
.d-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 700; }
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary::after { content: "+"; width: 26px; height: 26px; border-radius: 50%; background: #F1E2CB; display: grid; place-items: center; color: var(--primary-ink); flex: none; transition: transform .2s; }
.d-faq details[open] summary::after { transform: rotate(45deg); }
.d-faq details p { padding-bottom: 1rem; color: var(--muted); }
@media (max-width: 860px) { .d-visit { grid-template-columns: 1fr; } }

/* Menu page */
.d-pagehead { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; text-align: center; display: grid; gap: .9rem; justify-items: center; }
.d-crumbs { display: flex; gap: .5rem; font-size: .88rem; color: var(--muted); justify-content: center; flex-wrap: wrap; }
.d-crumbs a { color: var(--muted); }
.d-menu-tabs { display: flex; justify-content: center; margin-block: 1.5rem 2rem; }
.d-menu-tabs [role="tablist"] { display: inline-flex; gap: .3rem; background: #fff; padding: .35rem; border-radius: 999px; box-shadow: 0 8px 24px -16px rgba(46,32,25,.4); flex-wrap: wrap; justify-content: center; }
.d-menu-tabs [role="tab"] { border: 0; background: transparent; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; min-height: 44px; }
.d-menu-tabs [role="tab"][aria-selected="true"] { background: var(--primary); color: #fff; }
.d-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .d-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .d-grid { grid-template-columns: 1fr; } }
.d-item { background: #fff; border-radius: 24px; padding: .7rem; display: grid; gap: .8rem; align-content: start; position: relative; box-shadow: 0 10px 30px -24px rgba(46,32,25,.5); }
.d-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.d-item__body { padding: 0 .5rem .5rem; display: grid; gap: .45rem; }
.d-item__top { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.d-item a { text-decoration: none; font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.1; }
.d-item a:hover { text-decoration: underline; text-underline-offset: 4px; }
.d-item__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.d-item__actions { display: flex; gap: .5rem; align-items: center; justify-content: space-between; margin-top: .25rem; flex-wrap: wrap; }
.d-pill { font-size: .75rem; font-weight: 700; background: #F1E2CB; color: var(--primary-ink); padding: .2rem .55rem; border-radius: 999px; }

/* Detail */
.d-detail { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 1.5rem clamp(4rem, 8vw, 6rem); align-items: start; }
.d-dgal { display: grid; gap: .75rem; }
.d-dgal button { border: 0; padding: 0; background: none; border-radius: 26px; overflow: hidden; cursor: zoom-in; line-height: 0; }
.d-dgal > button img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.d-thumbs { display: flex; gap: .6rem; }
.d-thumbs button { width: 84px; border-radius: 14px; }
.d-thumbs img { width: 84px; aspect-ratio: 1; object-fit: cover; }
.d-dinfo { position: sticky; top: 90px; display: grid; gap: 1.25rem; }
.d-price { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.d-options { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; }
.d-options legend { font-weight: 700; margin-bottom: .5rem; }
.d-opt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; background: #fff; border-radius: 16px; border: 1.5px solid transparent; cursor: pointer; }
.d-opt:has(input:checked) { border-color: var(--primary); }
.d-opt input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0 .6rem 0 0; }
.d-opt span { display: flex; align-items: center; }
.d-dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; background: #fff; border-radius: 18px; padding: 1rem 1.1rem; }
.d-dl dt { color: var(--muted); }
.d-qty { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; border: 1.5px solid var(--border); }
.d-qty button { width: 42px; height: 42px; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; }
.d-qty button:disabled { opacity: .35; }
.d-qty svg { width: 16px; height: 16px; }
.d-qty output { min-width: 2rem; text-align: center; font-weight: 700; }
@media (max-width: 860px) { .d-detail { grid-template-columns: 1fr; } .d-dinfo { position: static; } }

/* Tray */
.d-tray li { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; padding-block: .8rem; border-bottom: 1px dashed var(--border); }
.d-tray img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.d-tray b { font-weight: 700; display: block; }
.d-tray small { color: var(--muted); }
.d-tray__right { display: grid; justify-items: end; gap: .3rem; }
.d-remove { background: none; border: 0; padding: .3rem 0; font-size: .8rem; color: var(--muted); text-decoration: underline; min-height: 32px; }
.d-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.d-ok { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--primary-ink); }
.d-ok svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--primary); color: #fff; }
[data-theme="cafe"] dialog.xy-dialog:not(.xy-lightbox) { border-radius: 26px; background: var(--bg); }
[data-theme="cafe"] dialog.xy-drawer:not(.xy-lightbox) { border-radius: 26px 0 0 26px; }
[data-theme="cafe"] .xy-dialog__title { font-weight: 400; font-size: 1.9rem; }

/* Footer */
.d-footer { background: var(--surface-2); color: var(--on-surface-2); border-radius: 36px 36px 0 0; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.d-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 2rem; }
.d-footer h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-on-dark); margin-bottom: .8rem; }
.d-footer ul { display: grid; gap: .45rem; }
.d-footer a { text-decoration: none; color: #F4E6D3; }
.d-footer a:hover { text-decoration: underline; }
.d-footer__big { font-family: var(--font-heading); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; }
.d-footer__big em { color: var(--primary-on-dark); }
.d-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(251,244,233,.18); color: #D8C6B2; }
.d-footer .xy-attribution a, .d-footer .xy-attribution button { color: #fff; }
.d-footer .d-logo b, .d-footer .d-logo small { color: var(--on-surface-2); }
@media (max-width: 760px) { .d-footer__grid { grid-template-columns: 1fr 1fr; } .d-footer__grid > :first-child { grid-column: 1 / -1; } }
