/* --- PRODUTOS E BOTÕES --- */
.product-card {
    text-align: left;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out backwards;
}

.image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--gray-light);
    margin-bottom: 15px;
    cursor: zoom-in;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out; 
    pointer-events: none;
    transform-origin: center center;
}

.exclusive-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gold-premium);
    padding: 5px 12px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border: 1px solid var(--gold-premium);
    z-index: 10;
}

.product-info h3 {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.product-info p { font-size: 1rem; font-weight: 700; }

.add-btn {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0; 
    transition: all 0.3s;
}

.product-card:hover .add-btn { opacity: 1; }

.promo-box { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.old-price { color: #999; text-decoration: line-through; font-size: 0.8rem; }
.discount-tag { background: #ff4444; color: white; padding: 2px 6px; border-radius: 2px; font-size: 0.7rem; font-weight: 700; }
.current-price.sale { color: #ff4444; }

/* --- MODAL DE PRODUTO --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: white;
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    position: relative;
    overflow-y: auto;
    display: flex;
}

.modal-close {
    position: absolute;
    top: 20px; right: 25px;
    background: none; border: none;
    font-size: 2rem; cursor: pointer; z-index: 100;
}

.modal-body { display: grid; grid-template-columns: 1.2fr 1fr; width: 100%; }

.modal-gallery-section { display: flex; padding: 30px; gap: 20px; background: #fafafa; }
.thumbnails-strip { display: flex; flex-direction: column; gap: 10px; width: 80px; }

.thumb-img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    cursor: pointer; border: 1px solid #eee; opacity: 0.5; transition: 0.3s;
}
.thumb-img.active { opacity: 1; border-color: #000; }

.main-image-container {
    flex-grow: 1; 
    overflow: hidden;
    cursor: zoom-in;
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative;
    background: #fff;
}

#modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out; 
    transform-origin: center;
    pointer-events: none; 
    display: block;
}

.main-image-container.mobile-zoom #modal-main-img { 
    transform: scale(2.2) !important; 
    cursor: zoom-out; 
}

.modal-info-section { padding: 60px 40px; display: flex; flex-direction: column; gap: 20px; }
#modal-title { font-family: var(--font-title); font-size: 2rem; }
.modal-price { font-size: 1.6rem; font-weight: 700; }
.modal-installments { color: #666; font-size: 0.9rem; margin-top: -10px; }

.option-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chip-btn {
    padding: 10px 20px; border: 1px solid #ddd; background: white;
    cursor: pointer; font-size: 0.8rem; transition: 0.3s; min-width: 50px;
}
.chip-btn.selected { background: black; color: white; border-color: black; }

.modal-qty-controls {
    display: flex; align-items: center; gap: 15px; margin-top: 10px;
}
.modal-qty-controls button {
    background: #f4f4f4; border: 1px solid #ddd; width: 35px; height: 35px;
    cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.modal-qty-controls button:hover { background: #e0e0e0; }
.modal-qty-controls span { font-size: 1.2rem; font-weight: bold; min-width: 20px; text-align: center; }

.modal-add-btn {
    margin-top: auto; background: #000; color: white;
    padding: 18px; border: none; font-weight: 700;
    letter-spacing: 2px; cursor: pointer;
}

/* Modais de Ajuda (Como comprar, etc) */
.help-content div p { margin-bottom: 15px; font-size: 0.9rem; line-height: 1.6; }
.help-content .whatsapp-btn { margin-top: 10px; margin-bottom: 10px; }

/* --- SACOLA E OVERLAY --- */
.cart-sidebar {
    position: fixed; top: 0; right: -450px;
    width: 400px; height: 100%; background: white;
    z-index: 3000; transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 25px; 
    display: flex; 
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.05);
}
.cart-sidebar.open { right: 0; }

#cart-items {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 20px 0;
    padding-right: 10px;
}

#cart-items::-webkit-scrollbar { width: 5px; }
#cart-items::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr; /* Removida a 3ª coluna para dar mais espaço */
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 2px; }
.cart-item-info h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }

/* Novos estilos para os botões de quantidade */
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cart-qty-controls button {
    background: #f4f4f4;
    border: 1px solid #ddd;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #000;
    transition: 0.2s;
}

.cart-qty-controls button:hover {
    background: #e0e0e0;
}

.cart-qty-controls span {
    font-size: 0.85rem;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

.checkout-container { padding-top: 20px; border-top: 1px solid #eee; text-align: center; margin-top: auto; }

.whatsapp-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    padding: 18px; background-color: #000; color: #fff; border: none; text-decoration: none;
    font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; transition: opacity 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #1a1a1a; transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15); opacity: 0.8;
}
.whatsapp-btn i { font-size: 1.2rem; }

#overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 2500; display: none;
}
#overlay.active { display: block; }

/* Botão Voltar ao Topo / Vitrines */
#back-to-top {
    position: fixed; bottom: 40px; right: 40px; background: #000; color: #fff;
    width: 60px; height: 60px; border: none; cursor: pointer; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#back-to-top::after { content: 'VITRINES'; font-size: 0.5rem; letter-spacing: 1px; margin-top: 5px; font-family: var(--font-main); }
#back-to-top i { font-size: 1.2rem; }
#back-to-top:hover { background: #1a1a1a; transform: translateY(-5px); }

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
#whatsapp-floating {
    position: fixed; bottom: 40px; left: 40px; 
    background: #25D366; color: #fff; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; z-index: 2000; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#whatsapp-floating:hover { transform: translateY(-5px) scale(1.05); }

/* --- MENSAGEM DE SACOLA VAZIA --- */
.empty-cart-msg {
    text-align: center; padding: 50px 20px; color: #555;
    display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;
}

/* RESPONSIVIDADE COMPONENTES */
@media (max-width: 768px) {
    .image-container { height: 280px; }
    .add-btn { opacity: 1; font-size: 0.6rem; padding: 10px; }
    .modal-content { flex-direction: column; height: 95vh; }
    .modal-body { grid-template-columns: 1fr; }
    .modal-gallery-section { flex-direction: column-reverse; height: 50vh; padding: 15px; }
    .thumbnails-strip { flex-direction: row; width: 100%; height: 60px; }
    .modal-info-section { padding: 30px 20px; }
    .cart-sidebar { width: 100%; }
    
    /* Ajusta os botões flutuantes no celular para não atrapalharem a leitura */
    #whatsapp-floating { bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 1.5rem; }
    #back-to-top { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}