/* Product Gallery */
.product-gallery__main {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-gallery__main:hover .product-gallery__main-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumb-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.thumb-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #4ba1fa;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Product Info */
.product-info {
    padding: 1rem 0;
}

.product-info__category {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-info__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.product-info__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
}

.rating-count {
    color: #6c757d;
    font-size: 0.875rem;
}

.product-info__price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #4ba1fa;
}

.price-old {
    font-size: 1.25rem;
    color: #6c757d;
    text-decoration: line-through;
}

.price-discount {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-info__stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-info__stock i {
    font-size: 1.25rem;
}

.product-info__description {
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

/* Product Options */
.product-options {
    margin-bottom: 0.5rem;
}

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

.option-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
}

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

.option-btn {
    padding: 0.1rem 0.2rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.option-btn:hover {
    border-color: #4ba1fa;
}

.option-btn.active {
    border-color: #4ba1fa;
    background: #4ba1fa;
    color: white;
}

.color-btn {
    width: 25px;
    height: 25px;
    padding: 0;
    border-radius: 50%;
}

.color-btn.active {
    box-shadow: 0 0 0 3px #4ba1fa;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    width: fit-content;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: none;
    background: #f8f9fa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #e9ecef;
}

#quantity {
    width: 80px;
    height: 25px;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Product Meta */
.product-meta {
    padding: 1.5rem 0;
    border-top: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

.meta-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.meta-label {
    font-weight: 600;
    color: #1a1a1a;
}

.meta-value {
    color: #6c757d;
}

.meta-value a {
    color: #4ba1fa;
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

/* Product Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: #1a1a1a;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    color: #6c757d;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    background: #4ba1fa;
    border-color: #4ba1fa;
    color: white;
}

/* Product Tabs */
.product-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.product-tabs__nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #dee2e6;
    overflow-x: auto;
}

.product-tabs__nav .nav-item {
    flex-shrink: 0;
}

.product-tabs__nav .nav-link {
    padding: 1.25rem 2rem;
    border: none;
    background: transparent;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.product-tabs__nav .nav-link:hover {
    color: #4ba1fa;
}

.product-tabs__nav .nav-link.active {
    color: #4ba1fa;
    border-bottom-color: #4ba1fa;
}

.product-tabs__content {
    padding: 1rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.content-section {
    line-height: 1.8;
    color: #333;
}

.content-section h2,
.content-section h3,
.content-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.summary-score {
    text-align: center;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: #4ba1fa;
    line-height: 1;
}

.score-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.score-text {
    color: #6c757d;
    font-size: 0.875rem;
}

.summary-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 1rem;
}

.bar-item .progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.bar-item .progress-bar {
    background: #ffc107;
    height: 100%;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.reviewer-info h5 {
    margin: 0 0 0.25rem;
    color: #1a1a1a;
}

.review-stars {
    color: #ffc107;
}

.review-date {
    color: #6c757d;
    font-size: 0.875rem;
}

.review-content h5 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.review-content p {
    margin: 0;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 991px) {
    .product-gallery__main {
        height: 400px;
    }
    
    .product-info__title {
        font-size: 1.5rem;
    }
    
    .price-current {
        font-size: 1.5rem;
    }
    
    .product-actions .btn {
        min-width: 100%;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 575px) {
    .product-gallery__main {
        height: 300px;
    }
    
    .product-gallery__thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .thumb-item img {
        height: 60px;
    }
    
    .option-buttons {
        gap: 0.5rem;
    }
    
    .option-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .product-tabs__nav .nav-link {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .product-tabs__content {
        padding: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
