/* ============================================================
   MODAL DE VISUALIZAÇÃO RÁPIDA DO PRODUTO
   Estilos para o Quick View Modal
   ============================================================ */

.product-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.product-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.product-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-modal-close:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.product-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

/* ============================================================
   GALERIA DE IMAGENS
   ============================================================ */

.product-modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-modal-main-image {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.product-modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-modal-main-image:hover img {
    transform: scale(1.05);
}

.product-modal-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

.product-modal-thumbnail {
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border: 2px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-thumbnail:hover {
    border-color: #00B853;
}

.product-modal-thumbnail.active {
    border-color: #00B853;
    background: #f0f9f5;
}

.product-modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================
   INFORMAÇÕES DO PRODUTO
   ============================================================ */

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-modal-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.product-modal-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-modal-rating .product-modal-stars {
    display: flex;
    gap: 2px;
}

.product-modal-rating .product-modal-star {
    font-size: 14px;
    color: #ddd;
}

.product-modal-rating .product-modal-star.filled {
    color: #FFC107;
}

.product-modal-rating .product-modal-star.half {
    background: linear-gradient(90deg, #FFC107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-modal-rating .product-modal-reviews-count {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.product-modal-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-modal-price-current {
    font-size: 28px;
    font-weight: 700;
    color: #00B853;
}

.product-modal-price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.product-modal-price-discount {
    background: #FF6B6B;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-modal-description {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* ============================================================
   INFORMAÇÕES DO VENDEDOR
   ============================================================ */

.product-modal-seller {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-modal-seller-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.product-modal-seller-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid #eee;
    overflow: hidden;
}

.product-modal-seller-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-seller-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-modal-seller-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.product-modal-seller-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.product-modal-seller-rating .product-modal-stars {
    display: flex;
    gap: 2px;
}

.product-modal-seller-rating .product-modal-star {
    font-size: 12px;
    color: #ddd;
}

.product-modal-seller-rating .product-modal-star.filled {
    color: #FFC107;
}

.product-modal-seller-rating .product-modal-rating-value {
    color: #666;
}

.product-modal-seller-link {
    color: #00B853;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: color 0.3s ease;
}

.product-modal-seller-link:hover {
    color: #00A049;
}

/* ============================================================
   DISPONIBILIDADE
   ============================================================ */

.product-modal-availability {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f0f9f5;
    border-radius: 6px;
    border-left: 4px solid #00B853;
}

.product-modal-availability-status {
    color: #00B853;
    font-weight: 600;
    font-size: 14px;
}

.product-modal-availability-quantity {
    color: #666;
    font-size: 12px;
}

/* ============================================================
   OPÇÕES DO PRODUTO
   ============================================================ */

.product-modal-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-modal-product-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-modal-product-option-label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.product-modal-product-option-values {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-modal-product-option-value {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    background: white;
    color: #333;
}

.product-modal-product-option-value:hover {
    border-color: #00B853;
    background: #f0f9f5;
}

.product-modal-product-option-value.active {
    background: #00B853;
    color: white;
    border-color: #00B853;
}

/* ============================================================
   QUANTIDADE
   ============================================================ */

.product-modal-quantity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-modal-quantity label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.product-modal-quantity-selector {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.product-modal-qty-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.product-modal-qty-btn:hover {
    background: #e0e0e0;
}

#modalQuantityInput {
    border: none;
    width: 60px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

#modalQuantityInput:focus {
    outline: none;
}

/* ============================================================
   BOTÕES DE AÇÃO
   ============================================================ */

.product-modal-actions {
    display: flex;
    gap: 10px;
}

.product-modal-btn-add-to-cart,
.product-modal-btn-wishlist {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.product-modal-btn-add-to-cart {
    background: #00B853;
    color: white;
}

.product-modal-btn-add-to-cart:hover {
    background: #00A049;
}

.product-modal-btn-add-to-cart svg {
    width: 16px;
    height: 16px;
}

.product-modal-btn-wishlist {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.product-modal-btn-wishlist:hover {
    background: #e0e0e0;
}

.product-modal-btn-wishlist svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   BOTÃO WHATSAPP
   ============================================================ */

.product-modal-btn-whatsapp-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 13px;
}

.product-modal-btn-whatsapp-modal:hover {
    background: #1FAE52;
}

/* ============================================================
   COMPARTILHAR
   ============================================================ */

.product-modal-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.product-modal-share-label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.product-modal-share-buttons {
    display: flex;
    gap: 8px;
}

.product-modal-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-share-btn:hover {
    transform: translateY(-2px);
}

.product-modal-share-btn.facebook {
    color: #1877F2;
}

.product-modal-share-btn.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.product-modal-share-btn.twitter {
    color: #000;
}

.product-modal-share-btn.twitter:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.product-modal-share-btn.pinterest {
    color: #E60023;
}

.product-modal-share-btn.pinterest:hover {
    background: #E60023;
    color: white;
    border-color: #E60023;
}

.product-modal-share-btn.whatsapp {
    color: #25D366;
}

.product-modal-share-btn.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

/* ============================================================
   LINK PÁGINA COMPLETA
   ============================================================ */

.product-modal-btn-view-full {
    display: block;
    text-align: center;
    color: #00B853;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 12px;
    border: 1px solid #00B853;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-modal-btn-view-full:hover {
    background: #00B853;
    color: white;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 768px) {
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .product-modal-main-image {
        height: 300px;
    }

    .product-modal-title {
        font-size: 20px;
    }

    .product-modal-price-current {
        font-size: 24px;
    }

    .product-modal-actions {
        flex-direction: column;
    }

    .product-modal-btn-add-to-cart,
    .product-modal-btn-wishlist {
        width: 100%;
    }

    .product-modal-seller {
        flex-direction: column;
        text-align: center;
    }

    .product-modal-seller-link {
        width: 100%;
    }

    .product-modal-share {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-modal {
        width: 95%;
        max-height: 95vh;
    }

    .product-modal-content {
        padding: 15px;
        gap: 15px;
    }

    .product-modal-main-image {
        height: 250px;
    }

    .product-modal-title {
        font-size: 18px;
    }

    .product-modal-price-current {
        font-size: 20px;
    }

    .product-modal-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .product-modal-thumbnail {
        width: 60px;
        height: 60px;
    }
}
