/* parts-theme.css - Kennedy Motors Futuristic Parts Theme */

:root {
    --km-blue: #2CA5E0;
    --km-blue-dark: #1A5F8A;
    --km-red: #D91C5C;
    --km-red-dark: #A01242;

    --bg-dark: #0a0e17;
    --bg-card: #131a26;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --border-glow: rgba(44, 165, 224, 0.3);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(44, 165, 224, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(217, 28, 92, 0.05) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

/* =========================================
   HERO SLIDER STYLES (Copied from onyx)
   ========================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    /* Adjusted height for Parts page */
    background-color: #000;
    overflow: hidden;
    border-bottom: 2px solid var(--km-blue);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    align-items: center;
    justify-content: flex-start;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient fade for better text readability */
    background: linear-gradient(90deg, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.4) 50%, rgba(10, 14, 23, 0.1) 100%);
}

.hero-active {
    display: flex;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-main);
    padding-left: 10%;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff, var(--km-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(44, 165, 224, 0.3));
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    color: var(--text-muted);
    border-left: 3px solid var(--km-red);
    padding-left: 15px;
}

/* Top Strip */
.or-top-strip {
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    padding: 8px 40px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.or-top-strip a {
    color: var(--km-blue);
    margin-left: 20px;
    font-weight: 500;
}

.or-top-strip a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--km-blue);
}

/* Header */
.or-header {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--km-blue);
}

.or-brand {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--km-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.or-brand span {
    color: var(--km-red);
    -webkit-text-fill-color: var(--km-red);
    margin-left: 5px;
}

.or-search-container {
    flex-grow: 1;
    margin: 0 60px;
    max-width: 800px;
}

.or-search-form {
    display: flex;
}

.or-search-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(44, 165, 224, 0.3);
    border-radius: 30px 0 0 30px;
    color: #fff;
    font-size: 14px;
}

.or-search-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(44, 165, 224, 0.2);
    border-color: var(--km-blue);
}

.or-search-btn {
    background: linear-gradient(90deg, var(--km-blue), var(--km-blue-dark));
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
}

.or-search-btn:hover {
    padding-right: 40px;
    /* Slight expansion effect */
}

.or-nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    margin-left: 20px;
    text-transform: uppercase;
}

.or-nav-links a:hover {
    color: var(--km-blue);
}

/* Subnav */
.or-subnav {
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 40px;
    display: flex;
    gap: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    overflow-x: auto;
}

.or-subnav-item {
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s;
}

.or-subnav-item:hover {
    color: var(--km-red);
    text-shadow: 0 0 5px rgba(217, 28, 92, 0.5);
}

/* Main Content */
.parts-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    display: flex;
    gap: 40px;
}

/* Sidebar */
.or-sidebar {
    width: 250px;
    background: rgba(19, 26, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    display: none;
    height: fit-content;
}

@media(min-width: 768px) {
    .or-sidebar {
        display: block;
    }
}

.or-sidebar h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--km-blue);
    padding-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.or-filter-group {
    margin-bottom: 25px;
}

.or-filter-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--km-blue);
}

.or-filter-item {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding-left: 10px;
    border-left: 2px solid transparent;
}

.or-filter-item:hover {
    color: #fff;
    border-left-color: var(--km-red);
}

/* Product Grid */
.or-results {
    flex-grow: 1;
}

.or-product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Product Card */
.or-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    padding: 25px;
    gap: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.or-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--km-blue), var(--km-red));
    opacity: 0.5;
}

.or-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--km-blue);
}

.or-card:hover::before {
    opacity: 1;
    width: 5px;
}

.or-card-img-container {
    width: 180px;
    height: 180px;
    background: #000;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.or-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.or-card-details {
    flex-grow: 1;
}

.or-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: block;
}

.or-card-title:hover {
    color: var(--km-blue);
}

.or-card-subtitle {
    font-size: 13px;
    color: var(--km-blue);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.or-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.or-card-price-block {
    text-align: right;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.or-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--km-blue);
    text-shadow: 0 0 15px rgba(44, 165, 224, 0.3);
    margin-bottom: 5px;
}

.or-price sup {
    font-size: 16px;
    color: var(--text-muted);
}

.or-btn-add {
    background: linear-gradient(90deg, var(--km-blue), var(--km-blue-dark));
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 15px;
    display: block;
    box-shadow: 0 5px 15px rgba(44, 165, 224, 0.3);
    transition: 0.3s;
}

.or-btn-add:hover {
    background: linear-gradient(90deg, var(--km-red), var(--km-red-dark));
    box-shadow: 0 5px 15px rgba(217, 28, 92, 0.4);
}

.or-btn-admin {
    background: transparent;
    border: 1px solid var(--km-red);
    color: var(--km-red);
    padding: 8px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
}

.or-btn-admin:hover {
    background: var(--km-red);
    color: white;
}


.or-availability {
    font-size: 13px;
    color: #2ecc71;
    /* Green for available */
    font-weight: 600;
    margin-top: 10px;
}

/* Footer */
.or-footer {
    background-color: #05070a;
    color: var(--text-muted);
    padding: 60px 40px;
    margin-top: 80px;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media(max-width: 768px) {
    .or-header {
        flex-direction: column;
        gap: 15px;
    }

    .or-search-container {
        width: 100%;
        margin: 10px 0;
    }

    .or-card {
        flex-direction: column;
    }

    .or-card-img-container {
        width: 100%;
        height: 200px;
    }

    .or-card-price-block {
        text-align: left;
        margin-top: 15px;
    }
}

/* =========================================
   CONTACT & FOOTER STYLES (Copied from Onyx for Consistency)
   ========================================= */

/* Contact Section */
.contact-section-wrapper {
    background-color: var(--bg-card);
    padding: 80px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.responsive-map {
    width: 100%;
    height: 400px;
    filter: invert(90%) hue-rotate(180deg) contrast(1.2);
    /* Dark Mode Map */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.onyx-footer {
    background-color: #05070a;
    color: var(--text-muted);
    padding: 60px 40px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    width: 100%;
}