/* =====================================================
   DESIGN SYSTEM - SUPERMERCADOS IVONE
   Regional, acolhedor, moderno e fácil de manter.
   ===================================================== */
:root {
    --red: #9a0d0c;
    --red-dark: #710807;
    --red-soft: #f7e8e6;
    --yellow: #ffdc00;
    --yellow-soft: #fff5b8;
    --cream: #fffaf4;
    --bg: #f4f5f2;
    --surface: #fff;
    --text: #272727;
    --muted: #6c6c6c;
    --line: #e5e5e0;
    --green: #1f9d55;
    --shadow: 0 10px 28px rgba(46, 33, 22, .09);
    --radius: 18px;
    --container: 1180px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Roboto, Arial, sans-serif;
    line-height: 1.55
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit
}

.section-container {
    width: min(calc(100% - 36px), var(--container));
    margin: 0 auto
}

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--red);
    box-shadow: 0 5px 18px rgba(55, 0, 0, .12)
}

.header-top {
    background: var(--cream);
    border-bottom: 1px solid var(--line)
}

.header-inner {
    width: min(calc(100% - 36px), var(--container));
    min-height: 104px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px
}

.brand img {
    width: min(285px, 48vw)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--red);
    font-family: Oswald, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 999px;
    transition: background var(--transition)
}

.quick-link:hover {
    background: var(--yellow-soft)
}

.quick-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--red-dark);
    font-size: 12px
}

.social-icons {
    display: flex;
    gap: 8px;
    margin-left: 4px
}

.social-icons a,
.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform var(--transition), background var(--transition)
}

.social-icons a:hover,
.footer-socials a:hover {
    transform: translateY(-2px);
    background: var(--yellow-soft)
}

.social-icons img,
.footer-socials img {
    width: 19px;
    height: 19px;
    object-fit: contain
}

.main-nav {
    background: var(--red)
}

.nav-inner {
    width: min(calc(100% - 36px), var(--container));
    min-height: 56px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3px
}

.nav-list a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 16px;
    position: relative;
    color: #fff;
    text-decoration: none;
    font-family: Oswald, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 4px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform var(--transition)
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(255, 255, 255, .07)
}

.nav-list a:hover::after,
.nav-list a.active::after {
    transform: scaleX(1)
}

.menu-toggle,
.page-title {
    display: none
}

.page-main {
    min-height: 55vh
}

.page-hero {
    padding: 58px 0 38px;
    background: linear-gradient(180deg, var(--cream), var(--bg));
    border-bottom: 1px solid var(--line)
}

.page-hero h1 {
    font-family: Oswald, Arial, sans-serif;
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.1;
    color: var(--red-dark);
    margin: 4px 0 8px
}

.page-hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 17px
}

.eyebrow {
    display: inline-block;
    color: var(--red);
    font: 700 13px Oswald, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .13em
}

.primary-button,
.secondary-button,
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 10px;
    text-decoration: none;
    font-family: Oswald, Arial, sans-serif;
    font-weight: 500;
    letter-spacing: .02em;
    transition: transform var(--transition), background var(--transition), color var(--transition)
}

.primary-button {
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red)
}

.primary-button:hover {
    background: #fff;
    color: var(--red);
    transform: translateY(-2px)
}

.secondary-button {
    background: #fff;
    color: var(--red);
    border: 2px solid var(--red)
}

.secondary-button:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px)
}

.secondary-button.small {
    min-height: 42px;
    padding: 8px 13px;
    font-size: 14px
}

.whatsapp-button {
    background: var(--green);
    color: #fff;
    border: 2px solid var(--green);
    gap: 7px
}

.whatsapp-button:hover {
    background: #fff;
    color: var(--green);
    transform: translateY(-2px)
}

.card-label {
    display: inline-flex;
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--yellow-soft);
    color: var(--red-dark);
    font: 700 11px Oswald, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em
}

.site-footer {
    margin-top: 70px;
    padding: 48px 0 18px;
    background: var(--red);
    color: #fff;
    border-top: 5px solid var(--yellow)
}

