/* ══════════════════════════════════════════════════════
   WAKANZ — MOBILE-FIX.CSS
   Covers: hamburger nav, phones (≤768px), tablets (769–900px)
   Loads AFTER style.css — overrides only what's needed
══════════════════════════════════════════════════════ */

/* ── HAMBURGER BUTTON ─────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    margin-left: 0.8rem;
    z-index: 201;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--forest);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DROPDOWN ──────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    padding: 0.5rem 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(200, 146, 58, 0.2);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    display: block;
    padding: 0.9rem 0;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 146, 58, 0.1);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); padding-left: 0.4rem; }

/* ══════════════════════════════════════════════════════
   PHONES — ≤ 768px
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── NAV ──────────────────────────────────────── */
    nav {
        padding: 1rem 1.2rem;
    }

    .nav-links {
        display: none !important;
    }

    .nav-hamburger {
        display: flex !important;
    }

    /* ── HERO ─────────────────────────────────────── */
    .hero {
        grid-template-columns: 1fr;
        min-height: unset;
        padding-top: 62px;
    }

    .hero-left {
        padding: 2.5rem 1.2rem 2rem;
        order: 1;
    }

    .hero-right {
        height: 280px;
        min-height: unset;
        order: 2;
        width: 100%;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.05;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem 0 1.6rem;
        max-width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .btn-primary,
    .btn-outline {
        text-align: center;
        padding: 0.9rem 1.2rem;
        width: 100%;
        display: block;
    }

    .hero-stats {
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .stat-item h4 { font-size: 1.6rem; }

    .hero-badge {
        width: 68px;
        height: 68px;
        top: 10%;
        right: 8%;
    }

    .hero-badge strong { font-size: 0.95rem; }
    .hero-badge span { font-size: 0.5rem; }

    /* ── MARQUEE ──────────────────────────────────── */
    .marquee-inner { gap: 1.8rem; }
    .marquee-item { font-size: 0.68rem; }

    /* ── ABOUT ────────────────────────────────────── */
    .about-strip {
        grid-template-columns: 1fr;
        padding: 3rem 1.2rem;
        gap: 2rem;
    }

    .about-strip::before { font-size: 4rem; opacity: 0.03; }
    .about-heading { font-size: 2rem; }
    .about-text { font-size: 1rem; }

    .about-visual { height: 240px; }

    .about-img-main {
        width: 82%;
        height: 78%;
    }

    .about-img-accent {
        width: 42%;
        height: 50%;
    }

    .about-img-accent-inner h3 { font-size: 2rem; }

    .feature-row { padding: 0.8rem; gap: 0.8rem; }
    .feature-icon { width: 28px; height: 28px; }
    .feature-row h5 { font-size: 0.78rem; }
    .feature-row p { font-size: 0.76rem; }

    /* ── PRODUCTS ─────────────────────────────────── */
    .products { padding: 3rem 1.2rem; }

    .section-title { font-size: 2rem; }
    .section-label { font-size: 0.68rem; }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .product-card {
        width: 100%;
        height: auto;
        min-height: 460px;
    }

    .product-img { height: 230px; }

    .product-desc {
        height: auto;
        white-space: normal;
        overflow: visible;
    }

    .product-name { font-size: 1.1rem; }
    .product-price { font-size: 1.3rem; }

    .btns { gap: 0.4rem; }

    .add-cart {
        padding: 0.65rem 0.8rem;
        font-size: 0.7rem;
    }

    /* ── INGREDIENTS ──────────────────────────────── */
    .ingredients { padding: 3rem 1.2rem; }

    .ingredients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 2rem;
    }

    .ingredient-card { padding: 1.5rem 0.9rem; }
    .ingredient-icon { width: 40px; height: 40px; }
    .ingredient-card h4 { font-size: 1rem; }
    .ingredient-card p { font-size: 0.72rem; }

    /* ── TESTIMONIALS ─────────────────────────────── */
    .testimonials { padding: 3rem 1.2rem; }

    .reviews-marquee-inner .testimonial-card { width: 270px; }
    .testimonial-card { padding: 1.5rem; }
    .testimonial-text { font-size: 0.95rem; }

    /* ── LEAVE A REVIEW ───────────────────────────── */
    .leave-review { padding: 3rem 1.2rem; }

    .leave-review-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .leave-review-title { font-size: 1.9rem; }
    .leave-review-sub { font-size: 1rem; }

    .review-cta-card { padding: 1.8rem 1.2rem; }

    /* ── NEWSLETTER ───────────────────────────────── */
    .newsletter { padding: 3rem 1.2rem; }
    .newsletter h2 { font-size: 1.8rem; }
    .newsletter p { font-size: 0.95rem; }

    .newsletter-form {
        flex-direction: column;
        gap: 0;
    }

    .newsletter-form input {
        border-right: 1px solid rgba(200, 146, 58, 0.4);
        border-bottom: none;
        padding: 0.9rem 1rem;
    }

    .newsletter-form button {
        width: 100%;
        padding: 0.9rem;
    }

    /* ── FOOTER ───────────────────────────────────── */
    footer { padding: 3rem 1.2rem 2rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    /* ── CART DRAWER ──────────────────────────────── */
    .cart-drawer {
        width: 100vw;
        max-width: 100vw;
    }

    .cart-drawer-header { padding: 1.1rem 1.2rem; }
    .cart-items { padding: 0.8rem 1.2rem; }
    .cart-footer { padding: 1.1rem 1.2rem; }

    .cart-item {
        grid-template-columns: 52px 1fr auto;
        gap: 0.6rem;
        padding: 1rem 0;
    }

    .cart-item-img { width: 52px; height: 52px; }
    .cart-item-name { font-size: 0.88rem; }

    .cart-trust {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .summary-row.total span:last-child { font-size: 1.1rem; }

    /* ── CHECKOUT MODAL ───────────────────────────── */
    .checkout-modal { align-items: flex-end; }

    .checkout-box {
        padding: 1.5rem 1.2rem;
        max-height: 95dvh;
        max-width: 100vw;
        width: 100%;
        border-radius: 0;
    }

    .checkout-box h2 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .place-order-btn {
        font-size: 0.8rem;
        padding: 1rem;
    }

    /* ── PRODUCT MODAL ────────────────────────────── */
    .wkz-product-modal-wrap {
        padding: 0;
        align-items: flex-end;
    }

    .wkz-product-modal-box {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        border-radius: 0;
        animation: wkzModalSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes wkzModalSlideUp {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    .wkz-modal-image-panel {
        flex: 0 0 42vh;
        min-height: 0;
        width: 100%;
    }

    #wkzProductModalImage {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        position: absolute;
        inset: 0;
        z-index: 2;
        filter: none;
    }

    .wkz-modal-details-panel {
        flex: 1 1 0;
        overflow-y: auto;
        padding: 1.2rem 1.2rem 1.5rem;
        height: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    .wkz-product-modal-close-btn {
        width: 38px;
        height: 38px;
        top: 0.8rem;
        right: 0.8rem;
        background: rgba(0, 0, 0, 0.45);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    #wkzProductModalTitle  { font-size: 1.2rem; margin-bottom: 0.4rem; }
    #wkzProductModalPrice  { font-size: 1.4rem; }
    #wkzProductModalDescription {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 0.7rem;
        flex: unset;       /* don't stretch on mobile — let it scroll */
    }

    .wkz-modal-eyebrow    { font-size: 0.6rem;  margin-bottom: 0.3rem; }
    .wkz-modal-divider    { margin-bottom: 0.7rem; }
    .wkz-modal-benefits   { gap: 0.25rem; margin-bottom: 0.7rem; }
    .wkz-modal-benefit-pill { font-size: 0.58rem; padding: 0.22rem 0.45rem; }
    .wkz-modal-price-row  { margin-bottom: 0.7rem; }
    .wkz-modal-actions    { margin-bottom: 0.7rem; flex-wrap: wrap; }

    #wkzProductModalAddBtn {
        padding: 0.9rem 1rem;
        font-size: 0.72rem;
        flex: 1;
        min-width: 0;
    }

    .wkz-modal-wishlist-btn { width: 46px; height: 46px; }

    .wkz-modal-trust {
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-top: 0.7rem;
        margin-top: 0.8rem;   /* fixed gap instead of auto on mobile */
    }

    .wkz-modal-trust-item { font-size: 0.58rem; }

    .wkz-modal-thumbs-bar { padding: 0.4rem 0.8rem 0.6rem; }
    .wkz-modal-thumb { width: 38px; height: 38px; }

    /* ── REVIEW MODAL ─────────────────────────────── */
    .review-modal-overlay { padding: 0; align-items: flex-end; }

    .review-modal-box {
        padding: 1.8rem 1.2rem;
        max-height: 95dvh;
        max-width: 100vw;
        width: 100%;
        border-radius: 0;
    }

    .review-modal-title { font-size: 1.4rem; margin-bottom: 1.2rem; }
    .star-pick { font-size: 1.8rem; }

    /* ── TOAST ────────────────────────────────────── */
    .toast {
        width: calc(100vw - 2rem);
        white-space: normal;
        text-align: center;
        justify-content: center;
        font-size: 0.76rem;
        bottom: 1rem;
        left: 1rem;
        transform: translateY(30px);
        right: 1rem;
    }

    .toast.show {
        transform: translateY(0);
    }
    .product-desc {
    font-size: 0.82rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 1rem;
    height: 32px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
}

/* ══════════════════════════════════════════════════════
   TABLETS — 769px to 900px
══════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 900px) {

    nav { padding: 1rem 2rem; }
    .nav-links { display: none !important; }
    .nav-hamburger { display: flex !important; }

    /* ── HERO ─────────────────────────────────────── */
    .hero {
        grid-template-columns: 1fr;
        padding-top: 70px;
        min-height: unset;
    }

    .hero-left { padding: 3.5rem 2.5rem 2.5rem; }
    .hero-right { height: 320px; min-height: unset; }
    .hero-title { font-size: 3.6rem; }

    .hero-ctas { flex-direction: row; }

    /* ── ABOUT ────────────────────────────────────── */
    .about-strip {
        grid-template-columns: 1fr;
        padding: 4.5rem 2.5rem;
        gap: 3rem;
    }

    .about-visual { height: 280px; }

    /* ── PRODUCTS ─────────────────────────────────── */
    .products { padding: 4.5rem 2.5rem; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .product-card {
        width: 100%;
        height: auto;
        min-height: 500px;
    }

    .product-desc { height: auto; white-space: normal; overflow: visible; }

    /* ── INGREDIENTS ──────────────────────────────── */
    .ingredients { padding: 4.5rem 2.5rem; }
    .ingredients-grid { grid-template-columns: repeat(2, 1fr); }

    /* ── TESTIMONIALS ─────────────────────────────── */
    .testimonials { padding: 4.5rem 2.5rem; }

    /* ── LEAVE A REVIEW ───────────────────────────── */
    .leave-review { padding: 4.5rem 2.5rem; }
    .leave-review-inner { grid-template-columns: 1fr; gap: 3rem; }

    /* ── NEWSLETTER ───────────────────────────────── */
    .newsletter { padding: 4.5rem 2.5rem; }
    .newsletter h2 { font-size: 2.2rem; }

    /* ── FOOTER ───────────────────────────────────── */
    footer { padding: 4rem 2.5rem 2rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }

    /* ── CART ─────────────────────────────────────── */
    .cart-drawer { width: 380px; }

    /* ── CHECKOUT ─────────────────────────────────── */
    .form-grid { grid-template-columns: 1fr; }

    /* ── PRODUCT MODAL ────────────────────────────── */
    .wkz-product-modal-wrap { padding: 0; align-items: flex-end; }

    .wkz-product-modal-box {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        border-radius: 0;
    }

    .wkz-modal-image-panel { flex: 0 0 48vh; min-height: 0; width: 100%; }

    #wkzProductModalImage {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
        z-index: 2;
    }

    .wkz-modal-details-panel {
        flex: 1 1 0;
        overflow-y: auto;
        padding: 1.5rem 1.8rem 1.5rem;
        height: auto;
        min-height: 0;
    }

    .wkz-product-modal-close-btn {
        background: rgba(0,0,0,0.4);
        border-color: rgba(255,255,255,0.2);
        color: #fff;
    }

    #wkzProductModalDescription { flex: unset; }
.product-desc {
    font-size: 0.82rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 1rem;
    height: 32px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
    .wkz-modal-trust { margin-top: 1rem; }
}

/* ══════════════════════════════════════════════════════
   EXTRA SMALL PHONES — ≤ 380px
══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
.product-desc {
    font-size: 0.82rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 1rem;
    height: 32px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
    .hero-title { font-size: 2.3rem; }
    .hero-right { height: 230px; }

    .wkz-modal-image-panel { flex: 0 0 36vh; }
    #wkzProductModalTitle { font-size: 1.05rem; }
    #wkzProductModalPrice { font-size: 1.2rem; }

    .ingredients-grid { grid-template-columns: 1fr; }

    .about-img-accent { display: none; }
    .about-img-main { width: 100%; height: 100%; }

    .footer-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   GLOBAL OVERFLOW GUARD
══════════════════════════════════════════════════════ */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}