.main-image {
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.main-product-image {
    max-width: 100%;
    max-height: 400px;
}

.flavor-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.thumbnail {
    width: 70px;
    text-align: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

/* Product detail page styles */
.breadcrumb {
    background-color: var(--light);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--gray);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--gray);
    margin: 0 0.5rem;
}

.breadcrumb span {
    color: var(--dark);
    font-weight: 500;
}

.product-detail {
    padding-bottom: 5rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.thumbnail.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary);
}

.thumbnail span {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--gray);
}

.product-info h1 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #FFD700;
    margin-right: 0.5rem;
}

.rating-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-sku {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-price-container {
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.product-description {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.6;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--primary);
    margin-right: 0.8rem;
}

.product-options {
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.option-buttons {
    display: flex;
    gap: 1rem;
}

.option-btn {
    padding: 0.7rem 1.5rem;
    background-color: white;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.option-btn.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.flavor-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.flavor {
    padding: 0.7rem 1.5rem;
    background-color: white;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.flavor.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.product-stock {
    margin-bottom: 2rem;
    color: var(--gray);
}

.product-stock i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 45px;
    background-color: var(--light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#product-quantity {
    width: 50px;
    height: 45px;
    border: none;
    text-align: center;
    font-weight: 500;
}

.product-guarantee {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.guarantee-item {
    display: flex;
    align-items: center;
    color: var(--gray);
}

.guarantee-item i {
    margin-right: 0.8rem;
    color: var(--primary);
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 4rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.tab-panel p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.6;
}

.tab-panel ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.tab-panel li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

/* Nutrition tab */
.nutrition-table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.nutrition-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.nutrition-row.header {
    font-weight: bold;
    background-color: var(--light);
}

.amino-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.amino-column h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.amino-column ul {
    list-style: none;
    margin-left: 0;
}

/* Reviews tab */
.reviews-summary {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.overall-rating {
    text-align: center;
    min-width: 200px;
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: var(--gray);
}

.rating-bars {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.star-label {
    min-width: 100px;
    color: var(--gray);
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.rating-fill {
    height: 100%;
    background-color: #FFD700;
}

.rating-percentage {
    min-width: 50px;
    color: var(--gray);
    text-align: right;
}

.user-reviews {
    margin-bottom: 3rem;
}

.review-item {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-name {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.review-date {
    font-size: 0.9rem;
    color: var(--gray);
}

.review-rating {
    color: #FFD700;
}

.review-content h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-content p {
    color: var(--gray);
}

.reviews-pagination {
    display: flex;
    justify-content: center;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--light-gray);
    margin: 0 0.3rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:hover:not(.active) {
    background-color: var(--light);
}

.pagination-btn.next {
    width: auto;
    padding: 0 1rem;
}

/* Related products */
.related-products {
    padding-top: 3rem;
    border-top: 1px solid var(--light-gray);
}

/* Responsive styles */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 2rem;
    }
    
    .amino-profile {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .option-buttons, .flavor-selector {
        flex-wrap: wrap;
    }
    
    .nutrition-row {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .tabs-header {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        padding: 1rem;
        white-space: nowrap;
    }
    
    .product-guarantee {
        grid-template-columns: 1fr;
    }
}