:root {
  color-scheme: light;
  font-size: 112.5%;
  scroll-padding-top: 6rem;
  --wine: #6c1e2a;
  --deep: #48131d;
  --paper: #faf7f0;
  --card: #fffdf8;
  --ink: #28221d;
  --muted: #53473e;
  --line: #e5d9ca;
  --control-border: #8d7165;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-large-text] { font-size: 137.5%; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(1.85rem, 5vw, 3.2rem); margin-bottom: .28em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-bottom: .55em; }
h3 { font-size: 1.42rem; margin-bottom: .36em; }
:focus-visible { outline: 3px solid #14568a; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .5rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 3; background: var(--card); border-bottom: 1px solid var(--line); }
.masthead { display: flex; min-height: 80px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-block: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--wine); text-decoration: none; font: 1.8rem/.95 var(--serif); white-space: nowrap; }
.brand-filters { position: absolute; pointer-events: none; }
.brand-ink { flood-color: var(--wine); }
.wordmark-art:empty { display: none; }
.wordmark-logo { display: block; width: min(6.7rem, 42vw); height: 3.4rem; }
.wordmark-fallback { display: flex; align-items: center; gap: 12px; }
.wordmark-art:not(:empty):not([hidden]) + .wordmark-fallback { display: none; }
.wordmark small { display: block; margin-top: 8px; font: 700 .66rem/1 var(--sans); letter-spacing: .145em; }
.wordmark-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #ad7f68; border-radius: 50%; letter-spacing: -.1em; padding-right: .09em; font-size: 1.42rem; }
.header-tools { display: flex; gap: 8px; }
.header-tools .button { padding-inline: .65rem; }
.header-phone { gap: .35rem; }
#large-text[aria-pressed="true"] { color: white; background: var(--wine); border-color: var(--wine); }
.cart-link { gap: .4rem; }
.cart-count { display: grid; place-items: center; min-width: 1.6rem; min-height: 1.6rem; padding-inline: .26rem; background: var(--wine); color: white; border-radius: 99px; }
.nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 clamp(14px, 3vw, 38px); border-bottom: 1px solid var(--line); }
.nav a { display: inline-flex; align-items: center; min-height: 50px; text-decoration: none; border-bottom: 3px solid transparent; color: var(--ink); font-weight: 650; }
.nav a[aria-current="page"], .nav a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.nav .christmas-nav { background: #153b31; color: #fff9ef; gap: .3rem; padding-inline: .65rem .85rem; border-radius: 8px 8px 0 0; }
.nav .christmas-nav:hover, .nav .christmas-nav[aria-current="page"] { color: #fff9ef; border-bottom-color: #e2bd7b; }
.christmas-nav img { width: 32px; height: 32px; }
.store-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; border-bottom: 1px solid var(--line); padding-block: 8px; }
.store-brand { display: grid; grid-template-rows: auto auto; place-items: center; align-content: end; gap: 6px; color: var(--wine); text-align: center; text-underline-offset: .2em; min-height: 48px; padding: 4px; }
.store-brand-logo { display: block; width: min(100%, 9rem); height: 2.8rem; }
.store-brand span { font-size: .9rem; font-weight: 700; line-height: 1.2; }
main { min-height: 63vh; padding-block: 28px 64px; }
.hero { min-height: 350px; display: grid; align-items: center; border-radius: 22px; overflow: hidden; background: var(--deep); color: #fff9ef; position: relative; isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url('https://padariaarteantiga.pt/assets/fabrico-mef_8444.webp') 75% 52% / cover no-repeat; }
.hero::after { background: linear-gradient(90deg, #3f121b 0%, #441620f5 35%, #441620db 57%, #2a111525 91%); }
.hero-copy { padding: clamp(30px, 6vw, 72px); max-width: 680px; }
.eyebrow { color: var(--wine); margin-bottom: 16px; font-size: .78rem; letter-spacing: .15em; font-weight: 800; }
.hero h1 { max-width: 17ch; font-size: clamp(2rem, 5.3vw, 4rem); }
.hero-copy > p:not(.eyebrow) { max-width: 39ch; margin-bottom: 24px; color: #fff1e3; }
.hero-copy .install-help { margin-top: 14px; margin-bottom: 0; }
.promotion-notifications { margin-bottom: 18px; }
.promotion-notifications p { margin: 12px 0 0; }
.promotion-notifications p:empty { display: none; }
.actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: .55rem .85rem; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: 1rem; text-align: center; }
.primary { color: #fffdfa; background: var(--wine); border-color: var(--wine); }
.primary:hover:not(:disabled) { background: var(--deep); }
.secondary { color: var(--wine); background: var(--card); border-color: var(--control-border); }
.secondary:hover { background: #f4eadc; }
.hero .primary { background: #fff3dd; border-color: #fff3dd; color: var(--deep); }
.hero .primary:hover { background: #f6d9ad; }
.text-link { color: var(--wine); font-weight: 700; text-underline-offset: .24em; }
.home-phone { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 26px; align-items: center; margin-top: 18px; }
.home-phone h2 { margin-bottom: .35em; }
.home-phone p { margin-bottom: 0; }
.phone-number { margin-top: .5rem; color: var(--muted); }
.home-offer { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px 30px; padding: 21px 26px; border: 1px solid #e2ceb7; background: #f4eadc; border-radius: 14px; }
.home-offer h2 { font-size: 1.65rem; margin-bottom: .22em; }
.home-offer p { margin-bottom: 0; color: var(--muted); }
.home-offer .eyebrow { color: var(--wine); margin-bottom: 5px; }
.home-offer .text-link { flex: none; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 16px; margin-block: 42px 16px; flex-wrap: wrap; }
.section-heading h2 { margin: 0; }
.page-heading { padding-block: 17px 20px; }
.page-heading p, .card-copy p, .panel .hint { color: var(--muted); }
.page-heading p { margin-bottom: 0; }
.product-grid, .store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product, .store, .panel, .offer { background: var(--card); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.product { display: flex; flex-direction: column; }
.product-photo { --photo-ratio: 1.55; aspect-ratio: var(--photo-ratio); overflow: hidden; display: grid; place-items: center; background: #eadac6; color: #784d37; }
.product-photo img { height: 100%; object-fit: cover; }
.product-photo img[hidden] + span { display: block; }
.product-photo span { display: none; padding: 14px; font-family: var(--serif); }
.card-copy, .store-copy, .panel, .offer { padding: clamp(16px, 2.8vw, 24px); }
.card-copy { display: flex; flex-direction: column; flex: 1; }
.card-copy .eyebrow { margin-bottom: 7px; }
.card-copy p:not(.eyebrow) { margin-bottom: 14px; }
.card-copy .photo-note { color: var(--muted); font-size: 1rem; }
.product-action { display: flex; flex-wrap: wrap; margin-top: auto; align-items: center; justify-content: space-between; gap: 8px; }
.bread-options { margin-top: auto; }
.bread-options + .product-action { margin-top: 0; }
.fresh-menu-filter { max-width: 26rem; margin-bottom: 18px; }
.page-heading p + p { margin-top: .55rem; }
.christmas-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(75px, 25%); align-items: center; gap: clamp(8px, 2vw, 28px); padding: clamp(16px, 4vw, 36px); background: #153b31; color: #fff9ef; border-radius: 15px; }
.christmas-bells { width: 100%; max-width: 210px; height: auto; margin-inline: auto; aspect-ratio: 1; }
.christmas-spotlight { margin-bottom: 18px; }
.christmas-spotlight h2 { font-size: clamp(1.65rem, 4.5vw, 3rem); margin-bottom: .3em; }
.christmas-button { color: #153b31; background: #fff3dd; border-color: #fff3dd; margin-top: .35rem; }
.christmas-button:hover { background: #f4dcae; }
.christmas-heading p { margin-bottom: .45rem; }
.christmas-heading p:last-child { margin-bottom: 0; font-weight: 750; }
.christmas-pickup { margin-block: .9rem 0; }
.christmas-featured { margin-top: 1rem; }
.christmas-group { margin-top: 1.6rem; }
.christmas-group .product-photo img, .christmas-featured .product-photo img { object-fit: contain; background: var(--card); }
.product-photo-quarter-turn { position: relative; }
.product-photo-quarter-turn img { position: absolute; top: 50%; left: 50%; width: calc(100% / var(--photo-ratio)); height: calc(100% * var(--photo-ratio)); transform: translate(-50%, -50%) rotate(90deg); }
.cake-gallery-action { margin-bottom: 20px; }
.cake-design { margin: 0; }
.cake-design figcaption { padding: .7rem 1rem; font-weight: 700; }
.price { color: var(--wine); font-weight: 740; }
.unconfirmed { color: var(--muted); font-weight: 600; }
.product-order-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 4; display: flex; justify-content: center; padding: 10px 14px max(10px, env(safe-area-inset-bottom)); background: #faf7f0f5; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px #48131d0d; }
.product-order-bar .button { width: min(100%, 680px); display: flex; justify-content: space-between; gap: 16px; text-align: left; }
.product-order-bar small { display: block; font-size: .85rem; font-weight: 500; }
body.has-cart main { padding-bottom: 125px; }
.catalogue-search { max-width: 42rem; margin-block: 20px 16px; }
.catalogue-search > div { display: flex; align-items: start; gap: 8px; }
.catalogue-search input { margin-bottom: 0; }
.catalogue-search .button { flex: none; }
.results-count { font-size: .9rem; color: var(--muted); }
.catalogue-empty { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; }
.catalogue-empty h2 { font-size: 1.6rem; }
.cart-remove { border: 0; background: none; color: var(--wine); text-decoration: underline; text-underline-offset: .2em; padding: 12px 4px; min-height: 48px; }
.connection-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; border: 1px solid #b68b43; padding: 14px 18px; background: #fff4de; border-radius: 10px; margin-bottom: 22px; }
.connection-notice p { margin: 0; max-width: 62ch; }
.connection-notice .button { flex: none; }
.session-notice { border-inline-start: 3px solid #b68b43; padding: 12px 16px; background: #fff4de; }
@media (max-width: 600px) {
  .catalogue-search > div, .connection-notice { flex-direction: column; }
  .catalogue-search .button { min-height: 44px; }
  .connection-notice { align-items: start; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 50px; padding: .35rem .87rem; color: var(--wine); border: 1px solid var(--control-border); background: var(--card); border-radius: 99px; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--wine); color: white; border-color: var(--wine); }
.empty { margin: 0; color: var(--muted); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.offer time { font-weight: 700; color: var(--wine); }
.offer p { overflow-wrap: anywhere; }
.store { display: flex; flex-direction: column; }
.store-figure { margin: 0; }
.store-figure figcaption { padding: .5rem 1rem 0; color: var(--muted); font-size: .9rem; }
.store-copy { display: flex; flex-direction: column; flex: 1; }
.store address { font-style: normal; margin-bottom: 12px; }
.store .hint { margin-bottom: 14px; }
.store .actions { margin-top: auto; }
.store .hours { margin: 0 0 14px; color: var(--muted); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cart-list { margin: 0; padding: 0; list-style: none; }
.cart-row { display: grid; gap: 9px; padding-block: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.cart-row small { display: block; color: var(--muted); font-size: 1rem; }
.qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.total { padding-top: 12px; margin-bottom: 0; font-weight: 700; }
label { display: block; font-weight: 700; margin: 0 0 5px; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--control-border); padding: .45rem .6rem; border-radius: 8px; color: var(--ink); background: white; margin-bottom: 12px; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hint { margin-bottom: 12px; color: var(--muted); }
.food-information { padding: 14px 16px; margin-bottom: 18px; border-inline-start: 4px solid var(--wine); background: var(--paper); }
.food-information p { margin-bottom: 4px; }
.food-information p:last-child { margin-bottom: 0; }
form > .button + .hint { margin-top: 9px; margin-bottom: 0; }
.feedback { margin-top: 16px; padding: 12px; background: #f3eadf; color: var(--deep); border-radius: 8px; }
.feedback pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; }
.checkout-phone { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout-phone .phone-number { margin-bottom: 0; }
.bread-entry { margin-top: 22px; }
.bread-story { max-width: 44rem; margin-inline: auto; }
.bread-steps { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0 0 24px; }
.bread-steps figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.bread-steps img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper); }
.bread-steps figcaption { padding: .7rem .9rem; font-weight: 700; }
.order-notice:not(:empty) { margin: 12px 0 0; font-weight: 650; }
.cake-panel { max-width: 42rem; }
.cake-panel fieldset { min-width: 0; margin: 0 0 20px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.cake-panel legend { padding: 0 8px 0 0; font-weight: 750; color: var(--wine); }
.cake-panel .check { min-height: 44px; font-size: 1rem; }
.cake-panel .check input { width: 22px; height: 22px; flex: none; }
.cake-panel input[type="file"] { max-width: 100%; height: auto; }
.cake-panel input[type="file"]::file-selector-button { min-height: 42px; margin-inline-end: .5rem; padding: .35rem .55rem; border: 1px solid var(--control-border); border-radius: 6px; background: var(--card); color: var(--wine); font: inherit; font-weight: 700; cursor: pointer; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.about-image { min-height: 410px; background: #8e5636 url('https://padariaarteantiga.pt/assets/fabrico-mef_8467.webp') center / cover no-repeat; }
.about-copy { padding: clamp(22px, 5vw, 59px); align-self: center; }
.about-copy h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
.about-copy .actions { margin-bottom: 16px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .92rem; }
.manage-orders, .local-orders { margin-top: 18px; }
.local-record { border-bottom: 1px solid var(--line); padding-block: 12px; overflow-wrap: anywhere; }
.local-record:last-child { border-bottom: 0; }
.local-record p { margin-bottom: 7px; }
.local-record label { margin-top: 8px; }
.local-record select { width: min(100%, 330px); }
#price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; }
.site-footer { background: var(--deep); color: #fff3e3; }
.footer-inner { min-height: 75px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 11px 24px; padding-block: 17px; }
.footer-inner > span { font: 1.23rem var(--serif); }
.footer-inner div { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: .86rem; }
.footer-inner button { min-height: 52px; border: 1px solid #e0b5a1; color: inherit; background: transparent; border-radius: 6px; padding: .3rem .55rem; }
.toast { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); background: var(--deep); color: #fff9ef; box-shadow: 0 5px 20px #2c121c40; padding: .72rem 1rem; border-radius: 9px; }
body:has(.view:not([hidden]) .product-order-bar:not([hidden])) .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (max-width: 880px) {
  .wrap { width: calc(100% - 40px); }
  .product-grid, .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-image { min-height: 360px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .masthead { min-height: 68px; }
  .wordmark { font-size: 1.22rem; }
  .wordmark-mark, .wordmark small { display: none; }
  .nav { gap: 0 14px; }
  .store-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-brand-logo { height: 2.4rem; }
  main { padding-block: 15px 40px; }
  .hero { min-height: 300px; align-items: center; border-radius: 15px; }
  .hero::before { background-position: 62% center; }
  .hero::after { background: #3f121be0; }
  .hero-copy { padding: 25px 19px; }
  .hero .button, .home-phone .button, #order-submit, .feedback .button, .checkout-phone .button, .product-order-bar .button { width: 100%; }
  .bread-entry .button, .bread-order { width: 100%; }
  .cake-panel #cake-form > .button { width: 100%; }
  .home-offer { padding: 16px; align-items: flex-start; flex-direction: column; }
  .section-heading { margin-top: 31px; }
  .home-phone, .order-layout, .about-layout, .form-row, .product-grid, .store-grid { grid-template-columns: minmax(0, 1fr); }
  .product { border-radius: 10px; }
  .product-photo { --photo-ratio: 1.65; }
  .card-copy { padding: 12px; }
  .product-action .button { width: 100%; }
  .about-image { min-height: 240px; }
}


.offer-with-photo { padding: 0; }
.offer-copy { padding: clamp(16px, 2.8vw, 24px); }
.offer:not(.offer-with-photo) .offer-copy { padding: 0; }
.offer-photo { --photo-ratio: 1.55; }
.offer-photo img { width: 100%; object-fit: contain; background: var(--card); }
.offer-grid { align-items: start; }
