/* ============================================================
   mobile-ui-v2.css  —  Balgopaladress_Kunj
   Loads AFTER site.css so these rules win the cascade.
   All changes are scoped to mobile (<=768px) unless noted.
   ============================================================ */

/* Global guard: never allow sideways scroll on mobile */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; max-width: 100%; }
}

/* ------------------------------------------------------------
   PHOTO 1 — Footer sitting flush to the left edge.
   Give the footer breathing room on both sides.
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    footer .wrap.cols,
    footer .fbot {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
    footer .wrap.cols { row-gap: 26px; }
    /* long email / links must wrap, never overflow */
    footer p, footer a { overflow-wrap: anywhere; word-break: break-word; }
    footer h5 { margin-bottom: 10px; }
}

/* ------------------------------------------------------------
   PHOTO 2a — "Trust / features" strip (Free Shipping, COD, etc.)
   Make it a clean 2-column card grid, nicely aligned.
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .trust .wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px 14px;
        padding: 16px 18px;
    }
    .trust .t {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin: 0 !important;
    }
    .trust .t span {
        display: flex;
        flex-direction: column;
        font-size: 12px;
        line-height: 1.35;
    }
    .trust .t span b { font-size: 13px; }
    .trust .ic { width: 22px; height: 22px; flex: none; }
    /* the lone "Support" item (5th) spans both columns and centers */
    .trust .t:nth-child(5) { grid-column: 1 / -1; justify-content: center; }
}

/* ------------------------------------------------------------
   PHOTO 2b — Promo cards (Janmashtami / New Arrivals / Combo / Festival).
   On mobile, stop the cramped side-by-side layout: stack vertically.
   Order: (1) Janmashtami  (2) New Arrivals  (3) Combo + Festival.
   Requires the class names added in the updated Home/Index.cshtml.
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .promo-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
    .promo-side { grid-template-rows: auto auto !important; gap: 14px !important; }
    .promo-main { padding: 20px !important; }
    .promo-main .promo-off { font-size: 30px !important; }
    /* Combo + Festival stay side-by-side (they're small), but taller & centered */
    .promo-mini { grid-template-columns: 1fr 1fr !important; }
    .promo-mini > div { text-align: center; padding: 18px 14px !important; }
}

/* ------------------------------------------------------------
   PHOTO 3a — Hero slider heading + button.
   Center the text block and push it lower so it reads better.
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .hb-overlay {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 26px !important;
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        padding: 0 18px !important;
        background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
    }
    .hb-h1, .hb-h2 { text-align: center; }
    .hb-desc { margin-left: auto; margin-right: auto; max-width: 320px; }
    .hb-btn { margin-left: auto; margin-right: auto; }
}

/* ------------------------------------------------------------
   PHOTO 3b — Category rings: show only the first 4 on mobile,
   reveal the rest when "See all categories" is tapped.
   (Button + toggle handled in mobile-ui.js and Home/Index.cshtml.)
   ------------------------------------------------------------ */
.cats-seeall { display: none; }
@media (max-width: 768px) {
    .cats .row { flex-wrap: wrap; justify-content: space-around; row-gap: 14px; }
    /* hide 5th category onward until expanded */
    #catSec:not(.show-all) .row .cat:nth-child(n+5) { display: none; }

    .cats-seeall {
        display: inline-block;
        margin: 14px auto 0;
        padding: 9px 20px;
        border: 1.5px solid var(--gold, #C9762E);
        color: var(--gold, #C9762E);
        background: #fff;
        border-radius: 22px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
    }
    .cats { text-align: center; }
}

/* ------------------------------------------------------------
   PHOTO 4 — Collaboration / Creator page.
   Stack the description and the form vertically on mobile.
   (.sugglay uses an inline 1fr 1fr — !important overrides it.)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .sugglay { grid-template-columns: 1fr !important; gap: 20px !important; }
    .sugglay .pillrow { grid-template-columns: 1fr 1fr; }
    .sugglay .statband { flex-wrap: wrap; gap: 12px; }
    .sugglay .suggform { margin-top: 4px; }
    /* form fields that were side-by-side become full width if cramped */
    .suggform .frow { gap: 10px; }
}

/* ------------------------------------------------------------
   Small polish: the floating WhatsApp button (icon fixed in _Layout).
   ------------------------------------------------------------ */
.wa-float svg { width: 30px; height: 30px; display: block; }
@media (max-width: 768px) { .wa-float svg { width: 26px; height: 26px; } }
