/* Product Page Specific Styles */

/* Breadcrumb Section */
.breadcrumb-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-item a {
    color: var(--muted-color);
    text-decoration: none;
}

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

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Product Hero Section */
.product-hero-section {
    background-color: white;
}

/* Product Gallery Styles */
.product-gallery {
    position: sticky;
    top: 160px;
}

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

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

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

.sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.image-zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.main-image-container:hover .image-zoom-btn {
    opacity: 1;
    transform: scale(1);
}

.image-zoom-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
}

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

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

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

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

/* Product Details */
.product-details {
    padding-left: 2rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Product Rating */
.product-rating {
    margin-bottom: 1.5rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1.125rem;
}

.rating-score {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.review-count {
    color: var(--muted-color);
    font-size: 0.95rem;
}

/* Product Pricing */
.product-pricing {
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1rem;
}

.original-price {
    font-size: 1.5rem;
    color: var(--muted-color);
    text-decoration: line-through;
    margin-right: 1rem;
}

.discount-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

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

.option-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.option-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.selected-option {
    color: var(--primary-color);
    font-weight: 700;
}

/* Wood Finish Options */
.wood-finish-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.wood-option {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0.5rem;
}

.wood-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wood-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.wood-option .option-name {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-align: center;
}

/* Upholstery Selection */
.upholstery-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-btn {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--muted-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.upholstery-swatches {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.swatch-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.upholstery-swatch {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upholstery-swatch:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.upholstery-swatch.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.upholstery-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Comfort Options */
.comfort-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.comfort-option {
    flex: 1;
    min-width: 250px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.comfort-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comfort-option.active {
    border-color: var(--primary-color);
    background: rgba(245, 158, 11, 0.05);
}

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

.comfort-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.most-popular-badge {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comfort-visual {
    width: 60px;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comfort-layer {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
}

.comfort-layer.memory {
    background: linear-gradient(to bottom, #fef3c7, #fbbf24);
}

.comfort-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-color);
    font-size: 0.875rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* Add to Cart Section */
.add-to-cart-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 24, 39, 0.3);
}

.product-info-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted-color);
    font-size: 0.95rem;
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Features Section */
.features-section {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--muted-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Complete the Look Section */
.complete-look-section {
    background-color: white;
}

.complete-look-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.complete-look-carousel::-webkit-scrollbar {
    height: 8px;
}

.complete-look-carousel::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.complete-look-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.product-card {
    flex: 0 0 300px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

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

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.original-price {
    font-size: 1rem;
    color: var(--muted-color);
    text-decoration: line-through;
}

.sale-label {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Similar Products Section */
.similar-products-section {
    background-color: #f8f9fa;
}

.section-header {
    margin-bottom: 3rem;
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--muted-color);
}

.carousel-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.similar-products-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.similar-products-carousel::-webkit-scrollbar {
    height: 8px;
}

.similar-products-carousel::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.similar-products-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Reviews Section */
.reviews-section {
    background-color: white;
}

.reviews-summary {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3rem;
}

.overall-rating {
    padding: 2rem;
}

.rating-score-large {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stars-large i {
    color: #fbbf24;
    font-size: 1.5rem;
    margin: 0 0.125rem;
}

.rating-text {
    color: var(--muted-color);
    font-size: 1.125rem;
}

.rating-breakdown {
    padding: 2rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rating-label {
    min-width: 80px;
    font-size: 0.875rem;
    color: var(--muted-color);
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: var(--light-color);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #d97706);
    transition: width 0.3s ease;
}

.rating-count {
    min-width: 40px;
    text-align: right;
    font-size: 0.875rem;
    color: var(--muted-color);
}

/* Individual Reviews */
.individual-reviews {
    margin-top: 3rem;
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

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

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

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    font-size: 1.25rem;
}

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

.review-stars i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.review-date {
    color: var(--muted-color);
    font-size: 0.875rem;
}

.review-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.review-text {
    color: var(--muted-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-helpful span {
    color: var(--muted-color);
    font-size: 0.875rem;
}

.helpful-btn {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--muted-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-details {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .original-price {
        font-size: 1.25rem;
    }
    
    .thumbnail-gallery {
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
    }
    
    .thumbnail-item {
        flex: 0 0 80px;
    }
    
    .comfort-options {
        flex-direction: column;
    }
    
    .comfort-option {
        min-width: auto;
    }
    
    .wood-finish-options {
        justify-content: center;
    }
    
    .swatch-row {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .complete-look-carousel {
        gap: 1rem;
    }
    
    .product-card {
        flex: 0 0 250px;
    }
    
    .similar-products-carousel {
        gap: 1rem;
    }
    
    .rating-score-large {
        font-size: 3rem;
    }
    
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .review-helpful {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.75rem;
    }
    
    .main-product-image {
        height: 300px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .product-card {
        flex: 0 0 200px;
    }
    
    .card-image {
        height: 150px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .overall-rating {
        padding: 1rem;
    }
    
    .rating-breakdown {
        padding: 1rem;
    }
    
    .rating-score-large {
        font-size: 2.5rem;
    }
}

/* Animation Enhancements */
.product-card,
.feature-card,
.review-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
.wood-option:focus,
.upholstery-swatch:focus,
.comfort-option:focus,
.add-to-cart-btn:focus,
.helpful-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}