/* Estrela de Davi - Tema global */
:root {
    --color-primary: #063063;
    --color-primary-dark: #042550;
    --color-accent: #EBAA1D;
    --color-accent-hover: #d49818;
    --color-text: #232323;
    --font-heading: 'Mulish', sans-serif;
    --font-body: 'Carlito', 'Roboto', sans-serif;
}

/* ── Base typography ── */
body {
    font-family: var(--font-body);
    color: var(--color-text);
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .2s ease;
}

a:hover {
    color: var(--color-accent);
}

/* ── Utility classes ── */
.font-mulish { font-family: 'Mulish', sans-serif; }
.font-roboto { font-family: 'Roboto', sans-serif; }
.font-carlito { font-family: 'Carlito', 'Roboto', sans-serif; }
.text-accent { color: var(--color-accent) !important; }
.bg-primary { background-color: var(--color-primary) !important; }

/* ── Global button styling ── */
.btn-primary,
.btn-accent {
    background: linear-gradient(135deg, var(--color-primary), #0a4a8a);
    border: 4px solid var(--color-accent);
    border-radius: 10px;
    padding: 12px 32px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: all .3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-accent:hover,
.btn-accent:focus {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn-sm.btn-accent {
    padding: 4px 12px;
    border-width: 2px;
    border-radius: 6px;
    font-size: .875rem;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* Header main bar */
.header-main {
    background: var(--color-primary);
    border-top: 4px solid var(--color-accent);
}
.header-main__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}
.header-logo {
    flex-shrink: 0;
}
.header-logo__img {
    height: 48px;
    width: auto;
    display: block;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.header-nav__link {
    color: #fff;
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}
.header-nav__link:hover {
    background: rgba(255,255,255,.1);
    color: var(--color-accent);
}

/* Search */
.header-search {
    display: flex;
    align-items: center;
    margin-left: 12px;
    flex-shrink: 0;
}
.header-search__input {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px 0 0 8px;
    padding: 8px 14px;
    font-size: .9rem;
    width: 220px;
    outline: none;
    color: #333;
    font-family: var(--font-body);
    transition: border-color .2s ease;
}
.header-search__input:focus {
    border-color: var(--color-accent);
}
.header-search__input::placeholder {
    color: #999;
    font-size: .85rem;
}
.header-search__btn {
    background: var(--color-accent);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s ease;
    height: 40px;
}
.header-search__btn:hover {
    background: var(--color-accent-hover);
}

/* Mobile toggle */
.header-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: none;
}

/* Categories bar */
.header-categories {
    background: #04254d;
}
.header-categories__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    flex-wrap: wrap;
}
.header-categories__link {
    color: rgba(255,255,255,.85);
    font-size: .88rem;
    font-family: var(--font-body);
    padding: 2px 8px;
    transition: color .2s ease;
    white-space: nowrap;
}
.header-categories__link:hover {
    color: var(--color-accent);
}
.header-categories__sep {
    color: rgba(255,255,255,.3);
    font-size: .8rem;
    user-select: none;
}

/* Header responsive */
@media (max-width: 991.98px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 16px;
        border-top: 1px solid rgba(255,255,255,.1);
        z-index: 100;
    }
    .header-nav--open { display: flex; }
    .header-toggle { display: block; margin-left: auto; }
    .header-search { margin-left: 0; }
    .header-search__input { width: 150px; }
    .header-main__inner { position: relative; flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .header-search { display: none; }
    .header-categories__inner { gap: 4px; }
    .header-categories__link { font-size: .8rem; padding: 2px 4px; }
}

/* ── Footer ── */
.site-footer {
    position: relative;
    background-color: var(--color-primary);
    color: #fff;
    padding: 80px 0 0;
}

/* -- footer top: brand | sep | right block -- */
.footer-top {
    display: flex;
    gap: 0;
}
.footer-top__brand {
    flex: 0 0 340px;
    max-width: 340px;
    padding: 28px 24px 28px 0;
}
.footer-logo {
    max-width: 200px;
    height: auto;
}
.footer-top__desc {
    font-size: .84rem;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    margin-bottom: 6px;
}
.footer-top__sep {
    display: none;
}
.footer-top__right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* contact row (atendimento + localização) */
.footer-top__contact-row {
    display: flex;
    gap: 40px;
    padding-bottom: 28px;
}
.footer-top__contact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.footer-top__icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-top__heading {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 6px;
}
.footer-top__line {
    font-size: .86rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 2px;
}

.footer-divider {
    display: none;
}

/* -- footer mid: Menu | Produtos | Horários -- */
.footer-mid {
    display: flex;
    gap: 50px;
    padding-bottom: 40px;
}
.footer-mid__col {
    min-width: 0;
}
.footer-mid__heading {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
}
.footer-links li {
    padding: .2rem 0;
}
.footer-links a {
    color: rgba(255,255,255,.55);
    font-size: .86rem;
    transition: color .2s ease, padding-left .2s ease;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

/* horarios */
.footer-horario {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 8px;
}
.footer-horario__icon {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* social circles */
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    transition: all .3s ease;
    text-decoration: none;
}
.footer-social:hover {
    background: #fff;
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* copyright bar */
.copyright-bar {
    background: var(--color-primary-dark);
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.copyright-bar__text {
    font-size: .82rem;
    color: rgba(255,255,255,.45);
    text-align: center;
    margin: 0;
}
.copyright-bar__link {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .2s ease;
}
.copyright-bar__link:hover {
    color: var(--color-accent);
}

/* footer responsive */
@media (max-width: 991.98px) {
    .site-footer { padding: 50px 0 0; }
    .footer-top {
        flex-direction: column;
        gap: 0;
    }
    .footer-top__brand {
        flex: none;
        max-width: 100%;
        margin-bottom: 28px;
    }
    .footer-top__sep {
        display: none;
    }
    .footer-top__contact-row {
        flex-wrap: wrap;
        gap: 24px;
    }
    .footer-mid {
        flex-wrap: wrap;
        gap: 28px;
    }
    .footer-mid__col {
        min-width: 140px;
    }
}
@media (max-width: 575.98px) {
    .site-footer { padding: 36px 0 0; }
    .footer-top__brand {
        padding: 20px 18px;
    }
    .footer-top__contact-row {
        flex-direction: column;
    }
    .footer-mid {
        flex-direction: column;
        gap: 20px;
    }
}

.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Botão Flutuante WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0px 6px 16px rgba(0,0,0,0.4);
}
.floating-whatsapp svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

/* FAQ Global Component */
.global-faq-item { margin-bottom: 12px; border: none; background: transparent; }
.global-faq-item__btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 16px 24px; font-family: 'Mulish', sans-serif;
    font-weight: 700; font-size: .92rem; color: #fff; background: var(--color-primary);
    border: none; border-radius: 24px; cursor: pointer; text-align: left; gap: 12px;
    transition: background .25s ease, border-radius .25s ease;
    list-style: none; /* Hide default arrow in standard browsers */
}
.global-faq-item__btn::-webkit-details-marker { display: none; }
.global-faq-item__btn span { flex: 1; }
details[open] .global-faq-item__btn { border-radius: 24px 24px 0 0; margin-bottom: 0; }
.global-faq-item__btn:hover { background: #07397a; }
.global-faq-item__btn:focus { outline: none; }
.global-faq-item__body { background: #f5f7fa; border-radius: 0 0 24px 24px; overflow: hidden; margin-top: -1px; }
.global-faq-item__content { padding: 20px 28px 24px; font-size: .93rem; line-height: 1.7; color: #333; }

/* ── Global Page Header ── */
.global-page-header {
    background: linear-gradient(rgba(6, 48, 99, 0.9), rgba(6, 48, 99, 0.95)), 
                url('../images/bg-pattern.png'), var(--color-primary);
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    margin-bottom: 40px;
    border-bottom: 6px solid var(--color-accent);
}
.global-page-header__title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
.global-page-header__subtitle {
    color: rgba(255,255,255,0.7);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ── Global Product Card ── */
.global-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.global-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.global-product-card__link { display: block; height: 100%; text-decoration: none; color: inherit; }
.global-product-card__img-wrap {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
}
.global-product-card__img-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.global-product-card:hover .global-product-card__img-wrap img { transform: scale(1.08); }

.global-product-card__body { padding: 20px; text-align: left; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.global-product-card__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.global-product-card__cat:hover {
    color: var(--color-primary);
}
.global-product-card__title-link {
    text-decoration: none;
    display: block;
}
.global-product-card__title-link:hover .global-product-card__title {
    color: var(--color-accent);
}
.global-product-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}
.global-product-card__desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.global-product-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 4px;
}

.global-product-card__actions .btn {
    min-width: 0;
    white-space: nowrap;
}

.global-product-card__btn {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}
.global-product-card:hover .global-product-card__btn {
    background: var(--color-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    border-bottom: none;
}

/* ── Grid de produtos (site todo) ── */
.global-products-grid,
.inicio-produtos-grid,
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 40px;
}

@media (max-width: 1199.98px) {
    .global-products-grid,
    .inicio-produtos-grid,
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .global-products-grid,
    .inicio-produtos-grid,
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
        row-gap: 30px;
    }
}

.lead-interest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.lead-interest-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.3;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lead-interest-item:has(input:checked) {
    border-color: var(--color-accent);
    background: #fffbf0;
}

.lead-interest-item input {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .global-product-card__body {
        padding: 14px 12px 16px;
    }

    .global-product-card__actions {
        flex-direction: column;
        gap: 0.4rem;
    }

    .global-product-card__actions .btn {
        width: 100%;
        flex: none;
    }

    .category-filter-btn {
        font-size: 0.68rem;
        padding: 0.3rem 0.75rem;
        min-height: 32px;
    }
}


/* ── Floating Cart Button ── */
.floating-cart-wrapper {
    position: fixed;
    bottom: 110px; /* Acima do botão do whatsapp */
    right: 30px;
    z-index: 9999;
}
.floating-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid #fff;
}
.floating-cart:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}
.floating-cart.has-items {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Modal Cart List */
.cart-items-list .remove-from-cart {
    padding: 5px;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}
.cart-items-list .remove-from-cart:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .floating-cart-wrapper { bottom: 100px; right: 20px; }
    .floating-cart { width: 50px; height: 50px; }
}

/* ── Category Minimal Card ── */
.category-minimal-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.category-minimal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--color-accent) !important;
}

/* Modal Cart List Refinement */
.cart-items-list {
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 8px;
    padding: 0 15px;
}
.cart-items-list ul li {
    padding: 12px 0;
}
.cart-items-list ul li:last-child {
    border-bottom: none !important;
}
