/* Storefront theme. Every color, font, radius and layout choice comes from the store settings:
   CSS variables (--store-*) and body classes rendered by App.razor. */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--store-base-size, 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--store-background, #fff);
    color: var(--store-text, #111827);
    font-family: var(--store-font, system-ui, sans-serif);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .footer-name, .category-tile span {
    font-family: var(--store-heading-font, inherit);
    font-weight: var(--store-heading-weight, 700);
    line-height: 1.2;
    letter-spacing: -.01em;
}
.headings-upper h1, .headings-upper h2, .headings-upper .brand span, .headings-upper .category-tile span { text-transform: uppercase; letter-spacing: .04em; }

a { color: inherit; }
img { max-width: 100%; display: block; }
.icon { flex: none; }

.container { width: 100%; max-width: var(--store-container, 1160px); margin: 0 auto; padding: 0 20px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }

/* ---------- Announcement bar ---------- */
.announcement {
    background: var(--store-announcement-bg); color: var(--store-announcement-text);
    text-align: center; font-size: .82rem; font-weight: 500; padding: 7px 16px; letter-spacing: .01em;
}
.announcement a { text-decoration: none; }
.announcement a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.store-header {
    background: var(--store-header-bg); color: var(--store-header-text); z-index: 20;
    border-bottom: 1px solid color-mix(in srgb, var(--store-header-text) 10%, transparent);
}
.header-sticky .store-header { position: sticky; top: 0; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-size: 1.35rem; text-decoration: none; color: var(--store-header-text); display: inline-flex; align-items: center; flex: none; }
.brand img { height: var(--store-logo-height, 44px); width: auto; max-width: 240px; object-fit: contain; }

.search { position: relative; flex: 1 1 auto; max-width: 440px; margin-left: auto; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.search input {
    width: 100%; padding: 8px 14px 8px 38px; font: inherit; font-size: .9rem; color: inherit;
    border: 1px solid color-mix(in srgb, var(--store-header-text) 16%, transparent); border-radius: var(--store-radius);
    background: color-mix(in srgb, var(--store-header-text) 4%, var(--store-header-bg));
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.search input::placeholder { color: inherit; opacity: .6; }
.search input:focus { outline: none; border-color: var(--store-primary); background: var(--store-header-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 20%, transparent); }

.header-actions { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.search + .header-actions { margin-left: 0; }
.account-link, .cart-link {
    display: inline-flex; align-items: center; gap: 8px; position: relative; text-decoration: none;
    font-weight: 600; font-size: .9rem; padding: 7px 10px; border-radius: var(--store-radius); color: var(--store-header-text);
    transition: background .15s;
}
.account-link:hover, .cart-link:hover { background: color-mix(in srgb, var(--store-header-text) 8%, transparent); }
.cart-badge {
    position: absolute; top: 1px; left: 26px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--store-secondary); color: var(--store-on-secondary); font-size: .72rem; font-weight: 700;
    display: grid; place-items: center; border: 2px solid var(--store-header-bg);
}

.categories-bar { border-top: 1px solid color-mix(in srgb, var(--store-header-text) 8%, transparent); }
.categories { display: flex; gap: 6px 26px; overflow-x: auto; scrollbar-width: none; padding-top: 9px; padding-bottom: 9px; }
.categories::-webkit-scrollbar { display: none; }
.categories a { position: relative; text-decoration: none; white-space: nowrap; font-weight: 500; font-size: .9rem; opacity: .85; padding: 2px 0; }
.categories a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.categories a:hover { opacity: 1; }
.categories a:hover::after { transform: scaleX(1); }

/* Centered: search | logo | icons */
.header-centered .header-row { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "search brand actions"; }
.header-centered .brand { grid-area: brand; justify-self: center; }
.header-centered .search { grid-area: search; margin: 0; max-width: 300px; width: 100%; }
.header-centered .header-actions { grid-area: actions; justify-self: end; }
.header-centered .categories { justify-content: center; }

/* Inline: logo + menu in one row */
.header-inline .categories.inline { flex: 1 1 auto; min-width: 0; padding: 0; }
.header-inline .search { flex: 0 1 260px; }

@media (max-width: 820px) {
    .header-row { flex-wrap: wrap; gap: 10px 12px; min-height: 0; }
    .search { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; }
    .header-centered .header-row { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "search search"; }
    .header-centered .brand { justify-self: start; }
    .header-centered .search { max-width: none; }
    .header-inline .categories.inline { order: 4; flex: 1 1 100%; padding-bottom: 4px; }
    .header-inline .search { flex: 1 1 100%; }
    .account-link span, .cart-link span:not(.cart-badge) { display: none; }
    .brand { font-size: 1.3rem; }
    .brand img { height: min(var(--store-logo-height, 44px), 40px); }
}

/* ---------- Main ---------- */
.store-main { padding-top: 22px; padding-bottom: 56px; min-height: 60vh; }
.store-main.home-main { padding-top: 0; }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px;
    border-radius: var(--store-radius); border: 1.5px solid transparent; font: inherit; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; color: inherit;
    background: color-mix(in srgb, var(--store-text) 8%, transparent);
    transition: transform .15s, background .15s, box-shadow .15s, filter .15s, color .15s;
}
.button:hover { background: color-mix(in srgb, var(--store-text) 13%, transparent); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--store-primary); color: var(--store-on-primary); width: 100%; max-width: 360px; }
.button.primary:hover { filter: brightness(1.08); box-shadow: 0 8px 20px color-mix(in srgb, var(--store-primary) 28%, transparent); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.buttons-pill .button, .buttons-pill .chip, .buttons-pill .search input { border-radius: 999px; }
.buttons-outline .button.primary { background: transparent; color: var(--store-primary); border-color: var(--store-primary); }
.buttons-outline .button.primary:hover { background: var(--store-primary); color: var(--store-on-primary); box-shadow: none; filter: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; display: grid; align-items: center; gap: 40px; }
.hero-sm .hero-inner { min-height: 220px; }
.hero-md .hero-inner { min-height: 320px; }
.hero-lg .hero-inner { min-height: 440px; }
.hero-content { max-width: 560px; padding: 36px 0; }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.hero p { margin: 0 0 22px; font-size: 1rem; line-height: 1.6; opacity: .85; max-width: 560px; white-space: pre-line; }
.hero .hero-button { width: auto; max-width: none; padding: 12px 26px; }
.align-center .hero-inner { justify-items: center; text-align: center; }
.align-center .hero-content { margin: 0 auto; }
.align-center .hero p { margin-left: auto; margin-right: auto; }

.hero-text {
    background:
        radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--store-secondary) 24%, transparent), transparent 42%),
        radial-gradient(circle at 8% 95%, color-mix(in srgb, var(--store-primary) 14%, transparent), transparent 48%),
        var(--store-surface);
}
.hero-text h1, .hero-split h1 { color: var(--store-primary); }

.hero-banner { color: #fff; background: #111; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: #000; }
.hero-banner .hero-content { text-shadow: 0 1px 14px rgba(0, 0, 0, .25); }
.hero-banner p { opacity: .95; }

.hero-split { background: var(--store-surface); }
.hero-split .hero-inner { padding-top: 24px; padding-bottom: 24px; }
.hero-side-image { width: 100%; height: 100%; max-height: 380px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--store-radius) * 2); }
@media (min-width: 860px) {
    .hero-split .hero-inner { grid-template-columns: 1fr 1fr; }
    .hero-split.align-center .hero-inner { justify-items: stretch; }
}

/* ---------- Benefits ---------- */
.benefits { border-bottom: 1px solid color-mix(in srgb, var(--store-text) 8%, transparent); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.benefit { display: flex; gap: 14px; align-items: center; }
.benefit-icon {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: color-mix(in srgb, var(--store-primary) 10%, transparent); color: var(--store-primary);
}
.benefit strong { display: block; font-size: .9rem; }
.benefit > div > span { display: block; font-size: .82rem; opacity: .7; }

/* ---------- Home sections ---------- */
.home-section { padding: 44px 0 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-header h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.section-header a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--store-primary); white-space: nowrap; }
.section-header a:hover { text-decoration: underline; }
.section-more { text-align: center; margin-top: 32px; }
.section-more .button { width: auto; }
.sale-section { margin-top: 44px; padding: 36px 0; background: color-mix(in srgb, var(--store-sale) 5%, var(--store-background)); }

.category-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.category-tile {
    position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 3 / 2; padding: 16px;
    border-radius: calc(var(--store-radius) * 1.5); overflow: hidden; text-decoration: none; color: #fff; background: var(--store-primary);
}
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .45s; }
.category-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 60%); }
.category-tile span { font-size: 1.1rem; display: inline-flex; align-items: center; gap: 8px; }
.category-tile:hover img { transform: scale(1.06); }
.category-tile.no-photo {
    color: var(--store-on-primary);
    background: linear-gradient(135deg, var(--store-primary), color-mix(in srgb, var(--store-primary) 55%, var(--store-secondary)));
}
.category-tile.no-photo::after { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .22), transparent 45%); }
.category-tile.no-photo:hover { filter: brightness(1.06); }

.about { display: grid; gap: 40px; align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 3; max-height: 340px; object-fit: cover; border-radius: calc(var(--store-radius) * 2); }
.about h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 12px; }
.about p { white-space: pre-line; opacity: .85; line-height: 1.7; margin: 0; }
.about.no-photo { max-width: 780px; text-align: center; }
@media (min-width: 860px) { .about:not(.no-photo) { grid-template-columns: 5fr 6fr; gap: 48px; } }

/* ---------- Listing pages ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; opacity: .7; margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title { margin: 0 0 14px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.listing-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.listing-header .page-title { margin: 0; }
.listing-count { margin: 4px 0 0; opacity: .65; font-size: .9rem; }
.sort { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.sort select { padding: 9px 12px; border-radius: var(--store-radius); font: inherit; border: 1px solid color-mix(in srgb, var(--store-text) 20%, transparent); background: var(--store-background); color: inherit; }
.category-description { opacity: .8; margin: -8px 0 20px; max-width: 760px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chips .chip { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; padding: 7px 15px; border-radius: 999px; }

/* ---------- Product grid & cards ---------- */
.product-grid {
    list-style: none; padding: 0; margin: 0; display: grid; gap: 24px 16px;
    grid-template-columns: repeat(var(--grid-columns-mobile, 2), minmax(0, 1fr));
}
@media (max-width: 420px) { .product-grid { gap: 24px 12px; } }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(var(--grid-columns-tablet, 3), minmax(0, 1fr)); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(var(--grid-columns, 4), minmax(0, 1fr)); } }

