/* Product Detail Styles */

/* Breadcrumb Section */
.breadcrumb-section {
    padding: 20px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-section .breadcrumb {
    font-size: 14px;
}

/* Product Detail Grid */
.product-detail-section {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 120px;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-badges {
    position: absolute;
    top: 20px;
    left: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: #27ae60;
    color: white;
}

.badge.promo {
    background: #e74c3c;
    color: white;
}

.badge.bestseller {
    background: #f39c12;
    color: white;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: var(--accent-color);
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding-left: 20px;
}

.product-category {
    display: inline-block;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 16px;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.product-price {
    margin-bottom: 30px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-description {
    margin-bottom: 40px;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Product Options */
.product-options {
    margin-bottom: 40px;
}

.option-group {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option.active {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    /* border: 2px solid #e9ecef; */
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-color);
}

.quantity-btn:hover {
    background: var(--accent-color);
    color: white;
}

#quantity {
    border: none;
    padding: 12px 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    width: 60px;
    background: white;
}

#quantity:focus {
    outline: none;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.add-to-cart-main {
    flex: 1;
    min-width: 200px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.wishlist-btn {
    padding: 15px 20px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
}

.wishlist-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Product Details */
.product-details {
    border-top: 1px solid #e9ecef;
    padding-top: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.detail-item i {
    color: var(--accent-color);
    width: 20px;
}

/* Product Tabs */
.product-tabs-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 40px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-btn:hover {
    color: var(--accent-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Description Content */
.description-content {
    max-width: 800px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* Characteristics */
.characteristics-list {
    max-width: 600px;
}

.char-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.char-label {
    font-weight: 600;
    color: var(--dark-color);
}

.char-value {
    color: #666;
}

/* Reviews */
.reviews-summary {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
}

.rating-overview {
    text-align: center;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars i {
    color: #ffc107;
    font-size: 20px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.reviews-list {
    display: grid;
    gap: 25px;
}

.review-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-rating {
    margin-bottom: 10px;
}

.review-rating i {
    color: #ffc107;
}

.review-text {
    color: #666;
    line-height: 1.6;
}

/* Care Instructions */
.care-instructions h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.care-instructions ul {
    list-style: none;
    padding: 0;
}

.care-instructions li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.care-instructions li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Related Products */
.related-products {
    padding: 80px 0;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-images {
        position: static;
    }
    
    .product-info {
        padding-left: 0;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart-main {
        min-width: auto;
    }
    
    .quantity-selector {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .product-detail-section {
        padding: 40px 0;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-image img {
        height: 300px;
    }
}