/* Product Page Styles */

/* Breadcrumb */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .breadcrumb-container {
        max-width: 90%;
        padding: 0 40px;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #DF7B0C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #c6680a;
}

.breadcrumb-separator {
    color: #999;
    font-size: 12px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Product Section */
.product-section {
    background-color: #fff;
    padding: 40px 0;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .product-container {
        max-width: 90%;
        padding: 0 40px;
    }
}

.product-section .product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Gallery */
.product-gallery-section {
    position: sticky;
    top: 20px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.stock-badge.featured {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.product-thumbnail:hover {
    transform: scale(1.05);
    border-color: #DF7B0C;
}

.product-thumbnail.active {
    border-color: #DF7B0C;
    box-shadow: 0 4px 15px rgba(223, 123, 12, 0.3);
}

/* Product Details */
.product-details {
    padding: 20px 0;
}

.product-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #6f1613;
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.product-category a {
    color: #DF7B0C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-category a:hover {
    color: #c6680a;
}

.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price,
.sale-price {
    font-size: 2em;
    font-weight: 700;
    color: #DF7B0C;
}

.original-price {
    font-size: 1.5em;
    color: #999;
    text-decoration: line-through;
}

.product-short-description {
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.product-stock {
    margin-bottom: 30px;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.stock-status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.stock-status.backorder {
    background-color: #fff3cd;
    color: #856404;
}

.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #DF7B0C;
    color: white;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    background: white;
}

.quantity-selector input:focus {
    outline: none;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #DF7B0C, #c6680a);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #c6680a, #DF7B0C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 123, 12, 0.3);
}

.add-to-cart-btn.disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.add-to-cart-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.wishlist-btn {
    background: transparent;
    border: 2px solid #DF7B0C;
    color: #DF7B0C;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wishlist-btn:hover {
    background: #DF7B0C;
    color: white;
    transform: translateY(-2px);
}

/* Product Description Section */
.product-description-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.description-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #DF7B0C;
}

.tab-btn.active {
    color: #DF7B0C;
    border-bottom-color: #DF7B0C;
}

.tab-content {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.description-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.specs-table td:first-child {
    width: 200px;
    font-weight: 600;
    color: #333;
}

.specs-table td:last-child {
    color: #666;
}

.reviews-content {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Related Products */
.related-products-section {
    background-color: #fff;
    padding: 60px 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-product-link {
    text-decoration: none;
    color: inherit;
}

.related-product-image {
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-item:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-info {
    padding: 20px;
}

.related-product-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #6f1613;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #DF7B0C;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-section .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery-section {
        position: static;
    }
    
    .main-image {
        height: 400px;
    }
    
    .product-title {
        font-size: 2em;
    }
    
    .product-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 30px 0;
    }
    
    .product-container {
        padding: 0 15px;
    }
    
    .breadcrumb-container {
        padding: 0 15px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .current-price,
    .sale-price {
        font-size: 1.8em;
    }
    
    .original-price {
        font-size: 1.3em;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .add-to-cart-btn,
    .wishlist-btn {
        justify-content: center;
        width: 100%;
    }
    
    .description-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .tab-content {
        padding: 30px 20px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }
    
    .product-title {
        font-size: 1.5em;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail-images {
        justify-content: center;
    }
    
    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .current-price,
    .sale-price {
        font-size: 1.5em;
    }
    
    .original-price {
        font-size: 1.1em;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .specs-table td:first-child {
        width: 150px;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1920px) {
    .product-container {
        max-width: 85%;
        padding: 0 60px;
    }
    
    .breadcrumb-container {
        max-width: 85%;
        padding: 0 60px;
    }
    
    .main-image {
        height: 600px;
    }
    
    .product-title {
        font-size: 3em;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 40px;
    }
}

@media (min-width: 2560px) {
    .product-container,
    .breadcrumb-container {
        max-width: 80%;
    }
    
    .main-image {
        height: 700px;
    }
    
    .product-title {
        font-size: 3.5em;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}
