/* ========================================
   CSS Variables & Theme
======================================== */
:root {
    /* Light Mode Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #06b6d4;
    --accent-secondary: #0891b2;
    --accent-hover: #22d3ee;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-hover: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #0891b2;
    --accent-secondary: #06b6d4;
    --accent-hover: #0e7490;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-hover: #f1f5f9;
}

/* ========================================
   Reset & Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Zalando Sans Expanded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.mobile-only {
    display: none !important;
}

/* Desktop language and theme switches */
.lang-switch,
.theme-switch {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-switch:hover,
.theme-switch:hover {
    background: var(--card-hover);
    color: var(--text-primary);
}

.lang-separator {
    color: var(--text-muted);
}

.lang-inactive {
    color: var(--text-muted);
}

.theme-switch {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.icon-sun,
.icon-moon {
    font-size: 18px;
}

.icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hide desktop switches on mobile - they are in the menu */
@media (max-width: 768px) {
    .desktop-controls {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
    .nav-divider.mobile-only {
        display: block !important;
    }
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 24px 40px;
        gap: 12px;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        transform: translateY(-100%);
        opacity: 0;
        overflow-y: auto;
        z-index: 999;
        display: flex;
    }
    
    [data-theme="light"] .nav-menu {
        background: rgba(248, 250, 252, 0.95);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        font-size: 18px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-primary);
        text-align: center;
        transition: var(--transition);
        text-decoration: none;
    }
    
    [data-theme="light"] .nav-menu a {
        border-color: rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.03);
    }

    .nav-menu a:hover {
        color: var(--accent-primary);
        border-color: var(--accent-primary);
        background: rgba(6, 182, 212, 0.05);
    }

    .nav-settings {
        margin-top: 12px;
        width: 100%;
    }

    .settings-row {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: center;
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        padding: 12px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    [data-theme="light"] .settings-row {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .nav-settings .lang-switch,
    .nav-settings .theme-switch {
        flex: 1;
        height: 48px;
        justify-content: center;
        padding: 0;
        font-size: 14px;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        margin: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        background: var(--bg-tertiary);
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -4px);
    }
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--accent-primary);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    padding: 140px 0 80px;
    background: var(--bg-primary); /* Fallback */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Obraz w tle z przyciemnieniem w jednym kolorze (Dark Slate) */
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('img/wilga.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    /* Zawsze jasny tekst w hero dla kontrastu z ciemnym tłem */
    background: linear-gradient(135deg, #ffffff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    /* Wymuszony jasny kolor dla czytelności na ciemnym tle */
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Wymuszenie jasnego koloru w sekcji Hero */
.hero .stat-label {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .logo-tagline {
        display: none !important; /* Ukryj dodatkowy opis logo na mobile */
    }
    
    .logo-name {
        font-size: 14px;
    }
    
    .nav-logo {
        gap: 8px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
        display: none; /* Ukryj dodatkowy opis na mobile */
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Sections
======================================== */
.section {
    padding: 100px 0;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }
}

/* ========================================
   About Section
======================================== */
.about-list {
    list-style: none;
    margin-bottom: 40px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--accent-primary);
    font-weight: 700;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

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

.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-stat {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.info-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-primary);
}

.info-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Services Section
======================================== */
.services-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    appearance: none;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: var(--card-hover);
}

.filter-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

.filter-btn.active {
    color: #ffffff;
    border-color: var(--accent-secondary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 10px 22px rgba(6, 182, 212, 0.35);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-list {
    list-style: none;
}

.service-list li {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.service-list li::before {
    content: '−';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ========================================
   Why Us Section
======================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.partner-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

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

.why-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.why-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.why-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.why-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Contact Section
======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 20px;
    color: var(--accent-primary);
}

.contact-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.contact-hours {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.contact-hours h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-hours p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

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

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    margin-top: 20px;
}

.form-success.show {
    display: flex;
}

.success-icon {
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================
   FAQ Section
======================================== */
.faq-list {
    max-width: 800px;
    margin-top: 40px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-primary);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-icon {
    color: var(--accent-primary);
    font-size: 20px;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

/* ========================================
   Parts Page
======================================== */
.parts-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.parts-controls {
    margin-top: 40px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-btn {
    padding: 12px 20px;
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

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

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

@media (max-width: 640px) {
    .category-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .category-filters .filter-btn {
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

.parts-section {
    padding: 60px 0;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.part-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.part-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.part-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.part-card:hover .part-image img {
    transform: scale(1.1);
}

.part-content {
    padding: 20px;
}

.part-category {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.part-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.part-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.part-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-primary);
}

.part-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* ========================================
   Modals
======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-small {
    max-width: 500px;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-primary);
    color: white;
}

.modal-body {
    padding: 40px;
}

.modal-body .modal-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    background: var(--bg-tertiary);
}

.modal-body .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-category {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-specs {
    margin-bottom: 30px;
}

.modal-specs h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.modal-specs ul {
    list-style: none;
}

.modal-specs li {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.modal-specs li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.price-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-primary);
}

.modal-availability {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.availability-status {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-block;
}

.availability-status.available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.availability-status.unavailable {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.availability-time {
    font-size: 13px;
    color: var(--text-muted);
}

.modal-actions {
    padding: 20px 40px 40px;
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body .modal-image {
        height: 250px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-actions {
        padding: 15px 20px 20px;
        flex-direction: column;
    }
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 18px;
}

.footer-brand .logo-name {
    font-size: 18px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-legal p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ========================================
   Scroll to Top Button
======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-3px);
}

/* ========================================
   Utility Classes
======================================== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}
