/* Menu Navigation & Button */
.mobile-nav-button {
    display: none;
}

.mobile-nav-button button {
    background: none;
    border: none;
}

.mobile-nav-x button {
    background: none;
    border: none;
    background: #085e63;
    color: #F5EFD7;
    padding: 10px 12px;
}

.mobile-nav-wrap {
    position: fixed;
    top: 0;
    left: -100%;
    transition: left 0.8s ease-in-out; /* Smooth slide effect */
    display: flex;
    z-index: 1000;
}

.mobile-nav-wrap.active {
    left: 0; /* Slide in */
}

.mobile-nav-box {
    width: 300px;
    min-height: 100vh;
    background: #024347;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.705);
}

.mobile-nav-head {
    width: 100%;
    height: 100px;
    background: #085e63;
    border-bottom: 2px solid #167277;
    display: flex;
    align-items: center;
}

.mobile-nav-head img {
    margin: auto auto auto 20px;
}

.mobile-nav-body {
    width: 100%;
    height: 100px;
    flex: 1;
}

.mobile-nav-body .navlink {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.mobile-nav-footer {
    width: 100%;
    height: 100px;
    background: #085e63;
    border-top: 2px solid #167277;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

@media (max-width: 1100px) {
    .perk {
        width: 50%;
    }
}

@media (max-width: 1024px) { /* Tablets */
    .product-cards .card {
        flex: 1 1 calc(33.33% - 25px); /* 3 cards per row */
        max-width: calc(33.33% - 25px);
    }
    .discount-product .card {
        width: 180px;
    }
    .advert {
        width: 25%;
    }
    .advert-info {
        bottom: 20px;
        left: 20px;
    }
    .advert-info h3 {
        font-size: 1.4em;
    }
    .advert-info p {
        font-size: 0.7em;
    }
    .advert-info .secondary-btn {
        padding: 8px 10px;
        font-size: 0.8em;
    }
}

@media (max-width: 1000px) {
    .inner-footer-2 {
        padding-top: 100px;
    }
}

@media (max-width: 867px) {
    .advert-discount {
        flex-direction: column-reverse;
    }
    .discount-product {
        justify-content: center;
    }
    .discount-product .card {
        width: 150px;
    }
    .discount-product .card-image {
        height: 150px;
    }
    .advert {
        width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 800px) {
    ul.navbar {
        display: none;
    }

    .mobile-nav-button {
        display: block;
    }

    .mobile-nav-button img {
        width: 25px;
    }

    .hero {
        width: 85%;
    }
    .product-cards .card {
        max-width: 85%; /* Show 2 items per row on smaller screens */
    }
    .inner-footer-2 {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 768px) { /* Smaller tablets and large phones */
    .product-cards .card {
        flex: 1 1 calc(50% - 25px); /* 2 cards per row */
        max-width: calc(50% - 25px);
    }
}

@media (max-width: 700px) { /* Smaller tablets and large phones */
    .floating-search-box .input-box input {
        width: 500px;
    }
}

@media (max-width: 600px) {
    .hero {
        width: 95%;
    }
    h1 {
        font-size: 2em;
    }
    .featured-cards .card {
        flex: 1 1 100%; /* Full width on small screens */
        max-width: 100%;
    }
    .perk {
        width: 100%;
    }
    .floating-search-box .input-box input {
        width: 300px;
    }
}

@media (max-width: 480px) { /* Mobile phones */
    .product-cards .card {
        flex: 1 1 100%; /* 1 card per row */
        max-width: 100%;
    }
}

@media (max-width: 450px) {
    h1 {
        font-size: 1.5em;
    }
    footer {
        padding: 100px 10px;
    }
}

@media (max-width: 400px) {
    .product-cards .card {
        max-width: 100%; /* Show 1 item per row on very small screens */
    }
    .logo {
        width: 100px;
    }
    .hero {
        width: 60%;
    }
    h1 {
        font-size: 1em;
        margin-top: 20px;
    }
}

@media (max-width: 395px) {
    .discount-product .card {
        width: 250px;
        flex: 1 0 250px;
    }
}