.product-card { display: flex; flex-direction: column; gap: 10px; position: relative; min-width: 0; }
.product-card-link { text-decoration: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-image {
    position: relative; aspect-ratio: var(--card-ratio, 1 / 1); border-radius: var(--store-radius); overflow: hidden;
    background: var(--store-surface); display: grid; place-items: center;
}
.product-image img { width: 100%; height: 100%; object-fit: var(--card-fit, cover); transition: transform .4s ease; }
.product-card-link:hover .product-image img { transform: scale(1.05); }
.product-card-body { display: grid; gap: 4px; }
.product-card h3 { font-family: var(--store-font); font-size: .93rem; font-weight: 500; margin: 0; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.product-card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card-text-center .product-card-body { text-align: center; }
.card-text-center .product-card .price { justify-content: center; }
.cards-bordered .product-card { border: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); border-radius: calc(var(--store-radius) * 1.25); padding: 10px 10px 14px; }
.cards-shadow .product-card {
    background: var(--store-background); border-radius: calc(var(--store-radius) * 1.25); padding: 10px 10px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06); transition: box-shadow .2s, transform .2s;
}
.cards-shadow .product-card:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 16px 32px rgba(0, 0, 0, .1); }
.cards-bordered .product-card-body, .cards-shadow .product-card-body { padding: 0 4px; }
.no-image { font-size: 2.4rem; font-weight: 700; color: var(--store-primary); opacity: .35; text-transform: uppercase; }
.sale-badge {
    position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--store-sale); color: var(--store-on-sale);
    font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.sale-badge.big { font-size: .95rem; padding: 6px 14px; top: 16px; left: 16px; }
.card-button.button.primary { width: 100%; max-width: none; padding: 8px 14px; font-size: .88rem; margin-top: auto; }

.price { margin: 0; font-weight: 700; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price small { font-weight: 400; opacity: .7; font-size: .8em; }
.price s { font-weight: 400; opacity: .55; font-size: .88em; }
.price.big { font-size: 1.45rem; margin: 8px 0 18px; }
.sale-price { color: var(--store-sale); }

.pagination { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 40px; }
.pagination .button { padding: 10px 18px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) {
    .product-detail { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px; }
    .product-detail.gallery-right { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
    .gallery-right .gallery { order: 2; }
}
.gallery-main { position: relative; }
.gallery-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
    border-radius: calc(var(--store-radius) * 1.25); background: var(--store-surface);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
div.gallery-slide { display: grid; place-items: center; font-size: 5rem; color: var(--store-primary); opacity: .4; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); transition: width .2s, background .2s; }
.gallery-dots span.active { width: 20px; border-radius: 4px; background: #fff; }
@media (min-width: 821px) { .gallery-dots { display: none; } }
.thumbnails { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 10px; overflow-x: auto; }
.thumb { display: block; padding: 0; border: 2px solid transparent; border-radius: var(--store-radius); background: none; cursor: pointer; overflow: hidden; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--store-primary); }
.thumb img { width: 64px; height: 64px; object-fit: cover; }
.info h1 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

.option { border: 0; padding: 0; margin: 0 0 18px; }
.option legend { font-weight: 600; margin-bottom: 10px; }
.option legend strong { font-weight: 500; opacity: .75; }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 14px; border-radius: var(--store-radius); text-decoration: none; font-size: .9rem; font-weight: 500;
    border: 1.5px solid color-mix(in srgb, var(--store-text) 20%, transparent); transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--store-primary); }
