@media all and (max-width:1300px) {

    .nav-bar,
    .home {
        padding: 0 20px;
    }

    .nav-bar .nav-links a {
        font-size: 14px;
        padding: 6px 10px;
        white-space: nowrap !important;
    }

    section {
        padding: 15px;
    }

}

@media all and (max-width:1000px) {

    .nav-bar {
        width: 100%;
        padding: 0 15px;
    }

    .nav-bar .nav-links a {
        margin: 0 4px;
        padding: 6px 8px;
        font-size: 13.5px;
        white-space: nowrap !important;
    }

    .home .text h3 {
        font-size: 25px;
    }

    .home .text h1 {
        font-size: 50px;
    }

    .home .text h4 {
        font-size: 16px;
        line-height: 20px;
    }

    .home .image img {
        width: 100%;
        height: 70%;
        margin: 0;
    }
}

@media all and (max-width:830px) {

    .nav-bar {
        justify-content: space-between;
        padding: 15px;
        overflow: hidden;
        box-shadow: 0 0 10px rgb(203, 203, 203);
    }

    .nav-bar .nav-links {
        flex-direction: column;
        position: fixed;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: var(--body-color);
        width: 100%;
        left: -100%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding: 20px 0;
        overflow-y: auto;
    }

    .nav-bar .nav-links.active {
        left: 0;
    }

    .nav-bar .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        line-height: 25px;
        margin: 0;
        padding: 20px 0;
        border-bottom: 1px solid rgba(217, 22, 86, 0.1);
        border-radius: 0;
        font-size: 18px;
        transition: all 0.3s;
    }

    .nav-bar .nav-links a:hover {
        background-color: rgba(217, 22, 86, 0.1);
        padding-left: 20px;
    }

    .nav-bar .nav-links a:first-of-type {
        border-top: 1px solid rgba(217, 22, 86, 0.1);
    }

    .nav-bar .icons i.menu {
        display: inline-block;
        font-size: 24px;
        cursor: pointer;
    }

    .home {
        height: max-content;
        min-height: auto;
        padding: 50px 10px 0 10px;
        flex-direction: column-reverse;
    }

    .grid {
        padding: 0;
        gap: 5px;
    }

    .home .text, .home .grid {
        width: 100%;
    }

    .home .text h1 {
        font-size: 30px;
    }

    .home .text h4 {
        font-size: 15px;
        margin-bottom: 15px;
        overflow: visible;
    }

    .home .image {
        width: 90%;
    }

    .reviews .reviews-box .box .top img {
        height: 60px;
        width: 60px;
    }

    .contact form .row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .copyright {
        font-size: 10px;
    }

    .inner {
        flex-direction: column;
        margin-top: 10px;
        gap: 10px;
    }

}

/* ─── Tablet ────────────────────────── */
@media all and (max-width:768px) {

    /* Footer */
    .footer {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
    }

    .footer .footer-row {
        gap: 1rem;
        padding: 40px 20px;
    }

    .footer-col {
        text-align: center;
        width: 100%;
    }

    .footer-col li .social {
        justify-content: center;
    }

    .footer-col form {
        display: block;
        text-align: center;
    }

    .footer-col form :where(input, button) {
        width: 100%;
    }

    .footer-col form button {
        margin: 10px 0 0 0;
    }

    /* About */
    .about .about-box {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        margin-left: 0;
    }

    .about .about-box .video-container {
        max-width: 100%;
        padding: 0;
    }

    .video-container video {
        width: 100%;
        height: auto;
        right: 0;
    }

    .about .about-box .text {
        padding-left: 0;
        text-align: center;
    }

    .about .about-box .text h1,
    .about .about-box .text h2 {
        font-size: 28px;
    }

    /* Subscription plans */
    .plans-container {
        flex-direction: column;
    }

    .plan {
        width: 100%;
        margin-bottom: 20px;
    }

    .loader-container {
        width: 100px;
        height: 100px;
    }

    /* Flavor circles */
    .flavor-circle {
        width: 15px;
        height: 15px;
    }

    .flavor-circle:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translate(35px) rotate(0deg); }
    .flavor-circle:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) translate(35px) rotate(-45deg); }
    .flavor-circle:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) translate(35px) rotate(-90deg); }
    .flavor-circle:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) translate(35px) rotate(-135deg); }
    .flavor-circle:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) translate(35px) rotate(-180deg); }
    .flavor-circle:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) translate(35px) rotate(-225deg); }
    .flavor-circle:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) translate(35px) rotate(-270deg); }
    .flavor-circle:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) translate(35px) rotate(-315deg); }

    /* Cart – full width on tablet */
    .cart {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }

    /* Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: flex;
    }

    /* Prevent content hidden behind bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Sections */
    section {
        padding: 0 15px;
        margin: 30px 0;
    }

    /* Spotlight section */
    .spotlight-card {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .spotlight-card .spotlight-image img {
        width: 260px !important;
        height: 260px !important;
    }

    .spotlight-info {
        text-align: center !important;
    }

    /* Chef secret */
    .chef-secret {
        flex-direction: column !important;
        padding: 60px 20px !important;
        gap: 40px !important;
    }

    .chef-secret .secret-image {
        min-width: unset !important;
    }

    /* Community scoops */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Copyright */
    .copyright-dev {
        font-size: 0.75rem;
    }
}

/* ─── Mobile ───────────────────────── */
@media all and (max-width:600px) {

    footer .footer-box {
        margin-bottom: 15px;
    }

    footer .footer-box h1 {
        font-size: 20px;
    }

    .home .text button {
        font-size: 15px;
        padding: 7px 12px;
    }

    .home .design3,
    .home .design2,
    .home .design1 {
        opacity: 0;
    }

    section {
        padding: 0 12px;
        margin: 25px 0;
    }

    .box-container {
        gap: 12px;
    }

    .box {
        flex: 1 1 calc(50% - 12px);
        min-width: 150px;
    }

    /* Touch-friendly minimum sizes */
    button,
    input[type="submit"] {
        min-height: 44px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    textarea,
    select {
        font-size: 16px; /* prevent iOS zoom on focus */
        min-height: 44px;
    }

    /* Cart – full width on mobile */
    .cart {
        width: 100%;
        border-radius: 0;
        max-width: 100%;
    }

    .products-box .box {
        padding: 15px;
    }

    .review-box {
        flex: 1 1 100%;
    }

    .feature-box {
        flex: 0 0 100%;
    }

    .services-card-wrapper {
        gap: 15px;
    }

    .spotlight-card .spotlight-image img {
        width: 200px !important;
        height: 200px !important;
    }

    .nav-bar {
        padding: 12px 15px;
    }

    .footer .footer-row {
        padding: 30px 15px;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* ─── Small mobile (≤400px) ─────────── */
@media all and (max-width:400px) {

    .home .text h1 {
        font-size: 26px;
    }

    .home .text h4 {
        font-size: 14px;
        line-height: 20px;
    }

    .about .about-box .text h1,
    .about .about-box .text h2 {
        font-size: 22px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .cart {
        width: 100%;
        max-width: 100%;
    }

    .copyright-dev {
        flex-direction: column;
        gap: 3px;
    }

    .instagram-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .review-box .top img {
        width: 60px;
        height: 60px;
    }
}
