/* ==========================================================================
   Gallo Agronegócios — loja online
   Identidade: preto, amarelo e branco (as cores do logo e das artes da loja).
   Verde apenas para ações de WhatsApp; vermelho apenas para o preço antigo.
   ========================================================================== */

:root {
    /* Marca */
    --gallo: #F3BA17;          /* amarelo do logo */
    --gallo-hover: #FFC838;
    --gallo-deep: #D79F06;
    --gallo-pale: #FDF3D0;

    /* Preto e superfícies */
    --ink: #0B0B0B;
    --ink-soft: #161513;
    --ink-line: #2A2824;
    --on-ink: #FFFFFF;
    --on-ink-muted: #B6B0A4;

    --paper: #F4F4F2;
    --surface: #FFFFFF;
    --text: #1A1917;
    --muted: #5E5952;
    --line: #E4E2DC;
    --line-strong: #C9C6BE;

    /* Ações */
    --wa: #0F7A3C;
    --wa-hover: #0B6230;
    --sale: #B42318;

    /* Tipografia */
    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

    /* Forma */
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;

    /* Layout */
    --wrap: 1320px;
    --gutter: 16px;
    --header-h: 136px; /* medido de verdade pelo JS ao carregar e ao redimensionar */

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 1px 2px rgba(11, 11, 11, 0.05), 0 6px 18px rgba(11, 11, 11, 0.06);
    --shadow-lift: 0 10px 28px rgba(11, 11, 11, 0.14);
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 32px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--gallo); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--gallo); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -70px; z-index: 120;
    padding: 12px 18px; border-radius: var(--r);
    background: var(--gallo); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Títulos de seção */
.section-title,
.more-head h2,
.how-head h2,
.store-address h2,
.results-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: var(--r);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease-out), box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-full { width: 100%; }

.btn-gallo { background: var(--gallo); color: var(--ink); }
.btn-gallo:hover { background: var(--gallo-hover); box-shadow: var(--shadow-lift); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; box-shadow: var(--shadow-lift); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); box-shadow: var(--shadow-lift); }

.btn-line { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); min-height: 42px; font-size: .9375rem; }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }

.btn-outline-light { color: var(--gallo); border-color: rgba(243,186,23,.5); min-height: 44px; padding: 0 16px; font-size: .9375rem; background: transparent; }
.btn-outline-light:hover { background: var(--gallo); color: var(--ink); border-color: var(--gallo); }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--ink);
    color: var(--on-ink);
}

/* Faixa utilitária */
.utility-bar {
    display: none;
    background: #000;
    border-bottom: 1px solid var(--ink-line);
    font-size: .8125rem;
    color: var(--on-ink-muted);
}
.utility-inner { display: flex; gap: 28px; align-items: center; justify-content: center; min-height: 34px; }
.utility-inner span { display: inline-flex; align-items: center; gap: 7px; }
.utility-inner .icon { width: 1em; height: 1em; color: var(--gallo); }
@media (min-width: 1024px) { .utility-bar { display: block; } }

/* Linha principal */
.header-main { border-bottom: 3px solid var(--gallo); }

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    padding-block: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gallo);
    object-fit: cover;
    transition: transform .3s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
    .brand:hover .brand-logo { transform: scale(1.08) rotate(-6deg); }
}
.brand-text { display: none; line-height: 1; }
.brand-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 800; letter-spacing: .01em;
    text-transform: uppercase; color: #fff;
}
.brand-text small { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gallo); }
@media (min-width: 560px) { .brand-text { display: block; } }

/* Busca */
.search {
    position: relative;
    display: none;
    align-items: center;
    background: #fff;
    border: 2px solid transparent;
    border-radius: var(--r);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.search:focus-within { border-color: var(--gallo); box-shadow: 0 0 0 4px rgba(243,186,23,.22); }
.search-icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 44px;
    border: 0;
    border-radius: var(--r);
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}
.search input::placeholder { color: #8C867D; }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
    position: absolute; right: 8px;
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border: 0; border-radius: 50%; background: var(--paper); color: var(--muted);
}
.search-clear:hover { background: var(--line); color: var(--text); }

@media (min-width: 900px) { .search { display: flex; } }

/* Busca no celular: ocupa a linha inteira quando aberta */
.site-header.is-searching .search {
    display: flex;
    grid-column: 1 / -1;
    order: 3;
}
@media (min-width: 900px) { .site-header.is-searching .search { grid-column: auto; order: 0; } }

/* Ferramentas */
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border: 1px solid var(--ink-line);
    border-radius: var(--r);
    background: transparent;
    color: #fff;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--ink-soft); border-color: var(--gallo); color: var(--gallo); }
