/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #FFA500;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* Product Detail Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.main-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #FFA500;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-brand {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

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

.product-rating .stars {
    color: #ffc107;
}

.product-rating .rating-text {
    color: #666;
    font-size: 0.95rem;
}

.product-size,
.product-season {
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* EU Label Section */
.eu-label-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.eu-label-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.eu-label {
    display: flex;
    gap: 15px;
    justify-content: space-around;
}

.label-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
}

.label-header {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.label-grade {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    padding: 10px;
    border-radius: 5px;
}

.label-grade.A {
    background-color: #28a745;
    color: #fff;
}

.label-grade.B {
    background-color: #5cb85c;
    color: #fff;
}

.label-grade.C {
    background-color: #ffc107;
    color: #000;
}

.label-grade.D {
    background-color: #ff9800;
    color: #fff;
}

.label-grade.E {
    background-color: #FFA500;
    color: #fff;
}

.noise-waves {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Product Pricing */
.product-pricing {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price-current {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFA500;
    margin-bottom: 3px;
}

.price-save {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
}

/* Product Stock */
.product-stock {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.product-stock.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.product-stock.low-stock {
    background-color: #fff3cd;
    color: #856404;
}

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

/* Fitting Options */
.fitting-options {
    padding: 15px;
    border-radius: 8px;
}

.fitting-options h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.fitting-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.fitting-option-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fitting-option-card:hover {
    border-color: #FFA500;
    background-color: #fff5f5;
}

.fitting-option-card input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.fitting-option-card:has(input:checked) {
    border-color: #FFA500;
    background-color: #fff5f5;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.option-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFA500;
    margin-bottom: 3px;
}

.option-desc {
    font-size: 0.9rem;
    color: #666;
}

.garage-selector {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.garage-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.garage-selector select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
}

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

.btn-add-to-cart {
    flex: 1;
    padding: 12px 20px;
    background-color: #FFA500;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: #FF9F00;
}

.btn-wishlist {
    width: 48px;
    height: 48px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    border-color: #FFA500;
    color: #FFA500;
}

/* Product Features */
.product-features {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.product-features h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

.features-list i {
    color: #FFA500;
}

/* Product Tabs */
.product-tabs {
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
}

.tab-button {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #FFA500;
}

.tab-button.active {
    color: #FFA500;
    border-bottom-color: #FFA500;
}

.tab-content {
    display: none;
}

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

.tab-pane {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tab-pane h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.description-text {
    line-height: 1.8;
    color: #555;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #dee2e6;
}

.specs-table td {
    padding: 15px;
}

.specs-table td:first-child {
    width: 200px;
    font-weight: 600;
    color: #333;
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 600;
    font-size: 1.1rem;
}

.review-rating {
    color: #ffc107;
}

.verified-badge {
    background-color: #28a745;
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.review-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
}

/* Related Products */
.related-products {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #dee2e6;
}

.related-products h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        min-height: 400px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-current {
        font-size: 2rem;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .eu-label {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
    }
}
