/* =========================================
   PROFESSIONAL NAVBAR
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 10px;
}

/* Navbar */

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: #111827;
    z-index: 9999;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

/* Main container */

.nav-container {
    width: 100%;
    max-width: 1400px;
    height: 76px;
    margin: auto;

    padding: 0 35px;

    display: flex;
    align-items: center;
    gap: 25px;
}

/* Logo */

.logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;

    white-space: nowrap;

    transition: 0.3s;
}

.logo span {
    color: #198754;
}

.logo:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* Navigation */

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-left: auto;
}

/* Nav links */

.nav-menu .nav-link {
    position: relative;

    color: #ffffff;
    text-decoration: none;

    font-size: 16px;
    font-weight: 500;

    padding: 10px 14px;

    transition: 0.3s;
}

/* Hover */

.nav-menu .nav-link:hover {
    color: #198754;
}

/* Active page */

.nav-menu .nav-link.active {
    color: #198754;
}

/* Active underline */

.nav-menu .nav-link.active::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 3px;

    height: 2px;

    background: #198754;

    border-radius: 5px;
}

/* Search */

.nav-search {
    display: flex;
    align-items: center;

    width: 230px;
    height: 40px;

    background: white;

    border-radius: 6px;
    overflow: hidden;

    margin-left: 10px;
}

.nav-search input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    padding: 0 12px;

    font-size: 14px;
}

.nav-search button {
    width: 45px;
    height: 100%;

    border: none;

    background: #198754;
    color: white;

    cursor: pointer;

    transition: 0.3s;
}

.nav-search button:hover {
    background: #157347;
}

/* Cart */

.cart-btn {
    position: relative;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    color: white;

    font-size: 19px;

    cursor: pointer;

    transition: 0.3s;
}

.cart-btn:hover {
    color: #198754;
}

/* Cart number */

.cart-count {
    position: absolute;

    top: -2px;
    right: -2px;

    min-width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #198754;
    color: white;

    border-radius: 50%;

    font-size: 11px;
    font-weight: 700;
}

/* Mobile button */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid #555;
    border-radius: 6px;

    background: transparent;
    color: white;

    font-size: 20px;

    cursor: pointer;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 992px) {

    .nav-container {
        padding: 0 20px;
        gap: 15px;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-menu .nav-link {
        padding: 9px 8px;
        font-size: 15px;
    }

    .nav-search {
        width: 190px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    body {
        padding-top: 70px;
    }

    .main-navbar {
        height: 70px;
    }

    .nav-container {
        height: 70px;

        padding: 0 15px;

        position: relative;
    }

    /* Logo */

    .logo {
        font-size: 21px;
    }

    /* Menu button */

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* Hide desktop search */

    .nav-search {
        display: none;
    }

    /* Cart */

    .cart-btn {
        width: 40px;
        height: 40px;
    }

    /* Mobile menu */

    .nav-menu {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: #111827;

        display: none;

        flex-direction: column;

        align-items: stretch;

        padding: 12px 15px 18px;

        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    }

    /* Show menu */

    .nav-menu.show {
        display: flex;
    }

    /* Mobile links */

    .nav-menu .nav-link {
        width: 100%;

        padding: 13px 15px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.08);

        font-size: 16px;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    /* Remove underline on mobile */

    .nav-menu .nav-link.active::after {
        display: none;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .nav-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 19px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .cart-btn {
        width: 38px;
    }

}

/* ================= BANNER ================= */

.shop-banner {
    position: relative;
    width: 100%;
    height: 650px;
    margin-top: 70px;
    overflow: hidden;
}

.shop-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.43);
}

.shop-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 90%);
    text-align: center;
    color: white;
    z-index: 2;
}

.banner-small {
    font-size: 15px;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 15px;
}

.shop-banner-content h1 {
    font-size: 62px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 25px;
}

.shop-banner-content h1 span {
    background-color: #d8ad61;
    color: #111;
    padding: 2px 18px;
}

.banner-description {
    font-size: 17px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 28px;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.shop-btn,
.new-btn {
    padding: 13px 26px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.shop-btn {
    background-color: #d8ad61;
    color: #111;
}

.new-btn {
    background-color: white;
    color: #111;
}

.shop-btn:hover,
.new-btn:hover {
    transform: translateY(-3px);
}


/* ================= CATEGORY ================= */

.category-section {
    background-color: #f5f1e8;
    padding: 70px 7% 45px;
}

.category-heading {
    text-align: center;
}

.section-label {
    color: #198754;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.category-heading h2 {
    font-size: 38px;
    margin: 0 0 10px;
    font-weight: 700;
}

.category-heading > p:last-child {
    color: #666;
    font-size: 17px;
}


/* Category buttons */

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.category-btn {
    border: 1px solid #198754;
    background: white;
    color: #198754;
    padding: 11px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background-color: #198754;
    color: white;
}


/* ================= COLLECTION TOP ================= */

.collection-top {
    max-width: 1200px;
    margin: 60px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.collection-top h2 {
    color: #198754;
    font-size: 30px;
    margin-bottom: 8px;
}

.collection-top p {
    margin: 0;
    color: #555;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-box label {
    color: #198754;
    font-size: 17px;
    font-weight: 700;
}

.sort-box select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    outline: none;
}


/* ================= PRODUCTS ================= */

.products-section {
    padding: 55px 6% 80px;
    background-color: #ffffff;
}

.products-grid {
    max-width: 1250px;
    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 28px;
}


/* Product card */

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


/* Product image */

.product-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}


/* Heart */

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background-color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.wishlist-btn:hover {
    color: red;
}

.wishlist-btn.liked {
    color: red;
}


/* Badge */

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;

    background-color: #198754;
    color: white;

    padding: 6px 10px;

    font-size: 11px;
    font-weight: bold;

    border-radius: 4px;
}


