html, body {
    height: 100%;
    overflow: auto;
}

.pusher {
    height: auto !important;
    overflow-y: auto !important;
}

body, body.pushable, body.pushable > .pusher {
    /*background: #9A616D !important;*/
}

body, footer, footer a {
    font-family: 'Poppins', sans-serif !important;
    /*font-size: 13px !important;*/
}

.disabled-area {
    pointer-events: none;
}

.ui.sticky {
    /*max-width: 410px !important;*/
    z-index: 0 !important
}

/*.partial {*/
/*background: white !important;*/
/*padding: .2em !important;*/
/*border-radius: 4px !important;*/
/*}*/

.top_nav > .container {
    padding-top: 3px;
}

lord-icon {
    cursor: pointer;
}

.chart {
}

    .chart.chart-bg {
        background-color: #9A616D;
    }

    .chart.chart-font {
        color: #9A616D;
    }

    .chart.chart-font-white {
        color: white;
    }

.nav-breadcrumb {
    height: 40px !important;
    float: none !important;
    background-color: white !important;
    /*color: white !important;*/
}

select, input, textarea {
    font-size: initial;
    /*font-size: 9px;*/
}

h1, h2, h3, h4, h5, h6 {
    font-family: sans-serif;
}

h5 {
    font-weight: bold !important;
}

h6 {
    color: #ff6219;
    font-weight: bolder;
}

.icon {
    cursor: pointer;
}

.item {
    display: flex;
    align-items: center; /* vertically center children */
    gap: 10px; /* optional: spacing between items */
}

.middle.aligned.content {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
}

.toast {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.text-center {
    text-align: center;
}

.ui.vertical.menu {
    width: auto !important;
}

.slick-slide {
    margin: 0 15px !important;
}

.slick-list {
    padding-bottom: 10px;
}

.modal.scrolling {
    max-height: 1000px !important;
    overflow-y: auto !important;
}

.payment.mode img {
    height: 30px;
    margin: 0 5px;
    /*width: 40px;*/
}

.haraka.carousel {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    margin: 3px;
}

    .haraka.carousel .column {
        padding-bottom: 0px !important;
    }

    .haraka.carousel > .content {
        margin: 5px 25px
    }

.card.product {
    width: 190px !important;
    height: 250px !important;
    margin: 7px 5px;
    color: black;
}

    .card.product > .content:not(.extra.content), #haraka-search-result .content:not(.extra.content) {
        height: 180px !important;
        background-image: url('/img/product/product-default.jpg');
        background-position: center;
        background-repeat: no-repeat;
        transition: transform 0.3s ease-in-out;
        /*overflow: hidden;*/
    }

    .card.product .ui.ribbon {
        margin-left: .1em
    }


    .card.product .extra.content {
        font-size: 0.85em !important;
        line-height: 14px;
        color: black;
        padding-top: 3px !important;
    }

    .card.product > .extra.content .label {
        color: black !important;
    }

    .card.product .label, .card.product .price:not(.ribbon.label) {
        font-size: 1em;
        line-height: 1.3em;
    }

    .card.product div.buttons {
        visibility: hidden;
        position: absolute;
        margin: 0 5px 5px 0;
    }

    .card.product:hover {
        transform: scale(1.05);
        filter: brightness(1.05) contrast(1.05);
    }

        .card.product:hover div.buttons {
            opacity: 1;
            visibility: visible;
        }

    .card.product.thumbnail {
        width: 120px !important;
        height: 120px !important;
    }

        .card.product.thumbnail .action {
            display: none;
            position: absolute;
            right: 5px;
            bottom: 5px;
        }

        .card.product.thumbnail:hover .action {
            display: block;
        }

        .card.product.thumbnail .content.thumbnail {
            background-position: center;
            background-repeat: no-repeat;
            transition: transform 0.3s ease-in-out;
        }

.photo.thumbnail {
    margin: 0px 0px 10px;
    border: 1px solid red;
    border-radius: .5em;
}

