/* =====================================================================
   Hatam Bazar theme  (hatam-theme.css)
   ---------------------------------------------------------------------
   Theme layer loaded AFTER the Smarty/Bootstrap 3 CSS in MasterPage.master.
   - Section 1: tokens (colors, radius, shadow) -> change the palette here
   - Section 2: base (font, body, links)
   - Section 3: header / nav / mobile drawer
   - Section 4: footer, mobile bottom bar, floating buttons
   - Section 5: shared legacy classes (used by inner pages, formerly inline
                in MasterPage.master)
   - Section 6: inner page harmonisation (page-header, owl buttons, btn)
   - Section 7: home page components (default.aspx)
   Full documentation: /docs/THEME.md (project root, not deployed)
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
    --hb-primary: #0d4ea6;
    --hb-primary-dark: #0a3577;
    --hb-primary-light: #1a6fd1;
    --hb-primary-50: #eaf2fd;
    --hb-green: #22a447;
    --hb-green-dark: #178a39;
    --hb-green-50: #ebf7ee;
    --hb-accent: #f5b301;
    --hb-danger: #e53935;
    --hb-bg: #f3f6fb;
    --hb-surface: #ffffff;
    --hb-text: #1b2a3d;
    --hb-muted: #6b7b90;
    --hb-border: #e3e9f2;
    --hb-radius-sm: 10px;
    --hb-radius: 16px;
    --hb-radius-lg: 22px;
    --hb-shadow: 0 6px 20px rgba(16, 42, 84, .07);
    --hb-shadow-hover: 0 14px 30px rgba(16, 42, 84, .14);
    --hb-nav-gradient: linear-gradient(90deg, #0a3577 0%, #0d4ea6 55%, #1667c6 100%);
    --hb-hero-gradient: linear-gradient(120deg, #0a3577 0%, #0d4ea6 50%, #138a62 100%);
    --hb-font: yekan, Tahoma, "Segoe UI", sans-serif;
}

/* ---------- 2. BASE ---------- */
@font-face {
    font-family: yekan;
    src: url(/assets/fonts/BYEKAN.woff) format("woff"), url(/assets/fonts/YEKAN.TTF) format("truetype");
    font-display: swap;
}

*, h1, h2, h3, h4, h5, h6, p, span, label, small, strong, div, a, input, button, select, textarea {
    font-family: var(--hb-font);
}

html, body.hb-body {
    background: var(--hb-bg);
}

body.hb-body {
    color: var(--hb-text);
    overflow-x: hidden;
}

/* Smarty sets #wrapper{overflow:hidden}; that breaks position:sticky */
body.hb-body #wrapper.hb-site {
    overflow: visible;
    background: var(--hb-bg);
}

@supports (overflow: clip) {
    body.hb-body #wrapper.hb-site {
        overflow-x: clip;
    }
}

body.hb-body section {
    background-color: transparent;
    border-bottom: 0;
}

body.hb-body a {
    transition: color .2s, background-color .2s, box-shadow .2s, transform .2s;
}

.hb-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- 3. HEADER ---------- */
.hb-topbar {
    background: var(--hb-surface);
    border-bottom: 1px solid var(--hb-border);
    position: relative;
    z-index: 1001;
}

.hb-topbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 86px;
}

.hb-logo {
    flex: 0 0 auto;
    display: block;
}

    .hb-logo img {
        height: 66px;
        width: auto;
        display: block;
    }

.hb-search {
    flex: 1 1 auto;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: var(--hb-bg);
    border: 1.5px solid var(--hb-border);
    border-radius: 999px;
    padding: 4px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

    .hb-search:focus-within {
        border-color: var(--hb-green);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(34, 164, 71, .12);
    }

    .hb-search input {
        flex: 1 1 auto;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
        color: var(--hb-text);
    }

        .hb-search input::placeholder {
            color: #98a6b8;
        }

    .hb-search button {
        flex: 0 0 auto;
        width: 46px;
        height: 40px;
        border: 0;
        border-radius: 999px;
        background: var(--hb-green);
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        transition: background-color .2s;
    }

        .hb-search button:hover {
            background: var(--hb-green-dark);
        }

.hb-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hb-btn-panel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 8px 0 16px;
    border-radius: 999px;
    background: var(--hb-primary-50);
    color: var(--hb-primary) !important;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none !important;
}

    .hb-btn-panel .hb-btn-ico {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--hb-primary);
        color: #fff;
        font-size: 14px;
    }

    .hb-btn-panel:hover {
        background: var(--hb-primary);
        color: #fff !important;
    }

        .hb-btn-panel:hover .hb-btn-ico {
            background: #fff;
            color: var(--hb-primary);
        }

.hb-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--hb-primary-50);
    color: var(--hb-primary);
    font-size: 18px;
    cursor: pointer;
}

/* --- main nav bar --- */
.hb-nav {
    background: var(--hb-nav-gradient);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(10, 53, 119, .18);
}

.hb-drawer-head {
    display: none;
}

.hb-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
}

    .hb-menu > li {
        position: relative;
    }

        .hb-menu > li > a {
            display: flex;
            align-items: center;
            gap: 7px;
            height: 52px;
            padding: 0 14px;
            color: #fff !important;
            font-size: 14px;
            white-space: nowrap;
            text-decoration: none !important;
        }

            .hb-menu > li > a > i:first-child {
                font-size: 14px;
                opacity: .9;
            }

            .hb-menu > li > a:hover,
            .hb-menu > li.open > a {
                background: rgba(255, 255, 255, .12);
            }

        .hb-menu > li.is-active > a {
            background: var(--hb-green);
        }

.hb-caret {
    font-size: 11px;
    transition: transform .2s;
}

.hb-dd:hover .hb-caret,
.hb-dd.open .hb-caret {
    transform: rotate(180deg);
}

.hb-sub {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: var(--hb-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 5;
}

.hb-dd:hover > .hb-sub,
.hb-dd.open > .hb-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hb-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--hb-text) !important;
    font-size: 14px;
    text-decoration: none !important;
}

    .hb-sub a i {
        width: 18px;
        text-align: center;
        color: var(--hb-primary);
    }

    .hb-sub a:hover {
        background: var(--hb-primary-50);
        color: var(--hb-primary) !important;
    }

.hb-backdrop {
    display: none;
}

/* medium desktops: hide menu icons so all items fit */
@media (min-width: 992px) and (max-width: 1199px) {
    .hb-menu > li > a {
        padding: 0 10px;
        font-size: 13px;
    }

        .hb-menu > li > a > i:first-child {
            display: none;
        }
}

/* --- tablet & mobile: off-canvas drawer --- */
@media (max-width: 991px) {
    .hb-topbar-inner {
        flex-wrap: wrap;
        gap: 10px 12px;
        min-height: 0;
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .hb-logo img {
        height: 52px;
    }

    .hb-actions {
        margin-right: auto;
    }

    .hb-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .hb-btn-panel {
        padding: 0 6px;
    }

        .hb-btn-panel .hb-btn-txt {
            display: none;
        }

    .hb-menu-toggle {
        display: grid;
        place-items: center;
    }

    .hb-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        width: 300px;
        max-width: 86vw;
        background: #fff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .18);
        transform: translateX(105%);
        transition: transform .28s ease;
        overflow-y: auto;
        z-index: 2001;
    }

        .hb-nav.open {
            transform: none;
        }

        .hb-nav .container {
            width: auto;
            padding: 0 12px 24px;
        }

    .hb-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 4px;
        border-bottom: 1px solid var(--hb-border);
        margin-bottom: 8px;
    }

        .hb-drawer-head img {
            height: 46px;
        }

    .hb-drawer-close {
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 12px;
        background: var(--hb-bg);
        color: var(--hb-text);
        font-size: 18px;
        cursor: pointer;
    }

    .hb-menu {
        flex-direction: column;
    }

        .hb-menu > li > a {
            height: 48px;
            color: var(--hb-text) !important;
            border-radius: 12px;
            padding: 0 12px;
        }

            .hb-menu > li > a > i:first-child {
                width: 22px;
                text-align: center;
                color: var(--hb-primary);
            }

            .hb-menu > li > a:hover,
            .hb-menu > li.open > a {
                background: var(--hb-primary-50);
            }

        .hb-menu > li.is-active > a {
            background: var(--hb-green-50);
            color: var(--hb-green-dark) !important;
        }

            .hb-menu > li.is-active > a > i:first-child {
                color: var(--hb-green);
            }

    .hb-caret {
        margin-right: auto;
    }

    .hb-dd:hover .hb-caret {
        transform: none;
    }

    .hb-dd.open .hb-caret {
        transform: rotate(180deg);
    }

    .hb-sub,
    .hb-dd:hover > .hb-sub {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 0;
        padding: 0 22px 6px 0;
    }

    .hb-dd.open > .hb-sub {
        display: block;
    }

    .hb-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 25, 50, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
        z-index: 2000;
    }

        .hb-backdrop.open {
            opacity: 1;
            visibility: visible;
        }

    body.hb-drawer-open {
        overflow: hidden;
    }
}