.search-toggle { display: grid; }
@media (min-width: 900px) { .search-toggle { display: none; } }
.header-phone { display: none; }
@media (min-width: 600px) { .header-phone { display: grid; } }
@media (min-width: 1100px) { .header-phone { display: none; } }

.header-wa {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 13px;
    border-radius: var(--r);
    background: var(--wa);
    color: #fff;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s var(--ease-out);
}
.header-wa:hover { background: var(--wa-hover); transform: translateY(-1px); }
.header-wa .icon { width: 24px; height: 24px; }
.header-wa-text { display: grid; line-height: 1.15; }
.header-wa-text small { font-size: .7rem; opacity: .85; }
.header-wa-text strong { font-size: 1rem; letter-spacing: .01em; }
@media (min-width: 1100px) { .header-wa { display: inline-flex; } }

.cart-toggle {
    position: relative;
    display: inline-flex; align-items: center; gap: 9px;
    min-height: 46px; padding: 0 16px;
    border: 0; border-radius: var(--r);
    background: var(--gallo); color: var(--ink);
    font-weight: 700;
    transition: background-color .18s ease, transform .18s var(--ease-out);
}
.cart-toggle:hover { background: var(--gallo-hover); }
.cart-toggle .icon { width: 22px; height: 22px; }
.cart-toggle-text { display: none; }
@media (min-width: 760px) { .cart-toggle-text { display: inline; } }

.cart-count {
    position: absolute; top: -7px; right: -7px;
    min-width: 22px; height: 22px; padding: 0 6px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--ink); color: var(--gallo);
    font-size: .75rem; font-weight: 700; line-height: 1;
    border: 2px solid var(--ink);
}
@keyframes pulso-carrinho {
    0% { transform: scale(1); }
    35% { transform: scale(1.14); }
    100% { transform: scale(1); }
}
.cart-toggle.confirmou { animation: pulso-carrinho .55s var(--ease-out); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--ink);
    color: var(--on-ink);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(60% 80% at 82% 42%, rgba(243,186,23,.17), transparent 68%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    gap: 28px;
    padding-block: 32px 36px;
}
@media (min-width: 768px) and (max-width: 959px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        align-items: stretch;
        gap: 20px;
        padding-block: 20px;
        min-height: 60vh;
    }
    .hero-copy {
        align-self: center;
        padding-block: 20px;
    }
}

@media (min-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        align-items: stretch;
        gap: 30px;
        padding-block: 20px;
        min-height: 80vh;
    }
    .hero-copy {
        align-self: center;
        padding-block: 40px;
    }
}

.hero-kicker {
    display: inline-flex; align-items: center;
    margin-bottom: 14px;
    padding: 6px 13px;
    border-radius: 100px;
    background: rgba(243,186,23,.14);
    border: 1px solid rgba(243,186,23,.35);
    color: var(--gallo);
    font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.25rem, 7.2vw, 4.25rem);
    letter-spacing: -0.015em;
    text-transform: uppercase;
    color: #fff;
}
.hero-copy h1 em { font-style: normal; color: var(--gallo); }

.hero-lead {
    margin-top: 16px;
    max-width: 54ch;
    font-size: clamp(1rem, 2.6vw, 1.1875rem);
    color: #DAD5CA;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }

.hero-benefits {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin-top: 26px; padding-top: 22px;
    border-top: 1px solid var(--ink-line);
}
.hero-benefits li {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9375rem; font-weight: 600; color: #D7D2C7;
}
.hero-benefits .icon { width: 19px; height: 19px; color: var(--gallo); }

/* --------------------------------------------------------------------------
   Catálogo: barra de resultados
   -------------------------------------------------------------------------- */

.catalog { padding-block: 28px 44px; }

.results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--line);
}
.results-title { font-size: clamp(1.5rem, 4vw, 2rem); }
.results-count { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; font-size: .9375rem; color: var(--muted); }
.results-count strong { color: var(--text); }
.results-scope:not(:empty)::before { content: '· '; }

.results-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.chip-clear {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 42px; padding: 0 14px;
    border: 1px solid var(--line-strong); border-radius: 100px;
    background: var(--surface);
    font-size: .875rem; font-weight: 600;
}
.chip-clear .icon { width: 16px; height: 16px; }
.chip-clear:hover { border-color: var(--ink); }