.selection.dropdown .menu div.item {
    display: block !important;
}

.ui.right.sidebar {
    width: 300px !important;
    padding: 10px;
}

    .ui.right.sidebar > div {
        margin: 10px 0;
    }

.ui.search.dropdown {
    width: auto !important;
}

.login .card {
    width: 90% !important;
    height: 550px !important;
}

.ribbon.label {
    font-size: .9em !important;
}

.iti__dropdown-content {
    z-index: 10;
}

.iti__search-input {
    padding: 5px;
}

footer {
    margin-top: 10px
}

.footer {
    padding: 5px
}

.card.store.owner {
    line-height: 19px !important;
}

    .card.store.owner .meta {
        font-size: 1em;
        font-weight: bold;
    }

    .card.store.owner .description {
        font-size: 1em;
    }

    .card.store.owner .extra.content {
        font-size: .9em;
    }

.product.info {
}

    .product.info .item {
        padding: .1em 0em;
    }

        .product.info .item > .content {
            line-height: 1.4em;
        }

            .product.info .item > .content .description {
                padding-top: .7em
            }

.haraka.ads {
}

    .haraka.ads .ui.ribbon {
        margin-left: -1.2em;
        margin-bottom: 0.8em;
        padding: 1em 1.5em;
    }

    .haraka.ads h1 h2 h3 {
        font-family: 'Sans Serif Collection'
    }


    .haraka.ads .button {
        border-radius: 24px !important;
    }


.mark, mark {
    padding: 0 !important;
}

.modal {
    height: auto !important;
    top: unset !important;
    left: unset !important;
}

#cart-cost .row {
    padding: 2px !important;
    margin: 0px !important;
}

    #cart-cost .row:not(:last-child) > dt {
        font-weight: normal !important;
    }

    #cart-cost .row:last-child {
        font-weight: bold !important;
        font-size: 1.2em;
    }

    #cart-cost .row > dd {
        text-align: right;
    }

/*#list-payment-op .menu .item {
    display: flex;
    align-items: center;
}*/

.haraka.payment .item, .haraka.payment .text {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center; /* vertical centering */
    padding: 8px; /* optional spacing */
}

    .haraka.payment .item span:first-child, .haraka.payment .text span:first-child {
        display: inline-block;
        width: 70%; /* right-align image in second column */
    }

    .haraka.payment .item span:last-child, .haraka.payment .text span:last-child {
        display: inline-block;
        width: 30%;
        text-align: right;
    }

    .haraka.payment .text span:last-child {
        display: inline-block;
        justify-self: end; /* right-align image in second column */
        margin-right: 10px;
    }

    .haraka.payment .item img.dropdown-thumbnail, .haraka.payment .text img.dropdown-thumbnail {
        max-height: 24px; /* optional: control image size */
    }