/* ---------- 4. FOOTER / MOBILE BAR / FLOATING ---------- */
.hb-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, #e6f0fb 0%, #f4f9ff 70%, #eef7f0 100%);
    color: var(--hb-text);
    position: relative;
}

.hb-footer-main {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1fr;
    gap: 32px;
    padding: 48px 0 24px;
}

.hb-footer-brand img {
    width: 210px;
    max-width: 100%;
    height: auto;
}

.hb-footer h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hb-primary-dark);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .hb-footer h4::before {
        content: "";
        width: 6px;
        height: 18px;
        border-radius: 4px;
        background: var(--hb-green);
    }

.hb-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    font-style: normal;
}

    .hb-contact li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.9;
        color: #33465c;
    }

        .hb-contact li a {
            color: #33465c;
        }

            .hb-contact li a:hover {
                color: var(--hb-primary);
            }

.hb-contact-ico {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--hb-primary);
    box-shadow: var(--hb-shadow);
    font-size: 13px;
}

.hb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .hb-badges > a {
        display: inline-block;
        background: #fff;
        border-radius: 14px;
        padding: 8px;
        box-shadow: var(--hb-shadow);
    }

        .hb-badges > a img {
            display: block;
            max-height: 110px;
        }

.hb-hills {
    display: block;
    width: 100%;
    height: 90px;
    margin-bottom: -1px;
}

.hb-copyright {
    background: var(--hb-primary-dark);
    color: rgba(255, 255, 255, .85);
    text-align: center;
    padding: 14px 0;
    font-size: 13px;
}

    .hb-copyright a {
        color: rgba(255, 255, 255, .85) !important;
    }

        .hb-copyright a:hover {
            color: #fff !important;
        }

@media (max-width: 991px) {
    .hb-footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .hb-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .hb-copyright {
        padding-bottom: 86px; /* room for the mobile bottom bar */
    }

    .hb-footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 32px;
        text-align: right;
    }

    .hb-footer-brand img {
        width: 170px;
    }

    .hb-hills {
        height: 56px;
    }
}

/* mobile bottom navigation (markup in MasterPage.master) */
.nav-mob {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 24px rgba(16, 42, 84, .14);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    line-height: 1.2;
}

    .nav-mob a {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 6px 4px;
        border-radius: 12px;
        color: var(--hb-muted) !important;
        font-size: 12px;
        text-decoration: none !important;
        position: relative;
    }

        .nav-mob a i {
            font-size: 19px;
        }

        .nav-mob a.is-active {
            color: var(--hb-primary) !important;
            background: var(--hb-primary-50);
        }

            .nav-mob a.is-active::after {
                content: "";
                position: absolute;
                top: 3px;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: var(--hb-green);
            }

@media (min-width: 992px) {
    .nav-mob {
        display: none !important;
    }
}

/* floating QR shortcut (history.aspx) */
#toMarks {
    position: fixed;
    right: 14px;
    left: auto;
    bottom: 110px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--hb-green);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(34, 164, 71, .4);
    z-index: 1000;
    text-decoration: none !important;
}

    #toMarks i {
        font-size: 22px;
        color: #fff !important;
    }

    #toMarks:hover {
        background: var(--hb-green-dark);
        transform: translateY(-2px);
    }

@media (max-width: 991px) {
    #toMarks {
        bottom: 90px;
        width: 46px;
        height: 46px;
    }
}

#toTop {
    width: 44px;
    height: 44px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--hb-primary);
    left: 14px;
    bottom: 16px;
    box-shadow: var(--hb-shadow-hover);
}

