/* ============================================================
   CATÁLOGO VIRTUAL — TEMA CLARO "BLOOM"
   Paleta: Branco · Creme · Rosé Gold · Cinza Suave
   Para: Público Feminino 40+
   Importar via: Admin > Coleção > CSS Customizado
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Lato:wght@300;400;500;700&display=swap');

/* ─── Variáveis do Tema Claro ─────────────────────────── */
:root {
    --black:      #0a0a0a;
    --off-black:  #111114;
    --dark:       #f5f0eb;
    --mid:        #ede8e1;
    --border:     #ddd6cd;
    --white:      #1a1612;
    --off-white:  #3d3530;
    --text:       #2c2520;
    --text-muted: #7a6e68;
    --gold:       #b5705a;
    --gold-l:     #c98370;
    --gold-d:     #8a4f3c;
    --radius:     10px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Lato', sans-serif;
    --header-h:   80px;

    /* Cores exclusivas do tema claro */
    --bg-page:    #faf7f4;
    --bg-card:    #ffffff;
    --bg-header:  rgba(250, 247, 244, 0.95);
    --shadow-sm:  0 2px 12px rgba(0,0,0,0.07);
    --shadow-md:  0 6px 24px rgba(0,0,0,0.10);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.13);
    --accent:     #b5705a;
    --accent-bg:  rgba(181,112,90,0.08);
    --accent-bdr: rgba(181,112,90,0.25);
}

/* ─── Reset / Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--bg-page);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Header ───────────────────────────────────────────── */
.catalog-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(20px, 5vw, 60px);
}

.header-brand {
    font-family: var(--font-serif);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-brand .gold-dot { color: var(--accent); }

.header-seller {
    position: absolute;
    right: clamp(20px, 5vw, 60px);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-bg);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--accent-bdr);
}

@media (max-width: 600px) { .header-seller { display: none; } }

.seller-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ─── Contador de produtos ─────────────────────────────── */
.products-count {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 500;
}

/* ─── Product Grid ─────────────────────────────────────── */
.catalog-container {
    padding: clamp(32px, 5vw, 60px) clamp(16px, 4vw, 48px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: clamp(16px, 2.5vw, 28px);
}

/* ─── Product Card ─────────────────────────────────────── */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeUp .5s ease both;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    border-color: var(--accent-bdr);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card:hover .card-img-inner { transform: scale(1.04); }

.card-image-wrap {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: #f0ebe5;
}

.card-img-inner {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.card-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b8b0;
    font-size: 48px;
    background: linear-gradient(135deg, #f5efe9 0%, #ede4dc 100%);
}

.card-video-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--accent);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 18px 20px 22px;
}

.card-name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 6px;
}

.card-price {
    font-size: 16px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Botão Ver Tamanhos ───────────────────────────────── */
.btn-sizes-modal {
    background: var(--accent-bg) !important;
    border: 1px solid var(--accent-bdr) !important;
    color: var(--accent) !important;
}

/* ─── Botão WhatsApp ───────────────────────────────────── */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(181,112,90,0.30);
}

.btn-whatsapp:hover {
    background: var(--gold-l);
    box-shadow: 0 6px 20px rgba(181,112,90,0.40);
    transform: translateY(-1px);
}

.btn-whatsapp svg { flex-shrink: 0; }

/* ─── Botão Ver Detalhes ───────────────────────────────── */
.btn-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-detail:hover {
    border-color: var(--accent-bdr);
    color: var(--accent);
    background: var(--accent-bg);
}

/* ─── Empty State ──────────────────────────────────────── */
.empty-catalog {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-catalog-icon { font-size: 56px; margin-bottom: 20px; }

.empty-catalog h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--text);
    margin-bottom: 10px;
}

/* ─── Breadcrumb ───────────────────────────────────────── */
.breadcrumb {
    padding: 16px clamp(20px, 5vw, 60px);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: .3px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
}

.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ─── Página de Detalhe ────────────────────────────────── */
.detail-page { min-height: 100vh; }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 0;
    min-height: calc(100vh - var(--header-h) - 49px);
}

.detail-gallery { padding: 32px clamp(20px, 4vw, 48px); }

.gallery-main {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f0ebe5;
    margin-bottom: 12px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .3s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    color: var(--text);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.gallery-nav-btn:hover { background: #fff; box-shadow: var(--shadow-md); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--mid); }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.thumb-item {
    width: 68px; height: 68px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.thumb-item.active { border-color: var(--accent); }
.thumb-item:hover  { border-color: var(--accent-bdr); }
.thumb-item img    { width: 100%; height: 100%; object-fit: cover; }

/* Info Panel */
.detail-info {
    padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 52px);
    border-left: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--header-h);
    height: fit-content;
}

.detail-collection {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
}

.detail-name {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 20px;
}

.detail-price {
    font-size: 26px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
    flex: 1;
}

.detail-actions { display: flex; flex-direction: column; gap: 10px; }

.btn-whatsapp-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(181,112,90,0.30);
}

.btn-whatsapp-lg:hover {
    background: var(--gold-l);
    box-shadow: 0 8px 24px rgba(181,112,90,0.40);
    transform: translateY(-2px);
}

.btn-back-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-back-lg:hover {
    border-color: var(--accent-bdr);
    color: var(--accent);
    background: var(--accent-bg);
}

/* Video */
.detail-video {
    padding: 32px clamp(20px, 5vw, 60px);
    border-top: 1px solid var(--border);
    background: var(--bg-page);
}

.detail-video h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 20px;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; overflow: hidden;
    border-radius: var(--radius);
    background: #f0ebe5;
    box-shadow: var(--shadow-sm);
}

.video-wrap .video-embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ─── Footer ───────────────────────────────────────────── */
.catalog-footer {
    padding: 32px clamp(20px, 5vw, 60px);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: .3px;
    background: var(--bg-card);
}

.footer-brand {
    font-family: var(--font-serif);
    color: var(--accent);
    font-size: 17px;
    margin-bottom: 6px;
}

/* ─── Banners ──────────────────────────────────────────── */
.banner-dot.active { background: var(--accent) !important; }

/* ─── Modal de Tamanhos e Cores ────────────────────────── */
#sizesModal > div {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
}

#modalTitle { color: var(--text) !important; }

#modalRef   { color: var(--accent) !important; }

#sizesModal [style*="94a3b8"] {
    color: var(--text-muted) !important;
}

#modalSizes span {
    background: var(--accent-bg) !important;
    border-color: var(--accent-bdr) !important;
    color: var(--accent) !important;
}

#sizesModal button[onclick="closeSizesModal()"] {
    color: var(--text-muted) !important;
}

#sizesModal button[onclick="closeSizesModal()"]:hover {
    color: var(--text) !important;
}

/* ─── Skeleton Loading ─────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0ebe5 25%, #e8e0d8 50%, #f0ebe5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.6s infinite;
}

/* ─── Animações ────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-card:nth-child(1)  { animation-delay: .05s; }
.product-card:nth-child(2)  { animation-delay: .10s; }
.product-card:nth-child(3)  { animation-delay: .15s; }
.product-card:nth-child(4)  { animation-delay: .20s; }
.product-card:nth-child(5)  { animation-delay: .25s; }
.product-card:nth-child(6)  { animation-delay: .30s; }
.product-card:nth-child(n+7){ animation-delay: .35s; }

@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-info   { border-left: none; border-top: 1px solid var(--border); position: static; }
}

@media (max-width: 640px) {
    .product-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .catalog-container { padding: 20px 14px; }
    .gallery-main  { aspect-ratio: 1 / 1; }
}

@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr; }
}
