/**
 * Estilos da Vitrine Pública e Catálogo
 * Design Moderno, Limpo, Mobile-First
 */

:root {
    --bs-font-sans-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --primary-color: #0f172a;
    --accent-color: #2563eb;
    --success-color: #16a34a;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: #1e293b;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.775rem; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.05em; }
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* Banner Hero */
.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #ffffff;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

/* Card do Produto na Vitrine */
.product-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.product-card .img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 85%; /* Proporção quase quadrada elegante */
    overflow: hidden;
    background-color: #f1f5f9;
}

.product-card .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .img-wrapper img {
    transform: scale(1.04);
}

.product-card .badge-destaque {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-card .badge-categoria {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
}

/* Botão Flutuante do WhatsApp */
.btn-floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-floating-whatsapp:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Filtro de Categorias em Chips Horizontais */
.category-filter-scroll {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
}

.category-filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.category-filter-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.btn-category-chip {
    border-radius: 9999px;
    padding: 0.45rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
}

.btn-category-chip:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-category-chip.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.25);
}

/* Galeria do Produto Individual */
.product-gallery-main {
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.product-gallery-main img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumb-item.active, .thumb-item:hover {
    border-color: #2563eb;
    opacity: 0.9;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
