﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --vitrine-primaria: #c86428;
    --vitrine-primaria-hover: #a8501c;
    --vitrine-borda: #e5e7eb;
    --vitrine-fundo: #ffffff;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background-color: var(--vitrine-fundo);
    color: #1f2937;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

#loading {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vitrine-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--vitrine-borda);
    padding: 10px 0;
}

.vitrine-header img {
    height: 68px;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
}

.titulo-categoria-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 14px;
}

.titulo-categoria-box h2 {
    margin: 0;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #111827;
    white-space: nowrap;
}

.titulo-categoria-box .linha-titulo {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.card-vitrine {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.card-vitrine:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff !important;
    border: none !important;
}

.vitrine-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 210px;
    background-color: transparent;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vitrine-img-box .swiper,
.vitrine-img-box .swiper-wrapper,
.vitrine-img-box .swiper-slide {
    width: 100%;
    height: 100%;
}

.vitrine-img-box .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vitrine-img-box img {
    max-width: 85%;
    max-height: 185px;
    object-fit: contain;
    border-radius: 6px;
}

.tags-topo {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    z-index: 20 !important;
}

.tags-topo .tag-departamento,
.tags-topo .tag-oferta {
    position: static !important;
    top: auto !important;
    left: auto !important;
    padding: 3px 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 6px;
    white-space: nowrap;
}

.tags-topo .tag-departamento {
    background-color: #f1f1f1;
    color: #000000;
    font-size: 0.6rem;
}

.tags-topo .tag-oferta {
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.65rem;
}

.produto-titulo {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #111827;
    margin-bottom: 4px;
    text-align: center;
}

.produto-specs {
    font-size: 0.7rem !important;
    color: #6b7280;
    text-align: center;
    margin-bottom: 10px;
}

/* Bloco de linhas e valores com fundo cinza bem clarinho */
.precos-vitrine {
    background-color: #f8f9fa !important;
    border: 1px solid #f1f3f5;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: auto;
}

.linha-preco-tecido {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.6rem !important;
    border-bottom: 1px dashed #e5e7eb;
}

.linha-preco-tecido:last-child {
    border-bottom: none;
}

.valor-antigo {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.65rem;
    margin-right: 4px;
}

.valor-promo {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.65rem;
}

.valor-venda {
    color: #111827;
    font-weight: 700;
    font-size: 0.65rem;
}

.btn-whats-vitrine {
    background-color: #198754;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-whats-vitrine:hover {
    background-color: #157347;
    color: #ffffff;
}

.banner-vitrine {
    display: block;
    width: 100%;
    max-width: 1140px;
    /*height: 300px;*/
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    cursor: pointer;
}

.departamento-card {
    background: #ffffff;
    border: none !important;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.6rem !important;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.departamento-card:hover {
    /*background: var(--vitrine-primaria);*/
    background: #f1f1f1;
    border: none;
    color: #ffffff;
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#overlay img {
    max-width: 92%;
    max-height: 90%;
    border-radius: 8px;
}

footer {
    background-color: #212529;
    color: #e5e7eb;
    padding: 24px 0;
    margin-top: auto;
    font-size: 0.78rem;
}

footer a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .banner-vitrine {
        height: 130px;
        border-radius: 8px;
    }
}