/* Shared for Colecao and Produto */
:root { 
    --text-dark: #1a1a1a; 
    --text-gray: #7a7a7a; 
    --warning-red: #ff4d4d; 
    --bg-white: #fdfdfd; 
    --banner-bg: #fff0f0; 
    --footer-bg: #111111; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

body { 
    animation: fadeInPage 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    font-family: 'Montserrat', sans-serif; 
    background: var(--bg-white); 
    color: var(--text-dark); 
}

.top-nav { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 18px 20px; 
    position: relative; 
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    z-index: 10;
}

.top-nav button { 
    position: absolute; 
    left: 20px; 
    background: none; 
    border: none; 
    font-size: 0.9rem; 
    color: var(--text-gray); 
    cursor: pointer; 
}

.nav-logo { 
    width: 130px; 
    object-fit: contain; 
}

.black-banner { 
    background: linear-gradient(90deg, #111 0%, #333 50%, #111 100%); 
    color: #fff; 
    font-size: 0.75rem; 
    letter-spacing: 2.5px; 
    text-align: center; 
    padding: 12px; 
    font-weight: 600; 
    text-transform: uppercase;
}

.warning-banner { 
    background: var(--banner-bg); 
    color: var(--warning-red); 
    text-align: center; 
    padding: 15px 20px; 
    font-size: 0.8rem; 
    font-weight: 500; 
    line-height: 1.4;
}

/* Countdown Bar */
.countdown-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e60023, #cc001f);
    color: #fff;
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.countdown-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.countdown-timer {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.collection-header { 
    text-align: center; 
    padding: 40px 20px 30px 20px; 
}

.collection-header span { 
    font-size: 0.8rem; 
    letter-spacing: 3px; 
    color: #e60023;
    font-weight: 700;
}

.collection-header h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.4rem; 
    font-weight: 400; 
    margin: 15px 0 10px 0; 
    color: var(--text-dark);
}

.collection-header p { 
    font-size: 0.9rem; 
    color: var(--text-gray); 
}

.product-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px 15px; 
    padding: 0 15px 60px 15px; 
    max-width: 600px; 
    margin: 0 auto; 
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.product-card:active {
    transform: scale(0.98);
} 

.product-img-wrapper { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 3/4; 
    overflow: hidden; 
    background: #f5f5f5; 
    margin-bottom: 0;
}

.product-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.badge { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px); 
    color: #fff; 
    padding: 6px 14px; 
    border-radius: 20px;
    font-size: 0.65rem; 
    letter-spacing: 1.5px; 
    font-weight: 700; 
    z-index: 2;
}

.product-info { 
    padding: 15px 12px; 
    text-align: left;
}

.product-name { 
    font-size: 0.85rem; 
    font-weight: 500; 
    margin-bottom: 8px; 
    line-height: 1.4; 
}

.price-line { 
    display: flex; 
    align-items: baseline; 
    flex-wrap: wrap;
    gap: 6px; 
    margin-bottom: 8px; 
}

.price-free { 
    font-weight: 800; 
    font-size: 1.15rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.price-old { 
    color: var(--warning-red); 
    text-decoration: line-through; 
    font-size: 0.9rem; 
    font-weight: 600;
    white-space: nowrap;
}

.stars { 
    font-size: 0.8rem; 
    color: #ffb800; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}

.stars span { 
    color: var(--text-gray); 
    font-weight: 500;
}

/* Footer Escuro (Idêntico ao solicitado) */
footer { 
    background: var(--footer-bg); 
    color: #fff; 
    padding: 50px 25px; 
}

.footer-logo { 
    width: 120px; 
    margin-bottom: 25px; 
    /* Truque CSS para inverter as cores da logo preta para branca no footer */
    filter: invert(1) brightness(100); 
    object-fit: contain;
}

.footer-desc { 
    font-size: 0.85rem; 
    color: #aaa; 
    line-height: 1.6; 
    margin-bottom: 50px; 
}

.footer-section { 
    margin-bottom: 35px; 
}

.footer-section h3 { 
    font-size: 0.85rem; 
    letter-spacing: 3px; 
    margin-bottom: 20px; 
    font-weight: 500; 
    color: #ffffff;
}

.footer-section p, 
.footer-section a { 
    color: #aaa; 
    font-size: 0.85rem; 
    margin-bottom: 12px; 
    display: block; 
    text-decoration: none; 
    line-height: 1.5; 
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-dark);
}

/* Sidebar Menu */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 999;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
    background: #fff; z-index: 1000; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar.active { transform: translateX(300px); }

.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #eee; background: #fafafa;
}
.sidebar-title { font-weight: 700; font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.close-sidebar { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #555; }

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { border-bottom: 1px solid #f5f5f5; }
.sidebar-nav a {
    display: block; padding: 18px 20px; color: #333; text-decoration: none;
    font-weight: 500; font-size: 0.95rem; transition: 0.2s;
}
.sidebar-nav a:hover { background: #f9f9f9; color: var(--text-dark); padding-left: 25px; }
.sidebar-nav hr { border: 0; height: 8px; background: #f5f5f5; margin: 0; }


/* Product Page specific */
.product-page-container { 
    max-width: 500px; 
    margin: 0 auto; 
    padding: 30px 20px; 
}

.product-detail-img { 
    width: 100%; 
    aspect-ratio: 3/4; 
    object-fit: cover; 
    margin-bottom: 25px; 
}

.product-detail-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.2rem; 
    margin-bottom: 15px; 
    color: var(--text-dark);
}

.btn-checkout {
    display: block; width: 100%; border: none; background: #00c16e; color: #fff;
    padding: 18px; font-size: 1.1rem; font-weight: 700; letter-spacing: 2px;
    border-radius: 12px;
    cursor: pointer; margin-bottom: 15px; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 193, 110, 0.3);
}
.btn-checkout:hover { 
    background: #00a85f; 
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 193, 110, 0.4);
}
.btn-checkout:active {
    transform: scale(0.98);
}