/* ---------- 5. SHARED LEGACY CLASSES (used by inner pages) ---------- */
.input-box {
    position: relative;
    height: 64px;
    width: 100%;
    background: #fff;
    border-radius: var(--hb-radius);
    box-shadow: var(--hb-shadow);
    border: 1.5px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

    .input-box:focus-within {
        border-color: var(--hb-green);
        box-shadow: 0 0 0 4px rgba(34, 164, 71, .12);
    }

    .input-box i,
    .input-box .button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .input-box i {
        right: 20px;
        font-size: 22px;
        color: var(--hb-primary);
    }

    .input-box input {
        height: 100%;
        width: 100%;
        outline: none;
        font-size: 16px;
        border: none;
        padding: 0 58px 0 130px;
        background-color: transparent;
        color: var(--hb-text);
    }

    .input-box .button {
        left: 8px;
        font-size: 15px;
        font-weight: bold;
        color: #fff;
        border: none;
        padding: 0 28px;
        height: 48px;
        border-radius: 12px;
        background-color: var(--hb-green);
        cursor: pointer;
    }

        .input-box .button:hover {
            background-color: var(--hb-green-dark);
        }

        .input-box .button:active {
            transform: translateY(-50%) scale(.98);
        }

@media screen and (max-width: 500px) {
    .input-box {
        height: 58px;
    }

        .input-box i {
            right: 14px;
            font-size: 19px;
        }

        .input-box input {
            font-size: 14px;
            padding: 0 44px 0 100px;
        }

        .input-box .button {
            left: 6px;
            height: 44px;
            font-size: 14px;
            padding: 0 18px;
        }
}

@media screen and (max-width: 700px) {
    .onlymobile {
        display: block !important;
    }

    .onlypc {
        display: none !important;
    }
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

.maindivdesktop {
    background-color: #fff;
    border-radius: var(--hb-radius-lg);
    position: relative;
    padding: 20px;
    min-height: 300px;
    box-shadow: var(--hb-shadow);
}

.imgdivdesktop {
    position: absolute;
    right: 20px;
    top: -50px;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, .25) 0 5px 15px;
}

.maindivmobile {
    background-color: #fff;
    border-radius: var(--hb-radius-lg);
    min-height: 300px;
    box-shadow: var(--hb-shadow);
}

.imgdivmobile {
    border-radius: var(--hb-radius-lg);
}

.ipsp-contact {
    background-color: #d7ebfb;
    margin-top: 3px;
    color: var(--hb-text);
}

.ipsp-shoponline {
    background-color: #d8f2df;
    margin-top: 3px;
    color: var(--hb-text);
}

.ipsp-url {
    background-color: #ffe3b3;
    margin-top: 3px;
    color: var(--hb-text);
}

.ipsp-menu {
    background-color: #e57373;
    margin-top: 3px;
    color: #fff;
}

.button-87 {
    padding: 13px 28px;
    transition: .3s;
    color: #fff;
    border-radius: 999px;
    border: 0;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(13, 78, 166, .25);
    background: var(--hb-primary);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

    .button-87:hover {
        background: var(--hb-primary-dark);
        color: #fff;
        text-decoration: none;
    }

    .button-87:active {
        transform: scale(.96);
    }

.installandroid {
    color: #fff !important;
    background-color: #3DDC84;
    border: 1px solid #3DDC84;
    border-radius: 15px;
    text-align: center;
    padding: 15px 20px;
    font-weight: bold;
}

.shop-item {
    border: 1px solid #ECEFF1;
    background-color: white;
    border-radius: 10px;
    padding: 5px;
}

.thumbnail {
    margin-bottom: 10px;
}

/* store QR card (stores.aspx, search.aspx and other pages) */
.card-wrapper-m {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #fff;
    border-radius: var(--hb-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: .3s;
    box-shadow: var(--hb-shadow);
}

    .card-wrapper-m:hover {
        box-shadow: var(--hb-shadow-hover);
        transform: translateY(-3px);
    }

.user-pic-m {
    position: absolute;
    width: 150px;
    height: 150px;
    left: 50%;
    transform: translateX(-50%);
    margin: auto;
    top: -38px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(16, 42, 84, .22);
    overflow: hidden;
    transition: .5s;
}

    .user-pic-m img {
        height: 100%;
        display: block;
        margin-left: -25%;
    }

.name-m {
    text-align: center;
    position: relative;
    top: 120px;
    transition: .5s;
}

    .name-m h5 {
        color: var(--hb-text);
    }

.social-details-m {
    padding: 0 25px;
    position: relative;
    top: 100px;
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 30px;
    opacity: 0;
    transition: .5s;
}

.card-btn-m {
    position: relative;
    top: 15px;
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    padding: 5px 10px;
    opacity: 0;
    transition: .1s;
}

    .card-btn-m .gotodetail-m {
        padding: 6px 15px;
        background-color: var(--hb-primary);
        border-radius: 15px;
        border: 0;
        color: #fff;
        transition: .3s;
    }

.card-ad-m {
    position: relative;
    bottom: 13px;
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    padding: 5px 10px;
    opacity: 0;
    transition: .1s;
}

    .card-ad-m i {
        color: var(--hb-danger);
        transition: .3s;
    }

.viewhover-m {
    text-decoration: none;
    pointer-events: none;
}

/* ---------- 6. INNER PAGE HARMONISATION ---------- */
/* page banners: replaces the wall2.jpg / bg-main.png backgrounds */
body.hb-body section.page-header,
body.hb-body section[style*="wall2.jpg"] {
    background: var(--hb-hero-gradient) !important;
    border-radius: var(--hb-radius-lg) !important;
    margin: 20px auto !important;
    max-width: 1170px;
    width: calc(100% - 30px);
    color: #fff;
    border: 0;
    box-shadow: 0 14px 30px rgba(10, 53, 119, .2);
    position: relative;
    overflow: hidden;
}

    body.hb-body section.page-header::after,
    body.hb-body section[style*="wall2.jpg"]::after {
        content: "";
        position: absolute;
        left: -60px;
        bottom: -80px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .07);
        pointer-events: none;
    }

    body.hb-body section.page-header .overlay {
        display: none;
    }

    body.hb-body section.page-header h1,
    body.hb-body section.page-header h2,
    body.hb-body section.page-header h3,
    body.hb-body section[style*="wall2.jpg"] h1,
    body.hb-body section[style*="wall2.jpg"] h3 {
        color: #fff !important;
        background: transparent !important;
    }

    body.hb-body section.page-header .breadcrumb a,
    body.hb-body section.page-header .breadcrumb li {
        color: rgba(255, 255, 255, .85) !important;
    }

/* buttons */
body.hb-body .btn {
    border-radius: 12px;
}

body.hb-body .btn-primary {
    background-color: var(--hb-primary) !important;
    border-color: var(--hb-primary) !important;
    color: #fff !important;
}

    body.hb-body .btn-primary:hover {
        background-color: var(--hb-primary-dark) !important;
        border-color: var(--hb-primary-dark) !important;
    }

body.hb-body .btn-success {
    background-color: var(--hb-green);
    border-color: var(--hb-green);
}

body.hb-body .form-control {
    border-radius: 12px;
    border-color: var(--hb-border);
    box-shadow: none;
}

    body.hb-body .form-control:focus {
        border-color: var(--hb-green);
        box-shadow: 0 0 0 3px rgba(34, 164, 71, .12);
    }

body.hb-body div.heading-title h1,
body.hb-body div.heading-title h2,
body.hb-body div.heading-title h3,
body.hb-body div.heading-title h4,
body.hb-body div.heading-title h5,
body.hb-body div.heading-title h6 {
    background: var(--hb-bg);
}

/* owl-carousel nav buttons */
body.hb-body .owl-theme .owl-controls .owl-buttons div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--hb-primary);
    box-shadow: 0 6px 16px rgba(16, 42, 84, .18);
    display: grid !important;
    place-items: center;
    font-size: 20px;
    line-height: 1;
}

body.hb-body .controlls-over .owl-controls .owl-prev {
    left: 6px;
}

body.hb-body .controlls-over .owl-controls .owl-next {
    right: 6px;
}

body.hb-body .owl-theme .owl-controls .owl-buttons div:hover {
    background: var(--hb-primary);
    color: #fff;
}

/* ---------- 7. HOME PAGE (default.aspx) ---------- */
.hb-section {
    padding: 26px 0 !important;
}

.hb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.hb-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--hb-text);
}

.hb-title-ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--hb-green-50);
    color: var(--hb-green);
    font-size: 16px;
}

    .hb-title-ico.is-blue {
        background: var(--hb-primary-50);
        color: var(--hb-primary);
    }

    .hb-title-ico.is-red {
        background: #fdecec;
        color: var(--hb-danger);
    }

    .hb-title-ico.is-gold {
        background: #fff6dc;
        color: #d99a00;
    }

/* --- stories --- */
.hb-stories-section {
    background: #fff !important;
    border-bottom: 1px solid var(--hb-border) !important;
    padding: 14px 0 6px !important;
}

.hb-stories-wrap {
    position: relative;
}

.hb-stories {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 8px;
}

    .hb-stories::-webkit-scrollbar {
        display: none;
    }

.hb-story {
    flex: 0 0 auto;
    width: 84px;
    text-align: center;
}

    .hb-story a {
        display: block;
        text-decoration: none !important;
    }

.hb-story-ring {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, var(--hb-green), #1a8a6a, var(--hb-primary), var(--hb-primary-light), var(--hb-green));
    transition: transform .2s;
}

    .hb-story-ring img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 3px solid #fff;
        object-fit: cover;
        display: block;
        background: #f2f4f8;
    }

.hb-story a:hover .hb-story-ring {
    transform: scale(1.05);
}

.hb-story-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--hb-text);
}

.hb-scroll-btn {
    position: absolute;
    top: 30px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--hb-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(13, 78, 166, .3);
    cursor: pointer;
    z-index: 2;
    display: grid;
    place-items: center;
}

    .hb-scroll-btn.is-prev {
        right: -14px;
    }

    .hb-scroll-btn.is-next {
        left: -14px;
    }

@media (max-width: 991px) {
    .hb-scroll-btn {
        display: none;
    }
}

/* --- home search band --- */
.hb-search-band {
    background: var(--hb-hero-gradient);
    border-radius: var(--hb-radius-lg);
    padding: 26px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(10, 53, 119, .18);
}

    .hb-search-band::before,
    .hb-search-band::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, .07);
        pointer-events: none;
    }

    .hb-search-band::before {
        width: 220px;
        height: 220px;
        left: -50px;
        top: -110px;
    }

    .hb-search-band::after {
        width: 140px;
        height: 140px;
        right: 30%;
        bottom: -90px;
    }

    .hb-search-band h3 {
        color: #fff !important;
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        z-index: 1;
    }

    .hb-search-band .input-box {
        position: relative;
        z-index: 1;
    }/* --- hero: welcome + slider --- */

/* --- stores grid --- */
.hb-store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hb-store-card {
    display: block;
    background: #fff;
    border: 1px solid var(--hb-border);
    border-radius: 18px;
    padding: 12px 12px 14px;
    text-align: center;
    text-decoration: none !important;
    color: var(--hb-text) !important;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

    .hb-store-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--hb-shadow-hover);
        border-color: transparent;
    }

.hb-store-img {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f7fb;
}

    .hb-store-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .3s;
    }

.hb-store-card:hover .hb-store-img img {
    transform: scale(1.04);
}