.sort { display: inline-flex; align-items: center; gap: 8px; }
.sort-label { font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sort select {
    min-height: 42px;
    padding: 0 36px 0 14px;
    border: 2px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1917' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
}
.sort select:hover { border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Grade e cartões
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }

@media (prefers-reduced-motion: no-preference) {
    .grid.is-refreshing > .card:not([hidden]) { animation: entrar .34s var(--ease-out) both; animation-delay: inherit; }
}
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card.is-out-of-stock { opacity: .78; }

.card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    /* Item de flex em coluna: sem isto a altura mínima automática seria a da
       foto (4:5) e cada cartão ficaria com uma caixa de imagem diferente. */
    flex: none;
    min-height: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media img { transition: transform .25s var(--ease-out); }

.card-media.is-empty {
    display: grid; place-content: center; gap: 6px;
    background: #FAFAF8;
    text-align: center;
}
.empty-brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; text-transform: uppercase; color: var(--text); }
.empty-note { font-size: .75rem; color: var(--muted); }

.media-note {
    position: absolute; left: 8px; bottom: 8px;
    padding: 3px 8px; border-radius: 100px;
    background: rgba(11,11,11,.72); color: #fff;
    font-size: .6875rem; font-weight: 600;
}

.card-badges { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
    padding: 4px 9px;
    border-radius: var(--r-sm);
    font-size: .6875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    line-height: 1.3;
}
.badge-off { background: var(--gallo); color: var(--ink); }
.badge-live { background: var(--ink); color: var(--gallo); }
.badge-out { background: var(--line-strong); color: var(--text); }

.card-body { display: flex; flex-direction: column; gap: 7px; padding: 12px 12px 14px; flex: 1; }
@media (min-width: 620px) { .card-body { padding: 14px 14px 16px; } }

.card-cat { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.card-title {
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.28;
    color: var(--text);
}
@media (min-width: 620px) { .card-title { font-size: 1rem; } }

.card-specs { display: flex; flex-wrap: wrap; gap: 5px; }
.spec {
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--ink); color: var(--gallo);
    font-size: .75rem; font-weight: 700;
}
.spec.is-type { background: var(--gallo); color: var(--ink); }
.spec.is-soft { background: var(--paper); color: var(--muted); font-weight: 600; }

.price-container { margin-top: auto; display: flex; flex-direction: column; justify-content: flex-end; }
.card-price { padding-top: 6px; }
.price-was { display: block; font-size: .8125rem; color: var(--muted); }
.price-was s { color: var(--sale); }
.price-now {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4.6vw, 1.875rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--ink);
}
.price-save { font-size: .75rem; font-weight: 700; color: var(--wa); }

.card-actions { display: grid; gap: 7px; margin-top: 8px; }
/* No cartão estreito do celular o rótulo pode quebrar em duas linhas:
   nunca empurrar a grade e criar rolagem lateral. */
.card-actions .btn {
    white-space: normal;
    text-wrap: balance;
    padding: 8px 10px;
    font-size: .875rem;
    line-height: 1.2;
}

.btn-add {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%;
    min-height: 46px; padding: 0 12px;
    border: 0; border-radius: var(--r-sm);
    background: var(--gallo); color: var(--ink);
    font-weight: 700; font-size: .9375rem;
    transition: background-color .18s ease;
}
.btn-add:hover { background: var(--gallo-hover); }
.btn-add .icon { width: 18px; height: 18px; }
.btn-add-long { display: none; }
@media (min-width: 620px) { .btn-add-long { display: inline; } }
.btn-add.is-added { background: var(--wa); color: #fff; }
.btn-add-qty {
    position: absolute; top: -7px; right: -7px;
    min-width: 22px; height: 22px; padding: 0 6px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--ink); color: var(--gallo);
    font-size: .75rem; font-weight: 700;
}

.card.is-live .btn-ghost.is-added { background: var(--wa); color: #fff; border-color: var(--wa); }
.card-live-note { font-size: .6875rem; line-height: 1.35; color: var(--muted); }

/* Nota de animais vivos abaixo da grade */
.catalog-note {
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 22px; padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: .9375rem; color: var(--muted);
}
.catalog-note .icon { width: 22px; height: 22px; color: var(--ink); margin-top: 2px; }
.catalog-note strong { color: var(--text); }

/* Sem resultados */
.empty {
    padding: 44px 20px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r);
}
.empty-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; }
.empty p + p { margin-top: 8px; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

.noscript { padding-block: 24px; }
.noscript p { padding: 16px; background: var(--gallo-pale); border-radius: var(--r); }

/* --------------------------------------------------------------------------
   Também vendemos na loja
   -------------------------------------------------------------------------- */

.more {
    padding-block: 48px 52px;
    padding-inline: var(--gutter);
    background: var(--ink);
    color: var(--on-ink);
    scroll-margin-top: calc(var(--header-h) + 12px);
}
.more-head { max-width: 62ch; margin-bottom: 26px; }
.more-head h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); color: #fff; }
.more-head h2::after {
    content: ''; display: block; width: 72px; height: 4px; margin-top: 12px; background: var(--gallo);
}
.more-head p { margin-top: 14px; color: var(--on-ink-muted); }