/* Product content */

.product-content {
    padding: 20px;
    background-color: #e8f5e9;
}

.product-category {
    color: #198754;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.product-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #111827;
}

.rating {
    font-size: 14px;
    margin-bottom: 18px;
}

.rating span {
    color: #777;
}


.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.price {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.add-cart {
    background-color: #198754;
    color: white;
    border: none;
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.add-cart:hover {
    background-color: #146c43;
}


/* Hidden products */

.product-card.hidden {
    display: none;
}


/* Load more */

.load-more {
    display: block;
    margin: 55px auto 0;

    padding: 13px 35px;

    background-color: #d8ad61;
    color: #111;

    border: none;
    border-radius: 5px;

    font-weight: 700;
    cursor: pointer;

    transition: 0.3s;
}

.load-more:hover {
    transform: translateY(-3px);
}


/* ================= WHY CHOOSE US ================= */

.why-section {
    background-color: #f7f7f7;
    padding: 70px 6%;
    text-align: center;
}

.why-section h2 {
    color: #198754;
    font-size: 32px;
    margin-bottom: 50px;
}

.features {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 30px;
}

.feature {
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    transition: 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 30px;
    color: #198754;
    margin-bottom: 18px;
}

.feature:nth-child(4) i {
    color: #d8ad61;
}

.feature h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.feature p {
    color: #777;
    font-size: 14px;
    margin: 0;
}


/* ================= NEWSLETTER ================= */

.newsletter {
    background-color: #e8f5e9;
    text-align: center;
    padding: 65px 20px;
}

.newsletter h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter p {
    color: #666;
    margin-bottom: 25px;
}

.newsletter-box {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: auto;
}

.newsletter-box input {
    flex: 1;
    padding: 13px 15px;
    border: 1px solid #ddd;
    outline: none;
}

.newsletter-box button {
    background-color: #198754;
    color: white;
    border: none;
    padding: 13px 25px;
    font-weight: 600;
}


/* ================= FOOTER ================= */

footer {
    background-color: #111111;
    color: white;
}

.footer-container {
    max-width: 1250px;
    margin: auto;
    padding: 65px 6% 45px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 50px;
}

.footer-column h3 {
    font-size: 25px;
    margin-bottom: 20px;
}

.footer-column h3 span {
    color: #198754;
}

.footer-column h4 {
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-column p {
    color: #aaa;
    line-height: 1.7;
    max-width: 280px;
}

.footer-column > a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 13px;
    transition: 0.3s;
}

.footer-column > a:hover {
    color: #198754;
}

.footer-column a i {
    margin-right: 8px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-icons a {
    width: 38px;
    height: 38px;

    border: 1px solid #555;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    text-decoration: none;

    transition: 0.3s;
}

.social-icons a:hover {
    background-color: #198754;
    border-color: #198754;
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    color: #aaa;
    margin: 0;
    font-size: 14px;
}


/* ================= TABLET ================= */

@media (max-width: 992px) {

    .navbar {
        padding: 10px 20px;
    }

    .navbar-nav {
        margin-left: 0;
    }

    .search-form {
        margin-top: 15px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .search-form input {
        width: 100%;
    }

    .cart-icon {
        margin-bottom: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-banner-content h1 {
        font-size: 50px;
    }

}


/* ================= MOBILE ================= */

@media (max-width: 576px) {

    .navbar {
        padding: 10px 15px;
    }

    .shop-banner {
        height: 570px;
    }

    .shop-banner-content h1 {
        font-size: 42px;
    }

    .banner-description {
        font-size: 14px;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }

    .shop-btn,
    .new-btn {
        width: 210px;
    }

    .category-section {
        padding: 50px 20px 35px;
    }

    .category-heading h2 {
        font-size: 28px;
    }

    .category-buttons {
        gap: 8px;
    }

    .category-btn {
        padding: 9px 15px;
        font-size: 12px;
    }

    .collection-top {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 45px;
    }

    .sort-box {
        width: 100%;
        justify-content: space-between;
    }

    .sort-box select {
        flex: 1;
    }

    .products-section {
        padding: 35px 12px 60px;
    }

    /* 2 cards per row on mobile */

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 190px;
    }

    .product-content {
        padding: 12px;
    }

    .product-content h3 {
        font-size: 14px;
    }

    .product-category {
        font-size: 10px;
    }

    .rating {
        font-size: 11px;
    }

    .price {
        font-size: 14px;
    }

    .product-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-cart {
        width: 100%;
    }

    .wishlist-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        top: 8px;
        right: 8px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-box input,
    .newsletter-box button {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}