.hb-store-name {
    display: block;
    margin: 12px 0 6px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--hb-green-50);
    color: var(--hb-green-dark);
    font-size: 12px;
}

.hb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    background: var(--hb-primary);
    color: #fff !important;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(13, 78, 166, .25);
}

    .hb-btn:hover {
        background: var(--hb-primary-dark);
        transform: translateY(-1px);
    }

.hb-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--hb-primary-50);
    background: var(--hb-primary-50);
    color: var(--hb-primary) !important;
    font-size: 13px;
    text-decoration: none !important;
}

    .hb-btn-outline:hover {
        background: var(--hb-primary);
        border-color: var(--hb-primary);
        color: #fff !important;
    }

@media (max-width: 991px) {
    .hb-store-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hb-store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hb-store-name {
        font-size: 14px;
    }
}

/* --- product card (newest + sale carousels) --- */
.hb-product {
    background: #fff;
    border: 1px solid var(--hb-border);
    border-radius: 18px;
    overflow: hidden;
    text-align: right;
    transition: box-shadow .2s, transform .2s;
    margin: 4px 0 10px;
}

    .hb-product:hover {
        box-shadow: var(--hb-shadow-hover);
        transform: translateY(-3px);
    }

.hb-product-img {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f7fb;
    overflow: hidden;
}

    .hb-product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.hb-badge-off {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--hb-danger);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(229, 57, 53, .35);
}

.hb-colors {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 3px;
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 11px;
    color: var(--hb-muted);
}

    .hb-colors i {
        font-size: 11px;
    }

.hb-product-body {
    padding: 12px 14px 14px;
}

.hb-product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    color: var(--hb-text) !important;
    text-decoration: none !important;
}

.hb-product-shop {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--hb-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.hb-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--hb-border);
    min-height: 34px;
}

.hb-price-old {
    color: #9aa7b8;
    font-size: 12px;
    text-decoration: line-through;
}

.hb-price-new {
    color: var(--hb-text);
    font-size: 16px;
    font-weight: 700;
}

.hb-price-cur {
    color: var(--hb-muted);
    font-size: 11px;
}

/* --- map --- */
.hb-map-card {
    background: #fff;
    border-radius: var(--hb-radius-lg);
    padding: 8px;
    box-shadow: var(--hb-shadow);
}

    .hb-map-card iframe {
        display: block;
        width: 100%;
        border: 0;
        border-radius: 16px;
    }

/* --- videos --- */
.hb-video-card {
    background: #fff;
    border: 1px solid var(--hb-border);
    border-radius: 18px;
    overflow: hidden;
    margin: 4px 0 10px;
    text-align: right;
}

    .hb-video-card video {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        background: #0b1626;
    }

.hb-video-title {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    padding: 12px 14px 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--hb-text);
    min-height: 74px;
}

    .hb-video-title i {
        color: var(--hb-green);
        margin-top: 5px;
    }/* --- social --- */
/* --- ads --- */

/* --- blog --- */
.hb-post {
    background: #fff;
    border: 1px solid var(--hb-border);
    border-radius: 18px;
    overflow: hidden;
    margin: 4px 0 10px;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.hb-post-img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f7fb;
}

    .hb-post-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .3s;
    }

.hb-post:hover .hb-post-img img {
    transform: scale(1.04);
}

.hb-post-body {
    padding: 14px 16px 16px;
}

.hb-post-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--hb-muted);
    margin-bottom: 8px;
}

    .hb-post-meta i {
        margin-left: 4px;
        color: var(--hb-green);
    }

.hb-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 52px;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 26px;
    color: var(--hb-text);
}

.hb-post-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 72px;
    font-size: 13px;
    line-height: 24px;
    color: var(--hb-muted);
    margin: 0 0 14px;
    text-align: justify;
}

/* --- story viewer modal --- */
.story-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 30, .88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.story-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 90vh;
    max-height: 720px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

    .story-box iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* top: progress bars + title + pause/close */
.hb-sv-top {
    position: absolute;
    z-index: 30;
    top: 0;
    inset-inline: 0;
    padding: 10px 12px 26px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent);
    pointer-events: none;
}

    .hb-sv-top button { pointer-events: auto; }

.hb-sv-bars {
    display: flex;
    gap: 4px;
    direction: rtl;
}

.hb-sv-bar {
    flex: 1 1 0;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .35);
    overflow: hidden;
}

    .hb-sv-bar i {
        display: block;
        height: 100%;
        background: #fff;
        transform: scaleX(0);
        transform-origin: right center;   /* fills from right to left (RTL) */
    }

.hb-sv-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.hb-sv-title {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.hb-sv-btn {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

    .hb-sv-btn:hover { background: rgba(255, 255, 255, .3); }

/* side tap zones (leave the bottom free for the story's own links) */
.story-nav {
    position: absolute;
    z-index: 20;
    top: 90px;
    bottom: 110px;
    width: 30%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

    .story-nav.right { right: 0; justify-content: flex-start; padding-right: 10px; }
    .story-nav.left { left: 0; justify-content: flex-end; padding-left: 10px; }

    .story-nav i {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .18);
        opacity: 0;
        transition: opacity .2s;
    }

    .story-box:hover .story-nav i { opacity: 1; }

@media (hover: none) {
    .story-nav i { display: none; }
}

.hb-sv-loader {
    position: absolute;
    z-index: 15;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

    .hb-sv-loader.is-on { opacity: 1; animation: hbSpin .8s linear infinite; }

/* stories already viewed: grey ring */
.hb-story.is-seen .hb-story-ring {
    background: #c9d3e0;
}

@media (max-width: 768px) {
    .story-box {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;      /* real visible height on mobile browsers */
        max-height: none;
        border-radius: 0;
    }

    .hb-sv-top {
        padding-top: calc(10px + env(safe-area-inset-top));
    }
}

@media (max-width: 767px) {
    .hb-section {
        padding: 18px 0 !important;
    }

    .hb-section-title {
        font-size: 17px;
    }

    .hb-title-ico {
        width: 34px;
        height: 34px;
    }

    .hb-search-band {
        padding: 20px 16px;
    }

        .hb-search-band h3 {
            font-size: 15px;
        }
}

/* ---------- 8. INNER PAGES (components) ---------- */
/* page title banner: <section class="hb-page-top"><div class="container"><div class="hb-page-hero"> */
.hb-page-top {
    padding: 22px 0 6px !important;
}

.hb-page-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 120px;
    padding: 24px 30px;
    border-radius: var(--hb-radius-lg);
    background: var(--hb-hero-gradient);
    color: #fff;
    box-shadow: 0 14px 30px rgba(10, 53, 119, .18);
}

    .hb-page-hero::after {
        content: "";
        position: absolute;
        left: -60px;
        bottom: -90px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .07);
        pointer-events: none;
    }

    .hb-page-hero h1 {
        margin: 6px 0 0;
        font-size: 24px;
        font-weight: 700;
        color: #fff !important;
        line-height: 1.6;
    }

    .hb-page-hero p {
        margin: 4px 0 0;
        color: rgba(255, 255, 255, .82);
        font-size: 14px;
    }

.hb-page-hero-ico {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: 26px;
    position: relative;
    z-index: 1;
}

.hb-crumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}

    .hb-crumbs li + li::before {
        content: "\f104";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        margin-left: 6px;
        font-size: 11px;
    }

    .hb-crumbs a {
        color: rgba(255, 255, 255, .9) !important;
    }

        .hb-crumbs a:hover {
            color: #fff !important;
        }

/* generic card + rich text */
.hb-card {
    background: #fff;
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow);
    padding: 26px;
}

.hb-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--hb-border);
}

    .hb-card-head h2,
    .hb-card-head h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        color: var(--hb-text);
        line-height: 1.7;
    }

    .hb-card-head small {
        display: block;
        color: var(--hb-muted);
        font-size: 13px;
        font-weight: 400;
    }