.more-hint {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 14px;
    font-size: .875rem; font-weight: 600; color: var(--gallo);
}
.more-hint .icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Lista "cinematográfica": a linha se abre e revela a foto da categoria.
   O hover é só no desktop; no celular (sem hover) a foto fica sempre visível,
   senão a seção não mostraria imagem nenhuma.
   -------------------------------------------------------------------------- */

.cine-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ink-line);
    border-bottom: 1px solid var(--ink-line);
}

.cine-row {
    position: relative;
    display: grid;
    align-content: center;
    grid-template-rows: 112px;
    overflow: hidden;
    border-bottom: 1px solid var(--ink-line);
    color: var(--on-ink);
    text-decoration: none;
    transition: grid-template-rows .7s cubic-bezier(.25, 1, .5, 1);
}
.cine-row::after { content: ''; display: block; grid-row: 1; }
.cine-row:last-child { border-bottom: 0; }

/* --- camada da foto --- */
.cine-bg { position: absolute; inset: 0; z-index: 0; display: block; }
.cine-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1s ease-out;
}
.cine-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
}

/* --- conteúdo --- */
.cine-content {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%;
    padding-inline: 16px;
}
@media (min-width: 640px) { .cine-content { padding-inline: 28px; } }
@media (min-width: 960px) { .cine-content { padding-inline: 40px; } }

.cine-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
@media (min-width: 960px) { .cine-left { gap: 40px; } }

.cine-num {
    font-family: var(--font-display);
    font-size: .9375rem; font-weight: 700; letter-spacing: .1em;
    color: var(--gallo);
    transition: color .5s ease;
}

.cine-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.cine-title {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: #fff;
    transition: transform .7s cubic-bezier(.25, 1, .5, 1);
}

.cine-sub-mobile {
    font-size: .75rem; font-weight: 500;
    color: var(--on-ink-muted);
}
@media (min-width: 860px) { .cine-sub-mobile { display: none; } }

.cine-right { display: flex; align-items: center; gap: 16px; flex: none; }
@media (min-width: 960px) { .cine-right { gap: 28px; } }

.cine-sub {
    display: none;
    font-size: .875rem; font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.25, 1, .5, 1);
}
@media (min-width: 860px) { .cine-sub { display: block; } }

.cine-go {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    color: #fff;
    transition: background-color .5s ease, border-color .5s ease, color .5s ease, transform .5s ease;
}
.cine-go .icon { width: 20px; height: 20px; transition: transform .5s ease; }

/* --- estado aberto: hover no desktop, foco em qualquer tamanho --- */
@media (hover: hover) and (min-width: 860px) {
    .cine-bg { opacity: 0; transition: opacity .7s ease-out; }
    .cine-row:hover,
    .cine-row:focus-visible { grid-template-rows: 320px; }
    .cine-row:hover .cine-bg,
    .cine-row:focus-visible .cine-bg { opacity: 1; }
    .cine-row:hover .cine-bg img,
    .cine-row:focus-visible .cine-bg img { transform: scale(1); }
    .cine-row:hover .cine-title,
    .cine-row:focus-visible .cine-title { transform: translateY(-8px); }
    .cine-row:hover .cine-sub,
    .cine-row:focus-visible .cine-sub { opacity: 1; transform: none; }
    .cine-row:hover .cine-go,
    .cine-row:focus-visible .cine-go {
        background: var(--gallo); border-color: var(--gallo); color: var(--ink);
        transform: scale(1.1);
    }
    .cine-row:hover .cine-go .icon,
    .cine-row:focus-visible .cine-go .icon { transform: rotate(-45deg); }
    .cine-row:hover .cine-num,
    .cine-row:focus-visible .cine-num { color: #fff; }
}

/* No celular a foto já está lá; o texto fica sobre ela, então o véu escuro
   vem também da esquerda para o nome não disputar com a imagem. */
@media (max-width: 859px) {
    .cine-bg::after {
        background:
            linear-gradient(to right, rgba(0,0,0,.92) 0%, rgba(0,0,0,.62) 58%, rgba(0,0,0,.4) 100%),
            linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,.25));
    }
    .cine-row:active .cine-go,
    .cine-row.is-expanded .cine-go { background: var(--gallo); border-color: var(--gallo); color: var(--ink); }

    /* Motion skill: Expand row gracefully when active/scrolled into view on mobile */
    .cine-row.is-expanded { height: 240px; }
    .cine-row.is-expanded .cine-bg img { transform: scale(1); }
    .cine-row.is-expanded .cine-title { transform: translateY(-4px); }
    .cine-row.is-expanded .cine-go { transform: scale(1.1); }
    .cine-row.is-expanded .cine-go .icon { transform: rotate(-45deg); }
    .cine-row.is-expanded .cine-num { color: #fff; }
}

