/* ===================================
   PRODUCT DETAIL PAGE STYLES
   =================================== */

/* Product Detail Section */
.product-detail-section {
    padding: 50px 0 80px;
    background: var(--white);
    min-height: 100vh;
}

.detail-header {
    margin-bottom: 40px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Left Column - Image Gallery */
.product-detail-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-image-gallery {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 30px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(40, 167, 69, 0.95);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.image-badge i {
    font-size: 18px;
}

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

.thumbnail-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-images img:hover {
    border-color: var(--accent-orange);
    transform: scale(1.05);
}

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

/* Right Column - Product Info */
.product-detail-right {
    padding-top: 20px;
}

.product-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c5a);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-title {
    font-size: 42px;
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Rating Section */
.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--light-gray);
}

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

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

.rating-text {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* Price Section */
.product-price-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--accent-orange);
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-main {
    font-size: 48px;
    color: var(--accent-orange);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.price-note {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* Stock Status */
.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d4edda;
    color: #155724;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 35px;
}

.product-stock i {
    font-size: 18px;
}

.product-stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Product Description */
.product-description {
    margin-bottom: 35px;
}

.product-description h3 {
    font-size: 24px;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 15px;
}

.product-description p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Product Features */
.product-features {
    margin-bottom: 35px;
}

.product-features h3 {
    font-size: 24px;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 20px;
}

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

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-features li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.product-features li i {
    color: #28a745;
    font-size: 18px;
}

/* Product Info Grid */
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 28px;
    color: var(--accent-orange);
    margin-top: 5px;
}

.info-item strong {
    display: block;
    font-size: 15px;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 14px;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
    color: var(--white);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
}

.contact-section h3 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-contact:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-contact i {
    font-size: 18px;
}

/* Related Products Section */
.related-products-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid var(--light-gray);
}

.related-products-section h2 {
    font-size: 36px;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-left {
        position: relative;
        top: 0;
    }
    
    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 30px 0 60px;
    }
    
    .product-detail-title {
        font-size: 32px;
    }
    
    .price-main {
        font-size: 38px;
    }
    
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    .main-image {
        height: 350px;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-detail-title {
        font-size: 26px;
    }
    
    .price-main {
        font-size: 32px;
    }
    
    .product-features li {
        font-size: 14px;
    }
    
    .contact-section {
        padding: 25px 20px;
    }
    
    .main-image {
        height: 280px;
    }
}
