/* ============================================
   PRODUCT DETAIL PAGE - Clean Simplified
   ============================================ */

.product-detail {
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
    background: var(--bg-white);
}

.product-detail .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    align-items: start;
}

.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.main-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-orange);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    margin: 0;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.product-rating .stars {
    color: #FBBF24;
    font-size: var(--text-base);
}

.product-rating .rating-text {
    color: var(--text-medium);
    font-size: var(--text-sm);
}

.product-size {
    font-size: var(--text-base);
    color: var(--text-medium);
}

.product-pricing {
    padding: var(--spacing-md) 0;
    text-align: center;
}

.price-old {
    font-size: var(--text-base);
    color: var(--text-light);
    text-decoration: line-through;
}

.price-current {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--primary-orange);
}

.price-save {
    color: var(--success);
    font-size: var(--text-sm);
}

.product-stock {
    padding: var(--spacing-xs) 0;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.product-stock.in-stock {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.product-stock.low-stock {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.product-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

.fitting-options {
    padding: var(--spacing-sm) 0;
}

.fitting-options-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.fitting-option-card {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.fitting-option-card input[type="radio"] {
    margin-right: var(--spacing-sm);
    accent-color: var(--primary-orange);
}

.fitting-option-card:has(input:checked) {
    border-color: var(--primary-orange);
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
}

.option-price {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--primary-orange);
}

.garage-selector {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.garage-selector label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    color: var(--text-dark);
}

.garage-selector select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: border-color 0.2s;
}

.garage-selector select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.garage-selector input[type="text"] {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: border-color 0.2s;
}

.garage-selector input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: var(--spacing-md);
}

.btn-add-to-cart {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-wishlist {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--text-medium);
    transition: all 0.25s ease;
}

.btn-wishlist:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: rgba(249, 115, 22, 0.05);
}

/* Features - Pill Style */
.product-features {
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.product-features h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--text-dark);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.features-list li {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    border: 1px solid var(--border-light);
}

.features-list i {
    color: var(--primary-orange);
}

/* Product Tabs - Premium Pills */
.product-tabs {
    margin-top: var(--spacing-4xl);
}

.tab-nav {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tab-button {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-button:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.tab-button.active {
    background: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-pane {
    padding: var(--spacing-2xl);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.tab-pane h3 {
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-dark);
}

.description-text {
    line-height: 1.7;
    color: var(--text-medium);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: var(--spacing-md) var(--spacing-lg);
}

.specs-table td:first-child {
    width: 200px;
    font-weight: var(--weight-medium);
    color: var(--text-medium);
}

.specs-table td:last-child {
    color: var(--text-dark);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.review-item {
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.review-author {
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    color: var(--text-dark);
}

.review-rating {
    color: #FBBF24;
}

.verified-badge {
    background: var(--success);
    color: #fff;
    padding: 2px var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

.review-title {
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.review-text {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.review-date {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* Related Products */
.related-products {
    margin-top: var(--spacing-5xl);
    padding-top: var(--spacing-4xl);
    border-top: 1px solid var(--border-light);
}

.related-products h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.related-products .tyre-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.related-products .tyre-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
    transform: translateY(-4px);
}

.related-products .tyre-image-link {
    display: block;
    padding: var(--spacing-lg);
    background: var(--bg-light);
}

.related-products .tyre-image-link img {
    width: 100%;
    height: 140px;
    object-fit: contain;
}

.related-products .tyre-brand {
    font-size: var(--text-xs);
    color: var(--primary-orange);
    font-weight: var(--weight-semibold);
    padding: 0 var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.related-products .tyre-name {
    font-size: var(--text-base);
    color: var(--text-dark);
    padding: 0 var(--spacing-md);
    margin: var(--spacing-xs) 0;
}

.related-products .tyre-name a {
    color: inherit;
    text-decoration: none;
}

.related-products .tyre-name a:hover {
    color: var(--primary-orange);
}

.related-products .tyre-size {
    font-size: var(--text-sm);
    color: var(--text-medium);
    padding: 0 var(--spacing-md);
}

.related-products .tyre-pricing .price-current {
    font-size: var(--text-lg);
    padding: var(--spacing-sm) var(--spacing-md);
}

.related-products .btn-select {
    display: block;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md);
    background: var(--primary-orange);
    color: #fff;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--weight-semibold);
    margin-top: var(--spacing-sm);
    transition: all 0.25s ease;
}

.related-products .btn-select:hover {
    background: var(--primary-orange-hover);
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .product-images {
        position: static;
    }
    
    .main-image {
        min-height: 320px;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: var(--text-xl);
    }
    
    .price-current {
        font-size: var(--text-xl);
    }
    
    .related-products .products-grid {
        grid-template-columns: 1fr;
    }
}
