/* assets/css/loja.css */

body {
    background: #f7f6f5;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.navbar-custom {
    background: #fff !important;
    box-shadow: 0 2px 8px #0002;
    padding-top: 0.7em; padding-bottom: 0.7em;
}
.navbar-brand img { height: 52px; }
.nav-link, .dropdown-toggle { color: #2e2e2e; font-weight: 500; }
.navbar .form-control:focus { box-shadow: 0 0 0 .08rem #e1a61b44; border-color: #e1a61b; }
.btn-icon {
    background: none;
    border: none;
    position: relative;
    font-size: 1.28em;
    padding: 0 7px;
    color: #333;
    transition: color .14s;
}
.btn-icon:hover { color: #e1a61b; }
.btn-icon .badge {
    font-size: .77em; position: absolute; top: 2px; right: 3px; background: #e1a61b; color: #2a1d06;
}
.search-bar {
    max-width: 480px;
    width: 100%;
    border-radius: 12px;
    background: #f5f4f2;
    border: 1.5px solid #ede9e1;
    font-size: 1.11em;
    padding: .7em 1.2em;
}
.subnavbar {
    background: #faf9f6;
    border-bottom: 1px solid #e7e3da;
    padding: 0.45em 0;
}
.dropdown-menu {
    min-width: 220px;
    max-height: 340px;
    overflow-y: auto;
}
.carousel-main .carousel-item img {
    max-height: 310px;
    object-fit: cover;
    border-radius: 1.1em;
}

@media (max-width:900px) {
    .search-bar { max-width: 100%; font-size: 1em; }
    .navbar-brand img { height: 38px; }
}
@media (max-width:600px) {
    .carousel-main .carousel-item img { max-height: 170px; }
}
.lancamento-card {
    transition: box-shadow .2s;
    cursor: pointer;
}
.lancamento-card:hover {
    box-shadow: 0 6px 20px #0001, 0 2px 8px #e1a61b3d;
    border-color: #e1a61b50;
}

.lancamentos-infinite-slider {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
}

#sliderLancamentos {
    display: flex;
    flex-direction: row;
    gap: 1rem; /* ou seu gap padrão */
    min-width: 100%;
    /* ESSENCIAL: */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Remove qualquer "scrollbar" vertical */
}

.lancamento-card {
    min-width: 235px;
    max-width: 235px;
    flex: 0 0 235px;
}
@media (max-width: 800px) {
    .lancamento-card { min-width: 76vw; max-width: 76vw; }
}
@media (max-width: 500px) {
    .lancamento-card { min-width: 95vw; max-width: 95vw; }
}

.ofertas-scroll::-webkit-scrollbar { height: 7px; }
.ofertas-scroll::-webkit-scrollbar-thumb { background: #eadba9; border-radius: 9px; }
.oferta-card { border:1.5px solid #f4eee3; cursor:pointer; transition:box-shadow .18s, border .13s; }
.oferta-card:hover, .oferta-card.active { border:2px solid #e1a61b; box-shadow: 0 4px 18px #e1a61b18; }

@media (max-width: 700px) {
    .oferta-card { min-width: 120px; width:120px; }
}

.categoria-scroll::-webkit-scrollbar { height: 7px; }
.categoria-scroll::-webkit-scrollbar-thumb { background: #eadba9; border-radius: 8px; }
.produto-mini-card { border:1.2px solid #f0ece5; cursor:pointer; }
.produto-mini-card:hover { border:2px solid #e1a61b; box-shadow: 0 3px 10px #e1a61b18; }

.loja-navbar, .loja-subnav {
    background: #fff;
    border-bottom: 1.5px solid #ece9e4;
}
.loja-navbar .navbar-brand img { height:44px; }
.loja-subnav .dropdown-toggle { min-width: 120px; }
.loja-subnav .dropdown-menu { min-width: 180px; }
@media (max-width:600px) {
    .loja-navbar .navbar-brand img { height:32px; }
    .loja-subnav { font-size:.99em; gap:1rem; }
}
.oferta-card-modern {
    border: none;
    border-radius: 1.4rem;
    overflow: hidden;
    position: relative;
    background: #fff;
    min-width: 235px;
    width: 235px;
    height: 185px;
    transition: box-shadow .17s, transform .13s;
    outline: 3px solid transparent;
}
.oferta-card-modern:hover,
.oferta-card-modern:focus {
    outline: 3px solid #e1a61b;
    transform: scale(1.04) rotate(-0.5deg);
    z-index: 10;
}

.oferta-card-modern::before {
    /* Efeito de borda dourada gradiente ao redor do card */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.4rem;
    padding: 0.5px;
    background: linear-gradient(96deg, #ffe8b7 0%, #e1a61b 100%);
    z-index: 0;
    pointer-events: none;
    transition: opacity .16s;
    opacity: .84;
}

.oferta-card-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0; top: 0;
    z-index: 1;
    filter: brightness(1.1) contrast(1.09) saturate(1.10);
    transition: filter .22s;
}
.oferta-card-modern:hover .oferta-card-img-modern {
    filter: brightness(1.15) contrast(1.17) saturate(1.20) blur(0.3px);
}
.oferta-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,rgba(0,0,0,0.06) 40%,rgba(0,0,0,0.70) 100%);
    pointer-events: none;
}
.oferta-card-content-modern {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    width: 100%;
    padding: 1.15em 1.2em 1em 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center; 
    border-bottom-left-radius: 1.4rem;
    border-bottom-right-radius: 1.4rem;
}
.oferta-card-title-modern {
    color: #fffde9;
    font-size: 1.25em;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.17;

}
.oferta-card-desc-modern {
    color: #ffeec4;
    font-size: 1em;
    font-weight: 600;
    margin-top: 2px;
    text-shadow: 0 2px 9px #e1a61b99, 0 1px 4px #0007;
    filter: brightness(1.12);
}

@media (max-width:700px) {
    .oferta-card-modern, .oferta-card-modern:hover { min-width: 130px; width:130px; height:96px; }
    .oferta-card-content-modern { padding: 0.75em 0.5em 0.45em 0.7em; }
    .oferta-card-title-modern { font-size:1em; }
    .oferta-card-desc-modern { font-size:0.9em; }
}
.separador-categoria {
    width: 100%;
    background: linear-gradient(90deg, #fffbe8 40%, #fff3c6 100%);
    border-radius: 1em;
    box-shadow: 0 4px 16px #e1a61b14;
    padding: 1.2em 2em 1.1em 2em;
    margin-bottom: 2em;
    margin-top: 1.4em;
    text-align: center;
    display: block;
    letter-spacing: 0.02em;
    transition: box-shadow .15s, background .17s;
}
.separador-categoria:hover {
    background: linear-gradient(90deg, #fff6d1 30%, #ffe9a7 100%);
    box-shadow: 0 8px 28px #e1a61b25;
}
.separador-categoria h3,
.separador-categoria .fs-5 {
    margin: 0;
    color: #b58a1a;
    font-weight: 800;
    font-size: 1.23em;
    text-shadow: 0 2px 8px #e1a61b28, 0 1px 0 #fffbe8;
    letter-spacing: 0.045em;
}

@media (max-width: 600px) {
    .separador-categoria {
        padding: 0.8em 0.8em 0.7em 0.8em;
        font-size: 1em;
    }
    .separador-categoria h3,
    .separador-categoria .fs-5 {
        font-size: 1em;
    }
}
.btn-whatsapp-float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: #fff;
    font-size: 2.1em;
    border-radius: 50%;
    box-shadow: 0 8px 30px #25d36655, 0 1.5px 8px #2222;
    transition: background .16s, transform .13s;
    border: none;
}
.btn-whatsapp-float:hover, .btn-whatsapp-float:focus {
    background: #1ebe57;
    color: #fff;
    transform: scale(1.06);
    text-decoration: none;
}
@media (max-width: 600px) {
    .btn-whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 1.6em;
    }
}
.produtos-horizontal-list::-webkit-scrollbar {
    height: 10px;
}
.produtos-horizontal-list::-webkit-scrollbar-thumb {
    background: #e1a61b;
    border-radius: 10px;
}
.produtos-horizontal-list::-webkit-scrollbar-track {
    background: #f7f6f5;
}
@media (max-width:600px) {
    .produto-mini-card { min-width: 78vw !important; }
}
.lancamento-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 32px #0001;
    transition: box-shadow .22s, transform .18s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.lancamento-card:hover {
    box-shadow: 0 8px 46px #0002;
    transform: translateY(-5px) scale(1.03);
    border-color: #e1a61b !important;
}
.lancamento-card img {
    object-fit: cover;
    transition: transform .18s;
}
.lancamento-card:hover img {
    transform: scale(1.06) rotate(-2deg);
}
@media (max-width: 800px) {
    .lancamento-card { min-width: 76vw; max-width: 76vw; }
}
@media (max-width: 500px) {
    .lancamento-card { min-width: 95vw; max-width: 95vw; }
}

.btn-favorito {
    z-index: 2;
    background: #fff;
    border: none;
    border-radius: 50%;
    padding: 7px 10px;
    font-size: 1.15em;
    color: #e2322b;
    box-shadow: 0 2px 8px #0001;
    transition: background 0.17s;
}
.btn-favorito.favoritado,
.btn-favorito:hover {
    background: #e2322b;
    color: #fff;
}
.produto-mini-card, .lancamento-card { position: relative; }

.categoria-card-btn.active,
        .categoria-card-btn:active,
        .categoria-card-btn:focus {
            background: #e1a61b !important;
            color: #fff !important;
            border-color: #e1a61b !important;
            font-weight: 600;
        }
        #filtroCategoriasCards::-webkit-scrollbar { height: 8px; }
        #filtroCategoriasCards::-webkit-scrollbar-thumb { background: #eee; border-radius: 8px; }
        .btn-favorito {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            background: #fff;
            border: 1.5px solid #e2322b;
            border-radius: 50%;
            padding: 7px 11px;
            font-size: 1.15em;
            color: #e2322b;
            box-shadow: 0 2px 8px #0001;
            transition: background 0.17s, color 0.17s;
            cursor: pointer;
        }
        .btn-favorito.favoritado,
        .btn-favorito:hover {
            background: #e2322b;
            color: #fff;
            border-color: #e2322b;
        }
        .btn-favorito:disabled {
            opacity: 0.6;
            pointer-events: none;
        }
        .produto-mini-card, .lancamento-card { position: relative; }
        .categoria-card-btn {
            min-width: 110px;
            background: #fff;
            border-radius: 1.1em;
            font-weight: 500;
            letter-spacing: .01em;
            transition: all .12s;
            box-shadow: 0 2px 7px #0001;
        }
        .produtos-horizontal-list::-webkit-scrollbar { height: 8px; }
        .produtos-horizontal-list::-webkit-scrollbar-thumb { background: #eee; border-radius: 8px; }
        
        @media (max-width:600px) {
            .categoria-card-btn { min-width: 80px; font-size: 0.97em; padding: 6px 10px; }
            .produtos-horizontal-list { gap: .5rem !important; }
        }

.loja-filtros-row {
    gap: 1.1rem;
}

/* Garante o formato quadrado e centraliza a imagem */
.produto-card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    max-width: 180px; /* Ou o tamanho do card mini */
    margin-left: auto;
    margin-right: auto;
}


.produto-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform .2s;
    border-radius: inherit;
    background: #f9f9f9;
}

.produto-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;   /* Sempre quadrado */
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    min-width: 0;
    max-width: 400px;      /* Pode ajustar conforme o tamanho máximo do seu card */
    margin-left: auto;
    margin-right: auto;
}

.produto-img-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
    /* Evita ultrapassar o quadrado */
    display: block;
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 600px) {
    .produto-img-box {
        max-width: 90vw;
    }
}


/* Cards menores para mobile */
@media (max-width:600px) {
    .produto-card-img-wrapper {
        max-width: 78vw;
    }
}


@media (max-width: 700px) {
    .loja-filtros-row {
        gap: 0.7rem;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 0.7em;
    }
    .loja-filtros-row > * {
        flex: 0 0 auto !important;
        min-width: 120px;
        max-width: 170px;
    }
    .loja-filtros-row .dropdown-toggle {
        width: 100%;
        text-align: left;
        font-size: 1.02em;
        padding-left: 0.6em;
        padding-right: 0.6em;
    }
    .loja-filtros-row .dropdown-menu {
        min-width: 140px;
        max-width: 220px;
        font-size: .99em;
    }
}
@media (max-width: 420px) {
    .loja-filtros-row > * {
        min-width: 80px;
        max-width: 120px;
        font-size: .93em;
    }
}

.lancamento-card {
    min-width: 235px;
    max-width: 235px;
    flex: 0 0 235px;
    /* resto do estilo */
}
@media (max-width: 800px) {
    .lancamento-card { min-width: 76vw; max-width: 76vw; }
}
@media (max-width: 500px) {
    .lancamento-card { min-width: 95vw; max-width: 95vw; }
}