.hb-prose {
    font-size: 15px;
    line-height: 2.1;
    color: #33465c;
    text-align: justify;
    overflow-wrap: anywhere;
}

    .hb-prose img,
    .hb-prose iframe,
    .hb-prose video {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .hb-prose h1, .hb-prose h2, .hb-prose h3, .hb-prose h4 {
        color: var(--hb-text);
        line-height: 1.7;
        margin: 18px 0 10px;
    }

    .hb-prose p {
        margin-bottom: 12px;
    }

    .hb-prose a {
        color: var(--hb-primary);
        text-decoration: underline;
    }

    .hb-prose table {
        width: 100%;
        max-width: 100%;
        display: block;
        overflow-x: auto;
    }

    .hb-prose blockquote {
        border-right: 4px solid var(--hb-green);
        border-left: 0;
        background: var(--hb-green-50);
        border-radius: 12px;
        padding: 12px 16px;
        margin: 0 0 14px;
        font-size: 15px;
    }

/* layout helpers */
.hb-grid {
    display: grid;
    gap: 20px;
}

.hb-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hb-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hb-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hb-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.hb-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .hb-grid-3, .hb-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hb-two-col,
    .hb-article-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .hb-grid-2, .hb-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hb-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hb-page-hero {
        padding: 20px;
        min-height: 0;
    }

        .hb-page-hero h1 {
            font-size: 19px;
        }

    .hb-page-hero-ico {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 16px;
    }

    .hb-card {
        padding: 18px 16px;
    }
}

/* empty state */
.hb-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--hb-muted);
    background: #fff;
    border-radius: var(--hb-radius-lg);
    border: 1.5px dashed var(--hb-border);
    grid-column: 1 / -1;
}

    .hb-empty-state i {
        display: block;
        font-size: 40px;
        color: #c3cfdf;
        margin-bottom: 12px;
    }

/* forms */
.hb-form .form-group,
.hb-field {
    margin-bottom: 16px;
}

.hb-form label,
.hb-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hb-text);
}

    .hb-form label i,
    .hb-field label i {
        color: var(--hb-primary);
    }

.hb-form .form-control,
.hb-form input[type=text],
.hb-form input[type=email],
.hb-form textarea,
.hb-form select {
    width: 100%;
    min-height: 46px;
    height: auto;
    padding: 10px 14px;
    border: 1.5px solid var(--hb-border) !important;
    border-radius: 12px !important;
    background: #fbfcfe;
    font-size: 14px;
    color: var(--hb-text);
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.hb-form textarea {
    min-height: 110px;
    resize: vertical;
}

    .hb-form .form-control:focus,
    .hb-form input:focus,
    .hb-form textarea:focus,
    .hb-form select:focus {
        outline: 0;
        background: #fff;
        border-color: var(--hb-green) !important;
        box-shadow: 0 0 0 4px rgba(34, 164, 71, .12);
    }

.hb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

    .hb-form-grid .is-full {
        grid-column: 1 / -1;
    }

@media (max-width: 600px) {
    .hb-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hb-form-actions {
    display: flex;
    justify-content: center;
    padding-top: 18px;
    margin-top: 6px;
    border-top: 1px solid var(--hb-border);
}

    .hb-form-actions .hb-btn {
        min-width: 220px;
        justify-content: center;
        font-size: 15px;
        padding: 13px 28px;
        cursor: pointer;
        border: 0;
    }

@media (max-width: 600px) {
    .hb-form-actions .hb-btn {
        width: 100%;
    }
}

.hb-btn.is-green {
    background: var(--hb-green);
    box-shadow: 0 8px 18px rgba(34, 164, 71, .28);
}

    .hb-btn.is-green:hover {
        background: var(--hb-green-dark);
    }

/* alerts (bootstrap .alert used by the form pages) */
body.hb-body .alert {
    border: 0;
    border-radius: 14px !important;
    padding: 12px 16px;
    font-size: 14px;
}

body.hb-body .alert-success {
    background: var(--hb-green-50);
    color: var(--hb-green-dark);
}

body.hb-body .alert-danger {
    background: #fdecec;
    color: #b42318;
}

body.hb-body .alert .close {
    float: left;
}

/* list card (history.aspx) */
.hb-list-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--hb-border);
    border-radius: 18px;
    padding: 12px 14px;
    transition: box-shadow .2s, transform .2s;
}

    .hb-list-card:hover {
        box-shadow: var(--hb-shadow-hover);
        transform: translateY(-2px);
    }

    .hb-list-card img {
        flex: 0 0 auto;
        width: 64px;
        height: 64px;
        border-radius: 14px;
        object-fit: cover;
        background: #f5f7fb;
    }

.hb-list-body {
    flex: 1 1 auto;
    min-width: 0;
}

    .hb-list-body a {
        display: block;
        font-weight: 700;
        color: var(--hb-text) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hb-list-body .hb-chip {
        margin-top: 6px;
    }

.hb-icon-btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fdecec;
    color: var(--hb-danger) !important;
    text-decoration: none !important;
}

    .hb-icon-btn:hover {
        background: var(--hb-danger);
        color: #fff !important;
    }

/* consulting groups (moshaveregroups.aspx) */
.hb-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--hb-primary-dark);
}

    .hb-group-title::before {
        content: "";
        width: 6px;
        height: 20px;
        border-radius: 4px;
        background: var(--hb-green);
    }

.hb-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hb-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid var(--hb-border);
    border-radius: 18px;
    background: #fbfcfe;
    color: var(--hb-text) !important;
    text-decoration: none !important;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

    .hb-tile:hover {
        background: #fff;
        border-color: transparent;
        box-shadow: var(--hb-shadow-hover);
        transform: translateY(-3px);
    }

    .hb-tile img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-bottom: 4px;
    }

.hb-tile-title {
    font-weight: 700;
    font-size: 15px;
}

.hb-tile-text {
    font-size: 13px;
    color: var(--hb-muted);
    line-height: 1.8;
}

.hb-tile-cta {
    font-size: 13px;
    color: #d99a00;
}

/* contact page */
.hb-info-list {
    display: grid;
    gap: 12px;
}

.hb-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--hb-bg);
    font-size: 14px;
    line-height: 1.9;
}

    .hb-info-item .hb-contact-ico {
        background: #fff;
    }

    .hb-info-item strong {
        display: block;
        font-size: 13px;
        color: var(--hb-muted);
        font-weight: 400;
    }

.hb-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hb-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff !important;
    font-size: 19px;
    text-decoration: none !important;
}

    .hb-share-btn:hover {
        transform: translateY(-2px);
        opacity: .92;
    }

    .hb-share-btn.is-instagram {
        background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4);
    }

    .hb-share-btn.is-whatsapp {
        background: #25d366;
    }

    .hb-share-btn.is-telegram {
        background: #229ed9;
    }

    .hb-share-btn.is-eitaa {
        background: #ef7d1a;
    }

/* article (post.aspx) */
.hb-article-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--hb-text);
}

.hb-article-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    margin: 16px 0 18px;
    background: #f5f7fb;
}

.hb-article-lead {
    font-size: 16px;
    line-height: 2;
    color: var(--hb-text);
    background: var(--hb-green-50);
    border-right: 4px solid var(--hb-green);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.hb-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hb-border);
}

.hb-pager {
    display: flex;
    gap: 10px;
}

    .hb-pager a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border-radius: 999px;
        background: var(--hb-primary-50);
        color: var(--hb-primary) !important;
        font-size: 13px;
        text-decoration: none !important;
    }

        .hb-pager a:hover {
            background: var(--hb-primary);
            color: #fff !important;
        }

@media (max-width: 600px) {
    .hb-article-title {
        font-size: 19px;
    }
}

/* sidebar tabs (bootstrap tabs) */
.hb-side {
    position: sticky;
    top: 70px;
}

@media (max-width: 991px) {
    .hb-side {
        position: static;
    }
}

