﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
}

body {
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    color: #646B72;
    line-height: 1.5;
    background-color: #F7F7F7;
    overflow-y: auto;
    overflow-x: hidden;
}

.home-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Header */
/*.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #444;
}

.nav-link {
    color: #0073e6;
    text-decoration: none;
}

    .nav-link:hover {
        text-decoration: underline;
    }*/

.cart {
    margin-left: 1rem;
    color: #666;
}

/* Main content */
.main {
    text-align: center;
    margin-top: 3rem;
}

.title {
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    color: #555;
    margin: 0.5rem 0 2rem 0;
    font-size: 1.1rem;
}

/* Updated CSS for brand cards */
.catalogue {
    background-color: #f9f9f9;
    padding: 2rem 3rem;
    margin: 2rem auto;
    max-width: 2000px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .catalogue h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        color: #333;
        font-weight: 600;
    }

.brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 160px;
    cursor: pointer;
    border: 1px solid #eaeaea;
}

    .brand:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-color: #2FA4E7;
    }

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    width: 100%;
}

.brand img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand:hover img {
    transform: scale(1.05);
}

.brand span {
    font-size: 1rem;
    color: #1867C0;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}
.brand-link:hover {
    text-decoration: none;
}


/* Search box */
.search-container {
    max-width: 2000px; 
    margin: 0 auto 2rem auto;
    padding: 0 3rem; 
}

.search-box form {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem auto 3rem auto;
    max-width: 2000px; 
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 0.9rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-btn {
    background-color: #FE9F43;
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

    .search-btn:hover {
        background-color: #131B35;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .brands {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }

    .brand {
        padding: 1.2rem 0.8rem;
    }

        .brand img {
            width: 60px;
            height: 60px;
        }

    .search-box input {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .brands {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .brand {
        padding: 1rem 0.5rem;
    }

        .brand img {
            width: 50px;
            height: 50px;
        }

        .brand span {
            font-size: 0.9rem;
        }

    .search-box {
        flex-direction: column;
        gap: 1rem;
    }

        .search-box input {
            width: 90%;
        }
}

/* Search box */
/*.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

    .search-box input {
        width: 50%;
        max-width: 600px;
        padding: 0.9rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

.search-btn {
    background-color: #2FA4E7;
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

    .search-btn:hover {
        background-color: #1867c0;
    }*/

/* Catalogue section */
/*.catalogue {
    background-color: #f9f9f9;
    padding: 2rem 3rem;
}

    .catalogue h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

.brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .brand:hover {
        opacity: 1;
    }

    .brand img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    .brand span {
        font-size: 1rem;
        color: #0056a6;
    }*/



/* Navigation links section */
.links {
    margin-top: 3rem;
    text-align: center;
}

    .links h3 {
        margin-bottom: 1rem;
        color: #333;
    }

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

    .link-buttons .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 4px;
    }


/* Part Search Box Styles */
.part-search-box {
    margin-top: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.search-hint {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.875rem;
    text-align: center;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid transparent;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .part-search-box {
        margin-top: 15px;
        padding: 15px;
    }

    .search-hint {
        font-size: 0.8rem;
    }
}