/* Single Tire Page Styles */

.tire-detail-page {
    background-color: #1a1a1a;
    padding: 80px 0;
    min-height: calc(100vh - 120px);
}

.tire-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
}

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

.breadcrumb span {
    color: #666;
    margin: 0 10px;
}

.breadcrumb span:last-child {
    color: #FFDD03;
}

/* Main Content Grid */
.tire-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Tire Image Section */
.tire-image-section {
    position: relative;
}

.tire-main-image {
    background-color: #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tire-main-image .tire-placeholder {
    color: #666;
    font-size: 120px;
}

/* Tire Details Grid */
.tire-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.detail-item {
    background-color: #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.detail-item .detail-label {
    color: #ccc;
    font-size: 12px;
    margin-bottom: 5px;
}

.detail-item .detail-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Tire Info Section */
.tire-info-section {
    padding-left: 20px;
}

.tire-header {
    margin-bottom: 30px;
}

.tire-brand {
    color: #FFDD03;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tire-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tire-size {
    color: #ccc;
    font-size: 18px;
    font-weight: 500;
}

/* Price Section */
.tire-price-section {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.price-label {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

.price-value {
    color: #FFDD03;
    font-size: 36px;
    font-weight: 700;
}

.price-note {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.total-price-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.total-price-label {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

.total-price-value {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.total-price-note {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Specifications */
.tire-specs {
    margin-bottom: 30px;
}

.tire-specs h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.specs-grid {
    display: grid;
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #333;
    border-radius: 8px;
}

.spec-item span:first-child {
    color: #ccc;
}

.spec-item span:last-child {
    color: #FFDD03;
    font-weight: 600;
}

/* Tire Actions */
.tire-actions {
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    color: #ccc;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #333;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #444;
}

.quantity-input {
    width: 80px;
    padding: 10px;
    background-color: #333;
    border: none;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    background-color: #FFDD03;
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

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

.add-to-cart-btn.disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
}

/* Tire Features */
.tire-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item {
    text-align: center;
    padding: 15px;
    background-color: #333;
    border-radius: 8px;
}

.feature-item .feature-text {
    color: #ccc;
    font-size: 12px;
}

/* Tire Description */
.tire-description {
    margin-top: 20px;
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 12px;
}

.tire-description h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.tire-description p {
    color: #ccc;
    line-height: 1.6;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.related-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-item .related-placeholder {
    color: #666;
    font-size: 48px;
    margin-bottom: 15px;
}

.related-brand {
    color: #FFDD03;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.related-name {
    color: #ccc;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-size {
    color: #ccc;
    font-size: 11px;
    margin-bottom: 10px;
}

.related-price {
    color: #FFDD03;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.related-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #FFDD03;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.related-link:hover {
    background-color: #e6c700;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.success-modal {
    border-top: 4px solid #28a745;
}

.error-modal {
    border-top: 4px solid #dc3545;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-content p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn.primary {
    background-color: #FFDD03;
    color: #000;
}

.modal-btn.primary:hover {
    background-color: #e6c700;
}

.modal-btn.secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.modal-btn.secondary:hover {
    background-color: #e9ecef;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tire-detail-content {
        gap: 30px;
    }
    
    .tire-main-image {
        min-height: 300px;
    }
    
    .tire-main-image img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .tire-detail-page {
        padding: 40px 0;
    }
    
    .tire-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tire-info-section {
        padding-left: 0;
    }
    
    .tire-main-image {
        padding: 15px;
        min-height: 250px;
    }
    
    .tire-main-image img {
        max-height: 250px;
    }
    
    .tire-title {
        font-size: 28px;
    }
    
    .price-value {
        font-size: 32px;
    }
    
    .tire-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .tire-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .specs-grid {
        gap: 10px;
    }
    
    .spec-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .tire-detail-page {
        padding: 20px 0;
    }
    
    .tire-detail-page .container {
        padding: 0 15px;
    }
    
    .tire-detail-content {
        gap: 20px;
    }
    
    .tire-main-image {
        padding: 10px;
        min-height: 200px;
    }
    
    .tire-main-image img {
        max-height: 200px;
    }
    
    .tire-title {
        font-size: 24px;
    }
    
    .tire-size {
        font-size: 16px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .tire-price-section {
        padding: 20px;
    }
    
    .tire-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        padding: 15px;
        font-size: 16px;
    }
    
    .tire-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .tire-description {
        padding: 20px;
    }
    
    .tire-description h2 {
        font-size: 20px;
    }
    
    .related-products h2 {
        font-size: 20px;
    }
    
    .related-item {
        padding: 15px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}