.footer-main {
    width: min(calc(100% - 36px), var(--container));
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 340px .8fr;
    gap: 50px;
    align-items: start
}

.footer-brand img {
    width: 220px;
    margin-bottom: 12px
}

.footer-brand h2 {
    font: 600 25px Oswald, Arial, sans-serif;
    color: var(--yellow);
    margin-bottom: 5px
}

.footer-brand p {
    max-width: 310px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 18px
}

.footer-facebook h3,
.footer-links h3 {
    font: 600 18px Oswald, Arial, sans-serif;
    margin-bottom: 13px;
    color: var(--yellow)
}

.footer-facebook iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 12px;
    background: #fff
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.footer-links a {
    padding: 6px 0;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: 14px
}

.footer-links a:hover {
    color: var(--yellow)
}

.footer-bottom {
    width: min(calc(100% - 36px), var(--container));
    margin: 35px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px
}

.footer-bottom a {
    color: #fff
}

.botao-flutuante {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--red-dark);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
    transition: transform var(--transition)
}

.botao-flutuante:hover {
    transform: translateY(-3px)
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px
}

.policy-card {
    margin: 45px 0;
    padding: 35px 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    white-space: pre-line
}

.policy-card h2 {
    font: 700 30px Oswald, Arial, sans-serif;
    color: var(--red-dark);
    margin-bottom: 20px
}

.policy-card p {
    color: #444;
    line-height: 1.75
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px
}

@media(max-width:900px) {
    .footer-main {
        grid-template-columns: 1fr 340px
    }

    .footer-brand {
        grid-column: 1/-1
    }

    .content-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:720px) {
    .header-inner {
        min-height: 88px;
        width: calc(100% - 24px)
    }

    .brand img {
        width: min(235px, 65vw)
    }

    .quick-link {
        display: none
    }

    .nav-inner {
        min-height: 52px;
        width: 100%;
        justify-content: flex-start;
        padding: 0 12px
    }

    .menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px;
        border: 0;
        background: transparent
    }

    .menu-toggle span {
        height: 2px;
        width: 100%;
        background: #fff;
        border-radius: 2px
    }

    .page-title {
        display: inline-block;
        color: #fff;
        font: 500 17px Oswald, Arial, sans-serif;
        margin-left: 4px
    }

    .nav-list {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        background: var(--red);
        box-shadow: 0 10px 20px rgba(0, 0, 0, .14)
    }

    .nav-list.show {
        display: flex
    }

    .nav-list a {
        justify-content: center;
        min-height: 50px;
        border-top: 1px solid rgba(255, 255, 255, .08)
    }

    .nav-list a::after {
        display: none
    }

    .page-hero {
        padding: 40px 0 28px
    }

    .page-hero p {
        font-size: 15px
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .footer-brand {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column
    }

    .footer-brand p {
        margin: auto
    }

    .footer-facebook {
        max-width: 340px;
        width: 100%;
        margin: auto
    }

    .footer-links {
        align-items: center
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .policy-card {
        padding: 24px 18px;
        margin: 25px 0
    }
}

/* =========================================================
   PADRÃO GLOBAL DE IMAGENS DO SITE PÚBLICO
   ========================================================= */
.brand img,
.footer-brand img {
    height: auto;
    object-fit: contain;
}

.social-icons img,
.footer-socials img {
    display: block;
    width: 19px;
    height: 19px;
    object-fit: contain;
}


/* Janela de visualização das ofertas e novidades */
body.overlay-open {
    overflow: hidden;
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 60px 65px;
    background: rgba(0, 0, 0, 0.92);
}

#overlay[aria-hidden="true"] {
    display: none !important;
}

#overlay .overlay-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
}

#overlayImg {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    object-fit: contain;
    color: #fff;
}

#overlay .close-button,
#overlay .arrow {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 1;
}

#overlay .close-button {
    top: 12px;
    right: 12px;
}

#overlay .arrow {
    top: 50%;
    transform: translateY(-50%);
}

#overlay .arrow.left {
    left: 10px;
}

