:root {
  --navy: #163E61;
  --deep: #102B42;
  --cream: #FFF5DF;
  --paper: #fffaf3;
  --red: #9b2518;
  --yellow: #F3B830;
  --brand-red: #DF4430;
  --muted: #555b66;
  --border: #ded5c7;
  --focus: #18749a;
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, textarea, select, input { font: inherit }
button { cursor: pointer }
button:disabled { cursor: not-allowed }
a { color: inherit }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px }
.container { width: min(100% - 64px, 1280px); margin-inline: auto }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px; background: white }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.topbar-inner, .topbar nav { display: flex; align-items: center }
.topbar-inner { justify-content: space-between; gap: 12px; min-height: 74px }
.topbar nav { gap: 25px }
.topbar a { text-decoration: none }
.brand { font-size: 1.4rem; font-weight: 900; letter-spacing: -.08em; white-space: nowrap }
.brand span { color: var(--red); margin-left: .14em }
.nav-catalogue { font-weight: 650 }
.cart-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--navy);
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 750;
}
.cart-count {
  min-width: 24px;
  padding-inline: 5px;
  text-align: center;
  color: #fff;
  background: var(--navy);
  border-radius: 100px;
}
#inicio, #catalogo, #pedido { scroll-margin-top: 85px }
.intro { overflow: clip; background: #ffe4a0; color: var(--deep) }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); min-height: 540px; align-items: center; gap: 20px }
.hero-copy { padding: 48px 0; z-index: 1 }
.eyebrow {
  color: #842b1e;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-size: .88rem;
}
h1 { margin: 14px 0 20px; font: 700 clamp(3.1rem, 6.1vw, 6rem)/.96 var(--display); letter-spacing: -.075em }
h1 em { display: block; color: var(--red); font-weight: inherit }
.hero-copy > p { max-width: 46ch; margin: 0 0 23px; color: #293d49; font-size: 1.12rem }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px }
.hero-cta, .add, .send, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
}
.hero-cta { min-height: 49px; padding-inline: 21px; background: var(--deep); color: white; text-decoration: none }
.hero-cta:hover { background: var(--navy) }
.hero-actions .hero-pack { border-color: var(--deep); color: var(--deep); padding-inline: 18px }
.hero-copy .hero-price { margin-block: 10px 0; font-size: .91rem; font-weight: 700 }
.hero-art { position: relative; align-self: stretch; min-height: 370px; isolation: isolate; overflow: hidden }
.fridge {
  position: absolute;
  inset: 9% 1.5% -150px 7%;
  border-radius: 48px 48px 24px 24px;
  background: linear-gradient(130deg, #ecf4e3, #a4baa1 78%);
  border: 2px solid #718a72;
  box-shadow: inset 8px 6px 6px #ffffff90, 8px 16px 0 #b57d2f3a;
  transform: rotate(4deg);
  transform-origin: 50% 70%;
}
.fridge::before { content: ''; position: absolute; inset: 15% auto auto 14px; height: 145px; width: 14px; border-radius: 12px; background: linear-gradient(90deg, #52715a, #e0e9d8); box-shadow: 3px 4px 4px #496b5680 }
.fridge::after { content: ''; position: absolute; top: 62%; width: 100%; border-top: 3px solid #718a72; box-shadow: 0 3px 2px #e0e9d8 }
.hero-art img {
  position: absolute;
  top: 50%;
  width: clamp(124px, 15vw, 194px);
  height: auto;
  border: 2px solid #fff4e3;
  border-radius: 4px;
  box-shadow: 4px 12px 24px #172e2873;
}
.hero-back { left: 55%; transform: translate(-2%, -47%) rotate(9deg) }
.hero-front { left: 23%; transform: translateY(-53%) rotate(-9deg) }
.preview-notice {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 11px 15px;
  border-left: 3px solid var(--red);
  background: #f7eadb;
  font-size: .9rem;
}
.preview-notice strong { color: var(--red) }
.layout { padding-block: 32px 85px }
.catalogue { min-width: 0 }
.section-title h2 { margin: 0; font: 400 clamp(2.45rem, 4vw, 3.85rem)/1.04 var(--display); letter-spacing: -.055em }
.section-title p { margin: 9px 0 16px; color: var(--muted) }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px }
.filters label { display: grid; gap: 4px; max-width: 100%; font-size: .88rem; font-weight: 700 }
input, select, textarea {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #a79885;
  border-radius: 6px;
  padding: 8px 11px;
  background: #fffefa;
  color: var(--navy);
  font-size: 1rem;
}
.catalogue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px }
.catalogue-grid > p { grid-column: 1 / -1 }
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}
.image-button {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  position: relative;
  background: #eadfc9;
  color: var(--navy);
}
.image-button:hover { background: #dfcaaa }
.image-button:focus-visible { outline-offset: -5px }
.product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 7;
  object-fit: contain;
}
.product-photo.fallback { display: grid; place-items: center; padding: 10px; text-align: center }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 14px }
.product-category { color: var(--red); font-size: .8rem; font-weight: 750; overflow-wrap: anywhere }
.product h3 { margin: 5px 0 6px; font: 700 1.25rem/1.12 var(--display); overflow-wrap: anywhere }
.composition { margin: 0 0 13px; font-size: .9rem; color: var(--muted) }
.product-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto }
.price { font-size: .88rem; font-weight: 750 }
.add, .send { background: var(--navy); color: #fff; font-size: .9rem }
.add:hover:not(:disabled), .send:hover:not(:disabled) { background: #2b456b }
.send:disabled, .secondary:disabled { background: #ece5da; color: #585b62; border-color: var(--border) }
.secondary { background: transparent; color: var(--navy); border-color: #a79885; font-size: .9rem }
.secondary:hover:not(:disabled) { background: #f0e2d0 }
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 465px);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 18px 0 0 18px;
  padding: 0;
  overflow-y: auto;
}
.order { padding: 21px; }
.order-head, .cart-line, .total-line, .qty-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.order-head { border-bottom: 1px solid var(--border); padding-bottom: 10px }
.order h2 { margin: 0; font: 700 1.55rem var(--display) }
.count-label, .empty, .cart-price, .conditions { color: var(--muted); font-size: .88rem }
.empty { padding-block: 16px }
.cart-items { padding: 0; margin: 0; list-style: none }

.cart-item { padding: 11px 0; border-bottom: 1px solid var(--border) }
.cart-line { flex-wrap: wrap }
.cart-name { font-size: .9rem; font-weight: 750; overflow-wrap: anywhere }
.qty-actions { justify-content: start; margin-top: 6px }
.qty-actions button {
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fffefa;
  color: var(--navy);
}
.qty-actions button:hover:not(:disabled) { background: #f7eadb }
.qty-actions button:disabled { opacity: .5 }
.qty-actions button.remove { margin-left: auto; color: var(--red); font-size: .8rem }
.qty-actions span { min-width: 20px; text-align: center }
.total-line { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; font-size: .9rem }
.total-line strong { font-size: 1.05rem }
.obs-label { display: block; margin: 14px 0 4px; font-size: .9rem; font-weight: 750 }
.obs-label span { font-weight: 400; color: var(--muted) }
textarea { display: block; width: 100%; resize: vertical }
#delivery { display: block; width: 100%; margin-top: 4px }
.send, .copy { width: 100%; margin-top: 8px }
.conditions { margin: 6px 0 0 }
#whatsappStatus:empty { display: none }
#copyFallback { margin-top: 8px; min-height: 120px }
.footer { padding: 26px 0; background: var(--deep); color: var(--cream) }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 17px }
.footer p { margin: 4px 0 0; max-width: 46ch; white-space: pre-line }
.footer summary { cursor: pointer }
.footer :focus-visible { outline-color: #ffad9a }
.error-message { background: #fbe0d7; color: #802018; padding: 12px }
dialog {
  width: min(95vw, 760px);
  max-height: 90dvh;
  overflow: auto;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--navy);
  background: var(--paper);
}
dialog::backdrop { background: #102B42c4 }
.detail-close { display: flex; width: max-content; margin: 0 0 14px auto }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px }
.detail-layout .product-photo { max-height: 65dvh; background: #e9dbc6 }
.detail-layout h2 { font: 700 2rem/1.05 var(--display); margin: 5px 0 }
.detail-layout label { display: block; margin-bottom: 10px }
.detail-layout input { width: 6rem; margin-left: 6px }

@media (max-width: 980px) {
  .catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 830px) {
  .container { width: calc(100% - 36px) }
  .hero { min-height: 445px }
  .hero-front { left: 18% }
  .hero-back { left: 50% }
}
@media (max-width: 650px) {
  .topbar-inner { min-height: 62px }
  .nav-catalogue { display: none }
  #inicio, #catalogo, #pedido { scroll-margin-top: 72px }
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0 }
  .hero-copy { padding: 29px 0 14px }
  .hero-copy h1 { font-size: clamp(2.72rem, 10vw, 4.65rem); margin-block: 12px 14px }
  .hero-copy > p { font-size: 1rem; margin-bottom: 14px }
  .hero-art { min-height: clamp(235px, 63vw, 350px) }
  .fridge { inset: 7% 3% -100px 8%; border-radius: 32px 32px 8px 8px }
  .fridge::before { height: 81px; width: 9px }
  .hero-art img { width: clamp(86px, 24vw, 136px) }
  .hero-front { left: 23%; transform: translateY(-49%) rotate(-9deg) }
  .hero-back { left: 51%; transform: translateY(-47%) rotate(10deg) }
  .layout { padding-block: 23px 105px }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
  .product-body { padding: 10px }
  .product h3 { font-size: 1.1rem }
  .product-bottom .add { width: 100% }
  .image-button { padding: 6px }
  .detail-layout { grid-template-columns: 1fr }
  .detail-layout .product-photo { max-height: 46dvh }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
}

/* Componentes de packs e expedição. */
.brand small { display: block; font-size: .69rem; letter-spacing: .12em; margin-top: -.25em }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0 0 21px }
.pack { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 14px; background: var(--paper); border: 1px solid var(--border); border-top: 3px solid var(--brand-red); border-radius: 8px }
.pack h3 { grid-column: 1 / -1; margin: 0; font: 700 1.24rem/1.1 var(--display) }
.pack p { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--muted) }
.pack-price { font-size: 1.2rem; font-weight: 800 }
.pack-form { display: grid; gap: 12px }
.pack-form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 700 }
.pack-form .add { justify-self: start }
.pack-components { margin-block: 0 8px; padding-left: 1.2rem }
#packTitle { margin: 0; font: 700 2rem/1.06 var(--display) }
.sku { color: var(--muted); font-size: .78rem; margin-bottom: 5px }
.availability, .cart-composition { margin: 6px 0 0; font-size: .83rem; color: var(--muted) }
#delivery, #country { width: 100%; }
#country { display: block; margin-top: 4px }
.shipping-note { padding: 8px; border-left: 2px solid var(--brand-red); background: #faecd1 }
.legal { max-width: 850px; padding-block: 28px 60px }
.legal h1 { font: 400 clamp(2.35rem, 7vw, 4.4rem)/1 var(--display); letter-spacing: -.035em }
.legal h2 { margin-top: 26px; font-family: var(--display) }
.legal p { max-width: none }
.legal-link { align-self: center }
@media (max-width: 610px) {
  .packs { grid-template-columns: 1fr }
  .pack { grid-template-columns: 1fr auto; }
}

.cart-shortcut { color: var(--deep); background: var(--paper); }
.cart-shortcut:hover { background: #fce7ab }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px }
.filter-chip { min-height: 44px; padding: 6px 13px; border-radius: 40px; border: 1px solid #9a8d7a; color: var(--deep); background: var(--paper); font-size: .9rem; font-weight: 720; }
.filter-chip[aria-pressed="true"] { border-color: var(--deep); color: white; background: var(--deep) }
.filters { justify-content: space-between }
.filter-search { display: flex; align-items: end; flex-wrap: wrap; gap: 7px }
.filter-search label[for="search"] { align-self: center }
.catalogue-empty { grid-column: 1 / -1; padding: 25px; border: 1px dashed #9a8d7a; border-radius: 10px; text-align: center }
.product { border-radius: 13px }
.image-button .product-photo { filter: drop-shadow(2px 4px 4px #54452f35) }
.detail-tag { display: block; padding-top: 6px; font-size: .77rem; text-decoration: underline; font-weight: 700 }
.product .price { font-size: 1rem }
.pack { background: #ebf0e2; border-color: #9baa95; border-top: 1px solid #9baa95; padding: 16px 18px; grid-template-columns: minmax(0, 1fr) auto auto }
.pack h3, .pack p { grid-column: 1 }
.pack h3 { grid-row: 1; }
.pack p { grid-row: 2; }
.pack .pack-price, .pack > button { grid-row: 1 / 3; }
.pack > button { border-color: var(--navy); background: var(--paper); }
.pack-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px }
.pack-heading .detail-close { flex-shrink: 0; margin-bottom: 0 }
#packDetail > .pack-price { margin: 7px 0 0 }
.pack-intro { margin-bottom: 12px }
.pack-progress { margin: 0; font-weight: 750; }
.pack-slots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none }
.pack-slots li { display: grid; place-items: center; width: 66px; height: 84px; border: 1px dashed #ada08c; border-radius: 8px; font-size: .8rem; color: var(--muted) }
.pack-slot { position: relative; width: 100%; height: 100%; padding: 3px; border: 0; border-radius: 6px; background: #f0dfc1 }
.pack-slot img { height: 74px; }
.slot-remove, .pack-plus { border-radius: 100px; color: #fff; background: var(--deep); line-height: 1.1 }
.slot-remove { position: absolute; top: 1px; right: 2px; padding: 2px 6px; }
.pack-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 6px 10px }
.pack-filters label { flex: 1 1 150px; }
.pack-choice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 7px; padding: 4px; max-height: min(31dvh, 300px); overflow: auto; overscroll-behavior: contain }
.pack-choice { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 6px; min-height: 64px; padding: 5px 7px; text-align: start; background: white; color: var(--deep); border: 1px solid var(--border); border-radius: 7px }
.pack-choice:hover { border-color: var(--navy) }
.pack-choice[aria-disabled="true"] { opacity: .67; cursor: default }
.pack-choice-name { font-size: .83rem; font-weight: 700; overflow-wrap: anywhere }
.pack-plus { padding: 2px 5px; }
.pack-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px }
.pack-actions .add:disabled { background: #ece5da; color: #585b62; }
.notes { margin-top: 12px; }
.notes summary { cursor: pointer; min-height: 44px; padding-block: 9px; font-size: .91rem; font-weight: 700; }
.notes span { font-weight: 400; }
#checkoutHint:not(:empty) { font-weight: 700; }
.cart-toast {
  position: fixed; z-index: 6; right: 16px; bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  max-width: min(calc(100% - 32px), 470px); padding: 8px 11px;
  border: 1px solid #8e9f88; border-radius: 11px; background: #eef4e9;
  box-shadow: 0 8px 24px #172e2830; color: var(--deep); font-size: .91rem;
}
.cart-toast .secondary { border-color: var(--navy); }
.toast-dismiss { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--deep); font-size: 1.35rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
@media (max-width: 650px) {
  .filters { display: grid; gap: 9px; }
  .filter-search { align-items: stretch; display: grid; }
  .filter-chip { padding-inline: 10px; }
  .pack { grid-template-columns: 1fr auto; gap: 7px 10px; }
  .pack h3, .pack p { grid-column: 1 / -1; }
  .pack .pack-price, .pack > button { grid-row: 3; }
  .pack-choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-drawer { border-radius: 0; }
}
@media (max-width: 350px) {
  .pack-choice { grid-template-columns: 29px minmax(0,1fr); }
  .pack-plus { display: none; }
}
.pack-form { grid-template-columns: minmax(0, 1fr); }
.pack-filters label, .pack-filters input, .pack-filters select { min-width: 0; }
.pack-filters input, .pack-filters select { width: 100%; }

.brand-lockup {
  display: block;
  width: clamp(145px, 17vw, 198px);
  aspect-ratio: 3.04;
  background: var(--deep);
  mask: url("assets/frigo-loco-logo.webp") 50% 53% / 121% auto no-repeat;
}
.payment-help { color: var(--deep); }

.coleccoes-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-block: 0 1.15rem; }
.coleccoes-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 720; text-underline-offset: .2em; }
.catalog-answers { scroll-margin-top: 85px; padding-block: 0 3rem; }
.catalog-answers h2, .collection-landing h2 { font: 700 clamp(1.7rem, 3.5vw, 2.45rem)/1.1 var(--display); }
.catalog-answers dl { display: grid; max-width: 70ch; gap: .4rem; }
.catalog-answers dt { font-weight: 750; margin-top: .6rem; }
.catalog-answers dd { margin: 0; color: var(--deep); }
.collection-landing { padding-block: 2rem 3.5rem; }
.collection-landing h1 { font-size: clamp(2.4rem, 5vw, 4.65rem); max-width: 24ch; margin-top: 0; }
.collection-landing > p { max-width: 65ch; }
.collection-landing .secondary { text-decoration: none; }
