/* ===================================================
   PÁGINA DE DETALHES DO PRODUTO
   =================================================== */

.product-details-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 30px 0;
}

.product-details-page .container {
    max-width: 1200px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #8C04A4;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #6B0381;
}

.breadcrumb span:last-child {
    color: #333;
    font-weight: 500;
}

/* Área Principal do Produto */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Galeria de Imagens */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.gallery-thumbs img:hover {
    border-color: #C066E8;
}

.gallery-thumbs img.active {
    border-color: #8C04A4;
}

/* Informações do Produto */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.product-title {
    font-size: 28px;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

/* Avaliação */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 4px;
    color: #ffa500;
    font-size: 18px;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

/* Preço */
.product-price {
    padding: 20px;
    background: linear-gradient(135deg, #f9f5ff 0%, #fef9ff 100%);
    border-radius: 12px;
    border: 2px solid #E8D4F8;
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.prices {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 36px;
    color: #8C04A4;
    font-weight: 700;
}

.discount-badge {
    background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.savings-info {
    font-size: 14px;
    color: #4caf50;
    font-weight: 600;
}

.product-details-installments {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7a7a7a;
}

.product-details-installments i {
    font-size: 12px;
    color: #9aa0a6;
}

/* Estoque */
.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 15px;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.product-stock strong {
    color: #1b5e20;
    font-size: 18px;
}

.product-stock.out-of-stock {
    color: #d32f2f;
    background: #ffebee;
    border-left-color: #f44336;
}

/* Ações do Produto */
.product-details-page .product-info-section .product-actions {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100%;
    display: block !important;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    margin: 15px 0;
    top: auto !important;
    left: auto !important;
}

.product-details-page .product-info-section .quantity-wrapper {
    margin-bottom: 15px;
    display: block !important;
}

.product-details-page .product-info-section .quantity-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.product-details-page .product-info-section .quantity-selector {
    display: inline-flex !important;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    position: static !important;
}

.product-details-page .product-info-section .quantity-selector button {
    width: 45px;
    height: 50px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    display: inline-block !important;
    position: static !important;
}

.product-details-page .product-info-section .quantity-selector button:hover {
    background: #8C04A4;
    color: white;
}

.product-details-page .product-info-section .quantity-selector input {
    width: 70px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: inline-block !important;
}

.product-details-page .product-info-section .btn-add-cart {
    width: 100%;
    min-height: 56px;
    background: linear-gradient(135deg, #8C04A4 0%, #C066E8 100%) !important;
    color: white !important;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(140, 4, 164, 0.3);
    margin-top: 15px;
    display: block !important;
    position: static !important;
    opacity: 1 !important;
}

.product-details-page .product-info-section .btn-add-cart i {
    margin-right: 10px;
}

.product-details-page .product-info-section .btn-add-cart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(140, 4, 164, 0.5);
}

.product-details-page .product-info-section .btn-out-stock {
    width: 100%;
    min-height: 56px;
    background: #ccc !important;
    color: #666 !important;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: not-allowed;
    display: block !important;
    position: static !important;
    opacity: 1 !important;
}

.product-details-page .product-info-section .btn-out-stock i {
    margin-right: 10px;
}

/* Descrição */
.product-description {
    padding: 20px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
}

.product-description h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E8D4F8;
}

.product-description h3 i {
    color: #8C04A4;
}

.description-content {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.description-content p {
    margin: 0 0 12px 0;
}

.description-content strong,
.description-content b {
    color: #333;
    font-weight: 600;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
    color: #1a1a2e;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.description-content ul,
.description-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.description-content li {
    margin-bottom: 8px;
}

.description-content blockquote {
    border-left: 4px solid #8C04A4;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.description-content pre,
.description-content code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Informações Adicionais (Meta) */
.product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.meta-item i {
    color: #8C04A4;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.meta-item strong {
    color: #333;
}

/* Seção de Avaliações */
.reviews-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.reviews-section h2 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 0 0 30px 0;
}

/* Formulário de Avaliação */
.review-form-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.review-form-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

.rating-input {
    margin-bottom: 20px;
}

.rating-input label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 30px;
    color: #ddd;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffa500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8C04A4;
}

.btn-submit-review {
    background: #8C04A4;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit-review:hover {
    background: #6B0381;
    transform: translateY(-2px);
}

/* Prompt de Login */
.login-prompt {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.login-prompt p {
    margin: 0;
    color: #666;
}

.login-prompt a {
    color: #8C04A4;
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Lista de Avaliações */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-reviews i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-reviews p {
    margin: 0;
    font-size: 16px;
}

.review-item {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.review-author i {
    font-size: 24px;
    color: #8C04A4;
}

.review-stars {
    color: #ffa500;
    font-size: 14px;
}

.review-title {
    font-size: 16px;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.review-comment {
    color: #555;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.review-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .product-main {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .price-current {
        font-size: 26px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .reviews-section {
        padding: 20px;
    }
    
    .review-form-card {
        padding: 20px;
    }
}
