﻿

html, body {
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}



.hero-section {
    position: relative;
    background: url('/images/hero1.png') center center/cover no-repeat;
    height: 440px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    justify-content: center;
    align-items: center;
}


/*   .hero-section {
            position: relative; 
            height: 440px;
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            display: flex;
            justify-content: center;
            align-items: center;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        } */

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    border-radius: 4px;
    transition: 0.3s;
}

    .hero-arrow:hover {
        background: rgba(0,0,0,0.7);
    }

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}


.search-container {
    background-color: rgba(255, 255, 240, 0.9);
    padding: 25px 40px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    max-width: 900px;
    width: 80%;
}

    .search-container h2 {
        font-size: 24px;
        color: #333;
        font-weight: 500;
        margin-bottom: 15px;
    }

        .search-container h2 strong {
            font-weight: 700;
            color: #000;
        }

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .search-box input {
        width: 75%;
        padding: 12px 14px;
        font-size: 15px;
        border: 1px solid #ccc;
        border-right: none;
        border-radius: 4px 0 0 4px;
        outline: none;
    }

    .search-box button {
        padding: 12px 25px;
        background-color: #222;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .search-box button:hover {
            background-color: #007bff;
        }



.hero-category-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(3px);
}

.hero-cat-item {
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

    .hero-cat-item span {
        margin-left: 8px;
        font-weight: bold;
    }

    .hero-cat-item:hover {
        color: #ff6600;
    }

.hero-cat-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.3);
}




.container {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 0;
}


.main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    align-items: start;
}

.category-link {
    cursor: pointer;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 100px;
}

.info-box {
    background: linear-gradient(135deg, #00aaff, #0077cc);
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

    .info-box h4 {
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .info-box p {
        font-size: 18px;
        font-weight: 700;
        margin: 0;
    }

.ad-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
}

    .ad-box img {
        width: 100%;
        height: auto;
        display: block;
    }


.featured-title {
    background-color: #00aaff;
    color: #fff;
    padding: 10px 15px;
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    border-radius: 2px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

    .featured-title::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: 0.5s;
    }

    .featured-title:hover::before {
        left: 100%;
    }


.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 15px;
}


.featured-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .featured-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-img {
    transform: scale(1.05);
}

.hero-cat-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .hero-cat-item a:hover {
        color: inherit;
    }

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 12px 10px;
    min-height: 50px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}


.supplier-box {
    background-color: #00aaff;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 8px;
    text-align: center;
    border-top: 1px solid #0099dd;
    position: relative;
    overflow: hidden;
}

    .supplier-box::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: rgba(255,255,255,0.1);
        transform: rotate(30deg);
        transition: all 0.5s ease;
    }

.featured-card:hover .supplier-box::after {
    left: 100%;
}


.category-container {
    margin-top: 40px;
}

.category-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00aaff;
    position: relative;
}

    .category-subtitle::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100px;
        height: 2px;
        background: #ff6600;
    }

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    background: #f4f8ff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.category-link {
    background: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #00aaff;
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    height: 55px;
}

    .category-link:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.12);
        border-left-color: #ff6600;
        background: #fff7f0;
        color: #222;
    }


@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-box {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .info-box {
        width: 100%;
    }
}


.premium-section {
    background: linear-gradient(90deg, #000 0%, #1a1a1a 100%);
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    padding: 15px 60px;
    position: relative;
    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    margin-top: 40px;
}

    .premium-section::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 70px;
        background: linear-gradient(135deg, #ff6600, #ff4500);
        clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    }

.premium-item {
    text-align: center;
    min-width: 160px;
    z-index: 1;
}

    .premium-item img {
        width: 60px;
        height: auto;
        margin-bottom: 6px;
        transition: transform 0.3s ease;
    }

    .premium-item:hover img {
        transform: scale(1.1);
    }

    .premium-item h4 {
        font-weight: 700;
        font-size: 14px;
        margin: 3px 0;
    }

    .premium-item p {
        color: #ccc;
        font-size: 12px;
        margin: 0;
    }

.premium-button {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

    .premium-button button {
        background: linear-gradient(135deg, #ff6600, #ff4500);
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 3px;
        font-weight: 600;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
    }

        .premium-button button:hover {
            background: linear-gradient(135deg, #ff8533, #ff5722);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(255, 102, 0, 0.4);
        }

@media (max-width: 768px) {
    .premium-section {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .premium-button {
        position: static;
        transform: none;
        margin-top: 15px;
    }

    .premium-section::before {
        width: 40px;
    }
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.search-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .search-result-item:hover {
        background-color: #f5f5f5;
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

.company-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.company-info {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.no-results {
    color: #666;
    text-align: center;
    cursor: default;
}

    .no-results:hover {
        background-color: white;
    }

.view-all-results {
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

    .view-all-results:hover {
        background-color: #e9ecef;
    }

.loading-search {
    text-align: center;
    padding: 15px;
    color: #666;
    font-style: italic;
}

.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .search-results-dropdown::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

.search-container {
    position: relative;
}

