/* =========================================================
   APEMART.LK - HOME PAGE
========================================================= */


/* ===========================
   HERO
=========================== */

.hero-slider{
    position: relative;
    width: 100%;
    height: 680px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .60);
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding-top: 180px;
}


/* ===========================
   HOME SEARCH BOX
=========================== */

.hero-content .search-box {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 850px;

    margin: 0 auto;

    background: transparent;

    border-radius: 0;

    overflow: visible;

    box-shadow: none;

    gap: 15px;
}


/* Search Input */

.hero-content .search-box input {
    flex: 1;

    width: 100%;

    height: 64px;

    box-sizing: border-box;

    border: 2px solid #222;

    border-radius: 50px;

    outline: none;

    background: #fff;

    padding: 0 25px;

    font-size: 18px;

    color: #222;

    box-shadow: none;
}


/* Search Input Focus */

.hero-content .search-box input:focus {
    border-color: #34c759;

    box-shadow: 0 0 0 3px rgba(52, 199, 89, .15);
}


/* Search Button */

.hero-content .search-box button {
    flex-shrink: 0;

    height: 64px;

    border: none;

    border-radius: 50px;

    background: #34c759;

    color: #fff;

    padding: 0 35px;

    font-size: 18px;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition: .25s ease;
}


/* Search Button Hover */

.hero-content .search-box button:hover {
    background: #28a745;

    transform: translateY(-1px);
}


/* ===========================
   HERO TITLE
=========================== */

#heroTitle {
    color: #fff;

    font-size: 62px;

    margin-top: 50px;

    font-weight: 800;
}

#heroDescription {
    color: #fff;

    font-size: 22px;

    margin-top: 20px;

    margin-bottom: 35px;
}


/* ===========================
   HERO BUTTONS
=========================== */

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 20px;
}

.browse-btn,
.post-btn {
    text-decoration: none;

    padding: 16px 35px;

    border-radius: 50px;

    color: #fff;

    font-weight: bold;

    transition: .25s ease;
}

.browse-btn {
    background: #ff6b00;
}

.post-btn {
    background: #22c55e;
}

.browse-btn:hover,
.post-btn:hover {
    transform: translateY(-2px);
}


/* ===========================
   SLIDER DOTS
=========================== */

.slider-dots {
    margin-top: 45px;
}

.dot {
    width: 14px;

    height: 14px;

    border-radius: 50%;

    display: inline-block;

    margin: 0 6px;

    background: #bbb;
}

.dot.active {
    background: #fff;
}


/* ===========================
   CATEGORIES
=========================== */

.featured-categories {
    padding: 80px 30px;

    background: #fff;
}

.featured-categories h2 {
    text-align: center;

    font-size: 38px;

    margin-bottom: 50px;

    font-weight: 700;
}

.category-grid {
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 25px;
}

.category-card {
    background: #fff;

    border-radius: 20px;

    padding: 35px 20px;

    text-align: center;

    text-decoration: none;

    color: #333;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .08);

    transition: .35s;
}

.category-card:hover {
    transform: translateY(-8px);

    background: #ff6b00;

    color: #fff;
}

.category-card .icon {
    font-size: 50px;

    margin-bottom: 15px;
}

.category-image {
    width: 70px;

    height: 70px;

    object-fit: cover;

    border-radius: 15px;

    margin-bottom: 12px;
}


/* ===========================
   SECTION HEADER
=========================== */

.section-header {
    max-width: 1300px;

    margin: 0 auto 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.section-header h2 {
    font-size: 34px;
}

.section-header a {
    text-decoration: none;

    color: #ff6b00;

    font-weight: bold;
}


/* ===========================
   PRODUCT CARDS
=========================== */

.latest-ads {
    padding: 80px 30px;

    background: #f5f7fb;
}

.products {
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));

    gap: 30px;
}

.product-card {
    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .08);

    transition: .35s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    width: 100%;

    height: 240px;

    object-fit: cover;
}

.product-card h3 {
    font-size: 22px;

    padding: 15px 18px 8px;
}

.product-card p {
    padding: 0 18px;

    color: #666;
}

.price {
    color: #ff6b00;

    font-size: 26px;

    font-weight: bold;

    padding: 10px 18px;
}

.product-card button {
    width: calc(100% - 36px);

    margin: 18px;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background: #22c55e;

    color: #fff;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}


/* ===========================
   WHY US
=========================== */

.why-us {
    padding: 80px 30px;

    background: #fff;
}

.why-us h2 {
    text-align: center;

    font-size: 38px;

    margin-bottom: 45px;
}

.why-grid {
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}


/* ===========================
   STICKY HEADER
=========================== */

.header.scrolled {
    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .12);
}

.header.scrolled .navbar a {
    color: #222;
}

.header.scrolled .logo {
    color: #222;
}

.header.scrolled .login-btn {
    background: #34c759;

    color: #fff;

    border: none;
}

.header.scrolled .login-btn:hover {
    background: #28a745;

    color: #fff;
}


/* =========================================================
   MOBILE HOME SEARCH
========================================================= */

@media (max-width: 768px) {

    .hero-content {
        padding: 130px 20px 0;
    }

    .hero-content .search-box {
        flex-direction: column;

        width: 100%;

        gap: 12px;
    }

    .hero-content .search-box input {
        width: 100%;

        height: 58px;

        font-size: 16px;
    }

    .hero-content .search-box button {
        width: 100%;

        height: 58px;

        font-size: 16px;
    }

    #heroTitle {
        font-size: 42px;

        margin-top: 40px;
    }

    #heroDescription {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: center;

        gap: 12px;
    }

    .browse-btn,
    .post-btn {
        width: 220px;

        text-align: center;

        box-sizing: border-box;
    }

    .featured-categories {
        padding: 60px 20px;
    }

    .featured-categories h2 {
        font-size: 30px;
    }

    .latest-ads {
        padding: 60px 20px;
    }

    .section-header {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .why-us {
        padding: 60px 20px;
    }

    .why-us h2 {
        font-size: 30px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hero-content {
        padding-top: 110px;
    }

    .hero-content .search-box input {
        height: 54px;

        padding: 0 20px;

        font-size: 15px;
    }

    .hero-content .search-box button {
        height: 54px;

        padding: 0 28px;

        font-size: 15px;
    }

    #heroTitle {
        font-size: 34px;
    }

    #heroDescription {
        font-size: 16px;
    }

}

