/* Site fixes — keep this file when installing new scripts */

/* Hero: only one slide visible (prevent 3–4 ads stacking) */
.hero-slider,
.app-home .hero-slider {
    position: relative !important;
    overflow: hidden !important;
    width: 100%;
}
.hero-track,
.app-home .hero-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    align-items: flex-start !important;
}
.hero-slide,
.app-home .hero-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.hero-slide a {
    display: block;
}

/* Promo ads slider — one banner at a time */
.promo-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.promo-slider-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.45s ease;
}
.promo-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.promo-slide a {
    display: block;
}
.promo-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary, #df2d4d);
    cursor: pointer;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.promo-slider.has-many .promo-slider-nav {
    display: flex;
}
.promo-slider-prev { left: 8px; }
.promo-slider-next { right: 8px; }
.promo-slider-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.promo-slider.has-many .promo-slider-dots {
    display: flex;
}
.promo-slider-dot {
    width: 7px;
    height: 7px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #cfcfcf;
    cursor: pointer;
}
.promo-slider-dot.is-active {
    width: 18px;
    border-radius: 8px;
    background: var(--primary, #df2d4d);
}

/* Horizontal promo banners: full image on mobile */
.promo-banner,
.app-home .promo-banner {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: none !important;
    background-image: none !important;
}

.promo-banner-img,
.app-home .promo-banner-img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Fallback if old background-image markup still exists */
.promo-banner[style*="background-image"] {
    min-height: 0 !important;
    aspect-ratio: 16 / 5;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

@media (max-width: 900px) {
    .promo-banner[style*="background-image"] {
        aspect-ratio: 16 / 7;
    }
}

/* =============================================
   Customer login — professional + app-style mobile
   ============================================= */
.cust-login {
    --cl-primary: var(--primary, #df2d4d);
    --cl-text: #111827;
    --cl-muted: #6b7280;
    --cl-line: #e5e7eb;
    --cl-bg: #f4f5f8;
    font-family: 'Hind Siliguri', 'Roboto', sans-serif;
    background: var(--cl-bg);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.cust-login__card {
    width: 100%;
    max-width: 980px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    min-height: 580px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.cust-login__brand {
    background:
        radial-gradient(1200px 400px at -10% -20%, rgba(255, 255, 255, 0.18), transparent 50%),
        linear-gradient(165deg, var(--cl-primary) 0%, #9b1733 100%);
    color: #fff;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.cust-login__brand-logo {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.cust-login__brand-kicker {
    margin: 18px 0 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 600;
}

.cust-login__brand-copy h2 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 10px;
}

.cust-login__brand-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.92;
}

.cust-login__perks {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.cust-login__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.cust-login__perks i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.cust-login__form {
    padding: 40px 42px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cust-login__back {
    display: none;
}

.cust-login__logo-wrap {
    display: none;
}

.cust-login__head {
    margin-bottom: 22px;
}

.cust-login__head h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--cl-text);
    margin: 0 0 6px;
}

.cust-login__head p {
    margin: 0;
    color: var(--cl-muted);
    font-size: 14px;
}

.cust-login__alert {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}

.cust-field {
    display: block;
    margin-bottom: 14px;
}

.cust-field > span:first-child {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.cust-field__box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 14px;
    border: 1.5px solid var(--cl-line);
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cust-field__box:focus-within {
    background: #fff;
    border-color: var(--cl-primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 223, 45, 77), 0.12);
}

.cust-field__box > i {
    color: #9ca3af;
    font-size: 15px;
    width: 16px;
    text-align: center;
}

.cust-field__box input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--cl-text);
    min-width: 0;
    height: 100%;
}

.cust-field__box input::placeholder {
    color: #9ca3af;
}

.cust-field__eye {
    border: 0;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
}

.cust-field em {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-style: normal;
    color: #dc2626;
}

.cust-login__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 18px;
    flex-wrap: wrap;
}

.cust-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cl-muted);
    cursor: pointer;
}

.cust-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--cl-primary);
}

.cust-login__meta a {
    font-size: 13px;
    color: var(--cl-primary);
    font-weight: 600;
}

.cust-login__submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 13px;
    background: var(--cl-primary);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 22px rgba(var(--primary-rgb, 223, 45, 77), 0.28);
    transition: transform 0.15s, filter 0.15s;
}

.cust-login__submit:hover {
    filter: brightness(1.05);
}

.cust-login__submit:active {
    transform: scale(0.98);
}

.cust-login__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: #9ca3af;
    font-size: 13px;
}

.cust-login__or::before,
.cust-login__or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eceff3;
}

.cust-login__social {
    display: grid;
    gap: 10px;
}

