/* Parts Store Specific Styles */

.page-hero {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    margin-top: 70px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Parts Info Box */
.parts-info {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-box i {
    font-size: 3rem;
    color: #2c5530;
    flex-shrink: 0;
}

.info-box h3 {
    margin-bottom: 0.5rem;
    color: #2c5530;
    font-family: 'Montserrat', sans-serif;
}

.info-box p {
    margin: 0;
    line-height: 1.6;
}

.info-box strong {
    color: #2c5530;
}

/* Parts Listing Section */
.parts-listing {
    padding: 4rem 0;
    background: white;
}

.parts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.parts-header h2 {
    font-size: 2.5rem;
    color: #2c5530;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.search-box i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

/* Parts Grid */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Part Card */
.part-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.part-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.part-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.part-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.part-card:hover .part-image img {
    transform: scale(1.05);
}

.part-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #2c5530;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Part Details */
.part-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.part-details h3 {
    font-size: 1.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.part-number,
.manufacturer {
    font-size: 0.95rem;
    color: #666;
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.part-number i,
.manufacturer i {
    color: #2c5530;
    width: 16px;
}

.description {
    margin: 1rem 0;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

/* Part Footer */
.part-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.condition {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c5530;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #2c5530;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #4a7c59;
    transform: translateX(3px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.8rem;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.contact-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #2c5530;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #4a7c59;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: white;
    color: #2c5530;
    border: 2px solid #2c5530;
}

.btn-secondary:hover {
    background-color: #2c5530;
    color: white;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .parts-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .parts-grid {
        grid-template-columns: 1fr;
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .part-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-btn,
    .condition {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}