.hb-side .nav-tabs {
    display: flex;
    gap: 6px;
    border: 0;
    background: var(--hb-bg);
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 14px;
}

    .hb-side .nav-tabs > li {
        flex: 1 1 0;
        float: none;
        margin: 0;
    }

        .hb-side .nav-tabs > li > a {
            margin: 0;
            border: 0 !important;
            border-radius: 10px;
            text-align: center;
            color: var(--hb-muted);
            font-size: 13px;
            padding: 8px 6px;
        }

        .hb-side .nav-tabs > li.active > a,
        .hb-side .nav-tabs > li.active > a:hover,
        .hb-side .nav-tabs > li.active > a:focus {
            background: #fff;
            color: var(--hb-primary);
            box-shadow: var(--hb-shadow);
        }

.hb-mini-post {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--hb-border);
    text-decoration: none !important;
}

    .hb-mini-post:last-child {
        border-bottom: 0;
    }

    .hb-mini-post img {
        flex: 0 0 auto;
        width: 64px;
        height: 52px;
        border-radius: 10px;
        object-fit: cover;
        background: #f5f7fb;
    }

.hb-mini-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--hb-text);
}

.hb-mini-post small {
    display: block;
    color: var(--hb-muted);
    font-size: 11px;
}

    .hb-mini-post small i {
        margin-left: 4px;
    }

.hb-post-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* full-height map page */
.hb-map-full iframe {
    height: calc(100vh - 260px);
    min-height: 420px;
}

/* owl arrows come from scripts.js as <i class="fa fa-angle-*">; draw them with the
   FontAwesome 5 font that the master already loads, so the old FA4 font is not downloaded */
body.hb-body .owl-buttons .fa {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* owl nav buttons: keep them round (owl/Smarty add padding + their own sizes) */
body.hb-body .owl-theme .owl-controls .owl-buttons div {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin-top: -20px;
    box-sizing: border-box;
}

/* =====================================================================
   9. HOME v2 + MOTION
   - scroll reveal ([data-reveal], set up by hatam-theme.js)
   - shared heading / buttons
   - hero bento (slider + message), stores, rails, deals, map, playlist,
     magazine, ads masonry, follow CTA, modal
   All animations use transform/opacity only and are switched off for
   "prefers-reduced-motion".
   ===================================================================== */

/* ---------- motion: scroll reveal ---------- */
@keyframes hbRevealUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hbRevealLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes hbRevealRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes hbRevealZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.hb-js [data-reveal]:not(.is-in) {
    opacity: 0;
}

/* "backwards": the start frame is used during the delay, and the element's own
   transform (hover lift, tilt) works again once the animation has finished */
.hb-js [data-reveal].is-in {
    animation: hbRevealUp .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) backwards;
}

.hb-js [data-reveal="left"].is-in { animation-name: hbRevealLeft; }
.hb-js [data-reveal="right"].is-in { animation-name: hbRevealRight; }
.hb-js [data-reveal="zoom"].is-in { animation-name: hbRevealZoom; }

/* ---------- shared heading ---------- */
.hb-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.hb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hb-green-50);
    color: var(--hb-green-dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

    .hb-eyebrow.is-light {
        background: rgba(255, 255, 255, .16);
        color: #fff;
    }

.hb-h2 {
    position: relative;
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--hb-text);
}

    .hb-h2.is-light { color: #fff !important; }

.hb-grad-text {
    background: linear-gradient(90deg, var(--hb-green), var(--hb-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hb-link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--hb-border);
    background: #fff;
    color: var(--hb-primary) !important;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none !important;
}

    .hb-link-more i { transition: transform .25s; }
    .hb-link-more:hover { border-color: var(--hb-primary); }
    .hb-link-more:hover i { transform: translateX(-4px); }

.hb-round-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--hb-border);
    background: #fff;
    color: var(--hb-primary);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s, opacity .2s;
}

    .hb-round-btn:hover:not(:disabled) { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
    .hb-round-btn:active:not(:disabled) { transform: scale(.92); }
    .hb-round-btn:disabled { opacity: .35; cursor: default; }

    .hb-round-btn.is-white { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .15); color: #fff; }
    .hb-round-btn.is-white:hover:not(:disabled) { background: #fff; color: var(--hb-danger); }

.hb-rail-nav {
    display: flex;
    gap: 8px;
}

.is-static .hb-rail-nav,
.is-static .hb-rail-progress {
    display: none;
}

.hb-btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    background: #fff;
    color: var(--hb-primary-dark) !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

    .hb-btn-white i:last-child { transition: transform .25s; }
    .hb-btn-white:hover i:last-child { transform: translateX(-5px); }

/* ---------- hero bento ---------- */
.hb-hero2 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
}

.hb-hero-slider {
    position: relative;
    height: 430px;
    border-radius: 28px;
    overflow: hidden;
    background: #0d2a55;
    isolation: isolate;
    box-shadow: 0 20px 40px rgba(13, 42, 85, .18);
}

    .hb-hero-slider.is-empty { display: none; }

.hb-slides {
    position: absolute;
    inset: 0;
}

.hb-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}

    .hb-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hb-slide-bg {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    object-fit: cover;
    filter: blur(26px) saturate(1.2) brightness(.8);
}

.hb-slide-img,
.hb-slide video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}

.hb-slide-video video { object-fit: cover; }

.hb-slide.is-active .hb-slide-img,
.hb-slide.is-active video { transform: scale(1); }

.hb-slider-ui {
    position: absolute;
    z-index: 3;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 40px 20px 18px;
    background: linear-gradient(180deg, transparent, rgba(5, 18, 40, .55));
    pointer-events: none;
}

    .hb-slider-ui > * { pointer-events: auto; }

.hb-dots { display: flex; gap: 6px; }

.hb-dot {
    width: 30px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .35);
    overflow: hidden;
    cursor: pointer;
    transition: width .3s;
}

    .hb-dot span { display: block; width: 0; height: 100%; background: #fff; border-radius: 6px; }
    .hb-dot.is-active { width: 46px; }
    .hb-dot.is-active span { animation: hbFill var(--hb-slide-ms, 6000ms) linear forwards; }
    .hb-hero-slider.is-paused .hb-dot.is-active span { animation: none; width: 100%; }

@keyframes hbFill { from { width: 0; } to { width: 100%; } }

.hb-slider-arrows { display: flex; gap: 8px; }
.is-single .hb-slider-ui { display: none; }

.hb-glass-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}

    .hb-glass-btn:hover { background: rgba(255, 255, 255, .32); }
    .hb-glass-btn:active { transform: scale(.92); }

/* message card */
.hb-msg {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 430px;
    padding: 26px 26px 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--hb-shadow);
    overflow: hidden;
}

    .hb-msg::before {
        content: "";
        position: absolute;
        top: -90px;
        left: -90px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(34, 164, 71, .18), transparent 70%);
        pointer-events: none;
    }

.hb-msg-quote {
    position: absolute;
    top: 18px;
    left: 22px;
    font-size: 54px;
    color: var(--hb-primary-50);
    line-height: 1;
}

.hb-msg .hb-eyebrow { align-self: flex-start; }

.hb-msg-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 2;
    color: #33465c;
    text-align: justify;
}

    .hb-msg-body blockquote { border: 0; margin: 0; padding: 0; font-size: inherit; }
    .hb-msg-body p { margin-bottom: 6px; }

.hb-msg.is-clamped .hb-msg-body {
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
    mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.hb-msg-more {
    display: none;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--hb-primary-50);
    color: var(--hb-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

    .hb-msg.is-clamped .hb-msg-more { display: inline-flex; }
    .hb-msg-more:hover { background: var(--hb-primary); color: #fff; }

@media (max-width: 991px) {
    .hb-hero2 { grid-template-columns: minmax(0, 1fr); }
    .hb-hero-slider { height: 360px; }
    .hb-msg { height: auto; max-height: 360px; }
}

@media (max-width: 600px) {
    .hb-hero-slider { height: 280px; border-radius: 22px; }
    .hb-slider-arrows { display: none; }
    .hb-msg { padding: 20px 18px 16px; border-radius: 22px; }
    .hb-h2 { font-size: 21px; }
    .hb-head { align-items: center; }
}

/* ---------- stores ---------- */
.hb-stores2 {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 4fr);
    gap: 18px;
}

.hb-stores-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 24px;
    border-radius: 28px;
    background: var(--hb-hero-gradient);
    color: #fff;
    overflow: hidden;
}

    .hb-stores-intro p { color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 2; margin: 10px 0 0; }

.hb-qr-art {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 50px;
    overflow: hidden;
    animation: hbFloat 5s ease-in-out infinite;
}

.hb-qr-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 3px;
    border-radius: 3px;
    background: #6dfb9b;
    box-shadow: 0 0 14px 3px rgba(109, 251, 155, .7);
    animation: hbScan 2.4s ease-in-out infinite alternate;
}

