/* Spare Parts Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
    padding-top: 100px !important;
}

.filter-sidebar {
    position: sticky;
    top: 100px;
}

.filter-checkbox {
    cursor: pointer;
}

.filter-checkbox:checked {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.product-card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-block;
    background: rgba(236, 156, 4, 0.1);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.product-title {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-spec {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.product-spec i {
    color: var(--accent-gold);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4860a 100%);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    margin-left: 10px;
}

.btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(236, 156, 4, 0.4);
}

.secondary-theme {
    background-color: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 991.98px) {
    .page-header {
        padding-top: 80px !important;
    }

    .filter-sidebar {
        position: static;
        top: auto;
        margin-bottom: 30px;
    }

    .product-card img {
        height: 200px;
    }

    .product-card-body {
        padding: 15px;
    }

    .product-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding-top: 70px !important;
        text-align: center;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .product-card img {
        height: 180px;
    }

    .product-card-body {
        padding: 12px;
    }

    .product-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .product-description {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .product-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .product-price {
        font-size: 1.1rem;
        text-align: center;
    }

    .btn-add-cart {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .filter-btn {
        margin-bottom: 10px;
    }
}

@media (max-width: 575.98px) {
    .product-card img {
        height: 150px;
    }

    .product-category {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-description {
        font-size: 0.75rem;
    }

    .product-price {
        font-size: 1rem;
    }
}
