/**
 * Estilos para página de produto individual
 * Baseado na referência: mariaritadecor.com
 */

/* Container principal */
.single-product-container {
    padding: 20px 0;
}

/* Breadcrumb */
.product-breadcrumb {
    margin-bottom: 20px;
}

.product-breadcrumb .woocommerce-breadcrumb {
    font-size: 14px;
    color: #666;
}

.product-breadcrumb .woocommerce-breadcrumb a {
    color: #6BC198;
    text-decoration: none;
}

.product-breadcrumb .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Título do produto */
.product-title-wrapper {
    margin-bottom: 15px;
}

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

/* Meta informações (SKU e estoque) */
.product-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.product-sku {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sku-label {
    font-weight: 600;
    color: #666;
}

.sku-value {
    color: #333;
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.product-availability .stock {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

.stock.in-stock {
    background: #e7f5f0;
    color: #2a7a5c;
}

.stock.out-of-stock {
    background: #fdeaea;
    color: #c5392d;
}

.stock.on-backorder {
    background: #fff3cd;
    color: #856404;
}

/* Preços */
.product-price-wrapper {
    margin-bottom: 25px;
}

.product-price-wrapper .price {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.product-price-wrapper .price del {
    font-size: 24px;
    color: #999;
    margin-right: 10px;
}

.product-price-wrapper .price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Informações de pagamento */
.payment-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6BC198;
}

.pix-price-info {
    font-size: 16px;
    margin-bottom: 8px;
    color: #2a7a5c;
}

.pix-price-info strong {
    color: #1a5d42;
    font-size: 18px;
}

.installment-info {
    font-size: 14px;
    color: #666;
}

.installment-info strong {
    color: #333;
}

/* Variações do produto */
.product-variations-wrapper {
    margin-bottom: 25px;
}

.variation-selector {
    margin-bottom: 15px;
}

.variation-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.variation-selector select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.variation-selector select:focus {
    outline: none;
    border-color: #6BC198;
}

/* Ações do produto */
.product-actions-wrapper {
    background: #fff;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.quantity-selector .qty {
    width: 100px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-add-to-cart {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #6BC198 0%, #5BAE87 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #5BAE87 0%, #4A9B73 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 193, 152, 0.4);
}

.wishlist-button {
    display: flex;
    align-items: center;
}

.wishlist-button a {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wishlist-button a:hover {
    border-color: #6BC198;
    color: #6BC198;
}

/* Calculadora de frete */
.shipping-calculator-wrapper {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.shipping-calculator-wrapper h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}


/* Compartilhamento e ferramentas */
.product-sharing-wrapper {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-sharing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-sharing span {
    color: #666;
    font-weight: 600;
}

.share-facebook,
.share-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-facebook {
    background: #1877f2;
    color: #fff !important;
}

.share-facebook .fab{
    color: #fff !important;
}

.share-facebook:hover {
    background: #166fe5 !important;
    transform: scale(1.1);
}

.share-whatsapp {
    background: #25d366;
    color: #fff !important;
}

.share-whatsapp .fab{
    color: #fff !important;
}

.share-whatsapp:hover {
    background: #22c55e !important;
    transform: scale(1.1);
}

/* Produtos relacionados */
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

/* Responsivo */
@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
    }

    .product-meta-info {
        flex-direction: column;
        gap: 10px;
    }

    .product-price-wrapper .price {
        font-size: 28px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-to-cart {
        min-width: auto;
    }

    .product-tools {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-sharing {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .single-product-container {
        padding: 10px 0;
    }

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

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

    .product-actions-wrapper {
        padding: 15px;
    }

    .shipping-calculator-wrapper {
        padding: 15px;
    }
}