#overlay .arrow.right {
    right: 10px;
}

#overlay button:hover,
#overlay button:focus-visible {
    background: var(--red, #a00);
}

/* Restaura a imagem de fundo atrás do cabeçalho */
.site-header .header-top {
    background-color: #a00;
    background-image:
        linear-gradient(rgba(150, 0, 0, 0.65), rgba(150, 0, 0, 0.65)),
        url("../imagens/FACHADA LOJA HEADER.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.header-top .header-inner {
    padding: 12px 0;
}

.header-top .brand,
.header-top .header-actions {
    background: var(--cream, #fffaf3);
    border-radius: 12px;
    padding: 10px 14px;
}

@media (max-width: 520px) {
    #overlay {
        padding: 60px 44px;
    }

    #overlay .arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    #overlay .arrow.left {
        left: 4px;
    }

    #overlay .arrow.right {
        right: 4px;
    }

    .header-top .brand,
    .header-top .header-actions {
        padding: 8px;
    }
}

/* Remove os fundos da logo e dos acessos do cabeçalho */
.header-top .brand,
.header-top .header-actions {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.header-top .social-icons a,
.header-top .social-icons a:hover {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Mantém os textos legíveis sobre o banner */
.header-top .quick-link {
    color: #fff;
}

.header-top .quick-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Facebook e Instagram */
.header-top .social-icons a {
    width: 48px;
    height: 48px;
}

.header-top .social-icons img {
    width: 34px;
    height: 34px;
}

/* Ícones de Lojas e Cliente I */
.header-top .quick-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.header-top .quick-link {
    font-size: 17px;
}


/* CABEÇALHO: remove as caixas de fundo */
.header-top .brand,
.header-top .header-actions {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* REDES SOCIAIS: tamanho igual no cabeçalho e rodapé */
.site-header .social-icons a,
.site-footer .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.site-header .social-icons a:hover,
.site-footer .footer-socials a:hover {
    background: transparent;
}

.site-header .social-icons img,
.site-footer .footer-socials img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* ACESSOS LOJAS E CLIENTE I */
.header-top .quick-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    font-size: 18px;
}

.header-top .quick-link {
    color: #fff;
    font-size: 17px;
}

.header-top .quick-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* MENU MOBILE */
.site-header .main-nav {
    position: relative;
    overflow: visible;
}

@media (max-width: 720px) {
    /* Evita que a logo e os ícones alarguem a tela */
    .header-top .header-inner {
        gap: 10px;
    }

    .header-top .brand {
        flex: 1;
        min-width: 0;
    }

    .header-top .brand img {
        width: 100%;
        max-width: 235px;
        height: auto;
    }

    .header-top .header-actions {
        flex-shrink: 0;
    }

    .header-top .social-icons {
        gap: 4px;
        margin-left: 0;
    }

    .site-header .nav-inner {
        position: relative;
        width: 100%;
        min-height: 52px;
        justify-content: flex-start;
        padding: 0 12px;
    }

    .site-header .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: none;
        background: transparent;
        cursor: pointer;
        touch-action: manipulation;
    }

    .site-header .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        pointer-events: none;
    }

    .site-header .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1100;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
        background: var(--red, #a00);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .site-header .nav-list.show {
        display: flex;
    }

    .site-header .nav-list a {
        width: 100%;
        min-height: 50px;
        justify-content: center;
    }
}

.header-top .cliente-i-icon {
    display: block;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
}

.header-top .cliente-i-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-facebook iframe {
    display: block;
    width: 100%;
    max-width: 340px;
    height: 130px;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.facebook-direct-link {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.facebook-direct-link:hover {
    color: var(--yellow);
}

.footer-facebook .facebook-card {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 340px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    margin-top: 5px;
}

.footer-facebook .facebook-card:hover {
    background: rgba(255, 255, 255, 0.16);
}

.footer-facebook .facebook-card img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
}

.footer-facebook .facebook-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.footer-facebook .facebook-card span span {
    display: block;
    font-size: 13px;
    line-height: 1.5;
}