:root {
    --bg-dark: #050509;
    --bg-card: #111827;
    --accent: #fbbf24;
    --accent-soft: #facc6b;
    --text-main: #fefce8;
    --text-muted: #e5e7eb;
    --border-soft: #78350f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #1f2933 0, #020617 55%);
    color: var(--text-main);
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    background: rgba(3,7,18,0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148,163,184,0.15);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

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

.logo img {
    height: 40px;
}

.logo span {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.main-nav a {
    color: var(--text-muted);
    margin-left: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.18s ease-out;
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:hover::after {
    width: 100%;
}

main {
    padding: 25px 0 40px;
}

/* Hero */

.hero {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
    gap: 26px;
    align-items: stretch;
}

.hero-left {
    background: radial-gradient(circle at top left, rgba(250,204,21,0.08), transparent 55%), var(--bg-card);
    border-radius: 18px;
    padding: 26px 24px 22px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(148,163,184,0.4);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-kicker span.dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

.hero h1 {
    font-size: clamp(1.8rem, 2.4vw, 2.3rem);
    margin: 0 0 10px;
}

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

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 8px;
}

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

.hero-list li span.icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(21,128,61,0.25);
    border: 1px solid rgba(74,222,128,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.btn-primary, .btn-ghost {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #111827;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(148,163,184,0.5);
    color: var(--text-muted);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-soft);
}

/* VIN Card */

.hero-right {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hero-right h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.hero-right p {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vin-input-row {
    display: flex;
    gap: 8px;
}

.vin-form input[type="text"] {
    flex: 1;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card {
    background: rgba(15,23,42,0.9);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 0.8rem;
}

.card strong {
    color: var(--accent-soft);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(31,41,55,0.9);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Search & parts section */

.search-section, .parts-section, .contact-section {
    background: rgba(15,23,42,0.9);
    padding: 18px 18px 16px;
    margin-top: 22px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 40px rgba(0,0,0,0.65);
}

.search-section h2,
.parts-section h2,
.contact-section h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.section-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    align-items: end;
}

.search-form div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-form label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

input[type="text"], input[type="number"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: rgba(15,23,42,0.9);
    color: var(--text-main);
    font-size: 0.9rem;
}

input::placeholder {
    color: #6b7280;
}

button {
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #111827;
    font-weight: 600;
    font-size: 0.9rem;
}

button:hover {
    filter: brightness(1.06);
}

.parts-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin-top: 10px;
}

.part-card {
    background: rgba(15,23,42,0.95);
    border-radius: 14px;
    padding: 14px 14px 12px;
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}

.part-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(250,204,21,0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.18s ease-out;
    pointer-events: none;
}

.part-card:hover::before {
    opacity: 1;
}

.part-card h3 {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 6px;
}

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

.price {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.95rem;
}

.part-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact */

.contact-section ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.contact-section li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Footer */

.site-footer {
    padding: 12px 0 18px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* VIN result */

.vin-result {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0,1fr);
    }
    .hero-right {
        order: -1;
    }
    .search-form {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .search-form {
        grid-template-columns: minmax(0,1fr);
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .main-nav {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 6px;
    }
}

.lang-switch {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 0.75rem;
}

.lang-switch a {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    color: var(--text-muted);
    text-decoration: none;
}

.lang-switch a.active {
    background: var(--accent);
    color: #111827;
    border-color: transparent;
}

@media (max-width: 640px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .lang-switch {
        margin-top: 6px;
    }
}

.part-thumb {
    margin: -4px -4px 8px;
    border-radius: 10px;
    overflow: hidden;
    max-height: 150px;
}
.part-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Product detail layout */
.product-detail {
    margin-top: 24px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
    gap: 22px;
}

.product-media {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    padding: 14px;
}

.media-main {
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.media-main img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.media-main.placeholder span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.media-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.media-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    cursor: pointer;
}

.media-videos {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-videos video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: #020617;
}

.product-info {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    padding: 16px 16px 14px;
}

.product-info h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.product-meta {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 2px 0;
}

.product-price {
    margin-top: 8px;
    font-size: 1.1rem;
    color: #4ade80;
    font-weight: 600;
}

.product-desc {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.product-contact {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-contact .btn-primary {
    margin-top: 6px;
}

.product-fitments {
    margin-top: 16px;
}

.product-fitments h2 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.product-fitments table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.product-fitments th,
.product-fitments td {
    padding: 5px 6px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: minmax(0,1fr);
    }
}