/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1024px) {
    main {
        margin-top: 120px;
        min-height: 450px
    }

    .ui.mobile.top_nav, .ui.menu .sidebar-trigger {
        display: none !important;
    }

    .ui.menu a[data-bs-toggle="offcanvas"] {
        display: none !important;
    }

    .ui.search {
        width: 450px;
    }

    .logo.mobile {
        display: none !important;
    }

    .search.mobile {
        display: none !important;
    }

    i.bi.icon {
        font-size: 2rem
    }

    ul.account_selection {
        width: 200px;
        text-align: left;
    }

        ul.account_selection li {
            line-height: 30px;
        }

            ul.account_selection li a {
                font-size: 13px;
            }

    a.btn, a.card-link {
        font-size: 13px !important;
        padding: 4px;
        margin: -10px;
    }

    #custom-templates .empty-message {
        padding: 5px 10px;
        text-align: center;
    }

    li.ui-menu-item {
        padding: 2px;
    }

        li.ui-menu-item:hover {
            background-color: #f0f0f0;
            cursor: pointer;
        }

    .ui-menu-item-wrapper {
        padding: 2px 3px 2px 5px;
    }

    /* STORE CSS */
    .store-list {
        font-size: 1.5rem;
        color: cornflowerblue;
    }


    /* Change arrow color */
    .slick-prev::before,
    .slick-next::before {
        color: #000; /* Change arrow color */
        font-size: 20px; /* Increase size */
    }

    /* Change arrow background */
    .slick-prev, .slick-next {
        /*background-color: rgba(0, 0, 0, 0.5);*/ /* Semi-transparent black */
        border-radius: 50%; /* Make it round */
        width: 20px;
        height: 20px;
    }

    .haraka {
    }

        .haraka.haraka-font-sm {
            font-size: 11px;
        }

        .haraka.scroll-container-vertical {
            max-height: 450px; /* Max height to trigger scrolling */
            width: auto;
            overflow-y: auto; /* Vertical scrollbar appears when needed */
            overflow-x: hidden; /* Prevent horizontal scroll */
            /*border: 1px solid #ccc;*/
            /*padding: 10px;*/
            /*margin: 20px;*/
            /*background-color: #f9f9f9;*/
            /* Optional styling for scrollbar (works in modern browsers) */
            scrollbar-width: thin; /* For Firefox */
            scrollbar-color: #888 #f1f1f1; /* For Firefox */
        }

        .haraka.scroll-container-horizontal {
            max-width: 450px; /* Max width to trigger scrolling */
            height: 55px;
            overflow-y: hidden; /* Prevent vertical scroll */
            overflow-x: auto; /* Horizontal scrollbar appears when needed */
            scrollbar-width: thin; /* For Firefox */
            scrollbar-color: #888 #f1f1f1; /* For Firefox */
        }

        /* For WebKit browsers (Chrome, Safari) */
        .haraka.scroll-container-vertical::-webkit-scrollbar {
            width: 8px;
        }

        .haraka.scroll-container-vertical::-webkit-scrollbar-track,
        .haraka.scroll-container-horizontal::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .haraka.scroll-container-vertical::-webkit-scrollbar-thumb,
        .haraka.scroll-container-horizontal::-webkit-scrollbar-thumb {
            background-color: #888;
            border-radius: 4px;
        }

        /* Content styling */
        .haraka.scroll-content {
            height: auto;
            line-height: 1.5;
        }

        .haraka.dropdown-menu {
            z-index: 1000 !important;
        }

        .haraka.dropdown-item {
            z-index: 1000 !important;
        }

        .haraka.ui.dropdown {
            padding: 0 !important;
            line-height: 2;
        }

            .haraka.ui.dropdown > span {
                /* Targets only immediate span children */
                font-size: 0.75rem;
            }

        .haraka.account > a {
            height: unset !important;
            line-height: unset !important;
        }

    label.haraka {
        z-index: 0 !important;
    }

    tr.haraka {
        font-size: 9pt;
    }

        tr.haraka td {
            padding: 4px;
            height: 25px;
            vertical-align: middle
        }

    .container.haraka, .navbar.haraka {
        height: 50px !important;
    }

    .page-link {
        font-size: 9pt !important;
    }

    .main-nav {
        position: relative;
        border: 1px solid #bbb;
        background: #fff;
        -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        -moz-box-shadow: 0 1px 41px rgba(0, 0, 0, 0.2);
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    }

        .main-nav:after {
            clear: both;
            content: "\00a0";
            display: block;
            height: 0;
            font: 0px/0 serif;
            overflow: hidden;
        }

    .nav-brand {
        float: left;
        margin: 0;
    }

        .nav-brand a {
            display: block;
            padding: 11px 11px 11px 20px;
            color: #555;
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            font-size: 20px;
            font-weight: normal;
            line-height: 17px;
            text-decoration: none;
        }

    #main-menu {
        clear: both;
        border: 0;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }

    @media (min-width: 768px) {
        #main-menu {
            float: right;
            clear: none;
        }
    }

    /* Mega menus */
    /* make mega menus take the full width of .main-nav */
    #main-menu,
    #main-menu > .has-mega-menu {
        position: static !important;
    }

        #main-menu .mega-menu {
            margin-left: -1px !important;
            margin-right: -1px !important;
            right: 0 !important;
            width: auto !important;
            max-width: none !important;
        }

        #main-menu > .has-mega-menu .scroll-up,
        #main-menu > .has-mega-menu .scroll-down {
            margin-left: 0 !important;
        }


        /* clear any floats inside the mega menus */

        #main-menu .mega-menu > li {
            overflow: auto;
        }


        /* reset mega menu list/link styles (which are inherited from the SmartMenus core/theme styles) */

        #main-menu .mega-menu {
            color: #353451;
        }

            #main-menu .mega-menu ul {
                position: static;
                display: block;
                margin: 0.83em 0;
                border: 0;
                padding: 0 0 0 20px;
                width: auto;
                background: transparent;
                -moz-box-shadow: none;
                -webkit-box-shadow: none;
                box-shadow: none;
            }

                #main-menu .mega-menu ul li {
                    display: list-item;
                    list-style-type: disc;
                    border: 0;
                }

            #main-menu .mega-menu a {
                display: inline;
                border: 0;
                padding: 0;
                background: transparent;
                color: inherit;
                text-decoration: underline;
            }


            /* simple columns inside the mega menus */

            #main-menu .mega-menu .column-1-3 {
                padding: 0 20px;
            }

    /*    @media (min-width: 768px) {
        #main-menu .mega-menu .column-1-3 {
            float: left;
            width: 33.33%;
        }
    }
*/

    /* Sample image placeholder */

    .mega-menu-sample-image {
        margin: 0.83em 0;
        border: 1px solid;
        height: 80px;
        line-height: 80px;
        text-align: center;
    }


    /* Mobile menu toggle button */

    .main-menu-btn {
        float: right;
        margin: 5px 10px;
        position: relative;
        display: inline-block;
        width: 29px;
        height: 29px;
        text-indent: 29px;
        white-space: nowrap;
        overflow: hidden;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }


    /* hamburger icon */

    .main-menu-btn-icon,
    .main-menu-btn-icon:before,
    .main-menu-btn-icon:after {
        position: absolute;
        top: 50%;
        left: 2px;
        height: 2px;
        width: 24px;
        background: #555;
        -webkit-transition: all 0.25s;
        transition: all 0.25s;
    }

        .main-menu-btn-icon:before {
            content: '';
            top: -7px;
            left: 0;
        }

        .main-menu-btn-icon:after {
            content: '';
            top: 7px;
            left: 0;
        }


    /* x icon */

    #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
        height: 0;
        background: transparent;
    }

        #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
            top: 0;
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

        #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
            top: 0;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
        }


    /* hide menu state checkbox (keep it visible to screen readers) */
    #main-menu-state {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        border: 0;
        padding: 0;
        overflow: hidden;
        clip: rect(1px, 1px, 1px, 1px);
    }

        /* hide the menu in mobile view */

        #main-menu-state:not(:checked) ~ #main-menu {
            display: none;
        }

        #main-menu-state:checked ~ #main-menu {
            display: block;
        }

    /*@media (min-width: 768px) {*/
    /* hide the button in desktop view */
    /*.main-menu-btn {
            position: absolute;
            top: -99999px;
        }*/
    /* always show the menu in desktop view */
    /*#main-menu-state:not(:checked) ~ #main-menu {
            display: block;
        }
    }*/


    /* Custom styling for wide popups */
    .wide.popup {
        max-width: 600px !important;
        padding: 20px;
    }

    .popup-content {
        display: flex;
        gap: 20px;
    }

    .popup-column {
        flex: 1;
    }

    .menu-container {
        width: 250px;
        position: relative;
        height: 400px;
    }

    .menu-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .menu-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    }

    .main-menu {
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    .submenu {
        opacity: 0;
        transform: translateX(20px);
        pointer-events: none;
        z-index: 2;
    }

    .menu-wrapper.show-submenu .main-menu {
        opacity: 0;
        transform: translateX(-20px);
        pointer-events: none;
    }

    .menu-wrapper.show-submenu .submenu {
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
    }

    .back-button {
        cursor: pointer;
        display: flex;
        align-items: center;
    }

        .back-button:hover {
            background-color: rgba(0,0,0,0.05) !important;
        }

    .submenu-header {
        display: flex;
        align-items: center;
    }

    .haraka.ads h1, h2, h3 {
        padding: .3em 0;
    }

    .haraka.ads h1 {
        font-size: 1.7em;
    }

    .haraka.ads h2 {
        font-size: 1.5em;
        font-weight: bold;
    }

    .haraka.ads p {
        font-size: medium;
        color: blue;
        _font-weight: bold;
    }

    .haraka.ads .card-primary .product-image {
        width: 530px;
        height: 300px;
    }
}