.chip.selected { border-color: var(--store-primary); background: var(--store-primary); color: var(--store-on-primary); }
.chip.unavailable { opacity: .45; text-decoration: line-through; }
/* Color dot of an option value: ring in the store color when selected, diagonal line when out of stock. */
.swatch {
    position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--swatch); flex: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .12); transition: box-shadow .15s;
}
.swatch:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px #fff, 0 0 0 4px var(--store-primary); }
.swatch.selected { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 3px #fff, 0 0 0 5px var(--store-primary); }
.swatch.unavailable { opacity: .5; }
.swatch.unavailable::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: #fff; transform: rotate(45deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.values:has(.swatch) { gap: 12px; padding: 4px; }

.stock { font-weight: 600; margin: 8px 0 16px; }
.stock.in { color: #15803d; }
.stock.out { color: #b91c1c; }
.stock .low-stock { color: #c2410c; }
.stock small { font-weight: 400; opacity: .7; color: var(--store-text); }

.whatsapp-button.button { width: 100%; margin-top: 12px; background: transparent; border-color: color-mix(in srgb, var(--store-text) 18%, transparent); }
.whatsapp-button .icon { color: #25d366; }
.whatsapp-button.button:hover { border-color: #25d366; background: color-mix(in srgb, #25d366 8%, transparent); }

.description { margin-top: 32px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); }
.description h2 { font-size: 1.1rem; margin: 0 0 8px; }
.description p { white-space: pre-line; line-height: 1.7; opacity: .9; }
.related { margin-top: 52px; }

.empty-state { text-align: center; padding: 64px 16px; }
.empty-state > .icon { margin: 0 auto 4px; opacity: .35; }
.empty-state h1, .empty-state h2 { margin-bottom: 8px; }
.empty-state p { opacity: .7; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.store-footer { background: var(--store-footer-bg); color: var(--store-footer-text); padding-top: 40px; font-size: .88rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding-bottom: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(260px, 1.6fr) repeat(auto-fit, minmax(160px, 1fr)); } }
.footer-name { font-size: 1.2rem; display: block; margin-bottom: 10px; }
.footer-brand p { margin: 0 0 18px; opacity: .75; max-width: 380px; line-height: 1.65; }
.store-footer h2 { font-family: var(--store-font); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; opacity: .6; margin: 0 0 14px; }
.store-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.store-footer a { text-decoration: none; opacity: .9; }
.store-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-contact li { display: flex; gap: 8px; align-items: center; }
.footer-contact .icon { opacity: .7; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.store-footer .social-link {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; opacity: 1; text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--store-footer-text) 25%, transparent); transition: background .15s, color .15s;
}
.store-footer .social-link:hover { background: var(--store-footer-text); color: var(--store-footer-bg); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 20px;
    border-top: 1px solid color-mix(in srgb, var(--store-footer-text) 14%, transparent); font-size: .85rem;
}
.footer-bottom > span:first-child { opacity: .75; }
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
.footer-legal a, .footer-legal .link-button { color: inherit; opacity: .8; font-size: .85rem; text-decoration: underline; }
.payment-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; font-weight: 600; font-size: .8rem; border: 1px solid color-mix(in srgb, var(--store-footer-text) 22%, transparent); }

.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 52px; height: 52px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Product page: add to cart & shipping ---------- */
.product-shipping { margin-top: 20px; display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--store-radius); background: var(--store-surface); }
.product-shipping-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.add-to-cart .button.primary { flex: 1 1 220px; max-width: none; padding: 11px 20px; }

/* ---------- Flash messages ---------- */
.flash { padding: 12px 16px; border-radius: var(--store-radius); margin: 0 0 20px; font-weight: 500; }
.flash.success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.flash.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Add to cart ---------- */
.add-to-cart { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.quantity { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.quantity input, .qty-form input { width: 76px; padding: 11px 10px; font: inherit; border-radius: var(--store-radius); border: 1px solid color-mix(in srgb, var(--store-text) 25%, transparent); background: transparent; color: inherit; }

/* ---------- Cart ---------- */
/* minmax(0, ...): the column follows the screen, never the widest content (Safari/the app grew it past the phone width). */
.cart-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.cart-layout > * { min-width: 0; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.cart-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "thumb info total" "thumb actions total"; gap: 4px 16px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); }
.cart-line.has-problem { opacity: .85; }
.cart-thumb { grid-area: thumb; width: 88px; height: 88px; border-radius: var(--store-radius); overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--store-text) 6%, transparent); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .no-image { font-size: 1.6rem; }
.cart-info { grid-area: info; display: grid; gap: 2px; }
.cart-name { font-weight: 600; text-decoration: none; }
.cart-variant, .cart-unit { font-size: .9rem; opacity: .75; }
.cart-problem { color: #b91c1c; font-weight: 600; font-size: .9rem; }
.cart-actions { grid-area: actions; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty-form { display: flex; gap: 8px; align-items: center; }
.qty-form input { width: 64px; padding: 6px 8px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--store-primary); text-decoration: underline; cursor: pointer; }
.link-button.danger { color: #b91c1c; }
.cart-total { grid-area: total; font-size: 1.05rem; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb info" "thumb total" "actions actions"; } .cart-thumb { width: 64px; height: 64px; } }

.cart-summary { border: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); border-radius: var(--store-radius); padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; position: sticky; top: 16px; }
.cart-summary h2 { margin: 0; font-size: 1.15rem; }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 0; }
.cart-summary dd { margin: 0; text-align: right; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin: 4px 0; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); }
.cart-summary .button { text-align: center; width: 100%; max-width: none; }
.button.disabled { opacity: .5; pointer-events: none; }
.continue { text-align: center; font-size: .95rem; }
.guest-note { font-size: .88rem; opacity: .7; margin: 0; }
.summary-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines li span:last-child { white-space: nowrap; }

/* ---------- Checkout ---------- */
.checkout-form { display: grid; gap: 20px; }
.checkout-form fieldset { border: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); border-radius: var(--store-radius); padding: 16px 20px 20px; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-form legend { font-weight: 700; padding: 0 6px; }
.checkout-form .guest-note, .checkout-form .full, .checkout-form .wide { grid-column: 1 / -1; }
@media (min-width: 700px) { .checkout-form .wide { grid-column: span 1; } }
.checkout-form label { display: grid; gap: 6px; align-content: start; font-weight: 500; font-size: .95rem; }
.checkout-form input, .checkout-form select, .checkout-form textarea { font: inherit; padding: 10px 12px; border-radius: var(--store-radius); border: 1px solid color-mix(in srgb, var(--store-text) 25%, transparent); background: var(--store-background); color: inherit; width: 100%; }
.checkout-form input.invalid, .checkout-form select.invalid { border-color: #b91c1c; }
.validation-message { color: #b91c1c; font-size: .85rem; font-weight: 500; }
/* The floating WhatsApp button would cover the checkout fields on phones. */
main:has(.checkout-form) ~ .whatsapp-float { display: none; }
.checkout-form > .button.primary { max-width: none; width: 100%; padding: 16px; font-size: 1.05rem; }
@media (max-width: 560px) { .checkout-form fieldset { grid-template-columns: 1fr; } }

/* ---------- Order confirmation ---------- */
.order-confirmation { display: grid; gap: 24px; }
.order-header { display: flex; gap: 16px; align-items: center; }
.order-header h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.order-header p { margin: 0; }
.order-check { width: 52px; height: 52px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.order-status { padding: 16px 20px; border-radius: var(--store-radius); background: color-mix(in srgb, var(--store-secondary) 14%, transparent); display: grid; gap: 2px; }
.order-status span { font-size: .85rem; opacity: .75; }
.order-status p { margin: 6px 0 0; }
address { font-style: normal; line-height: 1.6; }

/* ---------- Shipping ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.shipping-box { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); }
.zip-form { display: grid; gap: 6px; }
.zip-form label { font-weight: 600; font-size: .95rem; }
.zip-row { display: flex; gap: 8px; }
.zip-row input { flex: 1; min-width: 0; width: 100%; padding: 10px 12px; font: inherit; border-radius: var(--store-radius); border: 1px solid color-mix(in srgb, var(--store-text) 25%, transparent); background: var(--store-background); color: inherit; }
.zip-row .button, .cart-summary .zip-row .button { padding: 10px 16px; width: auto; max-width: none; flex: none; }
.small-link { font-size: .82rem; opacity: .8; }
.shipping-options { display: grid; gap: 8px; }
.shipping-option { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--store-radius); border: 1px solid color-mix(in srgb, var(--store-text) 15%, transparent); cursor: pointer; }
.shipping-option.selected { border-color: var(--store-primary); background: color-mix(in srgb, var(--store-primary) 7%, transparent); }
.shipping-option input { accent-color: var(--store-primary); }
.shipping-name { display: grid; gap: 1px; }
.shipping-name small { opacity: .7; font-size: .8rem; }
.shipping-price { font-weight: 700; white-space: nowrap; text-align: right; display: grid; justify-items: end; }
.shipping-price s { font-weight: 400; opacity: .55; font-size: .82rem; }
.free-shipping-hint { margin: 0; padding: 8px 12px; border-radius: var(--store-radius); background: color-mix(in srgb, var(--store-secondary) 16%, transparent); font-size: .88rem; }
.chosen-shipping { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--store-radius); border: 1px solid var(--store-primary); background: color-mix(in srgb, var(--store-primary) 6%, transparent); }
.chosen-shipping > div:first-child { display: grid; gap: 2px; }
.chosen-shipping small { opacity: .75; }
.checkout-form input[readonly] { opacity: .75; background: color-mix(in srgb, var(--store-text) 5%, transparent); }
.chosen-method { margin: 0; display: grid; gap: 2px; }
.chosen-method small { opacity: .75; }
.product-quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.product-quotes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); }
.product-quotes small { opacity: .7; margin-left: 4px; }

/* ---------- Pix ---------- */
.pix-box { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 24px; border-radius: var(--store-radius); border: 2px solid var(--store-primary); background: color-mix(in srgb, var(--store-primary) 4%, var(--store-background)); }
@media (min-width: 760px) { .pix-box { grid-template-columns: 260px 1fr; align-items: center; } }
.pix-qr { display: grid; place-items: center; background: #fff; border-radius: var(--store-radius); padding: 10px; }
.pix-qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.pix-info h2 { margin: 0; }
.pix-amount { font-size: 1.8rem; font-weight: 700; margin: 4px 0 8px; color: var(--store-primary); }
.pix-info ol { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 4px; }
.pix-info textarea { width: 100%; font: .85rem/1.4 ui-monospace, monospace; padding: 10px; border-radius: var(--store-radius); border: 1px solid color-mix(in srgb, var(--store-text) 25%, transparent); resize: none; word-break: break-all; background: var(--store-background); color: inherit; }
.pix-info .button.primary { width: 100%; max-width: none; margin-top: 10px; }
.pix-expiration { font-size: .85rem; opacity: .75; margin: 10px 0 0; }
.order-status.paid { background: #ecfdf3; border: 1px solid #bbf7d0; }
.order-check.canceled { background: #b91c1c; }


/* ---------- Account pages (login, register, password) ---------- */
.account-page { display: grid; place-items: center; padding: 24px 0 48px; }
.account-card {
    width: 100%; max-width: 440px; padding: 36px 32px; border-radius: calc(var(--store-radius) * 2);
    background: var(--store-background);
    border: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 40px color-mix(in srgb, var(--store-text) 10%, transparent);
}
@media (max-width: 480px) { .account-card { padding: 28px 20px; } }
.account-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
    color: var(--store-primary); background: color-mix(in srgb, var(--store-primary) 12%, transparent);
}
.account-card h1 { margin: 0 0 6px; font-size: 1.6rem; }
.account-subtitle { margin: 0 0 22px; opacity: .75; line-height: 1.5; }
.account-form { display: grid; gap: 16px; }
.account-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.account-form label small { font-weight: 400; opacity: .6; }
.account-form input:not([type=checkbox]) {
    font: inherit; font-weight: 400; width: 100%; padding: 12px 14px; border-radius: var(--store-radius);
    border: 1px solid color-mix(in srgb, var(--store-text) 22%, transparent);
    background: var(--store-background); color: var(--store-text); transition: border-color .15s, box-shadow .15s;
}
.account-form input:focus { outline: none; border-color: var(--store-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--store-primary) 18%, transparent); }
.account-form input[readonly] { opacity: .7; background: color-mix(in srgb, var(--store-text) 5%, transparent); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-weight: 500; font-size: .85rem; color: var(--store-primary); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 84px !important; }
.password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
    color: var(--store-primary); font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.password-toggle:hover { background: color-mix(in srgb, var(--store-primary) 8%, transparent); }
.check-row { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; font-weight: 500 !important; }
.check-row input { width: 18px; height: 18px; accent-color: var(--store-primary); }
.button.block { display: block; width: 100%; max-width: none; text-align: center; padding: 13px; }
.button.outline { background: transparent; color: var(--store-primary); border: 1.5px solid var(--store-primary); }
.button.outline:hover { background: color-mix(in srgb, var(--store-primary) 8%, transparent); }
.account-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: .88rem; opacity: .65; }
.account-divider::before, .account-divider::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--store-text) 15%, transparent); }
/* "Entrar com Google": white button with the Google colors (its brand rules), the same in every store theme. */
.button.google-login { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; margin-top: 18px; }
.button.google-login:hover { background: #f8fafc; box-shadow: 0 1px 3px rgba(60, 64, 67, .15); }
.button.google-login + .account-divider { margin: 18px 0 4px; }
.account-note { margin: 16px 0 0; text-align: center; font-size: .9rem; opacity: .8; }
.account-note a, .checkout-login-hint a { color: var(--store-primary); font-weight: 600; }

/* ---------- Minha conta ---------- */
.my-account { display: grid; gap: 20px; }
.my-account-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.my-account-header h1 { margin: 0; font-size: 1.6rem; }
.my-account-header p { margin: 2px 0 0; opacity: .7; }
.my-account-header .logout { margin-left: auto; }
.my-account-avatar {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700;
    color: var(--store-on-primary); background: var(--store-primary);
}
/* Account menu: side list on desktop, four equal tabs (icon over the name) on phones. */
.account-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .account-layout { grid-template-columns: 230px minmax(0, 1fr); } }
.account-nav {
    display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: calc(var(--store-radius) * 1.5);
    border: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent);
}
@media (min-width: 860px) { .account-nav { position: sticky; top: 96px; } }
.account-nav a {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--store-radius);
    color: inherit; text-decoration: none; font-weight: 500; transition: background .15s, color .15s;
}
.account-nav a svg { flex: none; opacity: .75; }
.account-nav a:hover { background: color-mix(in srgb, var(--store-text) 5%, transparent); }
.account-nav a[aria-current="page"] { background: color-mix(in srgb, var(--store-primary) 10%, transparent); color: var(--store-primary); font-weight: 600; }
.account-nav a[aria-current="page"] svg { opacity: 1; }
.account-nav .nav-extra { margin-left: auto; font-size: .78rem; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 859px) {
    .account-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; }
    .account-nav a { flex-direction: column; gap: 4px; padding: 9px 4px; font-size: .78rem; text-align: center; }
    .account-nav .nav-extra { display: none; }
}
.account-content { min-width: 0; }
.account-panel.narrow { max-width: 560px; }
.panel-hint { margin: -8px 0 18px; opacity: .75; font-size: .92rem; }
.panel-hint.below { margin: 16px 0 0; }
.privacy-panel h3 { margin: 26px 0 12px; font-size: 1rem; }
.privacy-panel h3 + .panel-hint { margin-top: 0; }
.privacy-status { margin: 0 0 4px; font-size: .92rem; }
.danger-zone { margin-top: 12px; }
.danger-zone summary { cursor: pointer; color: #b91c1c; font-size: .92rem; text-decoration: underline; }
.danger-zone .account-form { margin-top: 14px; }
.button.danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.account-form .field-hint { font-weight: 400; font-size: .8rem; opacity: .65; }
.account-panel { padding: 22px; border-radius: calc(var(--store-radius) * 1.5); border: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); }
.account-panel h2 { margin: 0 0 16px; font-size: 1.15rem; }
.empty-orders { text-align: center; padding: 24px 0; }
.empty-orders p { opacity: .7; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.order-list a {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "number total" "date badge"; gap: 4px 12px;
    padding: 14px 16px; border-radius: var(--store-radius); text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); transition: border-color .15s, background .15s;
}
.order-list a:hover { border-color: var(--store-primary); background: color-mix(in srgb, var(--store-primary) 4%, transparent); }
.order-number { grid-area: number; font-weight: 700; }
.order-date { grid-area: date; font-size: .88rem; opacity: .7; }
.order-total { grid-area: total; text-align: right; }
.order-badge { grid-area: badge; justify-self: end; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--store-text) 8%, transparent); }
.status-paid, .status-delivered { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-shipped { background: #e0f2fe; color: #075985; }
.status-canceled { background: #fee2e2; color: #991b1b; }

.account-panel .button { width: 100%; max-width: none; text-align: center; }

/* ---------- Phones: shorter banner and a compact benefits strip ---------- */
@media (max-width: 560px) {
    .hero-md .hero-inner { min-height: 260px; }
    .hero-lg .hero-inner { min-height: 320px; }
    .hero-content { padding: 28px 0; }
    .benefits-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
    .benefit { gap: 10px; }
    .benefit-icon { width: 34px; height: 34px; }
    .benefit strong { font-size: .82rem; line-height: 1.3; }
    .benefit > div > span { display: none; }
    .home-section { padding-top: 32px; }
    .category-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .category-tile { padding: 12px; }
    .category-tile span { font-size: .95rem; }
}

/* =====================================================================
   Mobile-first details: side menu, bottom bar, sticky buy/checkout bars,
   footer accordion, swipe carousels. Breakpoint: 820px.
   ===================================================================== */
:root { --bottom-nav-h: 64px; --safe-bottom: env(safe-area-inset-bottom, 0px); }

.icon-button {
    display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: inherit; cursor: pointer; flex: none;
}
.icon-button:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.menu-toggle { display: none; margin-left: -8px; }

/* ---------- Footer columns (<details>): plain headings on larger screens ---------- */
.footer-col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary .icon { display: none; transition: transform .2s; }
.footer-col summary h2 { margin: 0 0 14px; }

/* ---------- Cart quantity stepper ---------- */
.qty-stepper {
    display: inline-flex; align-items: center; border-radius: var(--store-radius);
    border: 1px solid color-mix(in srgb, var(--store-text) 20%, transparent); overflow: hidden;
}
.qty-stepper button {
    width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer;
}
.qty-stepper button:hover:not(:disabled) { background: color-mix(in srgb, var(--store-text) 7%, transparent); }
.qty-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qty-stepper span { min-width: 30px; text-align: center; font-weight: 600; }
.buttons-pill .qty-stepper { border-radius: 999px; }

/* Bars that only exist on phones */
.bottom-nav, .buy-bar, .checkout-bar, .drawer, .drawer-backdrop { display: none; }

@media (max-width: 820px) {
    /* iOS zooms into inputs below 16px */
    input, select, textarea { font-size: 16px !important; }

    /* ---------- Compact header ---------- */
    .announcement { font-size: .74rem; padding: 6px 12px; line-height: 1.35; }
    .menu-toggle { display: inline-grid; }
    .header-row, .header-centered .header-row { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-top: 6px; padding-bottom: 8px; }
    .header-row .brand { flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
    .header-centered .header-row .brand { justify-content: center; }
    .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .header-actions { margin-left: 0; gap: 0; }
    .account-link, .cart-link { padding: 9px; border-radius: 50%; }
    .cart-badge { left: auto; right: 1px; top: 1px; }
    .search, .header-centered .search, .header-inline .search { order: 3; flex: 1 1 100%; max-width: none; margin: 2px 0 0; }
    .search input { padding-top: 9px; padding-bottom: 9px; border-radius: 999px; }
    .categories-bar, .header-inline .categories.inline { display: none; }
    .mobile-nav .account-link { display: none; } /* "Conta" is in the bottom bar */

    /* ---------- Side menu ---------- */
    .drawer, .drawer-backdrop { display: block; }
    .drawer[hidden], .drawer-backdrop[hidden] { display: none; }
    .drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s; }
    .drawer {
        position: fixed; inset: 0 auto 0 0; z-index: 61; width: min(86vw, 340px); overflow-y: auto; overscroll-behavior: contain;
        background: var(--store-background); color: var(--store-text); padding: 0 0 calc(24px + var(--safe-bottom));
        transform: translateX(-100%); transition: transform .25s ease; box-shadow: 8px 0 32px rgba(0, 0, 0, .18);
    }
    .drawer-open .drawer { transform: none; }
    .drawer-open .drawer-backdrop { opacity: 1; }
    .drawer-open { overflow: hidden; }
    .drawer-header {
        position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
        padding: 10px 8px 10px 20px; background: var(--store-header-bg); color: var(--store-header-text);
    }
    .drawer-title { font-family: var(--store-heading-font); font-weight: var(--store-heading-weight); font-size: 1.15rem; }
    .drawer-account {
        display: flex; align-items: center; gap: 12px; margin: 14px 16px 6px; padding: 12px 14px; text-decoration: none;
        border-radius: calc(var(--store-radius) * 1.25); background: var(--store-surface);
    }
    .drawer-account > span:nth-child(2) { flex: 1; display: grid; }
    .drawer-account small { opacity: .7; font-size: .82rem; }
    .drawer-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--store-primary); color: var(--store-on-primary); }
    .drawer-section { margin: 18px 20px 4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
    .drawer-links { list-style: none; margin: 0; padding: 4px 8px; }
    .drawer-links a {
        display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 12px; border-radius: var(--store-radius);
        text-decoration: none; font-weight: 500;
    }
    .drawer-links a:active, .drawer-links a:hover { background: color-mix(in srgb, var(--store-text) 6%, transparent); }
    .drawer-links a .drawer-chevron { margin-left: auto; opacity: .4; }
    /* No height animation: the row collapses at once and store.js gives the space back as margin (no layout shift). */
    .search { transition: opacity .15s ease; max-height: 60px; }
    .header-sticky.header-compact .search { max-height: 0; opacity: 0; margin: 0; overflow: hidden; pointer-events: none; }
    .header-sticky.header-compact .header-row { padding-bottom: 6px; }
    .drawer-links .drawer-child a { padding-left: 28px; min-height: 42px; opacity: .8; font-size: .95rem; }
    .drawer-whatsapp.button { display: flex; margin: 20px 16px 0; background: #25d366; color: #fff; }

    /* ---------- Bottom tab bar ---------- */
    .mobile-nav .bottom-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
        height: calc(var(--bottom-nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
        background: var(--store-header-bg); color: var(--store-header-text);
        border-top: 1px solid color-mix(in srgb, var(--store-header-text) 12%, transparent);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
    }
    .bottom-nav a, .bottom-nav button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; padding: 0;
        background: none; color: inherit; font: inherit; font-size: .68rem; font-weight: 600; text-decoration: none; opacity: .62; cursor: pointer;
    }
    .bottom-nav .active { opacity: 1; color: var(--store-primary); }
    .bottom-nav .icon { width: 24px; height: 24px; }
    .bottom-nav-icon { position: relative; display: grid; }
    .bottom-nav .cart-badge { top: -6px; right: -10px; left: auto; }
    .mobile-nav { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom)); }
    .mobile-nav .whatsapp-float { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 14px); right: 14px; width: 50px; height: 50px; }
    .whatsapp-float { right: 14px; bottom: calc(14px + var(--safe-bottom)); }

    /* ---------- Home: swipeable product rows ---------- */
    .home-section .product-grid, .related .product-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px;
        margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px;
    }
    .home-section .product-grid::-webkit-scrollbar, .related .product-grid::-webkit-scrollbar { display: none; }
    .home-section .product-card, .related .product-card { flex: 0 0 calc((100% - 12px) / 2.15); scroll-snap-align: start; }
    .section-header { margin-bottom: 14px; }
    .section-header a { font-size: .9rem; }
    .hero-split .hero-side-image { order: -1; max-height: 220px; aspect-ratio: 16 / 10; }
    .hero-split .hero-inner { gap: 0; }
    .about img { max-height: 220px; }

    /* ---------- Listing: compact header, chips scroll sideways ---------- */
    .listing-header { flex-wrap: nowrap; align-items: center; margin-bottom: 14px; }
    .sort label { display: none; }
    .sort select { max-width: 150px; padding: 8px 10px; }
    .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 20px; padding: 0 16px; }
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chips .chip { white-space: nowrap; flex: none; }
    .breadcrumb { margin-bottom: 12px; font-size: .8rem; }
    .pagination { gap: 10px; font-size: .9rem; }

    /* ---------- Product page ---------- */
    .product-detail { gap: 18px; }
    .gallery { margin: 0 -16px; }
    .gallery-track { border-radius: 0; }
    .thumbnails { display: none; }
    .sale-badge.big { top: 12px; left: 16px; }
    .info h1 { font-size: 1.4rem; }
    .price.big { font-size: 1.35rem; margin-bottom: 14px; }
    .chip { min-height: 42px; display: inline-flex; align-items: center; }
    .add-to-cart { gap: 10px; }
    .quantity input { width: 64px; }

    .buy-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px;
        padding: 10px 16px calc(10px + var(--safe-bottom)); background: var(--store-background);
        border-top: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); box-shadow: 0 -6px 24px rgba(0, 0, 0, .1);
        transform: translateY(110%); transition: transform .25s ease;
    }
    .buy-bar.visible { transform: none; }
    .buy-bar-info { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
    .buy-bar-info span { font-size: .8rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .buy-bar-info strong { font-size: 1.1rem; }
    .buy-bar .button.primary { width: auto; max-width: none; padding: 12px 22px; flex: none; }
    .buy-bar-visible .whatsapp-float { opacity: 0; pointer-events: none; }

    /* ---------- Cart ---------- */
    .cart-line { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "thumb info" "thumb total" "actions actions"; gap: 4px 14px; }
    .cart-thumb { width: 72px; height: 72px; }
    .cart-actions { justify-content: space-between; margin-top: 6px; }
    .cart-summary { position: static; }
    .checkout-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px;
        padding: 10px 16px calc(10px + var(--safe-bottom)); background: var(--store-background);
        border-top: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); box-shadow: 0 -6px 24px rgba(0, 0, 0, .1);
    }
    .mobile-nav .checkout-bar { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom)); padding-bottom: 10px; }
    .checkout-bar-total { flex: 1; display: grid; line-height: 1.2; }
    .checkout-bar-total span { font-size: .78rem; opacity: .7; }
    .checkout-bar-total strong { font-size: 1.15rem; }
    .checkout-bar .button.primary { width: auto; max-width: none; padding: 12px 20px; }
    main:has(.checkout-bar) { padding-bottom: 96px; }
    main:has(.checkout-bar) ~ .whatsapp-float { display: none; }

    /* ---------- Checkout & account ---------- */
    .checkout-form fieldset { padding: 14px 14px 16px; }
    .checkout-form > .button.primary { position: sticky; bottom: calc(var(--safe-bottom) + 10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
    .mobile-nav .checkout-form > .button.primary { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 10px); }
    .account-page { padding: 4px 0 24px; }
    .account-card { box-shadow: none; border: 0; padding: 8px 0; background: transparent; }

    /* ---------- Footer accordion ---------- */
    .store-footer { padding-top: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 12px; }
    .footer-brand { padding-bottom: 16px; }
    .footer-col { border-top: 1px solid color-mix(in srgb, var(--store-footer-text) 14%, transparent); }
    .footer-col summary { cursor: pointer; min-height: 50px; }
    .footer-col summary h2 { margin: 0; }
    .footer-col summary .icon { display: block; opacity: .6; }
    .footer-col[open] summary .icon { transform: rotate(180deg); }
    .footer-col ul { padding-bottom: 16px; gap: 0; }
    .footer-col li a { display: inline-block; padding: 8px 0; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Professional polish + quick add on the cards
   ===================================================================== */

/* ---------- Typography & surfaces ---------- */
h1, h2 { letter-spacing: -.02em; }
.headings-upper h1, .headings-upper h2 { letter-spacing: .04em; }
.section-header h2 { position: relative; }
.button.primary { box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.header-sticky .store-header { transition: box-shadow .2s; }
.header-sticky.scrolled .store-header { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- Product cards ---------- */
.product-card { container-type: inline-size; }
.product-image { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--store-text) 5%, transparent); }
.product-card h3 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-weight: 500;
}
.product-card .price { font-size: 1.02rem; }
.product-card-body { gap: 6px; }
.stock-badge {
    position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px;
    background: rgba(17, 17, 17, .78); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.sold-out .product-image img { opacity: .55; filter: grayscale(.35); }
.sold-out .price { opacity: .6; }

/* ---------- Quick add (option + quantity + Adicionar) ---------- */
.quick-add { display: grid; gap: 8px; margin-top: auto; }
.cards-bordered .quick-add, .cards-shadow .quick-add { padding: 0 4px; }
.quick-add-select {
    width: 100%; padding: 8px 10px; font: inherit; font-size: .88rem; color: inherit; cursor: pointer;
    border-radius: var(--store-radius); border: 1px solid color-mix(in srgb, var(--store-text) 18%, transparent);
    background: var(--store-background);
}
.quick-add-row { display: flex; gap: 6px; }
.quick-qty {
    display: inline-flex; align-items: center; flex: none; overflow: hidden; background: var(--store-background);
    border-radius: var(--store-radius); border: 1px solid color-mix(in srgb, var(--store-text) 18%, transparent);
}
.quick-qty button {
    width: 30px; height: 38px; display: grid; place-items: center; padding: 0; border: 0;
    background: transparent; color: inherit; cursor: pointer; transition: background .15s;
}
.quick-qty button:hover:not(:disabled) { background: color-mix(in srgb, var(--store-text) 7%, transparent); }
.quick-qty button:disabled { opacity: .35; cursor: not-allowed; }
.quick-qty input {
    width: 34px; height: 38px; padding: 0; border: 0; text-align: center; font: inherit; font-weight: 600;
    background: transparent; color: inherit; -moz-appearance: textfield; appearance: textfield;
}
.quick-qty input::-webkit-outer-spin-button, .quick-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick-qty input:focus { outline: none; background: color-mix(in srgb, var(--store-primary) 8%, transparent); }
.quick-qty.big button { width: 42px; height: 48px; }
.quick-qty.big input { width: 44px; height: 48px; font-size: 1.05rem; }
.buttons-pill .quick-qty, .buttons-pill .quick-add-select { border-radius: 999px; }

.quick-add-button.button.primary { flex: 1; min-width: 0; width: auto; max-width: none; height: 40px; padding: 0 12px; font-size: .88rem; }
.quick-add-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-add-button.loading { opacity: .7; cursor: progress; }
.quick-add-button.added { background: #15803d; color: #fff; border-color: #15803d; }
@container (max-width: 200px) {
    .quick-add-label { display: none; }
    .quick-qty button { width: 26px; }
    .quick-qty input { width: 28px; }
}

.add-to-cart { align-items: stretch; }
.add-to-cart .button.primary { min-height: 50px; }

/* ---------- Product page extras ---------- */
.price.big + .savings { margin-top: -12px; }
.savings { margin: 0 0 16px; font-size: .9rem; color: #15803d; }
.trust-list {
    list-style: none; margin: 22px 0 0; padding: 18px 0 0; display: grid; gap: 14px;
    border-top: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent);
}
.trust-list li { display: flex; align-items: center; gap: 12px; }
.trust-list .icon {
    width: 40px; height: 40px; padding: 10px; border-radius: 50%; flex: none;
    color: var(--store-primary); background: color-mix(in srgb, var(--store-primary) 9%, transparent);
}
.trust-list span { display: grid; font-size: .86rem; opacity: .9; line-height: 1.35; }
.trust-list strong { font-size: .93rem; }

/* ---------- Toasts ---------- */
.toast-region {
    position: fixed; z-index: 70; right: 20px; bottom: 20px; display: grid; gap: 10px;
    width: min(400px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px;
    background: #111827; color: #fff; font-size: .92rem; line-height: 1.4; box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
    border-left: 4px solid #22c55e; animation: toast-in .25s ease; transition: opacity .3s, transform .3s;
}
.toast.error { border-left-color: #ef4444; }
.toast .icon { color: #4ade80; }
.toast a { margin-left: auto; color: #fff; font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
.toast.leaving { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.cart-badge.bump { animation: badge-bump .45s ease; }
@keyframes badge-bump { 40% { transform: scale(1.45); } }

@media (max-width: 820px) {
    .toast-region { left: 16px; right: 16px; width: auto; bottom: calc(16px + var(--safe-bottom)); }
    .mobile-nav .toast-region { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px); }
    .quick-add-select { font-size: 16px; padding: 7px 8px; }
    .quick-qty input { font-size: 16px !important; }
    .product-card .price { font-size: .96rem; }
}

/* Cart badge: inline after the label on larger screens, on the icon on phones (label hidden). */
@media (min-width: 821px) {
    .cart-link .cart-badge { position: static; border: 0; margin-left: -2px; }
}

/* =====================================================================
   Checkout payment methods (Pix, card, boleto, "A combinar")
   ===================================================================== */
.pay-options { display: grid; gap: 10px; }
.pay-option {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; position: relative;
    border: 1.5px solid color-mix(in srgb, var(--store-text) 14%, transparent); border-radius: var(--store-radius);
    background: var(--store-surface, #fff); transition: border-color .15s, box-shadow .15s;
}
.pay-option:hover { border-color: color-mix(in srgb, var(--store-primary) 45%, transparent); }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option:has(input:checked), .pay-option.selected {
    border-color: var(--store-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 14%, transparent);
}
.pay-option:has(input:focus-visible) { outline: 2px solid var(--store-primary); outline-offset: 2px; }
.pay-option-icon {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px;
    color: var(--store-primary); background: color-mix(in srgb, var(--store-primary) 9%, transparent);
}
.pay-option-text { display: grid; gap: 2px; min-width: 0; }
.pay-option-text strong { font-size: .95rem; }
.pay-option-text small { font-size: .82rem; opacity: .75; }
.pay-option-badge {
    margin-left: auto; flex: none; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700;
    color: #166534; background: #dcfce7;
}
.pay-document, .pay-panel { margin-top: 4px; }
.pay-document label { max-width: 260px; }
.pay-redirect-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--store-radius); background: color-mix(in srgb, var(--store-text) 4%, transparent); }
.pay-redirect-note .icon { color: #15803d; flex: none; margin-top: 2px; }
.discount-line { color: #15803d; }
.checkout-submit { width: 100%; min-height: 52px; font-size: 1rem; }

/* Order page: boleto and card retry */
.boleto-box .pix-qr { display: grid; justify-items: center; gap: 6px; text-align: center; }
.boleto-box .pix-qr small { font-size: .8rem; opacity: .75; }
.boleto-box label { font-size: .85rem; font-weight: 600; }
.boleto-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.card-retry {
    margin: 0 0 24px; padding: 20px; border-radius: calc(var(--store-radius) + 4px);
    border: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); background: var(--store-surface, #fff);
}
.card-retry-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.card-retry-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.card-retry-head p { margin: 0; opacity: .8; }
.switch-pix { margin-top: 10px; }
.whatsapp-button { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; }

@media (max-width: 560px) {
    .pay-option { padding: 12px; }
    .pay-option-badge { position: absolute; top: -9px; right: 10px; }
    .card-retry .button.primary { width: 100%; }
}

/* =====================================================================
   Compact home: lower banner, products right after it, round categories
   ===================================================================== */
.hero-sm .hero-inner { min-height: 180px; }
.hero-md .hero-inner { min-height: 260px; }
.hero-lg .hero-inner { min-height: 360px; }
.hero-content { padding: 26px 0; }
.hero h1 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 10px; }
.hero p { margin-bottom: 18px; font-size: .97rem; }
.hero-split .hero-inner { padding-top: 18px; padding-bottom: 18px; gap: 32px; }
.hero-sm .hero-side-image { max-height: 230px; }
.hero-md .hero-side-image { max-height: 290px; }
.hero-lg .hero-side-image { max-height: 360px; }
.hero-side-image { aspect-ratio: 16 / 9; }

.benefits-grid { padding-top: 12px; padding-bottom: 12px; gap: 10px 24px; }
.benefit-icon { width: 34px !important; height: 34px !important; }
.benefit strong { font-size: .85rem; }
.benefit > div > span { font-size: .78rem; }

.home-section { padding-top: 32px; }
.section-header { margin-bottom: 14px; }

.category-circles {
    list-style: none; margin: 0; padding: 2px 0 6px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.category-circles::-webkit-scrollbar { display: none; }
.category-circles li { flex: none; scroll-snap-align: start; }
.category-circles a { display: grid; justify-items: center; gap: 8px; width: 96px; text-decoration: none; color: inherit; }
.category-circle {
    width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: color-mix(in srgb, var(--store-primary) 10%, var(--store-surface, #fff));
    box-shadow: 0 0 0 2px var(--store-background), 0 0 0 3.5px color-mix(in srgb, var(--store-primary) 25%, transparent);
    transition: box-shadow .2s, transform .2s;
}
.category-circle img { width: 100%; height: 100%; object-fit: cover; }
.category-circle.no-photo span { font-size: 1.8rem; font-weight: 700; color: var(--store-primary); font-family: var(--store-heading-font, inherit); }
.category-circles a:hover .category-circle { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--store-background), 0 0 0 3.5px var(--store-primary); }
.category-circle-name { font-size: .86rem; font-weight: 600; text-align: center; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.category-tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.category-tile { min-height: 110px !important; }

/* Header category dropdowns (desktop) */
.categories .menu-item { position: relative; display: inline-flex; }
.categories .menu-caret { opacity: .6; transition: transform .2s; vertical-align: -2px; }
.menu-item > a { display: inline-flex; align-items: center; gap: 4px; }
.menu-dropdown {
    position: absolute; top: calc(100% + 8px); left: 50%; z-index: 40; min-width: 220px; padding: 10px;
    transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
    background: var(--store-surface, #fff); color: var(--store-text); border-radius: calc(var(--store-radius) + 4px);
    border: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); box-shadow: 0 18px 48px rgba(0, 0, 0, .14);
}
.menu-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu-dropdown.wide { min-width: 460px; }
.menu-item:hover .menu-dropdown, .menu-item:focus-within .menu-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu-item:hover .menu-caret, .menu-item:focus-within .menu-caret { transform: rotate(180deg); }
.categories .menu-dropdown a { display: block; opacity: 1; white-space: nowrap; padding: 7px 10px; border-radius: 8px; font-size: .9rem; }
.categories .menu-dropdown a::after { display: none; }
.categories .menu-dropdown a:hover { background: color-mix(in srgb, var(--store-primary) 8%, transparent); color: var(--store-primary); }
.categories .menu-dropdown .menu-all { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--store-primary); margin-bottom: 4px;
    border-bottom: 1px solid color-mix(in srgb, var(--store-text) 8%, transparent); border-radius: 8px 8px 0 0; }
.menu-groups { display: grid; gap: 2px; }
.menu-dropdown.wide .menu-groups { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.categories .menu-dropdown .menu-child { font-weight: 600; }
.categories .menu-dropdown .menu-grandchild { padding: 4px 10px 4px 20px; font-size: .85rem; opacity: .8; }
@media (min-width: 821px) {
    .categories { overflow: visible; flex-wrap: wrap; }
}

/* Drawer: category tree */
.drawer-tree details > summary { list-style: none; display: flex; align-items: center; cursor: pointer; }
.drawer-tree details > summary::-webkit-details-marker { display: none; }
.drawer-tree details[open] > summary .drawer-chevron { transform: rotate(180deg); }
.drawer-tree details ul { list-style: none; margin: 0; padding: 0 0 6px; }
.drawer-tree .level-3 a { padding-left: 44px !important; font-size: .9rem; }

@media (max-width: 820px) {
    .hero-sm .hero-inner { min-height: 150px; }
    .hero-md .hero-inner { min-height: 200px; }
    .hero-lg .hero-inner { min-height: 260px; }
    .hero-content { padding: 18px 0; }
    .hero-side-image { max-height: 170px !important; }
    .home-section { padding-top: 22px; }
    .category-circles { gap: 12px; }
    .category-circles a { width: 76px; }
    .category-circle { width: 66px; height: 66px; }
    .category-circle-name { font-size: .78rem; }
}
.checkout-form .pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-form .pay-option { display: flex; flex-direction: row; align-items: center; gap: 12px; font-weight: 400; margin: 0; }
.checkout-form .pay-option-text { display: grid; gap: 2px; }
@media (max-width: 560px) { .checkout-form .pay-options { grid-template-columns: 1fr; } }

/* =====================================================================
   Checkout in steps
   ===================================================================== */
.checkout-form [hidden] { display: none !important; }
.checkout-steps { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 18px; }
.checkout-steps li {
    flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; font-size: .9rem; font-weight: 600;
    border-bottom: 3px solid color-mix(in srgb, var(--store-text) 12%, transparent); opacity: .55; transition: opacity .2s, border-color .2s;
}
.checkout-steps li span {
    width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; font-weight: 700;
    background: color-mix(in srgb, var(--store-text) 10%, transparent);
}
.checkout-steps li.active { opacity: 1; border-color: var(--store-primary); }
.checkout-steps li.active span { background: var(--store-primary); color: var(--store-on-primary, #fff); }
.checkout-steps li.done { opacity: .9; cursor: pointer; border-color: color-mix(in srgb, var(--store-primary) 45%, transparent); }
.checkout-steps li.done span { background: #15803d; color: #fff; }
.step-done {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--store-radius);
    border: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); background: var(--store-surface, #fff);
}
.step-done > div { min-width: 0; display: grid; gap: 1px; }
.step-done strong { font-size: .92rem; }
.step-done small { font-size: .84rem; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-done-check { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #15803d; font-weight: 800; font-size: .8rem; }
.step-edit { margin-left: auto; flex: none; background: none; border: 0; padding: 6px; font: inherit; font-weight: 600; font-size: .88rem; color: var(--store-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.step-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.step-actions .button { width: auto; }
.step-actions .button.primary { min-width: 260px; min-height: 48px; }
.step-final .checkout-submit { flex: 1; max-width: 420px; }
.checkout-form:not(.stepped) [data-step-actions], .checkout-form:not(.stepped) [data-prev] { display: none !important; }
.checkout-form:not(.stepped) .step-final { justify-content: stretch; }
.checkout-form:not(.stepped) .step-final .checkout-submit { max-width: none; }
.stepped .checkout-step { animation: step-in .25s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } }

.summary-toggle {
    display: none; width: 100%; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.summary-toggle strong { margin-left: auto; }
.summary-caret { transition: transform .2s; }

@media (max-width: 820px) {
    .checkout-steps li { font-size: .78rem; flex-direction: column; text-align: center; gap: 4px; }
    .step-actions { flex-direction: column-reverse; }
    .step-actions .button, .step-actions .button.primary, .step-final .checkout-submit { width: 100%; min-width: 0; max-width: none; }
    .cart-summary.collapsible { order: -1; padding: 14px 16px; margin-bottom: 12px; }
    .cart-summary.collapsible .summary-toggle { display: flex; }
    .cart-summary.collapsible:not(.collapsed) .summary-toggle { margin-bottom: 12px; }
    .cart-summary.collapsible:not(.collapsed) .summary-caret { transform: rotate(180deg); }
    .cart-summary.collapsed > :not(.summary-toggle) { display: none; }
}

/* =====================================================================
   Checkout: delivery or store pickup chosen in the delivery step
   ===================================================================== */
.delivery-question { margin: 0; font-weight: 700; font-size: 1rem; }
.delivery-zip { display: grid; gap: 8px; }
.delivery-zip > label { font-weight: 500; font-size: .95rem; }
.zip-row { display: flex; gap: 8px; max-width: 420px; }
.zip-row input { flex: 1; min-width: 0; }
.zip-row .button { width: auto; flex: none; white-space: nowrap; }
.zip-message { margin: 0; font-size: .86rem; opacity: .8; min-height: 0; }
.zip-message:empty { display: none; }
.zip-message.error { color: #b91c1c; opacity: 1; }
.shipping-choices { display: grid; gap: 10px; }
.shipping-choices:empty { display: none; }
.shipping-choice {
    display: flex !important; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; position: relative; margin: 0;
    border: 1.5px solid color-mix(in srgb, var(--store-text) 14%, transparent); border-radius: var(--store-radius);
    background: var(--store-surface, #fff); transition: border-color .15s, box-shadow .15s; font-weight: 400 !important;
}
.shipping-choice:hover { border-color: color-mix(in srgb, var(--store-primary) 45%, transparent); }
.shipping-choice input { position: absolute; opacity: 0; pointer-events: none; }
.shipping-choice:has(input:checked), .shipping-choice.selected { border-color: var(--store-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 14%, transparent); }
.shipping-choice:has(input:focus-visible) { outline: 2px solid var(--store-primary); outline-offset: 2px; }
.shipping-choice-icon {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px;
    color: var(--store-primary); background: color-mix(in srgb, var(--store-primary) 9%, transparent);
}
.shipping-choice-text { display: grid; gap: 2px; min-width: 0; }
.shipping-choice-text strong { font-size: .95rem; }
.shipping-choice-text small { font-size: .82rem; opacity: .75; }
.shipping-choice-price { margin-left: auto; flex: none; font-size: .95rem; }
.choices-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: .82rem; opacity: .7; }
.choices-divider::before, .choices-divider::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--store-text) 14%, transparent); }
.address-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.address-fields .wide, .address-title { grid-column: 1 / -1; }
@media (min-width: 700px) { .address-fields .wide { grid-column: span 1; } .address-fields .address-title { grid-column: 1 / -1; } }
.address-title { margin: 6px 0 -4px; font-weight: 700; }
.zip-form label small { font-weight: 400; opacity: .7; }
@media (max-width: 560px) {
    .address-fields { grid-template-columns: 1fr; }
    .zip-row { max-width: none; }
}

/* =====================================================================
   Nothing cut off while scrolling: anchors, focused fields and sticky blocks respect the sticky header
   (--header-height, measured by store.js) and, on phones, the bottom navigation.
   ===================================================================== */
html { scroll-padding-top: calc(var(--header-height, 0px) + 12px); }
.cart-summary { top: calc(var(--header-height, 0px) + 16px); }
[id] { scroll-margin-top: calc(var(--header-height, 0px) + 12px); }
@media (max-width: 820px) {
    html { scroll-padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px); }
    .mobile-nav main { padding-bottom: 8px; }
}

/* =====================================================================
   Order page: progress, tracking, documents (NF-e)
   ===================================================================== */
.order-progress { display: grid; gap: 16px; margin: 0 0 24px; }
.progress-steps { list-style: none; margin: 0; padding: 18px 16px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative;
    border: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); border-radius: calc(var(--store-radius) + 4px); background: var(--store-surface, #fff); }
.progress-steps li { display: grid; justify-items: center; gap: 4px; text-align: center; position: relative; }
.progress-steps li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px;
    background: color-mix(in srgb, var(--store-text) 12%, transparent); }
.progress-steps li.done:not(:last-child)::after { background: var(--store-primary); }
.progress-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
    background: color-mix(in srgb, var(--store-text) 10%, transparent); }
.progress-steps li.done .progress-dot, .progress-steps li.current .progress-dot { background: var(--store-primary); color: var(--store-on-primary, #fff); }
.progress-steps strong { font-size: .85rem; }
.progress-steps small { font-size: .74rem; opacity: .7; min-height: 1em; }
.tracking-box, .order-document { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--store-radius);
    border: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); background: var(--store-surface, #fff); }
.tracking-box > .icon, .order-document > .icon { color: var(--store-primary); flex: none; }
.tracking-box > div, .order-document > div { display: grid; gap: 2px; min-width: 0; }
.tracking-box .button { margin-left: auto; width: auto; flex: none; }
.tracking-box code, .order-document code { font-size: .85rem; overflow-wrap: anywhere; }
.order-documents { display: grid; gap: 10px; }
.order-documents h2 { margin: 6px 0 0; font-size: 1.1rem; }
.order-document small { opacity: .8; }
.document-files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.document-files a { font-weight: 600; font-size: .88rem; color: var(--store-primary); }
.order-history summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.order-history ul { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.order-history li span { opacity: .65; margin-right: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
    .progress-steps { padding: 14px 6px; }
    .progress-steps strong { font-size: .74rem; }
    .tracking-box { flex-wrap: wrap; }
    .tracking-box .button { width: 100%; margin-left: 0; }
}

/* ---------- Banner carousel ---------- */
.hero-carousel { background: #111; color: #fff; }
.carousel-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; }
.hero-sm .carousel-slide { min-height: 220px; }
.hero-md .carousel-slide { min-height: 320px; }
.hero-lg .carousel-slide { min-height: 440px; }
.carousel-slide .hero-content { text-shadow: 0 1px 14px rgba(0, 0, 0, .25); }
.carousel-slide h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.carousel-link { position: absolute; inset: 0; z-index: 1; }
.carousel-arrow {
    position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .88); color: #111; display: none; place-items: center; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.prev .icon { transform: rotate(180deg); }
.carousel-arrow.next { right: 14px; }
.carousel-arrow:hover { background: #fff; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: none; justify-content: center; gap: 4px; }
.carousel-dots button {
    width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.carousel-dots button::before {
    content: ""; width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .2s, background .2s;
}
.carousel-dots button[aria-selected="true"]::before { width: 22px; background: #fff; }
.is-ready .carousel-dots { display: flex; }
@media (min-width: 761px) { .is-ready .carousel-arrow { display: grid; } }
@media (max-width: 760px) {
    .hero-md .carousel-slide { min-height: 260px; }
    .hero-lg .carousel-slide { min-height: 320px; }
}

/* ---------- Countdown in the announcement bar ---------- */
.countdown { margin-left: 10px; white-space: nowrap; }
.countdown b { font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .18); }

/* ---------- Product badges and installments ---------- */
.card-badges { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; justify-items: end; gap: 4px; }
.card-badge {
    display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
    background: var(--store-primary); color: var(--store-on-primary, #fff);
}
.card-badge.new { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.card-badge.last { background: #b45309; color: #fff; }
.product-badge { margin-bottom: 8px; font-size: .76rem; }
.installments { margin: 2px 0 0; font-size: .8rem; opacity: .72; }
.installments.big { display: flex; align-items: center; gap: 6px; font-size: .92rem; opacity: .85; margin: -8px 0 16px; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--store-surface); }
.testimonials {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.testimonial {
    background: var(--store-background); border-radius: calc(var(--store-radius) * 1.5); padding: 20px;
    display: grid; gap: 10px; align-content: start; box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.testimonial .stars { color: #d1d5db; letter-spacing: 2px; font-size: 1rem; }
.testimonial .stars .on { color: #f59e0b; }
.testimonial blockquote { margin: 0; line-height: 1.6; font-size: .95rem; }
.testimonial-author { margin: 0; display: grid; font-size: .88rem; }
.testimonial-author span { opacity: .65; font-size: .8rem; }
@media (max-width: 760px) {
    .testimonials { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .testimonial { scroll-snap-align: start; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid rgba(127, 127, 127, .22); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 0; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 0 16px; line-height: 1.65; opacity: .85; }
.faq-answer p { margin: 0 0 10px; }

/* ---------- Institutional pages ---------- */
.institutional-page { max-width: 820px; margin: 0 auto 48px; }
.rich-text { line-height: 1.7; }
.rich-text h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.rich-text h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.rich-text ul { padding-left: 22px; }
.rich-text a { color: var(--store-primary); }
.page-updated { margin-top: 32px; font-size: .82rem; opacity: .6; }

/* ---------- Coupon, quantity discounts, kits, service fee ---------- */
.coupon-box { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(127, 127, 127, .18); }
.coupon-form summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--store-primary); list-style: none; }
.coupon-form summary::-webkit-details-marker { display: none; }
.coupon-form form { margin-top: 10px; }
.coupon-form input { text-transform: uppercase; letter-spacing: .04em; }
.coupon-applied { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coupon-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem;
    background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; border: 1px dashed #16a34a;
}
.coupon-result { font-weight: 700; color: #15803d; margin-right: auto; }
.coupon-description { display: block; margin-top: 6px; opacity: .7; }
.promo-line, .cart-summary dt.discount-line, .cart-summary dd.discount-line { color: #15803d; }
.cart-total { display: grid; justify-items: end; gap: 0; }
.cart-total s { font-size: .82rem; opacity: .55; font-weight: 400; }
.qty-discount-tag { font-size: .7rem; font-weight: 600; color: #15803d; }
.kit-tag, .kit-contents { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--store-primary); }
.kit-contents { font-weight: 400; opacity: .8; }
.card-badge.kit { background: #7c3aed; color: #fff; }
.qty-promos { list-style: none; margin: 0 0 16px; padding: 10px 14px; display: grid; gap: 6px; border-radius: var(--store-radius);
    background: color-mix(in srgb, #16a34a 9%, transparent); color: #166534; font-size: .9rem; font-weight: 600; }
.qty-promos li { display: flex; align-items: center; gap: 8px; }
.kit-box { margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(127, 127, 127, .22); border-radius: calc(var(--store-radius) * 1.5); }
.kit-box h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 10px; }
.kit-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kit-box li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.kit-box li img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.kit-box li span { flex: 1; }
.kit-box li small { opacity: .65; }
.kit-savings { margin: 12px 0 0; font-size: .9rem; }
.kit-savings strong { color: #15803d; }

/* ---------- Centered header: logo in the middle, "Buscar" opens a wide search bar ---------- */
.store-header { position: relative; }
.header-sticky .store-header { position: sticky; }
.search-toggle { display: none; }
@media (min-width: 821px) {
    .header-centered .header-row { grid-template-columns: 1fr auto 1fr; grid-template-areas: "toggle brand actions"; min-height: 76px; }
    .header-centered .search { display: none; }
    .header-centered .brand { font-size: 1.85rem; letter-spacing: .01em; line-height: 1.1; }
    .header-centered .brand img { height: var(--store-logo-height, 52px); }
    .header-centered .search-toggle { display: block; grid-area: toggle; justify-self: start; }
    .search-toggle summary {
        list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .9rem;
        padding: 7px 10px; border-radius: var(--store-radius); color: var(--store-header-text); transition: background .15s;
    }
    .search-toggle summary::-webkit-details-marker { display: none; }
    .search-toggle summary:hover, .search-toggle[open] summary { background: color-mix(in srgb, var(--store-header-text) 8%, transparent); }
    .search-panel {
        position: absolute; left: 0; right: 0; top: 100%; z-index: 30; padding: 16px 0 18px; background: var(--store-header-bg);
        border-bottom: 1px solid color-mix(in srgb, var(--store-header-text) 10%, transparent); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .35);
        animation: search-drop .18s ease-out;
    }
    .search-panel-inner { position: relative; display: flex; gap: 10px; max-width: 760px; }
    .search-panel-inner > .icon { position: absolute; left: 34px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
    .search-panel input {
        flex: 1; min-width: 0; padding: 13px 16px 13px 46px; font: inherit; font-size: 1.02rem; color: inherit;
        border: 1px solid color-mix(in srgb, var(--store-header-text) 18%, transparent); border-radius: var(--store-radius);
        background: color-mix(in srgb, var(--store-header-text) 3%, var(--store-header-bg));
    }
    .search-panel input:focus { outline: none; border-color: var(--store-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 20%, transparent); }
    .search-panel .button { width: auto; padding: 0 22px; }
}
@keyframes search-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .search-panel { animation: none; } }

/* Store name a little larger in every header (no logo). */
@media (min-width: 821px) { .brand { font-size: 1.5rem; } }

/* Footer: long e-mails/addresses wrap instead of pushing the page sideways. */
.footer-col { min-width: 0; }
.footer-col a, .footer-col li, .footer-contact a { overflow-wrap: anywhere; }

/* ---------- Installable app (PWA) ---------- */
.install-banner {
    position: fixed; z-index: 55; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
    background: var(--store-background); color: var(--store-text); border-radius: 16px;
    box-shadow: 0 12px 34px -8px rgba(0, 0, 0, .35), 0 0 0 1px rgba(127, 127, 127, .15);
    animation: install-in .25s ease-out;
}
.install-banner[hidden] { display: none; }
.mobile-nav .install-banner { bottom: calc(72px + env(safe-area-inset-bottom)); }
.install-banner img { width: 48px; height: 48px; border-radius: 12px; }
.install-text { display: grid; gap: 2px; font-size: .82rem; line-height: 1.3; min-width: 0; }
.install-text strong { font-size: .9rem; }
.install-text span { opacity: .75; }
.install-text .icon { vertical-align: -2px; }
.install-button.button { width: auto; padding: 9px 16px; font-size: .88rem; }
.install-button[hidden] { display: none; }
.install-close { border: 0; background: transparent; color: inherit; opacity: .55; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.drawer-install {
    display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 12px 14px; width: calc(100% - 32px); font: inherit; font-weight: 600;
    border: 1px dashed color-mix(in srgb, var(--store-primary) 55%, transparent); border-radius: var(--store-radius);
    background: color-mix(in srgb, var(--store-primary) 7%, transparent); color: var(--store-primary); cursor: pointer;
}
.drawer-install[hidden] { display: none; }
@keyframes install-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .install-banner { animation: none; } }
@media (min-width: 821px) { .install-banner { display: none !important; } }
/* Inside the installed app: respect the notch/home bar areas. */
.is-app body { padding-top: env(safe-area-inset-top); }

/* ---------- Personalization typed by the shopper + gift wrap ---------- */
.personalization-field { display: grid; gap: 6px; margin: 0 0 14px; }
.personalization-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.personalization-title strong { color: var(--store-primary); font-weight: 700; }
.personalization-field input {
    width: 100%; padding: 12px 14px; font: inherit; border: 1px solid color-mix(in srgb, var(--store-text) 22%, transparent);
    border-radius: var(--store-radius); background: var(--store-background); color: var(--store-text);
}
.personalization-field input:focus { outline: 2px solid var(--store-primary); outline-offset: 1px; }
.personalization-field small { font-size: .8rem; opacity: .7; }
.cart-personalization { display: block; font-size: .85rem; opacity: .85; overflow-wrap: anywhere; }
.line-personalization { display: block; font-size: .8rem; opacity: .75; overflow-wrap: anywhere; }
.gift-box { display: grid; gap: 10px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--store-primary) 45%, transparent); border-radius: var(--store-radius); }
.gift-check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.gift-check input { width: 18px; height: 18px; accent-color: var(--store-primary); }
.gift-check span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gift-message[hidden] { display: none !important; }
.gift-note { display: flex; gap: 6px; align-items: flex-start; font-size: .9rem; margin: 10px 0; overflow-wrap: anywhere; }

/* ---------- Cookie consent (tracking.js, only when the store has pixels) ---------- */
.cookie-consent {
    position: fixed; z-index: 70; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px;
    background: var(--store-background); color: var(--store-text); border-radius: calc(var(--store-radius) + 4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .22); border: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent);
}
.cookie-consent p { flex: 1 1 260px; margin: 0; font-size: .9rem; }
.cookie-consent-actions { display: flex; gap: 8px; margin-left: auto; }
.cookie-consent-actions .button { padding: 9px 16px; min-height: 0; }
.mobile-nav .cookie-consent { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 10px); }
.cookie-consent p a { color: inherit; text-decoration: underline; }

/* LGPD: "você concorda com a política de privacidade" under the buttons that collect data. */
.legal-note { margin: 10px 0 0; font-size: .8rem; opacity: .72; text-align: center; }
.legal-note a { color: inherit; text-decoration: underline; }
.privacy-policy .rich-text ul { padding-left: 1.2em; }
.privacy-policy .rich-text li + li { margin-top: 6px; }

/* =====================================================================
   Product reviews: stars, summary, list, review form
   ===================================================================== */
.stars { display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; vertical-align: middle; }
.stars::before {
    content: "★★★★★";
    background: linear-gradient(90deg, #f5a524 calc(var(--rating) / 5 * 100%), color-mix(in srgb, var(--store-text) 18%, transparent) 0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; margin: 2px 0 4px; }
.card-rating .stars { font-size: .85rem; }
.card-rating small { opacity: .7; }
.product-rating { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; text-decoration: none; color: inherit; font-size: .92rem; }
.product-rating:hover span { text-decoration: underline; }

.reviews { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); }
.reviews-summary { display: grid; grid-template-columns: auto minmax(0, 360px); gap: 16px 40px; align-items: center; margin: 12px 0 24px; }
.reviews-average { display: grid; justify-items: center; gap: 4px; }
.reviews-average strong { font-size: 2.6rem; line-height: 1; font-family: var(--store-heading-font); }
.reviews-average .stars { font-size: 1.2rem; }
.reviews-average span { font-size: .88rem; opacity: .7; }
.reviews-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reviews-bars li { display: grid; grid-template-columns: 36px 1fr 28px; gap: 10px; align-items: center; font-size: .85rem; }
.reviews-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--store-text) 10%, transparent); overflow: hidden; }
.reviews-bar span { display: block; height: 100%; background: #f5a524; border-radius: inherit; }
.reviews-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.review { padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--store-text) 8%, transparent); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.review-date { font-size: .82rem; opacity: .6; }
.review-verified { font-size: .78rem; color: #15803d; font-weight: 600; }
.review-body { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-photos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.review-photos img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--store-radius); display: block; }
.review-reply { margin-top: 12px; padding: 10px 14px; border-radius: var(--store-radius); background: var(--store-surface); font-size: .92rem; }
.review-reply p { margin: 4px 0 0; white-space: pre-line; }
@media (max-width: 640px) { .reviews-summary { grid-template-columns: 1fr; } .reviews-average { justify-items: start; } }

.review-cta { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; }
.review-page { max-width: 760px; padding-top: 28px; padding-bottom: 40px; }
.review-intro { opacity: .75; margin-top: -6px; }
.review-products { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.review-product {
    padding: 18px; border-radius: calc(var(--store-radius) + 4px); background: var(--store-surface);
    border: 1px solid color-mix(in srgb, var(--store-text) 8%, transparent); scroll-margin-top: 90px;
}
.review-product-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.review-done small { flex-basis: 100%; opacity: .7; }
.review-form { display: grid; gap: 12px; }
.review-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.review-form textarea, .review-form input[type=text] {
    width: 100%; padding: 10px 12px; font: inherit; font-weight: 400; border-radius: var(--store-radius);
    border: 1px solid color-mix(in srgb, var(--store-text) 22%, transparent); background: var(--store-background); color: var(--store-text);
}
.review-form input[type=file] { font-weight: 400; }
/* Star rating with radios: row-reverse so "this star and the ones before it" light up with plain CSS. */
.star-input { border: 0; margin: 0; padding: 0; }
.star-input legend { font-weight: 600; font-size: .92rem; margin-bottom: 4px; padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.1rem; line-height: 1; cursor: pointer; color: color-mix(in srgb, var(--store-text) 20%, transparent); padding: 2px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a524; }
.star-input input:focus-visible + label { outline: 2px solid var(--store-primary); border-radius: 4px; }
.field-hint { display: block; font-size: .78rem; font-weight: 400; opacity: .7; margin-top: 2px; }

/* ---------- First-purchase pop-up ---------- */
.welcome-popup { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.welcome-popup[hidden] { display: none; }
.welcome-open { overflow: hidden; }
.welcome-card {
    position: relative; width: min(100%, 420px); padding: 28px 24px 22px; text-align: center; border-radius: calc(var(--store-radius) + 8px);
    background: var(--store-background); color: var(--store-text); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.welcome-card h2 { margin: 0 0 8px; font-family: var(--store-heading-font); font-size: 1.5rem; }
.welcome-card p { margin: 0 0 16px; opacity: .85; }
.welcome-card form { display: grid; gap: 10px; }
.welcome-card input[type=email] {
    width: 100%; padding: 12px 14px; font: inherit; border-radius: var(--store-radius);
    border: 1px solid color-mix(in srgb, var(--store-text) 22%, transparent); background: var(--store-background); color: var(--store-text);
}
.welcome-card small { display: block; margin-top: 10px; font-size: .78rem; opacity: .6; }
.welcome-close { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: inherit; padding: 8px; cursor: pointer; opacity: .6; }
.welcome-coupon { display: flex; align-items: center; justify-content: center; gap: 10px; }
.welcome-coupon code { font-size: 1.4rem; font-weight: 700; letter-spacing: .08em; padding: 8px 14px; border: 2px dashed var(--store-primary); border-radius: var(--store-radius); }

/* ---------- Size guide (product page) ---------- */
.size-guide { margin: 0 0 14px; border: 1px solid color-mix(in srgb, var(--store-text) 14%, transparent); border-radius: var(--store-radius); }
.size-guide summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.size-guide summary::-webkit-details-marker { display: none; }
.size-guide summary::after { content: "+"; margin-left: auto; font-weight: 400; font-size: 1.2em; line-height: 1; }
.size-guide[open] summary::after { content: "−"; }
.size-guide-body { padding: 0 14px 14px; }
.size-guide-title { margin: 0 0 8px; font-size: .9em; opacity: .75; }
.size-guide-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-guide table { width: 100%; border-collapse: collapse; font-size: .9em; white-space: nowrap; }
.size-guide th, .size-guide td { padding: 7px 10px; text-align: center; border-bottom: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); }
.size-guide thead th { background: var(--store-surface); font-weight: 600; }
.size-guide tbody th { font-weight: 600; }
.size-guide-note { margin: 10px 0 0; font-size: .85em; opacity: .75; white-space: pre-line; }

/* ---------- Cashback ---------- */
.cashback-box form { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 14px; border-radius: var(--store-radius);
    background: color-mix(in srgb, #16a34a 9%, var(--store-background)); border: 1px solid color-mix(in srgb, #16a34a 30%, transparent); }
.cashback-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #16a34a; color: #fff; }
.cashback-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cashback-text small { opacity: .75; }
.cart-summary .cashback-box .button, .cashback-box .button.small { width: auto; flex: none; padding: 7px 14px; margin: 0; white-space: nowrap; }
.cashback-earn, .cashback-hint { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 14px; font-size: .9em; color: #15803d; }
.cashback-earn svg, .cashback-hint svg { flex: none; margin-top: 2px; }
.cashback-hint { margin: 4px 0 12px; }
.cashback-balance { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.cashback-balance strong { font-size: 1.6em; color: #15803d; }
.cashback-line { margin: 4px 0; font-size: .92em; }
.cashback-line.warn { color: #b45309; font-weight: 600; }
.cashback-line.muted { opacity: .7; }
.cashback-history { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--store-text) 10%, transparent); }
.cashback-history li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--store-text) 8%, transparent); font-size: .9em; }
.cashback-history li span { display: grid; gap: 2px; }
.cashback-history li small { opacity: .65; }
.cashback-history .kind-earned strong, .cashback-history .kind-returned strong { color: #15803d; }
.cashback-history .kind-canceled strong { text-decoration: line-through; opacity: .5; }

/* ---------- Wishlist (Favoritos) ---------- */
.wishlist-form { margin: 0; }
.wishlist-button {
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--store-text) 12%, transparent); background: var(--store-background); color: var(--store-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12); transition: transform .15s, color .15s, background .15s;
}
.wishlist-button:hover { transform: scale(1.08); color: var(--store-sale); }
.wishlist-button:focus-visible { outline: 2px solid var(--store-primary); outline-offset: 2px; }
.wishlist-button[aria-pressed="true"] { color: var(--store-sale); }
.wishlist-button[aria-pressed="true"] svg { fill: currentColor; }
.wishlist-button.loading { opacity: .6; pointer-events: none; }
.wishlist-button.pop svg { animation: wishlist-pop .35s ease; }
@keyframes wishlist-pop { 50% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .wishlist-button.pop svg { animation: none; } .wishlist-button:hover { transform: none; } }

/* Over the photo of the card (the form is outside the link); the badges of the right go under it. */
.card-wishlist { position: absolute; top: 8px; right: 8px; z-index: 2; }
.card-wishlist .wishlist-button { width: 34px; height: 34px; border-color: transparent; background: color-mix(in srgb, var(--store-background) 92%, transparent); }
.cards-bordered .card-wishlist, .cards-shadow .card-wishlist { top: 18px; right: 18px; }
.card-badges { top: 50px; }

.product-title-row { display: flex; align-items: flex-start; gap: 12px; }
.product-title-row h1 { flex: 1; min-width: 0; }
.page-wishlist .wishlist-button { width: 44px; height: 44px; box-shadow: none; }

.wishlist-link {
    display: inline-flex; align-items: center; padding: 7px 10px; border-radius: var(--store-radius); color: var(--store-header-text);
    transition: background .15s;
}
.wishlist-link:hover { background: color-mix(in srgb, var(--store-header-text) 8%, transparent); }

.wishlist-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); margin-top: 6px; }
@media (max-width: 420px) { .wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-note { margin: 2px 0 0; font-size: .8rem; font-weight: 600; color: #15803d; }
.empty-orders p .icon { vertical-align: -3px; color: var(--store-sale); }
@media (max-width: 859px) { .account-nav a { font-size: .74rem; padding-left: 2px; padding-right: 2px; } }

/* ---------- Campaign pages (/campanha/{slug}) and the home strip ---------- */
.campaign-hero { position: relative; overflow: hidden; color: var(--store-on-primary); background: var(--store-primary); border-radius: var(--store-radius); margin-top: 8px; }
.campaign-hero .campaign-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-hero:not(.no-banner)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18)); }
.campaign-hero:not(.no-banner) { color: #fff; }
.campaign-hero-inner { position: relative; z-index: 1; padding-top: clamp(36px, 7vw, 72px); padding-bottom: clamp(36px, 7vw, 72px); display: grid; gap: 14px; justify-items: start; }
.campaign-hero h1 { margin: 0; font-family: var(--store-heading-font); font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.1; max-width: 18ch; }
.campaign-subtitle { margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; max-width: 46ch; }
.campaign-state { margin: 0; font-weight: 600; }
.campaign-countdown { display: grid; gap: 6px; }
.campaign-countdown-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.campaign-countdown-boxes { display: flex; gap: 8px; }
.campaign-countdown-box { display: grid; justify-items: center; min-width: 58px; padding: 8px 6px; border-radius: var(--store-radius); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); }
.campaign-countdown-box b { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1; }
.campaign-countdown-box small { font-size: .7rem; opacity: .85; margin-top: 4px; }
.campaign-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border: 2px dashed currentColor; border-radius: var(--store-radius); }
.campaign-coupon strong { font-size: 1.2rem; letter-spacing: .06em; }
.campaign-coupon .button { background: #fff; color: #111; border-color: #fff; }
.campaign-body { padding-top: 24px; padding-bottom: 40px; }
.campaign-description { max-width: 760px; margin: 0 0 24px; }
.campaign-strip { display: block; text-decoration: none; background: var(--store-primary); color: var(--store-on-primary); }
.campaign-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-top: 12px; padding-bottom: 12px; }
.campaign-strip-title { font-size: 1rem; }
.campaign-strip-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.campaign-strip:hover .campaign-strip-cta { text-decoration: underline; }
.campaign-countdown.compact { grid-auto-flow: column; align-items: center; gap: 10px; }
.campaign-countdown.compact .campaign-countdown-box { min-width: 44px; padding: 4px; }
.campaign-countdown.compact .campaign-countdown-box b { font-size: 1.05rem; }
.campaign-countdown.compact .campaign-countdown-box small { font-size: .6rem; margin-top: 2px; }
@media (max-width: 600px) {
    .campaign-countdown-box { min-width: 52px; }
    .campaign-countdown.compact .campaign-countdown-label { display: none; }
    .campaign-strip-title span { display: none; }
}
.cashback-boost { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--store-primary); color: var(--store-on-primary); font-size: .75rem; font-weight: 700; }
.sandbox-bar { background: #fef3c7; color: #78350f; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-bottom: 1px solid #fcd34d; }