/* --------------------------------------------------------------------------
   Motion (AOS / Scroll Reveal)
   -------------------------------------------------------------------------- */
.motion-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.motion-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .motion-reveal { transition: none !important; opacity: 1; transform: none; }
}

/* Destaque ao chegar por um atalho do menu */
@keyframes brilho-secao {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(243,186,23,0); }
    30% { box-shadow: inset 0 0 0 4px rgba(243,186,23,.8); }
}
.is-highlighted { animation: brilho-secao 1.6s ease; }

/* --------------------------------------------------------------------------
   Confiança
   -------------------------------------------------------------------------- */

.trust { padding-block: 40px; padding-inline: var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-list { display: grid; gap: 18px; }
@media (min-width: 620px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-list { grid-template-columns: repeat(5, 1fr); } }

.trust-list li { display: grid; justify-items: start; gap: 4px; }
.trust-icon {
    display: grid; place-items: center;
    width: 48px; height: 48px; margin-bottom: 6px;
    border-radius: 50%;
    background: var(--gallo); color: var(--ink);
}
.trust-icon .icon { width: 26px; height: 26px; }
.trust-list strong { font-size: 1rem; }
.trust-list span:last-child { font-size: .875rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Como comprar
   -------------------------------------------------------------------------- */

.how { padding-block: 48px 52px; scroll-margin-top: calc(var(--header-h) + 12px); }
.how-head { margin-bottom: 26px; }
.how-head h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.how-head h2::after { content: ''; display: block; width: 72px; height: 4px; margin-top: 12px; background: var(--gallo); }
.how-head p { margin-top: 12px; color: var(--muted); }

.steps { display: grid; gap: 12px; counter-reset: passo; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.step-n {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem; font-weight: 800; line-height: 1;
    color: var(--gallo);
}
.steps h3 { margin-top: 8px; font-size: 1.0625rem; }
.steps p { margin-top: 6px; font-size: .9375rem; color: var(--muted); }

.how-note {
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 18px; padding: 14px 16px;
    background: var(--ink); color: var(--on-ink-muted);
    border-radius: var(--r);
    font-size: .9375rem;
}
.how-note .icon { width: 22px; height: 22px; color: var(--gallo); margin-top: 2px; }
.how-note strong { color: var(--gallo); }
.how-note em { font-style: normal; color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Loja: endereço, horário, contato
   -------------------------------------------------------------------------- */

.store {
    padding-block: 48px 52px;
    background: var(--ink);
    color: var(--on-ink);
    scroll-margin-top: calc(var(--header-h) + 12px);
}
.store-inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .store-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

.store-address h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); color: #fff; }
.store-address h2::after { content: ''; display: block; width: 72px; height: 4px; margin-top: 12px; background: var(--gallo); }
.store-address address { margin-top: 18px; font-style: normal; font-size: 1.0625rem; line-height: 1.7; color: #DAD5CA; }
.store-address address strong { color: #fff; font-size: 1.1875rem; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.store-details { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r); overflow: hidden; }
.detail { padding: 16px 18px; background: var(--ink-soft); }
.detail dt {
    display: flex; align-items: center; gap: 8px;
    font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gallo);
}
.detail dt .icon { width: 18px; height: 18px; }
.detail dd { margin: 8px 0 0; color: #DAD5CA; }
.detail-link { color: #fff; font-weight: 700; text-decoration-color: var(--gallo); }
.detail-link:hover { color: var(--gallo); }
.hours { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.hours span:last-child { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer { background: #000; color: var(--on-ink-muted); padding-block: 40px 0; }
.footer-inner { display: grid; gap: 28px; padding-bottom: 32px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; } }

.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: var(--gallo); flex: none; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.375rem; text-transform: uppercase; letter-spacing: .01em; }

.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 {
    font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gallo);
}
.footer-col a { color: var(--on-ink-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--gallo); text-decoration: underline; }
.footer-col .icon { width: 18px; height: 18px; }
.footer-address { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; }
.footer-address .icon { width: 17px; height: 17px; color: var(--gallo); margin-top: 3px; }

.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
    padding-block: 18px;
    border-top: 1px solid var(--ink-line);
    font-size: .8125rem;
}

/* --------------------------------------------------------------------------
   WhatsApp flutuante e barra do carrinho (celular)
   -------------------------------------------------------------------------- */

.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 50;
    display: grid; place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--wa); color: #fff;
    box-shadow: var(--shadow-lift);
    transition: opacity .2s ease, transform .2s var(--ease-out);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { background: var(--wa-hover); transform: scale(1.05); }
.wa-float.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
@media (max-width: 759px) {
    .wa-float.is-replaced { opacity: 0; pointer-events: none; }
}

.cart-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border: 0; border-radius: var(--r);
    background: var(--ink); color: #fff;
    box-shadow: var(--shadow-lift);
    text-align: left;
}
.cart-bar .icon { width: 24px; height: 24px; color: var(--gallo); }
.cart-bar-info { flex: 1; display: grid; line-height: 1.25; }
.cart-bar-info strong { font-size: .875rem; color: var(--gallo); }
.cart-bar-info span { font-size: 1.0625rem; font-weight: 700; }
.cart-bar-cta {
    padding: 8px 14px; border-radius: var(--r-sm);
    background: var(--gallo); color: var(--ink);
    font-weight: 700; font-size: .9375rem;
}
@media (min-width: 760px) { .cart-bar { display: none; } }

/* --------------------------------------------------------------------------
   Carrinho
   -------------------------------------------------------------------------- */

.cart {
    width: min(480px, 100%);
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--text);
    overflow: hidden;
}
.cart::backdrop { background: rgba(11, 11, 11, .55); }
@media (prefers-reduced-motion: no-preference) {
    .cart[open] { animation: entrar-gaveta .3s var(--ease-out); }
}
@keyframes entrar-gaveta { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }

.cart-panel { display: flex; flex-direction: column; height: 100%; }

.cart-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px;
    background: var(--ink); color: #fff;
}
.cart-head h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; }
.cart-close {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--ink-line); border-radius: var(--r-sm);
    background: transparent; color: #fff;
}
.cart-close:hover { background: var(--ink-soft); color: var(--gallo); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 18px; }

