:root {
    --color-bg: #0f0f0f;
    --color-surface: #1a1a1a;
    --color-primary: #e30613;
    /* Akrapovic Red */
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: #333333;
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.logo-container {
    margin-bottom: 1rem;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Selector Component */
.selector-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

select {
    background: #252525;
    border: 1px solid var(--color-border);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.2);
}

.btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
}

.btn:hover {
    background: #ff0717;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive adjustment */
/* Results Page */
.results-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--color-primary);
}

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

.product-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(227, 6, 19, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: #151515;
}

.product-image {
    width: 100%;
    height: 220px;
    background: #090909;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.badge-new {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.70rem;
    font-weight: 800;
    z-index: 2;
    letter-spacing: 1px;
}

.product-image img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.6));
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08) rotate(-1.5deg);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-sku {
    font-size: 0.70rem;
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #f1f5f9;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-top: auto;
    margin-bottom: 0.8rem;
}

.add-to-cart-btn {
    background: rgba(227, 6, 19, 0.08);
    /* Faint red */
    border: 1px solid rgba(227, 6, 19, 0.2);
    color: #e2252b;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

/* Modal styles (Phase 2 preview) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--color-border);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .selector-card {
        padding: 1.5rem;
    }

    .modal-btns {
        flex-direction: column;
    }
}

/* Footer Styling (Adapted from home.css) */
footer {
    background: #000;
    padding: 80px 5vw 40px;
    border-top: 2px solid var(--color-primary);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col ul li a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: #444;
}

.footer-logo {
    height: 60px;
    margin-bottom: 25px;
    transition: 0.5s ease;
    filter: drop-shadow(0 0 5px rgba(227, 6, 19, 0.3));
    animation: footerGlow 4s infinite ease-in-out;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 15px rgba(227, 6, 19, 0.8));
    transform: scale(1.05);
}

@keyframes footerGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(227, 6, 19, 0.2));
        opacity: 0.9;
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(227, 6, 19, 0.6));
        opacity: 1;
    }
}

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