﻿/* ================================
   MOBILE: HIDE FOOTER
================================ */
@media (max-width: 768px) {
    footer,
    .wh-footer {
        display: none !important;
    }
}

/* ================================
   MOBILE HEADER CLEAN MODE
================================ */
@media (max-width: 768px) {

    /* Hide everything except brand */
    .site-header nav,
    .site-header .header-actions,
    .site-header .header-right,
    .site-header .header-icons {
        display: none !important;
    }

    .site-header {
        padding: 10px 14px !important;
    }

    .site-logo-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        line-height: 1.1;
    }

    .site-logo {
        font-size: 16px !important;
        font-weight: 800;
        text-align: center;
        white-space: nowrap;
    }

    .site-logo-sub {
        font-size: 11px;
        font-weight: 500;
        opacity: 0.7;
        margin-top: 2px;
    }
}

/* ===========================
   MOBILE HEADER BRAND FIX
=========================== */
@media (max-width: 768px) {

    .header-brand {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-brand-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        line-height: 1.15;
    }

    .header-brand-name {
        font-size: 16px;
        font-weight: 700;
    }

    .header-brand-sub {
        font-size: 11px;
        opacity: 0.7;
        margin-top: 2px;
    }
}
/* ===========================
   MOBILE: FORCE HIDE DESKTOP HEADER NAV
=========================== */
@media (max-width: 768px) {

    /* Hide desktop nav links */
    .header-center-nav {
        display: none !important;
    }

    /* Hide right-side header user/cart */
    .header-right-block {
        display: none !important;
    }

    /* Center brand only */
    .header {
        justify-content: center !important;
    }

    .header-brand {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.header-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-vendor-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Mobile tweak */
@media (max-width: 768px) {
    .header-vendor-logo {
        width: 28px;
        height: 28px;
    }
}


/* =========================================================
   MOBILE — PLACE WIZARD FOOTER ABOVE MOBILE NAV
========================================================= */
@media (max-width: 768px) {

    body.cart-wizard .wizard-footer-fixed {
        bottom: 64px; /* exact height of mobile nav */
    }
}

/* ========== MOBILE LAYOUT (LOGIN & GENERIC) ========== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: 100vh;
        overflow-y: auto;
    }

    .header {
        padding: 10px 16px;
    }

    .header-title {
        font-size: 17px;
    }

    .header-subtitle {
        display: none;
    }

    .left {
        flex: none;
        width: 100%;
        height: 38vh;
        min-height: 220px;
    }

    .right {
        flex: none;
        width: 100%;
        padding: 10px 14px 80px 14px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin-top: 56px; /* push below header */
    }

    .card {
        width: 100%;
        max-width: 480px;
        margin: -40px auto 0 auto;
        padding: 22px 18px 18px 18px;
        border-radius: 22px;
        box-shadow: 0 18px 38px rgba(15,23,42,0.90);
    }

    .card-title {
        font-size: 22px;
    }

    .card-sub {
        font-size: 12px;
    }

    .input {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
    }

    .footer {
        font-size: 11px;
        padding: 8px;
    }
}

/* Extra-small phones */
@media (max-width: 400px) {
    .card {
        margin-top: -30px;
        border-radius: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .header-title {
        font-size: 16px;
    }

    .theme-toggle {
        padding: 4px 12px;
        font-size: 13px;
    }
}

/* Slight adjust for small tablets */
@media (max-width: 850px) {
    .container {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .left {
        height: 42vh;
        flex: none;
    }

    .right {
        flex: none;
        padding: 0;
        margin-top: 64px;
    }

    .card {
        width: 92%;
        margin: 0 auto;
        border-radius: 20px;
        padding: 24px 20px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-sub {
        font-size: 13px;
    }

    .input {
        font-size: 15px;
        padding: 14px;
    }

    .btn {
        font-size: 16px;
        padding: 12px;
    }

    .success-mini-slide {
        width: 56px;
        height: 38px;
    }
}

/* Tablet/mobile layout */
@media (max-width:1024px) {
    .header-inner {
        grid-template-columns: 1fr auto 1fr; /* left spacer | center logo | right hamburger */
        padding: 0 14px;
    }

    .public-brand {
        display: none;
    }

    .header-brand-mobile {
        display: flex;
        animation: logoSlideFade .45s ease-out both;
        justify-self: center;
    }

    .header-left-mobile {
        display: flex;
        justify-self: end;
    }

    .hamburger-btn {
        display: flex;
    }
}

@media (max-width:1024px) {
    .public-footer {
        display: none;
    }
}

@media (max-width:1024px) {
    .mobile-nav {
        display: flex;
    }

    body.has-mobile-nav {
        padding-bottom: 80px;
    }
}

@media (min-width:1025px) {
    .mobile-nav {
        display: none !important;
    }

    body.has-mobile-nav {
        padding-bottom: 0;
    }
}
/* =========================================================
   HEADER GRID — MOBILE/TABLET LAYOUT
   ========================================================= */

@media (max-width:1024px) {

    .public-header-inner {
        grid-template-columns: 1fr auto 1fr;
    }


    /* Show centered brand text */
    .header-brand-mobile {
        display: flex;
        justify-self: center;
        animation: fadeSlideDown .35s ease-out both;
    }

    /* Hamburger stays on RIGHT */
    .header-left-mobile {
        justify-self: end;
    }
}