.cart-items { display: grid; gap: 10px; }
.cart-item {
    display: flex; gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.cart-item > div { flex: 1; min-width: 0; }
.cart-thumb { width: 60px; height: 72px; object-fit: contain; flex: none; background: #fff; border-radius: var(--r-sm); }
.cart-thumb.is-photo { object-fit: cover; }
.cart-thumb-empty {
    display: grid; place-items: center;
    width: 60px; height: 72px; flex: none;
    border-radius: var(--r-sm);
    background: var(--gallo-pale);
    font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--ink);
}
.cart-item-name { font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.cart-item-var { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 100px; background: var(--ink); color: var(--gallo); font-size: .6875rem; font-weight: 700; }
.cart-item-unit { margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.cart-item-live { margin-top: 4px; font-size: .75rem; font-weight: 600; color: var(--gallo-deep); }

.cart-item-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.stepper button {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 0; background: var(--surface); color: var(--text);
}
.stepper button:hover:not(:disabled) { background: var(--gallo); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper-qty { min-width: 34px; text-align: center; font-weight: 700; }
.cart-remove {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    background: var(--surface); color: var(--muted);
}
.cart-remove:hover { border-color: var(--sale); color: var(--sale); }
.cart-item-total { margin-left: auto; font-weight: 700; }

.cart-live-note {
    display: flex; gap: 9px; align-items: flex-start;
    margin-top: 12px; padding: 12px 14px;
    background: var(--gallo-pale);
    border-radius: var(--r-sm);
    font-size: .875rem;
}
.cart-live-note .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.cart-empty { padding: 36px 8px; text-align: center; }
.cart-empty-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; text-transform: uppercase; }
.cart-empty p + p { margin-top: 6px; color: var(--muted); }
.cart-empty .btn { margin-top: 18px; }

.cart-back {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 14px; padding: 0;
    border: 0; background: transparent;
    font-weight: 600; color: var(--muted);
}
.cart-back:hover { color: var(--text); }
.cart-sub { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; text-transform: uppercase; }

.order-lines { display: grid; gap: 8px; margin-top: 12px; }
.order-lines li {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 10px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.order-qty { display: block; font-size: .8125rem; color: var(--muted); }
.order-val { font-weight: 700; white-space: nowrap; }
.order-total {
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    margin-top: 12px; padding: 12px 14px;
    background: var(--ink); color: #fff; border-radius: var(--r-sm);
}
.order-total strong { font-family: var(--font-display); font-size: 1.625rem; font-weight: 800; color: var(--gallo); }

.cart-form { margin-top: 18px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9375rem; }
.field-opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gallo); box-shadow: 0 0 0 4px rgba(243,186,23,.2); }
.field input[aria-invalid="true"] { border-color: var(--sale); }
.field-error { font-size: .875rem; color: var(--sale); font-weight: 600; }
.cart-send { width: 100%; }

.cart-done { padding: 28px 8px; text-align: center; }
.cart-done-mark {
    display: grid; place-items: center;
    width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--wa); color: #fff;
}
.cart-done-mark .icon { width: 34px; height: 34px; }
.cart-done p { margin-top: 8px; color: var(--muted); }
.cart-done-note { font-size: .875rem; }
.cart-done-actions { display: grid; gap: 10px; margin-top: 20px; }

.cart-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.cart-subtotal span { font-weight: 600; }
.cart-subtotal small { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.cart-subtotal strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; }
.cart-note { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.cart-note a { font-weight: 600; }
.cart-foot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* --------------------------------------------------------------------------
   Movimento reduzido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .card:hover, .btn:hover, .circle:hover { transform: none !important; }
}

/* ==========================================================================
   Catálogo Horizontal Accordion
   ========================================================================== */

.accordion-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) and (max-width: 959px) {
    .accordion-wrapper {
        padding-left: 0;
        border-left: none;
        height: auto;
        margin-top: -20px;
        margin-bottom: -20px;
        margin-right: calc(50% - 50vw);
    }
}

