:root {
    color-scheme: light;
    --bg: #f7f8f1;
    --surface: #fff;
    --soft: #edf1e6;
    --ink: #20271f;
    --muted: #536052;
    --green: #28543c;
    --deep: #173a2b;
    --tint: #dcebd8;
    --gold: #f6dfab;
    --line: #d9e0d4;
    --danger: #a22d29;
    --shadow: 0 10px 32px #2034250b;
    font-family: Roboto, "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.028em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); font-weight: 760; }
h2 { font-size: clamp(1.3rem, 2.6vw, 2rem); }
h3 { font-size: 1.1rem; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 3px solid #659a6c; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
#main { padding-block: 27px 56px; min-height: 50vh; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; transform: translateY(-150%); background: white; padding: 10px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { object-fit: cover; border-radius: 13px; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 1.13rem; }
.brand small { font-size: .61rem; margin-top: 5px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.search { display: flex; align-items: center; flex: 1; min-width: 0; border-radius: 28px; background: var(--soft); }
.search button { border: 0; background: none; padding: 0 10px 0 14px; color: var(--green); min-height: 44px; }
.search input { min-width: 0; border: 0; border-radius: 0 24px 24px 0; padding: 10px 12px 10px 0; background: transparent; }
.desktop-nav { display: flex; gap: 3px; align-items: center; }
.desktop-nav a { color: var(--ink); text-decoration: none; padding: 9px 11px; font-size: .89rem; border-radius: 20px; font-weight: 650; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { background: var(--tint); color: var(--deep); }
.bottom-nav { display: none; }
.count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; background: var(--green); color: #fff; border-radius: 12px; font-size: .67rem; padding: 0 4px; }
.count:empty { display: none; }
.hero { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--deep); color: #fff; border-radius: 31px; }
.hero > img { height: 100%; width: 100%; min-height: 360px; object-fit: cover; }
.hero-content { padding: clamp(28px, 5vw, 72px); }
.hero-content h1 { color: #fffef6; margin-block: 20px 15px; }
.hero-content p { color: #dbe9d9; max-width: 370px; font-size: 1.04rem; }
.hero-pill { display: inline-flex; align-items: center; gap: 7px; background: #315643; color: #f1f8e9; padding: 5px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; }
.hero-pill .icon, .fine-print .icon { width: 17px; height: 17px; }
.hero-actions, .inline, .split-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions { margin-top: 25px; }
.button, .chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 26px; font-size: .9rem; font-weight: 720; text-decoration: none; text-align: center; line-height: 1.22; }
.button { color: #fff; background: var(--green); }
.button:hover { background: var(--deep); }
.button.secondary { background: var(--tint); color: var(--deep); }
.button.secondary:hover, .chip:hover { background: #cfe4c9; }
.button.light { background: var(--gold); color: #342d1e; }
.button.light:hover { background: #f5d58e; }
.button.hero-quiet { background: transparent; color: white; border-color: #789684; }
.button.hero-quiet:hover { background: #315643; }
.button .icon, .text-button .icon, .chip .icon, .tag .icon { width: 17px; height: 17px; }
.wide { width: 100%; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 4px 3px; border: 0; background: transparent; color: var(--green); font-size: .9rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.text-button.danger, .danger, .feedback.error { color: var(--danger); }
.section { padding-top: 41px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.eyebrow { color: var(--green); font-weight: 770; font-size: .69rem; letter-spacing: .13em; margin: 0 0 7px; }
.categories, .three-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.categories a { color: var(--ink); background: var(--soft); border-radius: 22px; overflow: hidden; text-decoration: none; }
.categories img { width: 100%; height: clamp(100px,15vw,174px); object-fit: cover; }
.categories span { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 12px 15px; }
.categories .icon { color: var(--green); width: 17px; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
.product-card { border: 1px solid var(--line); border-radius: 23px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--surface); box-shadow: var(--shadow); }
.product-image, .gallery-main, .cart-thumb { display: grid; place-items: center; background: var(--soft); color: var(--green); }
.product-image { aspect-ratio: 1.35; }
.product-image img, .cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-image > .icon, .gallery-main > .icon { width: 44px; height: 44px; opacity: .65; }
.card-content { padding: 13px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; }
.card-content h3 { margin: 0 0 auto; padding-bottom: 4px; overflow-wrap: anywhere; }
.card-content h3 a { color: var(--ink); text-decoration: none; }
.card-content h3 a:hover { color: var(--green); text-decoration: underline; }
.card-content form, .card-content .button { width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 4px 8px; background: var(--soft); color: var(--green); font-size: .74rem; line-height: 1.2; font-weight: 720; max-width: 100%; overflow-wrap: anywhere; }
.price { font-weight: 780; font-size: 1.15rem; color: var(--deep); }
.price.large { font-size: 2rem; }
.exchange-banner { display: flex; align-items: center; gap: 18px; margin-top: 40px; border-radius: 26px; padding: 22px; background: var(--soft); }
.exchange-banner > div { flex: 1; }
.exchange-banner p { margin-top: 5px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 26px 0; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr .9fr; gap: 15px; font-size: .86rem; }
.footer-grid div { display: grid; gap: 5px; align-content: start; }
.footer-grid a { color: var(--green); overflow-wrap: anywhere; }
.intro { padding: 13px 0 24px; }
.intro h1 { font-size: clamp(2rem,4.7vw,3.65rem); margin-bottom: 9px; }
.intro .muted { max-width: 640px; }
.muted { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 38px; padding: 8px 13px; color: var(--green); border-color: var(--line); background: var(--surface); }
.chip[aria-current] { background: var(--tint); border-color: var(--tint); }
.catalogue-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 17px 0; }
.catalogue-tools p { color: var(--muted); }
.catalogue-tools select { max-width: 190px; }
.pagination { margin-top: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 23px; padding: clamp(14px,2.5vw,23px); box-shadow: var(--shadow); min-width: 0; overflow-wrap: anywhere; }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding-block: 28px; }
.panel h2 { font-size: clamp(1.18rem,2.2vw,1.53rem); }
.stack { display: grid; gap: 12px; align-content: start; justify-items: start; }
.stack > * { min-width: 0; }
.stack > .panel, .stack > label, .stack > .form-grid { width: 100%; }
.split-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 18px; align-items: start; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 24px; align-items: start; }
.sticky-panel { position: sticky; top: 92px; }
.breadcrumb { display: flex; gap: 7px; color: var(--muted); padding-bottom: 15px; font-size: .87rem; }
.gallery-main { aspect-ratio: 1.28; border-radius: 26px; overflow: hidden; }
.gallery-main > div, .gallery-main img, .gallery-main video { width: 100%; height: 100%; min-height: 0; }
.gallery-main img, .gallery-main video { object-fit: contain; }
.gallery-strip { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.gallery-strip button { width: 77px; height: 58px; background: var(--tint); color: var(--deep); border: 2px solid transparent; border-radius: 11px; padding: 0; overflow: hidden; font-size: .72rem; font-weight: 700; }
.gallery-strip button[aria-pressed=true] { border-color: var(--green); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.product-detail { padding: 6px 0; display: grid; justify-items: start; gap: 11px; }
.product-detail h1 { font-size: clamp(2rem,4vw,3.7rem); }
.lead { color: var(--muted); font-size: 1.07rem; }
.detail-notes { border-top: 1px solid var(--line); padding-top: 15px; width: 100%; }
.detail-notes h2 { font-size: 1.2rem; margin-bottom: 6px; }
.cart-row { display: grid; grid-template-columns: 88px minmax(0,1fr) auto; gap: 12px; align-items: start; }
.cart-thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.cart-item p { margin-top: 4px; }
.cart-item form { margin-top: 7px; }
.line-total { padding-top: 4px; white-space: nowrap; }
input.quantity { width: 66px; min-height: 40px; padding: 5px 7px; }
.price-summary { display: grid; gap: 8px; padding: 14px 0; width: 100%; }
.price-summary > div, .summary-items li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price-summary .saving { color: var(--green); background: var(--soft); border-radius: 11px; padding: 6px 9px; }
.price-summary .total { font-size: 1.12rem; font-weight: 750; padding-top: 8px; border-top: 1px solid var(--line); }
.summary-items { list-style: none; padding: 0; margin: 0; width: 100%; }
.summary-items li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.notice { background: #fff1d7; padding: 10px; border-radius: 12px; margin: 8px 0; }
.fine-print { color: var(--muted); font-size: .82rem; margin-top: 6px; }
label { display: block; font-size: .86rem; font-weight: 700; }
label small { color: var(--muted); font-weight: 450; }
label input, label textarea, label select { margin-top: 5px; }
input:not([type=checkbox]), select, textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); min-height: 43px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--green); vertical-align: middle; }
input[readonly] { color: var(--muted); }
.search input { padding: 10px 12px 10px 0; border: 0; border-radius: 0 25px 25px 0; background: transparent; }
textarea { resize: vertical; min-height: 90px; }
.inline select, .inline input { width: auto; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.form-grid .full { grid-column: 1 / -1; }
.upload-zone { padding: 16px; background: var(--soft); border: 1px dashed #97a996; border-radius: 16px; color: var(--green); }
.upload-zone small { display: block; }
.photo-preview { max-height: 220px; border-radius: 16px; object-fit: contain; }
.steps { margin: 0; padding-left: 21px; }
.steps li + li { margin-top: 8px; }
.prose { margin-top: 9px; max-width: 880px; }
.prose p, .prose ul { margin: 8px 0 15px; }
.prose a { overflow-wrap: anywhere; }
.prose h2 { margin-top: 10px; }
.credits { padding-top: 26px; }
.credits table { width: 100%; }
.info-image { width: 100%; aspect-ratio: 1.38; object-fit: cover; border-radius: 23px; }
.account-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; text-decoration: none; color: var(--ink); }
.account-strip h2 { margin-top: 5px; }
.sheet { position: fixed; border: 0; border-radius: 28px; box-shadow: 0 28px 70px #18261948; padding: 26px; background: var(--bg); color: var(--ink); width: min(450px,calc(100% - 24px)); }
.sheet::backdrop { background: #1b261c98; }
.sheet h2 { font-size: 1.78rem; margin-bottom: 7px; }
.sheet form { display: grid; gap: 7px; padding-top: 14px; }
.sheet .wide { margin-top: 5px; }
.sheet-icon { display: inline-grid; place-items: center; color: var(--deep); background: var(--tint); border-radius: 17px; width: 48px; height: 48px; flex: 0 0 auto; }
.sheet > .sheet-icon { margin-bottom: 11px; }
.icon-button { display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); color: var(--green); width: 42px; height: 42px; }
.close-sheet { position: absolute; right: 14px; top: 14px; }
.split-links { justify-content: space-between; }
.feedback { font-size: .88rem; color: var(--green); }
.feedback:empty { display: none; }
.sheet .feedback { margin-top: 10px; }
#toast { position: fixed; z-index: 8; right: 18px; bottom: 20px; max-width: min(365px,calc(100% - 36px)); padding: 11px 16px; border-radius: 12px; background: var(--deep); color: #fff; box-shadow: var(--shadow); }
#toast.error { background: #8a2825; }
@media (max-width: 940px) {
    .wrap { width: calc(100% - 34px); }
    .topbar { gap: 13px; }
    .desktop-nav a { padding-inline: 8px; }
    .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .wrap { width: calc(100% - 28px); }
    #main { padding-top: 14px; padding-bottom: 33px; }
    body:not(.admin-body) { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
    .topbar { min-height: auto; padding: 10px 0 9px; flex-wrap: wrap; gap: 8px; }
    .brand img { width: 35px; height: 35px; border-radius: 10px; }
    .brand strong { font-size: 1rem; }
    .brand small { margin-top: 3px; }
    .search { flex-basis: 100%; }
    .desktop-nav { display: none; }
    .bottom-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; z-index: 6; inset: auto 0 0; background: var(--soft); border-top: 1px solid var(--line); padding: 5px 2px calc(5px + env(safe-area-inset-bottom)); }
    .bottom-nav a { color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; font-size: .71rem; font-weight: 700; gap: 1px; min-height: 54px; }
    .nav-icon { position: relative; border-radius: 22px; display: grid; place-items: center; width: min(61px,100%); height: 30px; }
    .bottom-nav a[aria-current] .nav-icon { color: var(--deep); background: var(--tint); }
    .bottom-nav a[aria-current] { color: var(--deep); }
    .nav-icon .count { position: absolute; top: -1px; right: 5px; min-width: 16px; height: 16px; }
    .hero { grid-template-columns: 1fr; border-radius: 24px; }
    .hero > img { min-height: 0; aspect-ratio: 2 / 1; object-position: center 58%; }
    .hero-content { padding: 21px; }
    .hero-content h1 { margin-block: 11px 8px; }
    .hero-actions { margin-top: 14px; gap: 6px; }
    .button { padding-inline: 12px; }
    .section { padding-top: 25px; }
    .categories, .product-grid { gap: 9px; }
    .categories a { border-radius: 15px; }
    .categories span { padding: 8px; line-height: 1.18; font-size: .77rem; }
    .categories .icon { width: 13px; }
    .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .product-card { border-radius: 16px; }
    .card-content { padding: 9px; gap: 6px; }
    .card-content .button { padding: 5px; gap: 4px; font-size: .74rem; }
    .card-content .button .icon { width: 14px; }
    .card-content h3 { font-size: .94rem; }
    .exchange-banner { flex-wrap: wrap; gap: 10px; padding: 14px; margin-top: 24px; }
    .exchange-banner h2 { font-size: 1.18rem; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .split-grid, .detail-grid, .three-grid { grid-template-columns: 1fr; gap: 11px; }
    .sticky-panel { position: static; }
    .catalogue-tools { align-items: flex-start; flex-direction: column; gap: 5px; }
    .catalogue-tools select { max-width: 60vw; }
    .sheet { width: 100%; max-width: none; max-height: min(88dvh,740px); margin: auto 0 0; border-radius: 27px 27px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
    #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .cart-row { grid-template-columns: 59px minmax(0,1fr); }
    .line-total { grid-column: 2; padding-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .button, .chip { transition: background-color .15s ease; }
}

/* Product offers and homepage catalogue content. */
.order-document-panel { margin-top: 20px; }
.whatsapp-button { background: #157943; }
.whatsapp-button:hover { background: #0e5c32; }
.document-actions { gap: 9px; }
.product-image { position: relative; overflow: hidden; flex-shrink: 0; }
.product-image img { position: absolute; inset: 0; }
.product-offer { display: inline-flex; align-items: center; border-radius: 8px; padding: 5px 9px; background: #fff0d6; color: #8b4518; font-size: .78rem; font-weight: 800; letter-spacing: .025em; border: 1px solid #f1d6a5; }
.product-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; }
.regular-price { color: var(--muted); font-size: .83rem; }
.card-content h3 { margin: 0; min-height: 2.24em; padding-bottom: 0; }
.card-content .product-prices, .card-content > .button { margin-top: auto; }
.category-caption { padding-bottom: 14px; }
.category-caption small, .category-caption p { display: block; padding-inline: 15px; color: var(--muted); font-size: .8rem; }
.category-caption p { margin-top: 6px; line-height: 1.45; }
.section-description { color: var(--muted); font-size: .92rem; margin-top: 8px; max-width: 610px; }
.home-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.home-benefits article { padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.home-benefits h3 { margin-top: 16px; font-size: 1.13rem; }
.home-benefits p { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.home-faq { display: grid; gap: 10px; }
.home-faq details { padding: 17px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.home-faq summary { cursor: pointer; font-weight: 700; }
.home-faq p { color: var(--muted); font-size: .94rem; margin-top: 10px; max-width: 820px; }
.home-contact { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 28px; background: var(--tint); border-radius: 24px; }
.home-contact p:not(.eyebrow) { color: var(--muted); margin-top: 10px; max-width: 660px; }
.home-contact .button { flex-shrink: 0; }
@media (max-width: 720px) {
    .home-hero { display: none; }
    .home-categories { padding-top: 0; }
    .home-categories .eyebrow { font-size: .61rem; }
    .home-categories .section-head { align-items: center; }
    .home-categories h2 { font-size: 1.45rem; }
    .category-caption { padding-bottom: 9px; }
    .category-caption small { padding-inline: 8px; font-size: .7rem; }
    .category-caption p { display: none; }
    .section-description { font-size: .81rem; }
    .product-offer { padding: 4px 7px; font-size: .7rem; }
    .product-prices { gap: 3px 6px; }
    .product-prices .price { font-size: 1rem; }
    .product-detail .product-prices .price { font-size: 2rem; }
    .home-benefits { grid-template-columns: 1fr; gap: 9px; }
    .home-benefits article { padding: 17px; }
    .home-benefits h3 { margin-top: 11px; }
    .home-faq details { padding: 14px; }
    .home-contact { align-items: flex-start; flex-direction: column; gap: 15px; padding: 20px; }
}
