/* Product Page Specific Styles */

/* Product Hero Section */
.product-hero {
    padding: 40px 0;
    background: #f8f9fa;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.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: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.best-seller {
    background: #667eea;
    color: white;
}

.badge.sale {
    background: #e74c3c;
    color: white;
}

.badge.new {
    background: #27ae60;
    color: white;
}

.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.3s ease;
    opacity: 0;
}

.main-image:hover .zoom-btn {
    opacity: 1;
}

.zoom-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
    transform: translateY(-2px);
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* Product Information */
.product-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.brand-name {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-info h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 16px;
}

.rating-score {
    font-weight: 600;
    color: #333;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.view-reviews {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-reviews:hover {
    text-decoration: underline;
}

/* Product Pricing */
.product-pricing {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.current-price {
    font-size: 3rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 5px;
}

.original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.savings {
    background: #27ae60;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.financing-info {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.financing-info i {
    color: #667eea;
}

/* Product Description */
.product-description {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-description p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Size Selection */
.size-selection {
    margin-bottom: 30px;
}

.size-selection h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.size-option {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.size-option:hover,
.size-option.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.size-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.size-dimensions {
    font-size: 12px;
    color: #666;
}

.size-price {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

/* Comfort Selection */
.comfort-selection {
    margin-bottom: 30px;
}

.comfort-selection h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.comfort-meter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.comfort-scale {
    position: relative;
    height: 8px;
    background: linear-gradient(to right, #e9ecef 0%, #667eea 50%, #343a40 100%);
    border-radius: 4px;
    margin-bottom: 15px;
}

.comfort-indicator {
    position: absolute;
    top: -6px;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: left 0.3s ease;
}

.comfort-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.comfort-labels span.active {
    color: #667eea;
    font-weight: 600;
}

.comfort-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

/* Key Features */
.key-features {
    margin-bottom: 30px;
}

.key-features h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 24px;
    color: #667eea;
    margin-top: 5px;
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Add to Cart Section */
.add-to-cart-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-controls button {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.quantity-controls button:hover {
    background: #5a6fd8;
}

.quantity-controls input {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 600;
    background: white;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-add-to-cart {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-wishlist {
    background: white;
    border: 2px solid #dee2e6;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.3s ease;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-wishlist.active i {
    color: white;
}

.btn-buy-now {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Delivery Info */
.delivery-info {
    margin-bottom: 30px;
}

.delivery-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.delivery-item i {
    font-size: 20px;
    color: #667eea;
    margin-top: 5px;
    flex-shrink: 0;
}

.delivery-item strong {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.delivery-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Social Sharing */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-sharing span {
    font-weight: 600;
    color: #333;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.pinterest {
    background: #bd081c;
}

.share-btn.email {
    background: #666;
}

/* Product Details Tabs */
.product-details {
    padding: 80px 0;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Overview Tab */
.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.overview-text h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.overview-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.overview-text h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.overview-text ul {
    color: #666;
    line-height: 1.6;
}

.overview-text ul li {
    margin-bottom: 10px;
}

.overview-text strong {
    color: #333;
}

.overview-video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.05);
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.video-placeholder p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.technology-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.technology-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-feature {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tech-feature img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.tech-feature h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tech-feature p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Specifications Tab */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.specs-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.specs-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #dee2e6;
}

.specs-table td {
    padding: 12px 0;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
}

.specs-table td:last-child {
    color: #666;
}

.construction-diagram {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.layer {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.layer-visual {
    width: 80px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.layer-visual.purple-grid {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.layer-visual.comfort-foam {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.layer-visual.support-foam {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.layer-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.layer-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.cert-item i {
    color: #28a745;
    font-size: 18px;
}

.cert-item span {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Reviews Tab */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.overall-rating {
    text-align: center;
}

.rating-score-large {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.rating-stars-large {
    margin-bottom: 10px;
}

.rating-stars-large i {
    color: #ffc107;
    font-size: 20px;
    margin: 0 2px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.rating-bar span:first-child {
    width: 60px;
    color: #666;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: #667eea;
    transition: width 0.3s ease;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    color: #666;
    font-weight: 600;
}

.reviews-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.review-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-info strong {
    color: #333;
}

.verified {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.review-rating i {
    color: #ffc107;
    font-size: 14px;
}

.review-date {
    color: #999;
    font-size: 13px;
}

.review-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.review-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-helpful span {
    color: #666;
    font-size: 14px;
}

.review-helpful button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.review-helpful button:hover {
    background: #e9ecef;
}

.load-more-reviews {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.load-more-reviews:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Warranty Tab */
.warranty-content {
    display: grid;
    gap: 40px;
}

.warranty-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.warranty-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.warranty-section h4 {
    color: #667eea;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.warranty-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.warranty-section ul,
.warranty-section ol {
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
}

.warranty-section li {
    margin-bottom: 8px;
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.care-item {
    text-align: center;
    background: white;
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.care-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.care-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.care-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Related Products */
.related-products {
    padding: 80px 0;
    background: #f8f9fa;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 25px;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-item h3 {
    color: #333;
    margin: 20px 15px 10px;
    font-size: 1.1rem;
}

.related-price {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.related-item .btn {
    margin: 0 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-info {
        padding: 25px;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2.5rem;
    }
    
    .size-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-features {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .product-hero {
        padding: 20px 0;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .size-options {
        grid-template-columns: 1fr;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 45px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tabs-nav {
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .tab-btn {
        white-space: nowrap;
        min-width: 120px;
    }
}