.cust-login__social.is-two {
    grid-template-columns: 1fr 1fr;
}

.cust-social {
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid var(--cl-line);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #111827;
    transition: background 0.15s, border-color 0.15s;
}

.cust-social:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.cust-social--google i { color: #ea4335; }
.cust-social--fb i { color: #1877f2; }

.cust-login__switch {
    text-align: center;
    margin: 22px 0 0;
    font-size: 14px;
    color: var(--cl-muted);
}

.cust-login__switch a {
    color: var(--cl-primary);
    font-weight: 700;
}

.cust-login__demo {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
    text-align: center;
}

.cust-login__demo p {
    margin: 0 0 10px;
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cust-login__demo-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cust-login__demo-row button {
    border: 1px solid #fd7e14;
    color: #fd7e14;
    background: transparent;
    border-radius: 8px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cust-login__demo-row button.is-vendor {
    border-color: #0d9488;
    color: #0d9488;
}

.auth-page .features-bar {
    display: none !important;
}

@media (max-width: 900px) {
    .cust-login__card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .cust-login__brand {
        display: none;
    }
}

/* Mobile: native app login — no header / footer / tab bar */
@media (max-width: 767px) {
    body.auth-page,
    body.app-home.auth-page {
        background: #fff !important;
        padding-bottom: 0 !important;
        overflow-x: hidden;
    }

    body.auth-page .notice-ticker,
    body.auth-page .site-header,
    body.auth-page .mobile-category-scroll,
    body.auth-page .nav-overlay,
    body.auth-page .features-bar,
    body.auth-page .site-footer,
    body.auth-page .footer-bottom,
    body.auth-page .mobile-bottom-nav,
    body.auth-page #gcc-toggle,
    body.auth-page #gcc-widget,
    body.auth-page #promoPopupOverlay,
    body.auth-page #snx-popup,
    body.auth-page #vomOverlay,
    body.auth-page #vomModal {
        display: none !important;
    }

    body.auth-page .auth-main {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: 100svh;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        align-items: flex-start;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    body.auth-page .auth-shell {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.auth-page .auth-card {
        padding: 8px 0 12px;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    body.auth-page .auth-card-head {
        margin-bottom: 16px;
    }

    body.auth-page .auth-card-head h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    body.auth-page .auth-switch {
        margin-top: 16px;
        margin-bottom: 0;
    }

    .cust-login {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
        background: #fff;
        align-items: stretch;
    }

    .cust-login__card {
        max-width: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .cust-login__form {
        flex: 1;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 22px calc(24px + env(safe-area-inset-bottom, 0px));
        justify-content: flex-start;
    }

    .cust-login__back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 4px 0 10px -6px;
        border-radius: 12px;
        color: #111827;
        font-size: 16px;
    }

    .cust-login__logo-wrap {
        display: flex;
        justify-content: center;
        margin: 8px 0 18px;
    }

    .cust-login__logo-wrap img {
        height: 44px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
    }

    .cust-login__logo-fallback {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        background: rgba(var(--primary-rgb, 223, 45, 77), 0.1);
        color: var(--cl-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }

    .cust-login__head {
        text-align: center;
        margin-bottom: 26px;
    }

    .cust-login__head h1 {
        font-size: 26px;
    }

    .cust-field__box {
        height: 52px;
        border-radius: 14px;
        background: #f3f4f6;
        border-color: transparent;
    }

    .cust-field__box input {
        font-size: 16px; /* prevent iOS zoom */
    }

    .cust-login__submit {
        height: 54px;
        border-radius: 14px;
        margin-top: 4px;
        position: sticky;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .cust-login__social.is-two {
        grid-template-columns: 1fr;
    }

    .cust-login__switch {
        margin-top: auto;
        padding-top: 28px;
    }
}

@media (max-width: 767px) {
    .mgmt-section .mgmt-slider {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        grid-template-columns: none !important;
        touch-action: pan-x;
    }
    .mgmt-section .mgmt-slider::-webkit-scrollbar { display: none; }
    .mgmt-section .mgmt-slider .mgmt-card {
        flex: 0 0 calc((100% - 10px) / 2);
        width: calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .mgmt-section .mgmt-slider .mgmt-card:hover { transform: none; }
    .mgmt-section .mgmt-slider .mgmt-card-excerpt { display: none; }
    .mgmt-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
    }
    .mgmt-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #d4d4d4;
        border: 0;
        padding: 0;
    }
    .mgmt-dot.is-active {
        width: 18px;
        border-radius: 6px;
        background: var(--primary, #df2d4d);
    }
}

@media (min-width: 768px) {
    .mgmt-dots { display: none !important; }
}


