/* Estilos para a página de detalhes do produto */

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f8f8;
    padding: 15px 0;
    margin-top: 90px;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--gold);
    font-weight: 500;
}

/* Container de detalhes do produto */
.product-detail {
    padding: 60px 0;
    background-color: var(--white);
}

.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
}

/* Galeria do produto */
.product-gallery {
    flex: 1;
    min-width: 300px;
}

.product-detail-swiper {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
}

.product-detail-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-single-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.product-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.product-thumbnail:hover {
    opacity: 0.8;
}

.product-thumbnail.active {
    border-color: var(--gold);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informações do produto */
.product-info-detail {
    flex: 1;
    min-width: 300px;
}

.product-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark);
}

.product-price-detail {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.product-weight {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-description p {
    margin-bottom: 15px;
}

/* Abas de informação */
.product-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.product-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.product-tab:hover {
    color: var(--gold);
}

.product-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-contents {
    margin-bottom: 30px;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    list-style-type: none;
}

.tab-content ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tab-content ul li i {
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 5px;
}

/* Quantidade */
.product-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.product-quantity span {
    margin-right: 15px;
    font-weight: 500;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
}

.quantity-decrease,
.quantity-increase {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-decrease:hover,
.quantity-increase:hover {
    background-color: #eee;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ações do produto */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark);
}

.btn-primary:hover {
    background-color: var(--gold);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--white);
}

/* Compartilhar */
.product-share {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.product-share span {
    margin-right: 15px;
    font-weight: 500;
}

.product-share a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: #f5f5f5;
    color: var(--dark);
    margin-right: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.product-share a:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

/* Produtos relacionados */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.related-products h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsividade */
@media (max-width: 992px) {
    .product-detail-container {
        flex-direction: column;
    }
    
    .product-gallery,
    .product-info-detail {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-detail-swiper,
    .product-single-image {
        height: 350px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .product-tabs {
        overflow-x: auto;
    }
    
    .product-tab {
        padding: 12px 15px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .product-detail-swiper,
    .product-single-image {
        height: 300px;
    }
    
    .product-thumbnails {
        justify-content: center;
    }
    
    .product-quantity {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-quantity span {
        margin-bottom: 10px;
    }
    
    .product-share {
        flex-wrap: wrap;
    }
    
    .product-share span {
        width: 100%;
        margin-bottom: 10px;
    }
}