@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url('/assets/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf7ee;
  --white: #fffdf8;
  --ink: #18372a;
  --muted: #525b4b;
  --line: #e6dcc4;
  --accent: #a62737;
  --accent-hover: #861e2b;
  --soft: #f6e8e4;
  --gold: #efd394;
  --pine: #204a37;
  --serif: Fraunces, Georgia, serif;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: style;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }
svg { width: 1em; height: 1em; vertical-align: middle; flex: none; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 3; color: #fff8e7; background: #641d27; border-bottom: 1px solid #984958; }
.header-inner { min-height: 86px; width: min(1440px, calc(100% - 80px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; justify-self: start; white-space: nowrap; font: 400 clamp(35px, 3.3vw, 51px)/.94 'Instrument Serif', Georgia, serif; letter-spacing: -.037em; }
.brand-mark { inline-size: 38px; block-size: 38px; display: grid; place-items: center; font-size: 22px; border-radius: 11px; background: var(--pine); color: var(--gold); }
.brand-plus { color: var(--accent); margin-left: 3px; }
.header-nav { display: flex; align-items: center; justify-content: center; gap: clamp(13px, 2.1vw, 32px); font-size: .79rem; font-weight: 750; }
.header-nav a { color: inherit; white-space: nowrap; padding-block: 8px; }
.header-nav a:hover { color: var(--gold); }
.site-header .brand-plus { color: var(--gold); }
.site-header :focus-visible { outline-color: var(--gold); }
.header-order.primary { justify-self: end; color: #641d27; background: #fff8e7; }
.header-order.primary:hover { background: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: .875rem; white-space: nowrap; transition: background .16s, border-color .16s, color .16s; }
.button svg { width: 17px; height: 17px; }
.primary { background: var(--accent); color: white; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: var(--ink); background: var(--white); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: var(--soft); }
.cart-count { min-width: 19px; height: 19px; padding: 0 4px; border-radius: 20px; background: white; color: var(--accent); font-size: .72rem; display: grid; place-items: center; }

.hero {
  display: grid; grid-template-columns: 5fr 7fr; position: relative; overflow: hidden;
  min-height: clamp(525px, 72svh, 775px); color: #fff8e7; background: #132b21;
}
.hero-text {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 54px 0 56px max(38px, calc((100vw - 1200px) / 2));
  background: radial-gradient(ellipse at 0% 15%, #284736 0%, transparent 72%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: .69rem; font-weight: 800; letter-spacing: .105em; }
.hero-kicker { color: var(--gold); background: #ffffff12; border: 1px solid #efd39442; padding: 7px 10px; border-radius: 20px; }
.eyebrow svg { width: 14px; height: 14px; }
h1, h2, h3 { font-family: var(--serif); }
.hero h1 { font-size: clamp(43px, 5.1vw, 90px); letter-spacing: -.058em; font-weight: 650; line-height: .99; margin: 22px 0 18px; }
.hero h1 em { color: var(--gold); font-weight: 610; }
.hero-text > p { max-width: 360px; color: #e5e7d4; font-size: .99rem; line-height: 1.65; }
.hero-actions { margin-top: 23px; display: flex; gap: 17px; align-items: center; flex-wrap: wrap; }
.hero-actions .button { min-height: 46px; padding-inline: 17px; }
.pickup-note { display: inline-flex; gap: 5px; align-items: center; color: #f0e5c7; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.pickup-note svg { color: var(--gold); width: 16px; height: 16px; }
.hero-media { position: relative; min-height: 100%; background: #132b21; }
.hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #132b21 0%, transparent 20%);
}
.cake-turntable { position: absolute; inset: 0; overflow: hidden; }
.cake-angle {
  position: absolute; inset: 0;
  background: #15362b url('/assets/bolo-natal.webp') no-repeat center top / auto 300%;
}
.cake-angle:nth-child(2) { background-position: center center; opacity: 0; animation: cake-quarter 14s ease-in-out infinite; }
.cake-angle:nth-child(3) { background-position: center bottom; opacity: 0; animation: cake-half 14s ease-in-out infinite; }
.cake-turntable.paused .cake-angle { animation-play-state: paused; }
@keyframes cake-quarter {
  0%, 12%, 90%, 100% { opacity: 0; }
  21%, 81% { opacity: 1; }
}
@keyframes cake-half {
  0%, 29%, 67%, 100% { opacity: 0; }
  39%, 56% { opacity: 1; }
}
.turntable-control { position: absolute; z-index: 1; bottom: 25px; right: 26px; background: #14372cdb; border-color: #efd39485; color: var(--gold); }
.hero-media .turntable-control:hover:not(:disabled) { background: #204a37; }

.catalog { margin-top: 54px; padding-bottom: 58px; scroll-margin-top: 105px; }
.catalog > .eyebrow, .catalog > h2, .catalog > .section-description { margin-inline: auto; }
.catalog > .eyebrow { display: flex; width: max-content; }
.catalog > h2, .catalog > .section-description { text-align: center; }
.catalog-toolbar { border-top: 1px solid var(--line); padding-top: 18px; }
.cart-dock { position: sticky; top: 96px; z-index: 1; display: flex; justify-content: flex-end; pointer-events: none; margin-block: 0 12px; }
.cart-dock .button { pointer-events: auto; box-shadow: 0 3px 12px #57211938; }
.delivery-options { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; display: flex; gap: 9px; flex-wrap: wrap; }
.delivery-options legend { font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.delivery-options label { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.delivery-options label:has(:checked) { border-color: var(--pine); background: #eef2e7; }
.delivery-options input { width: auto; margin: 0; accent-color: var(--pine); }
.order-schedule { margin-top: 5px; }
.section-kicker > span { width: 17px; height: 1px; background: var(--accent); }
h2 { margin: 7px 0 7px; font-size: clamp(33px, 4vw, 43px); font-weight: 650; line-height: 1.12; letter-spacing: -.05em; }
.section-description { color: var(--muted); line-height: 1.55; font-size: .94rem; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; padding: 0 13px; border: 1px solid var(--line); border-radius: 20px; color: #344d3c; background: #fffdf6; font-size: .8rem; font-weight: 650; }
.filter svg { width: 15px; height: 15px; }
.filter:hover { border-color: #ba984c; }
.filter[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: white; }
.muted { color: var(--muted); font-size: .85rem; }
#product-count { flex-shrink: 0; font-size: .8rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; border-radius: 15px; overflow: hidden; box-shadow: 0 2px 6px #342c1e10; }
.product-photo { aspect-ratio: 1.55; overflow: hidden; background: #ece5d2; display: grid; place-items: center; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 0; display: block; }
.product-photo svg { color: var(--accent); width: 40px; height: 40px; }
.product-info { padding: 15px 16px 16px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.product-tag { color: #69501b; background: #f3ead3; font-size: .65rem; font-weight: 750; border-radius: 20px; padding: 4px 8px; }
.product h3 { margin: 8px 0 5px; font-size: 22px; letter-spacing: -.035em; font-weight: 635; }
.product p { color: var(--muted); font-size: .85rem; line-height: 1.45; margin-bottom: 15px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; }
.price { font-size: 1rem; font-weight: 800; color: #9f333c; }
.add-button { color: #9f333c; background: var(--soft); border-color: transparent; min-height: 35px; padding-inline: 10px; font-size: .79rem; }
.add-button:hover { background: #eed5d6; }
.add-button svg { width: 15px; height: 15px; }

.site-footer { border-top: 1px solid var(--line); background: #fffcf4; }
.footer-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner .brand { font-size: 30px; }
.footer-credit { font-size: .76rem; color: var(--muted); }
.footer-credit a { font-weight: 750; }
.footer-credit a:hover { text-decoration: underline; }
dialog { color: var(--ink); padding: 0; border: 1px solid var(--line); background: var(--white); border-radius: 18px; width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 40px); box-shadow: 0 18px 70px #3423224d; }
dialog::backdrop { background: #38232073; }
.dialog-content { padding: 25px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 17px; }
.dialog-heading h2 { font-size: 31px; margin: 0; }
.dialog-heading p { margin-top: 6px; }
.icon-button { inline-size: 33px; block-size: 33px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 16px; flex: none; }
.icon-button:hover:not(:disabled) { background: var(--soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
label { display: grid; align-content: start; gap: 6px; font-size: .85rem; font-weight: 700; }
input, select, textarea { min-width: 0; width: 100%; padding: 10px 11px; background: #fffdf6; border: 1px solid #deceb0; border-radius: 8px; color: var(--ink); }
textarea { resize: vertical; }
.action-row { margin-top: 15px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
form [role="alert"] { color: #a92b37; font-size: .83rem; margin-block: 8px; }
.cart-items { display: grid; gap: 8px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: .86rem; }
.quantity { display: flex; align-items: center; gap: 5px; }
.quantity output { width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.quantity .icon-button { width: 26px; height: 26px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding: 11px 0 14px; font-weight: 750; }
.confirmation { padding: 12px; border-radius: 10px; background: #f3efe5; color: #4f4133; line-height: 1.6; }
.toast { position: fixed; z-index: 2; right: max(16px, calc((100vw - 1120px) / 2)); bottom: 18px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 10px; background: #16372a; color: white; font-size: .88rem; box-shadow: 0 5px 18px #18372a2b; }

.admin-main { padding-block: 42px 55px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.admin-heading h1, .login-card h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.05em; margin: 5px 0 6px; }
.login-card { max-width: 435px; margin: 34px auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.login-card form { margin-top: 18px; }
.login-card .button { width: 100%; margin-top: 6px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.date-tools { display: flex; gap: 9px; flex-wrap: wrap; align-items: end; margin-bottom: 18px; }
.date-tools select { max-width: 190px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat, .admin-card, .pickup-card, .empty { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.stat strong { display: block; font: 650 27px var(--serif); margin-top: 4px; }
.admin-card { overflow: auto; }
.admin-card h2 { font-size: 26px; margin-top: 0; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .81rem; }
td { font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
.pickup-list { display: grid; gap: 10px; }
.pickup-top, .pickup-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pickup-top h3 { margin: 0; font-size: 22px; }
.pickup-card ul { padding-left: 20px; margin: 9px 0; }
.pickup-actions { justify-content: flex-start; margin-top: 10px; }
.status { border-radius: 20px; padding: 4px 9px; background: #f3ead3; color: #9f333c; font-size: .73rem; font-weight: 750; }
.status.done { background: #e6ede2; color: #3e6042; }
.empty { grid-column: 1 / -1; color: var(--muted); }
.danger { color: #9f333c; }

@media (max-width: 1040px) {
  .header-inner { width: calc(100% - 48px); gap: 15px; }
  .header-nav { gap: 15px; }
  .hero-text { padding-left: 28px; }
  .hero h1 { font-size: clamp(43px, 6vw, 68px); }
  .product-grid { gap: 13px; }
}
@media (max-width: 760px) {
  .wrap, .header-inner { width: calc(100% - 30px); }
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 11px; }
  .header-inner:has(.header-order[hidden]) { padding-bottom: 11px; }
  .brand { font-size: clamp(30px, 9vw, 42px); }
  .header-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: safe center; overflow-x: auto; gap: 15px; scrollbar-width: none; font-size: .75rem; }
  .header-order { grid-column: 2; grid-row: 1; min-height: 38px; padding: 0 9px; font-size: .74rem; gap: 5px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 31px 24px 25px; }
  .hero h1 { font-size: clamp(44px, 11vw, 72px); margin-block: 16px; }
  .hero-media { min-height: 0; aspect-ratio: 1.45; }
  .hero-media::after { background: linear-gradient(#132b21, transparent 12%); }
  .turntable-control { bottom: 12px; right: 12px; }
  .catalog { margin-top: 35px; padding-bottom: 32px; scroll-margin-top: 105px; }
  .catalog-toolbar { display: grid; gap: 8px; }
  .cart-dock { top: 98px; }
  #product-count { justify-self: end; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-info { padding: 10px; }
  .product h3 { font-size: 18px; }
  .product p { font-size: .79rem; }
  .product-bottom { flex-wrap: wrap; }
  .stats { gap: 6px; }
  .stat { padding: 9px; }
  .stat strong { font-size: 21px; }
}
@media (max-width: 365px) {
  .product-grid, .form-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { align-items: flex-start; }
  .cart-line { gap: 5px; }
  .dialog-content { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .cake-angle:nth-child(n) { animation: none; }
  .turntable-control { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.product-photo { position: relative; }
.product-photo .photo-cell { position: absolute; top: 50%; width: 100%; aspect-ratio: 1; transform: translateY(-50%); background-image: var(--catalog-image, url('/assets/catalogo.webp')); background-size: 300% 200%; }
.photo-1 { background-position: left top; }
.photo-2 { background-position: center top; }
.photo-3 { background-position: right top; }
.photo-4 { background-position: left bottom; }
.photo-5 { background-position: center bottom; }
.photo-6 { background-position: right bottom; }

.photo-7, .photo-11, .photo-12, .photo-13, .photo-14 { --catalog-image: url('/assets/catalogo-natal.webp'); }
.photo-8, .photo-9, .photo-10 { --catalog-image: url('/assets/recheios-natal.webp'); }
.photo-7, .photo-8 { background-position: left top; }
.photo-9 { background-position: center top; }
.photo-10, .photo-11 { background-position: right top; }
.photo-12 { background-position: left bottom; }
.photo-13 { background-position: center bottom; }
.photo-14 { background-position: right bottom; }

.store-details, .store-faq { scroll-margin-top: 108px; }
.store-details {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 4vw, 48px); background: #ede8d6; border-top: 1px solid var(--line);
}
.store-details p { max-width: 570px; line-height: 1.6; color: var(--muted); }
.store-faq { max-width: 760px; margin: 52px auto 62px; }
.store-faq h2 { margin-bottom: 18px; }
.store-faq details { border-bottom: 1px solid var(--line); padding: 14px 2px; }
.store-faq summary { cursor: pointer; font-weight: 700; }
.store-faq details p { margin: 9px 0 3px; color: var(--muted); line-height: 1.55; }
@media (max-width: 660px) {
  .store-details { align-items: flex-start; flex-direction: column; }
}

.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; accent-color: var(--pine); }

.privacy-note { margin-top: 14px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.privacy-note a { font-weight: 750; text-decoration: underline; }