@media (min-width: 960px) {
    .accordion-wrapper {
        padding-left: 0;
        border-left: none;
        height: auto;
        /* Stretch to the top, bottom, and right edge of the hero */
        margin-top: -20px;
        margin-bottom: -20px;
        margin-right: calc(50% - 50vw);
    }
}

.accordion-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 960px) {
    /* Hide the header on desktop or integrate it nicely, but the user didn't ask to hide it.
       Let's keep it but align it properly above the diagonal container */
    .accordion-header {
        margin-left: 15%; /* match diagonal start roughly */
    }
}

.accordion-header h2 {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--on-ink-muted);
    text-transform: uppercase;
}

.accordion-count {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--gallo);
    text-transform: uppercase;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    min-height: 450px; /* Don't smash on mobile */
}

@media (min-width: 768px) and (max-width: 959px) {
    .accordion-container {
        flex-direction: row;
        flex: 1;
        min-height: 480px;
        gap: 0;
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
        border-radius: 16px 0 0 16px;
    }
}

@media (min-width: 960px) {
    .accordion-container {
        flex-direction: row;
        flex: 1; /* Stretch to fill wrapper's height */
        min-height: 560px; /* Grande e impactante */
        gap: 0;
        /* CATÁLOGO DIAGONAL: clip the left side diagonally */
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
        border-radius: 20px 0 0 20px; /* Since right side touches screen, only curve left side */
    }
}

.accordion-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: transparent;
    text-align: left;
}

@media (min-width: 960px) {
    .accordion-item {
        border-radius: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
    .accordion-item:last-child {
        border-right: none;
    }
}

.accordion-item[data-active="true"] {
    flex: 4.5;
}

.accordion-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* mesmo fechado o painel mostra o animal, de leve */
    opacity: .32;
    transition: opacity .7s ease-in-out;
    z-index: 0;
}

.accordion-item[data-active="true"] .accordion-bg {
    opacity: 0.95;
}

.accordion-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* acima do centro: é onde fica a cabeça do animal */
    object-position: 50% 30%;
    filter: saturate(1.1) contrast(1.06);
    transform: scale(1.05);
    transition: transform 1s ease-in-out;
}

.accordion-item:hover .accordion-bg img {
    transform: scale(1.05);
}

.accordion-item[data-active="true"]:hover .accordion-bg img {
    transform: scale(1.02);
}

.accordion-item[data-active="true"] .accordion-bg img {
    transform: scale(1);
}

.accordion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,11,11,.95) 0%, rgba(11,11,11,.6) 45%, rgba(11,11,11,.12) 100%);
}

@media (min-width: 960px) {
    .accordion-overlay {
        background:
            linear-gradient(to right, rgba(11,11,11,.92) 0%, rgba(11,11,11,.58) 40%, rgba(11,11,11,.12) 72%, transparent 100%),
            linear-gradient(to top, rgba(11,11,11,.55) 0%, transparent 45%);
    }
}

.accordion-content {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    z-index: 2;
}

@media (min-width: 960px) {
    .accordion-content {
        justify-content: center;
        padding: 32px;
    }
}

.content-active {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease;
    pointer-events: none;
}

@media (min-width: 960px) {
    .content-active {
        align-items: center;
    }
}

.accordion-item[data-active="true"] .content-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.accordion-item[data-active="false"] .content-active {
    display: none;
}

@media (min-width: 960px) {
    .accordion-item[data-active="false"] .content-active {
        display: flex;
    }
}

.content-active-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

@media (min-width: 960px) {
    .content-active-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
}

.accordion-num {
    font-family: var(--font-display);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .85);
    color: var(--gallo);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .1em;
    margin-top: 6px;
}

@media (min-width: 960px) {
    .accordion-num {
        font-size: 1.125rem;
    }
}