@media only screen and (max-width: 1200px) {
    .ui.search {
        width: 350px;
    }

    .haraka.ads .card-primary h1 {
        font-size: 1.3em;
        padding-bottom: .1em;
    }

    .haraka.ads .card-primary h2 {
        font-size: 1.4em;
        padding: 1em 0 3em 0;
    }

    .haraka.ads .card-secondary h1 {
        font-size: 1.7em;
        padding-bottom: .1em;
    }

    .haraka.ads .card-secondary h2 {
        font-size: 1.5em;
        padding: 1em 0 3em 0;
    }
}

/* Very small phones (less than 950px) */
/*@media only screen and (max-width: 950px) and (orientation: landscape) {*/
@media only screen and (max-width: 950px) {
    main {
        margin-top: 140px;
    }

    .ui.mobile.top_nav {
        display: block !important;
    }

        .ui.mobile.top_nav > .container {
            padding: 4px;
            margin-left: 0px;
        }

            .ui.mobile.top_nav > .container img {
                height: 35px !important;
                width: auto !important;
            }

    .logo.mobile {
        display: none !important;
    }

    .ui.menu a.item > span {
        display: none !important;
    }

    .search.desktop {
        display: none !important;
    }

    .ui.container.search.mobile {
        display: block !important;
        padding: 10px 0px !important;
    }

        .ui.container.search.mobile input {
            -moz-border-radius: 0px;
            -webkit-border-radius: 0px;
            border-radius: 0px;
        }

    .haraka.ads .card-primary h1 {
        font-size: 1.3em;
        padding-bottom: .1em;
    }

    .haraka.ads .card-primary h2 {
        font-size: 1.3em;
        padding: 1em 0 3em 0;
    }

    .haraka.ads .card-secondary h1 {
        font-size: 1.7em;
        padding-bottom: .1em;
    }

    .haraka.ads .card-secondary h2 {
        font-size: 1.5em;
        padding: 1em 0 3em 0;
    }
}

/* Very small phones (less than 600px) */
@media only screen and (max-width: 600px) {
    main {
        margin-top: 140px;
    }

    .ui.mobile.top_nav {
        display: block !important;
    }

        .ui.mobile.top_nav > .container {
            padding: 4px;
            margin-left: 0px;
            padding-left: 0px;
        }

            .ui.mobile.top_nav > .container img {
                height: 35px !important;
                width: auto !important;
            }

    .ui.menu a.item > span {
        display: none !important;
    }

    .search.desktop {
        display: none !important;
    }

    .ui.container.search.mobile {
        display: block !important;
        padding: 10px 0px !important;
    }

        .ui.container.search.mobile input {
            -moz-border-radius: 0px;
            -webkit-border-radius: 0px;
            border-radius: 0px;
        }

    .ui.items:not(.unstackable) > .item {
        flex-direction: unset;
        margin: 2em 0;
    }
}