@keyframes hbScan { from { top: 14%; } to { top: 84%; } }
@keyframes hbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hb-stores-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* store card upgrades (home): 3D tilt + light follow + QR scan line */
[data-hb-tilt] .hb-store-card {
    position: relative;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .25s ease, box-shadow .25s, border-color .25s;
    will-change: transform;
}

    [data-hb-tilt] .hb-store-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 55%);
        opacity: 0;
        transition: opacity .25s;
        pointer-events: none;
    }

    [data-hb-tilt] .hb-store-card:hover::after { opacity: 1; }
    [data-hb-tilt] .hb-store-card:hover { box-shadow: var(--hb-shadow-hover); border-color: transparent; }

.hb-store-img { position: relative; }

    .hb-store-img::after {
        content: "";
        position: absolute;
        left: 8%;
        right: 8%;
        top: 12%;
        height: 3px;
        border-radius: 3px;
        background: var(--hb-green);
        box-shadow: 0 0 12px 2px rgba(34, 164, 71, .55);
        opacity: 0;
        pointer-events: none;
    }

.hb-store-card:hover .hb-store-img::after {
    opacity: 1;
    animation: hbScanCard 1.6s ease-in-out infinite alternate;
}

@keyframes hbScanCard { from { top: 12%; } to { top: 86%; } }

@media (max-width: 1199px) {
    .hb-stores2 { grid-template-columns: minmax(0, 1fr); }
    .hb-stores-intro { flex-direction: row; align-items: center; }
    .hb-stores-intro > div:nth-child(2) { flex: 1 1 auto; }
}

@media (max-width: 767px) {
    .hb-stores-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hb-stores-intro { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
    .hb-qr-art { width: 70px; height: 70px; font-size: 38px; border-radius: 18px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .hb-stores-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- rails (product carousels) ---------- */
.hb-rail {
    --per: 4;
    --gap: 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
    gap: var(--gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 6px 2px 16px;
    margin: -6px -2px 0;
}

    .hb-rail::-webkit-scrollbar { display: none; }
    .hb-rail > * { scroll-snap-align: start; min-width: 0; }
    .hb-rail .hb-product { margin: 0; height: 100%; display: flex; flex-direction: column; }
    .hb-rail .hb-product-body { flex: 1 1 auto; display: flex; flex-direction: column; }
    .hb-rail .hb-price { margin-top: auto; }

.hb-rail-progress {
    height: 4px;
    margin-top: 6px;
    border-radius: 4px;
    background: var(--hb-border);
    overflow: hidden;
}

    .hb-rail-progress span {
        display: block;
        height: 100%;
        width: 20%;
        border-radius: 4px;
        background: linear-gradient(90deg, var(--hb-primary), var(--hb-green));
        transition: transform .15s linear, width .2s;
    }

@media (max-width: 1199px) { .hb-rail { --per: 3; } }
@media (max-width: 767px) { .hb-rail { --per: 2.15; --gap: 12px; } }
@media (max-width: 420px) { .hb-rail { --per: 1.55; } }

/* product card upgrades: image zoom + sliding call-to-action */
.hb-product-img img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hb-product:hover .hb-product-img img { transform: scale(1.06); }

.hb-product-cta {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px;
    border-radius: 12px;
    background: rgba(13, 78, 166, .92);
    color: #fff;
    font-size: 13px;
    transform: translateY(140%);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.hb-product:hover .hb-product-cta { transform: none; }
.hb-product:hover .hb-colors { opacity: 0; }
.hb-colors { transition: opacity .2s; }

@media (hover: none) { .hb-product-cta { display: none; } }

/* ---------- deals band ---------- */
.hb-deals {
    position: relative;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(115deg, #d32f2f 0%, #f4511e 55%, #ff8f00 100%);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 22px 40px rgba(211, 47, 47, .22);
}

.hb-blob {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}

    .hb-blob.is-a { width: 320px; height: 320px; top: -160px; right: -60px; animation: hbDrift 14s ease-in-out infinite; }
    .hb-blob.is-b { width: 220px; height: 220px; bottom: -120px; left: 30%; animation: hbDrift 11s ease-in-out infinite reverse; }

@keyframes hbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 24px) scale(1.12); }
}

.hb-deals-intro { color: #fff; }
.hb-deals-intro p { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.9; margin: 8px 0 18px; }

.hb-deal-badge {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #d32f2f;
    font-size: 34px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

    .hb-deal-badge::before {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        border: 2px dashed rgba(255, 255, 255, .8);
        animation: hbSpin 12s linear infinite;
    }

    .hb-deal-badge span { animation: hbPulse 2.2s ease-in-out infinite; }

@keyframes hbSpin { to { transform: rotate(360deg); } }
@keyframes hbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.hb-deals-rail { min-width: 0; }
.hb-rail.is-deals { --per: 4; padding-bottom: 8px; }
.hb-rail.is-deals .hb-product { border-color: transparent; box-shadow: 0 10px 24px rgba(120, 20, 0, .18); }

@media (max-width: 1199px) { .hb-rail.is-deals { --per: 3; } }

@media (max-width: 991px) {
    .hb-deals { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 14px; }
    .hb-deals-intro { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px; }
    .hb-deal-badge { grid-row: span 2; margin: 0; width: 62px; height: 62px; font-size: 28px; }
    .hb-deals-intro p { margin: 0; }
    .hb-deals-intro .hb-rail-nav { grid-row: span 2; grid-column: 3; }
}

@media (max-width: 767px) {
    .hb-rail.is-deals { --per: 2.15; }
    .hb-deals-intro .hb-rail-nav { display: none; }
    .hb-deals { border-radius: 24px; }
}

@media (max-width: 420px) { .hb-rail.is-deals { --per: 1.55; } }

/* ---------- map ---------- */
.hb-map-split {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, #eaf2fd 0%, #eef8f1 100%);
    overflow: hidden;
}

    .hb-map-split::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(13, 78, 166, .12) 1.2px, transparent 1.2px);
        background-size: 18px 18px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
        mask-image: linear-gradient(90deg, transparent, #000 60%);
        pointer-events: none;
    }

.hb-map-text { position: relative; }
.hb-map-text p { color: #33465c; font-size: 15px; line-height: 2.1; margin: 12px 0 14px; }

.hb-checks {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}

    .hb-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hb-text); }
    .hb-checks i {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        background: var(--hb-green);
        color: #fff;
        font-size: 11px;
    }

.hb-map-frame {
    position: relative;
    padding: 8px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(13, 42, 85, .16);
}

    .hb-map-frame iframe { display: block; width: 100%; border: 0; border-radius: 18px; }

.hb-pin {
    position: absolute;
    z-index: 2;
    top: -18px;
    right: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--hb-danger);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(229, 57, 53, .35);
    animation: hbBounce 2.6s ease-in-out infinite;
}

    .hb-pin::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid var(--hb-danger);
        animation: hbRing 2.6s ease-out infinite;
    }

@keyframes hbBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes hbRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }

@media (max-width: 991px) {
    .hb-map-split { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 26px; }
}

/* ---------- video playlist ---------- */
.hb-playlist {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    border-radius: 30px;
    background: radial-gradient(circle at 85% 0%, #1a4f99 0%, transparent 45%), #0b1f3f;
    color: #fff;
}

.hb-player-frame {
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

    .hb-player-frame video { display: block; width: 100%; height: 100%; background: #000; }

.hb-player-info { padding: 14px 4px 2px; }

.hb-player-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #7ee2a0;
}

.hb-player-title {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    color: #fff !important;
}

.hb-pl {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 470px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .05);
    overflow: hidden;
}

.hb-pl-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-weight: 700;
    font-size: 14px;
}

