/* AUTOPARTES EXPRESS DESIGN SYSTEM */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #131b2e;
    --bg-card: #1c2742;
    --primary: #2563eb; /* Industrial Blue */
    --primary-hover: #1d4ed8;
    --accent: #f59e0b; /* Car Indicator Amber */
    --accent-hover: #d97706;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --font-title: 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.logo span {
    color: var(--accent);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    color: #fff;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-phone i {
    color: var(--accent);
}

.contact-phone strong {
    color: #fff;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 25px;
    font-size: 1.05rem;
}

/* Search Bar Wrapper */
.search-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.search-bar-box {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.search-bar-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-hover);
}

/* Catalog section */
.catalog-section {
    padding: 50px 0 80px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* Filter Sidebar */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.filter-box h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    color: #fff;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.category-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.category-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Grid layout for parts */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.part-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.part-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.part-img-box {
    height: 160px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(148, 163, 184, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.part-img-box i {
    width: 50px;
    height: 50px;
    color: var(--primary);
}

.part-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.part-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.part-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.part-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.part-compat {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.part-compat strong {
    color: #fff;
}

.part-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.part-price {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.part-price span {
    font-size: 0.85rem;
    color: var(--accent);
    margin-right: 2px;
}

.btn-quote {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-quote:hover {
    background: var(--primary-hover);
}

/* Quote request section */
.quote-request-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
}

.quote-request-card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.quote-request-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Modal overlay general style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
}

.btn-submit {
    background: var(--accent);
    color: #0b0f19;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    background: rgba(11, 15, 25, 0.5);
    margin-top: 80px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive sidebar */
@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 15px;
    }
    .filter-box {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .filter-box h3 {
        display: none;
    }
    .category-list {
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}