.accordion-text-wrapper {
    display: flex;
    flex-direction: column;
}

.accordion-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 3.25rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .6);
}

.accordion-sub {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #E8E3D8;
    margin-top: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}

.accordion-btn {
    display: none;
    flex-shrink: 0;
    height: 48px;
    width: 48px;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    margin-left: 16px;
    align-self: flex-end;
    background: rgba(11, 11, 11, .4);
}

@media (min-width: 600px) {
    .accordion-btn {
        display: flex;
    }
}

@media (min-width: 960px) {
    .accordion-btn {
        align-self: center;
    }
}

.accordion-item[data-active="true"] .accordion-btn {
    /* fundo escuro próprio: a seta precisa aparecer sobre qualquer foto,
       clara ou escura */
    border-color: var(--gallo);
    color: var(--gallo);
    background: rgba(11, 11, 11, .55);
}
.accordion-btn:hover,
.accordion-btn:focus-visible {
    border-color: var(--gallo);
    background: var(--gallo);
    color: var(--ink);
}
.accordion-btn:hover svg { transform: translateX(2px); }

.accordion-btn svg {
    width: 20px;
    height: 20px;
    transition: transform .3s var(--ease-out);
}

.content-inactive {
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
    scale: 1;
    transition: opacity .5s ease, scale .5s ease;
}

@media (min-width: 960px) {
    .content-inactive {
        display: flex;
    }
}

.accordion-item[data-active="true"] .content-inactive {
    opacity: 0;
    scale: 0.5;
    pointer-events: none;
}

.inactive-num {
    color: var(--gallo);
    font-weight: 700;
    font-size: 1.125rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .85);
}

.inactive-title {
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .85);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
}

.mobile-inactive-num {
    color: var(--gallo);
    font-weight: 700;
    display: block;
}

@media (min-width: 960px) {
    .mobile-inactive-num {
        display: none;
    }
}

.accordion-item[data-active="true"] .mobile-inactive-num {
    display: none;
}

/* --------------------------------------------------------------------------
   Celular: acordeão horizontal é um padrão de desktop. Aqui vira uma lista
   empilhada e compacta — todos os títulos visíveis, sem painel vazio, e o
   toque já leva ao catálogo.
   -------------------------------------------------------------------------- */

@media (max-width: 959px) {
    .accordion-container { gap: 6px; }

    .accordion-item { flex: none; min-height: 72px; border-radius: 10px; }
    .accordion-item[data-active="true"] { flex: none; }

    /* todos os painéis mostram número, nome e seta */
    .accordion-item[data-active="false"] .content-active,
    .accordion-item .content-active {
        display: flex;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        align-items: center;
    }
    .content-active-inner { flex-direction: row; align-items: center; gap: 16px; }
    .accordion-content { justify-content: center; padding: 14px 16px; }

    .accordion-num { margin-top: 0; font-size: .8125rem; }
    .accordion-title { font-size: 1.5rem; }
    .accordion-sub { margin-top: 2px; font-size: .625rem; }

    /* a foto fica sempre visível, discreta, já que não há hover */
    .accordion-bg { opacity: .6; }
    .accordion-item[data-active="true"] .accordion-bg { opacity: .6; }
    .accordion-bg img { transform: none; }
    .accordion-overlay {
        background: linear-gradient(to right,
            rgba(11, 11, 11, .93) 0%, rgba(11, 11, 11, .68) 52%, rgba(11, 11, 11, .3) 100%);
    }

    .mobile-inactive-num { display: none; }
    .accordion-btn { display: flex; height: 40px; width: 40px; margin-left: 12px; align-self: center; }
    .accordion-btn svg { width: 18px; height: 18px; }
}

/* ==========================================================================
   Motion / Hero Entrance
   ========================================================================== */
.hero-copy > * { animation: entrar 0.6s cubic-bezier(0,0,0,1) both; }
.hero-copy .hero-kicker { animation-delay: 0.1s; }
.hero-copy h1 { animation-delay: 0.2s; }
.hero-copy .hero-lead { animation-delay: 0.3s; }
.hero-copy .hero-actions { animation-delay: 0.4s; }
.hero-copy .hero-benefits { animation-delay: 0.5s; }

.hero-media { animation: entrar 0.6s cubic-bezier(0,0,0,1) both 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .hero-copy > *, .hero-media { animation: none !important; transform: none !important; }
}

/* Destaques (marcados no painel) */
.chip-star { border-color: var(--gallo); font-weight: 700; }
.chip-star.is-active, .chip-star:hover { background: var(--gallo); color: var(--ink); border-color: var(--gallo); }
.badge-star { background: var(--ink); color: var(--gallo); }