.hb-pl-count { font-weight: 400; font-size: 12px; color: rgba(255, 255, 255, .6); }

.hb-pl-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.hb-pl-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    text-align: right;
    cursor: pointer;
    transition: background-color .2s;
}

    .hb-pl-item:hover { background: rgba(255, 255, 255, .07); }
    .hb-pl-item.is-active { background: linear-gradient(90deg, rgba(34, 164, 71, .35), rgba(26, 111, 209, .35)); color: #fff; }

.hb-pl-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
}

.hb-pl-item.is-active .hb-pl-num { background: var(--hb-green); }

.hb-pl-text {
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.8;
}

.hb-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
    .hb-eq i { width: 3px; height: 30%; border-radius: 2px; background: #7ee2a0; }
.hb-playlist.is-playing .hb-pl-item.is-active .hb-eq { display: inline-flex; }
.hb-playlist.is-playing .hb-pl-item.is-active .hb-eq i { animation: hbEq .9s ease-in-out infinite; }
.hb-eq i:nth-child(2) { animation-delay: .2s !important; }
.hb-eq i:nth-child(3) { animation-delay: .4s !important; }

@keyframes hbEq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

@media (max-width: 991px) {
    .hb-playlist { grid-template-columns: minmax(0, 1fr); padding: 14px; border-radius: 24px; }
    .hb-pl { max-height: 320px; }
}

/* ---------- blog magazine ---------- */
.hb-mag {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
}

.hb-mag-main { min-height: 0; }

.hb-mag-feature {
    position: relative;
    display: block;
    height: 100%;
    min-height: 380px;
    border-radius: 26px;
    overflow: hidden;
    background: #0b1f3f;
    color: #fff !important;
    text-decoration: none !important;
}

    .hb-mag-feature img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .8s cubic-bezier(.2, .7, .2, 1);
    }

    .hb-mag-feature:hover img { transform: scale(1.06); }

    .hb-mag-feature::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5, 18, 40, 0) 30%, rgba(5, 18, 40, .88) 100%);
    }

.hb-mag-feature-body {
    position: absolute;
    z-index: 1;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px;
}

.hb-mag-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hb-green);
    font-size: 12px;
}

.hb-mag-meta { display: flex; gap: 14px; font-size: 12px; opacity: .85; }
    .hb-mag-meta i { margin-left: 5px; }

.hb-mag-title { font-size: 22px; font-weight: 800; line-height: 1.7; }

.hb-mag-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.9;
    opacity: .85;
}

.hb-mag-read { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #7ee2a0; }
    .hb-mag-read i { transition: transform .25s; }
.hb-mag-feature:hover .hb-mag-read i { transform: translateX(-5px); }

.hb-mag-side { display: grid; gap: 14px; align-content: start; }

.hb-mag-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hb-border);
    color: var(--hb-text) !important;
    text-decoration: none !important;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

    .hb-mag-item:hover { box-shadow: var(--hb-shadow-hover); transform: translateX(-4px); border-color: transparent; }

.hb-mag-thumb {
    flex: 0 0 auto;
    width: 120px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f7fb;
}

    .hb-mag-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hb-mag-item:hover .hb-mag-thumb img { transform: scale(1.08); }

.hb-mag-item-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.hb-mag-item-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.hb-mag-item .hb-mag-meta { color: var(--hb-muted); }
    .hb-mag-item .hb-mag-meta i { color: var(--hb-green); }

.hb-mag-more {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

    .hb-mag-more .hb-post { margin: 0; }
    .hb-mag-more .hb-post-summary,
    .hb-mag-more .hb-btn-outline { display: none; }
    .hb-mag-more .hb-post-title { margin: 0; }

@media (max-width: 991px) {
    .hb-mag { grid-template-columns: minmax(0, 1fr); }
    .hb-mag-feature { min-height: 320px; }
    .hb-mag-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .hb-mag-feature { min-height: 300px; border-radius: 22px; }
    .hb-mag-feature-body { padding: 18px; }
    .hb-mag-title { font-size: 18px; }
    .hb-mag-thumb { width: 96px; height: 76px; }
    .hb-mag-more { gap: 12px; }
}

/* ---------- ads masonry ---------- */
.hb-ads-masonry {
    column-count: 3;
    column-gap: 18px;
}

.hb-ad-tile {
    position: relative;
    display: block;
    margin-bottom: 18px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--hb-shadow);
    break-inside: avoid;
    transition: transform .3s, box-shadow .3s;
}

    .hb-ad-tile img { display: block; width: 100%; height: auto; }

    .hb-ad-tile::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 45%;
        left: -60%;
        background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
        transform: skewX(-18deg);
        pointer-events: none;
    }

    .hb-ad-tile:hover { transform: translateY(-4px); box-shadow: var(--hb-shadow-hover); }
    .hb-ad-tile:hover::after { left: 130%; transition: left .8s ease; }

@media (max-width: 991px) { .hb-ads-masonry { column-count: 2; } }
@media (max-width: 520px) { .hb-ads-masonry { column-count: 1; } }

/* ---------- follow CTA ---------- */
.hb-follow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 34px;
    border-radius: 30px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(120deg, #0a3577, #0d4ea6, #138a62, #0d4ea6, #0a3577);
    background-size: 300% 100%;
    animation: hbAurora 16s ease-in-out infinite;
}

@keyframes hbAurora { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hb-follow-text h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #fff !important; }
.hb-follow-text p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 14px; }

.hb-follow-links { display: flex; flex-wrap: wrap; gap: 12px; }

.hb-follow-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .25s, background-color .25s, box-shadow .25s;
}

    .hb-follow-btn > i {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        font-size: 22px;
    }

    .hb-follow-btn strong { display: block; font-size: 14px; }
    .hb-follow-btn small { display: block; font-size: 11px; color: rgba(255, 255, 255, .72); }
    .hb-follow-btn.is-instagram > i { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
    .hb-follow-btn.is-whatsapp > i { background: #25d366; }
    .hb-follow-btn.is-eitaa > i { background: #ef7d1a; }

    .hb-follow-btn:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, .18);
        box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
    }

@media (max-width: 991px) {
    .hb-follow { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 18px; }
    .hb-follow-links { display: grid; grid-template-columns: minmax(0, 1fr); }
    .hb-follow-btn { text-align: right; }
}

/* ---------- modal ---------- */
.hb-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 15, 30, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s;
}

    .hb-modal[hidden] { display: none; }
    .hb-modal.is-open { opacity: 1; }

.hb-modal-card {
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
    transform: translateY(24px) scale(.97);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.hb-modal.is-open .hb-modal-card { transform: none; }

.hb-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 0;
}

    .hb-modal-head .hb-eyebrow { margin: 0; }

.hb-modal-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--hb-bg);
    color: var(--hb-text);
    cursor: pointer;
}

.hb-modal-body { padding: 16px 26px 26px; overflow-y: auto; }

body.hb-modal-open { overflow: hidden; }

/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hb-js [data-reveal]:not(.is-in) { opacity: 1; }
    .hb-js [data-reveal].is-in,
    .hb-qr-art, .hb-qr-line, .hb-blob, .hb-deal-badge::before, .hb-deal-badge span,
    .hb-pin, .hb-pin::after, .hb-follow, .hb-store-card:hover .hb-store-img::after {
        animation: none !important;
    }
    .hb-slide-img, .hb-slide video { transform: none !important; transition: none; }
}

/* post.aspx: "share" label before the share buttons */
.hb-share-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hb-muted);
}

/* moshaveregroups: icon box with a fallback icon under the picture */
.hb-tile-ico {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--hb-primary-50);
    color: var(--hb-primary);
    font-size: 24px;
    overflow: hidden;
}

    .hb-tile-ico img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: contain;
        background: #fff;
    }
