/* =========================================================
   HAZSHOP MOBILE V2 - PHASE 1
   Mobile shell: header, search, category drawer, footer nav,
   slider stabilization and mobile ecommerce ergonomics.
   Desktop layout is intentionally left untouched.
   ========================================================= */

.hz-mobile-menu-trigger,
.hz-mobile-drawer,
.hz-mobile-drawer-backdrop,
.hz-mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    :root {
        --hz-pink: #f22976;
        --hz-text: #202020;
        --hz-muted: #777;
        --hz-border: #ececec;
        --hz-surface: #fff;
        --hz-bottom-nav-height: 66px;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding-bottom: calc(var(--hz-bottom-nav-height) + env(safe-area-inset-bottom));
        background: #fff;
    }

    /* -------------------- Header -------------------- */
    #top {
        display: none !important;
    }

    .header-top {
        padding: 9px 0 10px !important;
        margin: 0 !important;
        background: #fff;
        border-bottom: 1px solid var(--hz-border);
    }

    .header-top .container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-top .row {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 10px;
        margin: 0 !important;
    }

    .header-top .row::before,
    .header-top .row::after {
        display: none !important;
        content: none !important;
    }

    .hz-mobile-menu-trigger {
        display: inline-flex;
        grid-column: 1;
        grid-row: 1;
        width: 42px;
        height: 42px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .hz-mobile-menu-trigger span {
        display: block;
        width: 25px;
        height: 3px;
        border-radius: 99px;
        background: #181818;
    }

    .header-top .logos {
        grid-column: 2;
        grid-row: 1;
        width: auto !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0;
        text-align: left;
    }

    .header-top #logo {
        display: block !important;
        width: auto !important;
        max-width: 158px;
        margin: 0 !important;
    }

    .header-top #logo a {
        display: inline-block;
        max-width: 100%;
    }

    .header-top #logo img {
        display: block !important;
        width: auto !important;
        max-width: 158px !important;
        max-height: 52px;
        object-fit: contain;
        margin: 0 !important;
    }

    .header-top .bbb {
        display: none !important;
    }

    .header-top .carts {
        grid-column: 3;
        grid-row: 1;
        display: flex !important;
        width: auto !important;
        float: none !important;
        align-items: center;
        justify-content: flex-end;
        gap: 7px !important;
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    .header-top .carts .wishlist {
        display: none !important;
    }

    .header-top .carts #account,
    .header-top .carts #cart {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-top .carts #account > a,
    .header-top .carts #cart > button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .header-top .carts .acc svg,
    .header-top .carts #cart svg {
        width: 25px !important;
        height: 25px !important;
        fill: #181818 !important;
    }

    .header-top #account .discri,
    .header-top #cart .discri,
    .header-top #cart #carts,
    .header-top #cart-per,
    .header-top #cart-text {
        display: none !important;
    }

    .header-top #account .dropdown-menu {
        right: -50px;
        left: auto;
        min-width: 210px;
        margin-top: 7px;
        border: 1px solid var(--hz-border);
        border-radius: 12px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, .10);
    }

    .header-top #cart .dropdown-menu {
        position: fixed;
        top: 64px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        border-radius: 12px;
        border: 1px solid var(--hz-border);
        box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
    }

    /* Search is the full second row. */
    #search_widget {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #search_widget #search {
        width: 100% !important;
        margin: 0 !important;
        position: relative;
    }

    #search .winter-search-container {
        display: flex !important;
        width: 100% !important;
        min-width: 0;
        align-items: stretch;
        background: #f7f7f7 !important;
        border: 1px solid #e7e7e7;
        border-radius: 12px !important;
        overflow: hidden;
    }

    #search .winter-category-container {
        display: none !important;
    }

    #search .search-box.input-group {
        display: flex !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        float: none !important;
    }

    #search .search-box input[name="search"],
    #search .search-box .hz-search-input,
    #search .input-lg {
        display: block !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 46px !important;
        padding: 0 14px !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #f7f7f7 !important;
        color: #222 !important;
        font-size: 14px !important;
        line-height: 46px !important;
        box-shadow: none !important;
        outline: 0 !important;
    }

    #search .search-box input[name="search"]::placeholder {
        color: #8a8a8a !important;
        opacity: 1;
    }

    #search .search-box .input-group-btn {
        display: block !important;
        flex: 0 0 50px;
        width: 50px !important;
        position: static !important;
    }

    #search .search-box .input-group-btn .btn,
    #search .btn-lg {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 50px !important;
        min-width: 50px !important;
        height: 46px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: var(--hz-pink) !important;
        box-shadow: none !important;
    }

    #search .btn-lg svg {
        width: 20px !important;
        height: 20px !important;
        fill: #fff !important;
    }

    #search .winter-search-result {
        top: calc(100% + 7px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: min(430px, 58vh);
        border: 1px solid var(--hz-border);
        border-radius: 12px;
        box-shadow: 0 14px 38px rgba(0, 0, 0, .13);
        overflow: auto;
    }

    /* Legacy menu strip is not useful on phone; the new drawer replaces it. */
    .menus {
        display: none !important;
    }

    /* -------------------- Category drawer -------------------- */
    .hz-mobile-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1998;
        background: rgba(0, 0, 0, .48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .hz-mobile-drawer {
        display: flex;
        position: fixed;
        z-index: 1999;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 360px);
        background: #fff;
        flex-direction: column;
        transform: translateX(-102%);
        transition: transform .24s ease;
        box-shadow: 12px 0 40px rgba(0, 0, 0, .18);
        overflow: hidden;
        visibility: hidden;
    }

    body.hz-mobile-menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

    body.hz-mobile-menu-open .hz-mobile-drawer-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.hz-mobile-menu-open .hz-mobile-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    .hz-mobile-drawer-head {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        min-height: 62px;
        padding: 0 16px;
        border-bottom: 1px solid var(--hz-border);
    }

    .hz-mobile-drawer-head strong {
        color: var(--hz-text);
        font-size: 19px;
        font-weight: 700;
    }

    .hz-mobile-drawer-close {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f7f7f7;
        color: #222;
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
    }

    .hz-mobile-drawer-body {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .hz-mobile-drawer-home,
    .hz-mobile-category-row,
    .hz-mobile-drawer-links a {
        min-height: 48px;
    }

    .hz-mobile-drawer-home {
        display: flex;
        align-items: center;
        gap: 11px;
        margin: 8px 12px;
        padding: 0 12px;
        border-radius: 10px;
        background: #fff3f8;
        color: #222;
        font-weight: 600;
    }

    .hz-mobile-drawer-home i {
        color: var(--hz-pink);
        font-size: 18px;
    }

    .hz-mobile-category-list,
    .hz-mobile-category-list ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .hz-mobile-category {
        border-bottom: 1px solid #f0f0f0;
    }

    .hz-mobile-category-row {
        display: flex;
        align-items: stretch;
        padding-left: 16px;
    }

    .hz-mobile-category-row > a {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        min-width: 0;
        padding: 12px 8px 12px 0;
        color: #222;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
    }

    .hz-mobile-submenu-toggle {
        display: inline-flex;
        flex: 0 0 48px;
        width: 48px;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: #555;
    }

    .hz-mobile-submenu-toggle i {
        transition: transform .2s ease;
    }

    .hz-mobile-submenu-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .hz-mobile-submenu {
        display: none;
        padding: 2px 16px 12px 26px;
        background: #fafafa;
    }

    .hz-mobile-submenu.is-open {
        display: block;
    }

    .hz-mobile-subcategory {
        padding: 9px 0 4px;
    }

    .hz-mobile-subcategory-title {
        display: block;
        padding: 4px 0;
        color: #333;
        font-size: 13px;
        font-weight: 600;
    }

    .hz-mobile-subcategory ul a {
        display: block;
        padding: 6px 0 6px 12px;
        color: #717171;
        font-size: 12px;
        line-height: 1.35;
    }

    .hz-mobile-drawer-links {
        margin: 14px 12px 0;
        padding-top: 8px;
        border-top: 1px solid var(--hz-border);
    }

    .hz-mobile-drawer-links a {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 0 8px;
        color: #333;
        font-size: 13px;
    }

    .hz-mobile-drawer-links i {
        width: 18px;
        color: var(--hz-pink);
        text-align: center;
        font-size: 16px;
    }

    /* -------------------- Mobile slider repair -------------------- */
    #common-home .s-panel,
    #common-home > .s-panel,
    #common-home .smid.snwidthslb {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 18px !important;
        padding: 0 !important;
        float: none !important;
        overflow: hidden !important;
    }

    #common-home .s-panel .owl-wrapper-outer,
    #common-home .s-panel .owl-wrapper,
    #common-home .s-panel .owl-item,
    #common-home .home-slideshow,
    #common-home .home-slideshow > div {
        max-width: none !important;
    }

    #common-home .s-panel img,
    #common-home .s-panel .owl-item.active img,
    #common-home .home-slideshow img {
        display: block !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        transform: none !important;
    }

    #common-home .home-slideshow .owl-controls {
        margin-top: 0;
    }

    #common-home .home-slideshow .owl-pagination {
        bottom: 8px !important;
    }

    #common-home .home-slideshow .owl-buttons {
        display: none !important;
    }

    /* -------------------- Home page vertical rhythm -------------------- */
    #common-home .home-main-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    #common-home .home-product-section {
        margin-bottom: 24px !important;
    }

    #common-home .home-product-section .head-t {
        margin: 0 0 14px !important;
    }

    #common-home .heading-home,
    #common-home .head-t h4 {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0 !important;
        color: #222;
        font-size: 18px !important;
        line-height: 1.25;
        font-weight: 700;
    }

    #common-home .product-thumb {
        border-radius: 10px;
        overflow: hidden;
    }

    #common-home .product-thumb .image img {
        width: 100%;
        height: auto;
    }

    #common-home .product-thumb .second-img,
    #common-home .bquickv,
    #common-home .product-thumb .view {
        display: none !important;
    }

    #common-home .product-thumb .caption {
        padding-left: 4px;
        padding-right: 4px;
    }

    #common-home .protitle {
        min-height: 34px;
        margin: 5px 0 2px !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 17px;
        overflow: hidden;
    }

    #common-home .protitle a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    #common-home .product-thumb .price,
    #common-home .product-thumb .price-new {
        font-size: 14px !important;
        font-weight: 700;
    }

    #common-home .product-thumb .rating {
        display: none !important;
    }

    /* Existing service strip becomes substantially more compact. */
    #common-home .container.h-ser {
        width: calc(100% - 24px) !important;
        margin: 0 12px 20px !important;
        padding: 8px 0 !important;
        border: 1px solid var(--hz-border);
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
    }

    #common-home .deliveryinfo .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0 !important;
    }

    #common-home .deliveryinfo .ses {
        width: auto !important;
        min-width: 0;
        padding: 10px 6px !important;
        border-right: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
    }

    #common-home .deliveryinfo .ses:nth-child(2n) {
        border-right: 0;
    }

    #common-home .deliveryinfo .ses:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    #common-home .deliveryinfo .ses ul {
        border: 0 !important;
        margin: 0 !important;
    }

    #common-home .deliveryinfo ul li.ser-svg {
        width: 44px !important;
        height: 44px !important;
        padding: 7px 0 0 !important;
        margin: 0 auto 5px !important;
        border-width: 2px !important;
        background: #fff2f7;
    }

    #common-home .deliveryinfo ul li.ser-svg svg {
        width: 27px !important;
        height: 27px !important;
        fill: #d94b84;
    }

    #common-home .ser-t h4,
    #common-home .deltext h4 {
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.25;
        font-weight: 700;
    }

    #common-home .ser-t p,
    #common-home .deltext p {
        display: none !important;
    }

    /* -------------------- Footer -------------------- */
    footer {
        margin-top: 28px !important;
        background: #fafafa;
        border-top: 1px solid var(--hz-border);
    }

    .middle-footer {
        margin: 0 !important;
        padding: 14px 14px 6px !important;
    }

    .middle-footer .container {
        width: 100%;
        padding: 0;
    }

    .middle-footer .row {
        margin: 0 !important;
    }

    .middle-footer .app,
    .middle-footer .fborder,
    .app .fborder {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .middle-footer .fborder h5 {
        position: relative;
        min-height: 48px;
        display: flex;
        align-items: center;
        margin: 0 !important;
        padding: 0 42px 0 2px !important;
        border-bottom: 1px solid var(--hz-border);
        background: transparent !important;
        color: #222;
        font-size: 14px;
        font-weight: 700;
    }

    .middle-footer .btn.toggle {
        top: 0 !important;
        right: 0 !important;
        width: 44px !important;
        height: 48px !important;
        padding: 0 !important;
    }

    .middle-footer .footer-collapse ul {
        margin: 0 !important;
        padding: 7px 0 10px !important;
    }

    .middle-footer .fborder li a {
        display: block;
        padding: 5px 2px;
        color: #666;
        font-size: 13px;
        line-height: 24px !important;
    }

    .botom-ful {
        padding: 0 14px 12px !important;
        background: #fafafa;
    }

    .botom-ful .container {
        width: 100%;
        padding: 0;
    }

    .powerd {
        padding: 12px 0 4px !important;
        color: #777;
        font-size: 11px !important;
        line-height: 1.5;
        text-align: center !important;
    }

    #scroll {
        display: none !important;
    }

    /* -------------------- Fixed bottom navigation -------------------- */
    .hz-mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        z-index: 1800;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: var(--hz-bottom-nav-height);
        padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
        border-top: 1px solid #e7e7e7;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .hz-mobile-bottom-item {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 54px;
        padding: 2px 1px 0;
        margin: 0;
        border: 0;
        background: transparent;
        color: #343434;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        font-family: inherit;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .hz-mobile-bottom-item > i,
    .hz-mobile-bottom-icon-wrap > i {
        font-size: 21px;
        line-height: 23px;
    }

    .hz-mobile-bottom-item > span:last-child {
        max-width: 100%;
        color: #555;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hz-mobile-bottom-item:focus,
    .hz-mobile-bottom-item:active {
        color: var(--hz-pink);
        outline: 0;
    }

    .hz-mobile-bottom-search {
        transform: translateY(-11px);
    }

    .hz-mobile-search-circle {
        display: inline-flex;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--hz-pink);
        color: #fff;
        box-shadow: 0 5px 13px rgba(242, 41, 118, .28);
    }

    .hz-mobile-search-circle i {
        font-size: 18px;
    }

    .hz-mobile-bottom-search > span:last-child {
        margin-top: -1px;
    }

    .hz-mobile-bottom-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 26px;
        min-height: 23px;
    }

    .hz-mobile-cart-badge {
        position: absolute;
        top: -8px;
        right: -10px;
        display: inline-flex;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        align-items: center;
        justify-content: center;
        border-radius: 99px;
        background: #e31d3b;
        color: #fff !important;
        font-size: 9px !important;
        font-weight: 700;
        line-height: 17px;
    }


    /* -------------------- Footer mobile accordion -------------------- */
    .middle-footer #column-left1 {
        width: 100% !important;
        float: none !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
    }

    /* Footer-left modüllerinin Bootstrap kolon boşluklarını mobilde sıfırla.
       Bize Ulaşın kartının diğer kartlardan daha dar görünmesinin sebebi buydu. */
    .middle-footer #column-left1 > * {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .middle-footer #column-left1 p {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .middle-footer .contact-inner,
    .middle-footer .webi-newsletter,
    .middle-footer .footer-block,
    .middle-footer .fborder {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        overflow: hidden;
        box-sizing: border-box !important;
        border: 1px solid #ececf1 !important;
        border-radius: 12px;
        background: #fff !important;
        box-shadow: 0 3px 12px rgba(17, 24, 39, .035);
    }

    .middle-footer .contact-inner > h5,
    .middle-footer .webi-newsletter > h5,
    .middle-footer .footer-block > h5,
    .middle-footer .fborder > h5,
    .middle-footer .hz-footer-accordion-title {
        position: relative;
        display: flex !important;
        min-height: 52px;
        margin: 0 !important;
        padding: 0 50px 0 16px !important;
        align-items: center;
        border: 0 !important;
        background: #fff !important;
        color: #202124 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.3;
        text-transform: none !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }

    .middle-footer .hz-footer-accordion-title::after {
        position: absolute;
        top: 50%;
        right: 17px;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-50%);
        border-radius: 50%;
        background: #f7f7f9;
        color: #4b5563;
        content: '+';
        font-size: 19px;
        font-weight: 400;
        line-height: 1;
        transition: transform .2s ease, background-color .2s ease, color .2s ease;
    }

    .middle-footer .hz-footer-accordion-title[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(45deg);
        background: #fff0f6;
        color: #f22976;
    }

    .middle-footer .hz-footer-accordion-title .btn.toggle {
        position: absolute !important;
        inset: 0 !important;
        z-index: 2;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        opacity: 0;
    }

    .middle-footer .hz-footer-accordion-title .btn.toggle::after {
        content: none !important;
    }

    .middle-footer .hz-footer-mobile-panel {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        float: none !important;
        clear: both !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-top: 1px solid #f0f0f3 !important;
        border-radius: 0 !important;
        background: #fff !important;
    }

    .middle-footer #contact.hz-footer-mobile-panel,
    .middle-footer #formNewLestter.hz-footer-mobile-panel,
    .middle-footer .footer-inner.hz-footer-mobile-panel {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .middle-footer .hz-footer-mobile-panel > .inner,
    .middle-footer .hz-footer-mobile-panel.footer-collapse,
    .middle-footer #contact.hz-footer-mobile-panel,
    .middle-footer .footer-inner.hz-footer-mobile-panel {
        padding: 10px 16px 14px !important;
    }

    .middle-footer #contact.hz-footer-mobile-panel .f-left,
    .middle-footer #contact.hz-footer-mobile-panel ul,
    .middle-footer #contact.hz-footer-mobile-panel li {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    .middle-footer #contact.hz-footer-mobile-panel .f-left li {
        word-break: normal !important;
        overflow-wrap: anywhere;
    }

    .middle-footer .hz-footer-mobile-panel ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    .middle-footer .hz-footer-mobile-panel li a {
        display: block;
        padding: 7px 0 !important;
        color: #62656b !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .middle-footer .webi-newsletter.hz-footer-mobile-section,
    .middle-footer .footer-block.hz-footer-mobile-section {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }

    /* Tawk bubble should not sit on top of the fixed navigation. */
    #tawk-bubble-container,
    #tawk-chat-container {
        bottom: calc(var(--hz-bottom-nav-height) + 14px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 359px) {
    .header-top #logo img {
        max-width: 132px !important;
    }

    .header-top .carts {
        gap: 2px !important;
    }

    .header-top .carts #account,
    .header-top .carts #cart,
    .header-top .carts #account > a,
    .header-top .carts #cart > button {
        width: 38px !important;
        min-width: 38px;
    }

    .hz-mobile-bottom-item > span:last-child {
        font-size: 9px;
    }
}


/* =========================================================
   HAZSHOP MOBILE V2 - PHASE 1.2 HOTFIX
   Home product cards, centered mobile logo, premium bottom nav,
   mobile buy bar above nav, and hard mobile chat suppression.
   ========================================================= */
@media (max-width: 767px) {
    :root {
        --hz-bottom-nav-height: 86px;
        --hz-buybar-height: 72px;
    }

    body {
        padding-bottom: calc(var(--hz-bottom-nav-height) + 18px + env(safe-area-inset-bottom));
        background: #fcfcfd;
    }

    /* Header: keep structure stable and center the logo visually. */
    .header-top {
        position: sticky;
        top: 0;
        z-index: 1030;
        box-shadow: 0 6px 20px rgba(17, 24, 39, .05);
    }

    .header-top .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-top .row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        column-gap: 8px;
        row-gap: 12px;
    }

    .header-top .logos {
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100% !important;
    }

    .header-top #logo {
        width: 100% !important;
        max-width: none !important;
        text-align: center;
    }

    .header-top #logo a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .header-top #logo img {
        max-width: 174px !important;
        max-height: 56px !important;
        margin: 0 auto !important;
    }

    .header-top .carts {
        gap: 2px !important;
    }

    .header-top .carts #account,
    .header-top .carts #cart {
        width: 40px;
        height: 40px;
    }

    .header-top .carts #account > a,
    .header-top .carts #cart > button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
        border-radius: 10px;
    }

    #search .winter-search-container {
        min-height: 52px;
        border-radius: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
    }

    #search .search-box input[name="search"],
    #search .search-box .hz-search-input,
    #search .input-lg {
        height: 50px !important;
        font-size: 15px !important;
    }

    #search .btn-lg,
    #search button.btn {
        width: 52px !important;
        height: 52px !important;
        border-radius: 0 14px 14px 0 !important;
    }

    /* Product blocks on home should look like real mobile cards, not stretched placeholders. */
    #common-home .home-product-section,
    #common-home .latest-module,
    #common-home .prosp,
    #common-home .jd-2,
    #common-home .bestseller,
    #common-home .arrivalpro,
    #common-home .timerpro,
    #common-home .onspro {
        clear: both;
    }

    #common-home .home-product-carousel .owl-wrapper,
    #common-home .fnb .owl-wrapper,
    #common-home .onspro .owl-wrapper {
        display: flex !important;
        align-items: stretch;
    }

    #common-home .home-product-carousel .owl-item,
    #common-home .fnb .owl-item,
    #common-home .onspro .owl-item {
        height: auto !important;
    }

    #common-home .home-product-carousel .product-layout,
    #common-home .fnb .product-layout,
    #common-home .onspro .product-layout {
        height: 100%;
    }

    #common-home .home-product-carousel .product-thumb,
    #common-home .fnb .product-thumb,
    #common-home .onspro .product-thumb {
        display: flex;
        flex-direction: column;
        height: 100% !important;
        min-height: 0 !important;
        border: 1px solid #ededf2;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
        overflow: hidden;
    }

    #common-home .home-product-carousel .product-thumb .image,
    #common-home .fnb .product-thumb .image,
    #common-home .onspro .product-thumb .image {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 170px;
        aspect-ratio: 1 / 1;
        padding: 16px 12px 10px;
        border-bottom: 1px solid #f0f1f4;
        background: #fff;
    }

    #common-home .home-product-carousel .product-thumb .image > a:first-child,
    #common-home .fnb .product-thumb .image > a:first-child,
    #common-home .onspro .product-thumb .image > a:first-child {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    #common-home .home-product-carousel .product-thumb .image img,
    #common-home .fnb .product-thumb .image img,
    #common-home .onspro .product-thumb .image img {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        margin: 0 auto !important;
        image-rendering: auto;
        transform: translateZ(0);
    }

    #common-home .home-product-carousel .product-thumb .caption,
    #common-home .fnb .product-thumb .caption,
    #common-home .onspro .product-thumb .caption {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        padding: 14px 12px 14px !important;
        border-top: 0;
    }

    #common-home .home-product-carousel .product-thumb .opbtn,
    #common-home .fnb .product-thumb .opbtn,
    #common-home .onspro .product-thumb .opbtn {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }

    #common-home .home-product-carousel .product-thumb .rat,
    #common-home .fnb .product-thumb .rat,
    #common-home .onspro .product-thumb .rat {
        display: none !important;
    }

    #common-home .home-product-carousel .protitle,
    #common-home .fnb .protitle,
    #common-home .onspro .protitle {
        min-height: 40px;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
        font-weight: 600;
    }

    #common-home .home-product-carousel .protitle a,
    #common-home .fnb .protitle a,
    #common-home .onspro .protitle a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    #common-home .home-product-carousel .price,
    #common-home .fnb .price,
    #common-home .onspro .price,
    #common-home .home-product-carousel .price-new,
    #common-home .fnb .price-new,
    #common-home .onspro .price-new {
        margin-top: auto;
        padding: 0 !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
        font-weight: 800 !important;
        color: #14151a;
    }

    #common-home .home-product-carousel .button-group,
    #common-home .fnb .button-group,
    #common-home .onspro .button-group {
        margin-top: 12px;
    }

    #common-home .home-product-carousel .absbtn,
    #common-home .fnb .absbtn,
    #common-home .onspro .absbtn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    #common-home .home-product-carousel .wish,
    #common-home .home-product-carousel .view,
    #common-home .home-product-carousel .cartb,
    #common-home .fnb .wish,
    #common-home .fnb .view,
    #common-home .fnb .cartb,
    #common-home .onspro .wish,
    #common-home .onspro .view,
    #common-home .onspro .cartb {
        float: none !important;
    }

    #common-home .home-product-carousel .bwish,
    #common-home .home-product-carousel .bcom,
    #common-home .home-product-carousel .cartb,
    #common-home .fnb .bwish,
    #common-home .fnb .bcom,
    #common-home .fnb .cartb,
    #common-home .onspro .bwish,
    #common-home .onspro .bcom,
    #common-home .onspro .cartb {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        padding: 0 !important;
        border: 1px solid #ececf2 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    #common-home .home-product-carousel .cartb span,
    #common-home .fnb .cartb span,
    #common-home .onspro .cartb span {
        display: none !important;
    }

    #common-home .home-product-carousel .cartb svg,
    #common-home .home-product-carousel .bwish svg,
    #common-home .home-product-carousel .bcom svg,
    #common-home .fnb .cartb svg,
    #common-home .fnb .bwish svg,
    #common-home .fnb .bcom svg,
    #common-home .onspro .cartb svg,
    #common-home .onspro .bwish svg,
    #common-home .onspro .bcom svg {
        width: 18px !important;
        height: 18px !important;
    }

    #common-home .home-product-carousel .owl-buttons,
    #common-home .fnb .owl-buttons,
    #common-home .onspro .owl-buttons {
        top: -52px;
        right: 0;
        position: absolute;
        display: flex !important;
        gap: 8px;
    }

    #common-home .home-product-carousel .owl-buttons > div,
    #common-home .fnb .owl-buttons > div,
    #common-home .onspro .owl-buttons > div {
        position: static !important;
        width: 44px;
        height: 44px;
        margin: 0 !important;
        border: 1px solid #e8e8ee;
        border-radius: 12px;
        background: #fff;
        color: #1f2025;
        box-shadow: 0 8px 18px rgba(17, 24, 39, .04);
        line-height: 42px;
        opacity: 1 !important;
    }

    #common-home .home-product-carousel .owl-buttons > div i,
    #common-home .fnb .owl-buttons > div i,
    #common-home .onspro .owl-buttons > div i {
        font-size: 20px;
        line-height: 42px;
    }

    /* Premium bottom nav shell. */
    .hz-mobile-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
        border: 1px solid rgba(233, 233, 239, .95);
        border-radius: 24px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
        backdrop-filter: blur(14px);
    }

    .hz-mobile-bottom-item {
        position: relative;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        min-height: 56px;
        padding: 2px 0 0;
        border: 0;
        background: transparent;
        color: #555862;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .01em;
        text-decoration: none;
    }

    .hz-mobile-bottom-item i {
        font-size: 23px;
        line-height: 1;
    }

    .hz-mobile-bottom-item span {
        display: block;
        line-height: 1.1;
    }

    .hz-mobile-bottom-item.is-active,
    .hz-mobile-bottom-item:active,
    .hz-mobile-bottom-item:focus {
        color: var(--hz-pink);
        text-decoration: none;
    }

    .hz-mobile-bottom-item.is-active::before {
        content: '';
        position: absolute;
        left: 50%;
        top: -2px;
        width: 26px;
        height: 3px;
        border-radius: 999px;
        background: var(--hz-pink);
        transform: translateX(-50%);
    }

    .hz-mobile-bottom-search {
        z-index: 2;
    }

    .hz-mobile-search-circle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        margin-top: -34px;
        border: 5px solid #fff;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff4d96 0%, #f22976 100%);
        box-shadow: 0 14px 28px rgba(242, 41, 118, .34);
        color: #fff;
    }

    .hz-mobile-search-circle i {
        font-size: 24px;
    }

    .hz-mobile-bottom-item.hz-mobile-bottom-search span:last-child {
        margin-top: -1px;
    }

    /* Tawk is enabled on mobile and stays clear of the fixed bottom navigation. */
    #tawkchat-container,
    #tawk-chat-container,
    #tawk-bubble-container {
        bottom: calc(var(--hz-bottom-nav-height) + 12px + env(safe-area-inset-bottom)) !important;
        z-index: 1750 !important;
    }

    iframe[src*="tawk.to"],
    iframe[src*="embed.tawk"],
    iframe[title*="chat"] {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Product detail mobile ergonomics */
#product-product.hz-product-page .hz-qty .btn-number,
#product-product.hz-product-page .hz-qty .input-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#product-product.hz-product-page .hz-qty .btn-number .glyphicon {
    position: static;
    display: inline-block;
    font-size: 12px;
    line-height: 1;
}

#product-product.hz-product-page .hz-qty .input-number {
    font-size: 16px;
    font-weight: 800;
}

@media (max-width: 767px) {
    #product-product.hz-product-page {
        padding-bottom: calc(var(--hz-bottom-nav-height) + var(--hz-buybar-height) + 46px + env(safe-area-inset-bottom));
    }

    #product-product.hz-product-page .hz-buy-row {
        grid-template-columns: 108px minmax(0, 1fr) 48px;
        gap: 10px;
    }

    #product-product.hz-product-page .hz-qty {
        grid-template-columns: 36px 1fr 36px;
        height: 50px;
        border-radius: 12px;
    }

    #product-product.hz-product-page .hz-qty .btn-number,
    #product-product.hz-product-page .hz-qty .input-number {
        height: 48px;
        min-height: 48px;
    }

    body .hz-mobile-buybar {
        left: 10px;
        right: 10px;
        bottom: calc(10px + var(--hz-bottom-nav-height) + env(safe-area-inset-bottom));
        z-index: 1036;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid #ececf2;
        border-radius: 20px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 -2px 0 rgba(255,255,255,.6), 0 18px 36px rgba(17,24,39,.14);
        backdrop-filter: blur(14px);
    }

    body .hz-mobile-buybar .hz-mobile-price {
        min-width: 92px;
        font-size: 18px;
    }

    body .hz-mobile-buybar .hz-mobile-cart {
        height: 48px;
        border-radius: 13px;
        font-size: 13px;
        letter-spacing: .02em;
        box-shadow: 0 10px 20px rgba(245,66,134,.2);
    }
}


/* =========================================================
   HAZSHOP MOBILE V2 - PHASE 1.3 HOTFIX
   Stabilize all home product sections, switch to a standard
   ecommerce bottom nav, and tighten product detail mobile UX.
   ========================================================= */
@media (max-width: 767px) {
    :root {
        --hz-bottom-nav-height: 68px;
        --hz-buybar-height: 64px;
    }

    body {
        padding-bottom: calc(var(--hz-bottom-nav-height) + 18px + env(safe-area-inset-bottom));
    }

    /* Standard ecommerce bottom nav: no floating search bubble. */
    .hz-mobile-bottom-nav {
        left: 0;
        right: 0;
        bottom: 0;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        gap: 0;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid #ececf2;
        border-radius: 18px 18px 0 0;
        background: #fff;
        box-shadow: 0 -6px 24px rgba(17,24,39,.10);
        backdrop-filter: none;
    }

    .hz-mobile-bottom-item {
        position: relative;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 52px;
        padding: 2px 0;
        border: 0;
        background: transparent;
        color: #585b66;
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
    }

    .hz-mobile-bottom-item i {
        font-size: 22px;
        line-height: 1;
    }

    .hz-mobile-bottom-item span {
        display: block;
        line-height: 1.15;
    }

    .hz-mobile-bottom-item.is-active,
    .hz-mobile-bottom-item:active,
    .hz-mobile-bottom-item:focus {
        color: var(--hz-pink);
        text-decoration: none;
    }

    .hz-mobile-bottom-item.is-active::before {
        content: '';
        position: absolute;
        left: 50%;
        top: -8px;
        width: 28px;
        height: 3px;
        border-radius: 999px;
        background: var(--hz-pink);
        transform: translateX(-50%);
    }

    .hz-mobile-bottom-search {
        z-index: auto;
    }

    .hz-mobile-search-circle {
        display: contents !important;
        width: auto;
        height: auto;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: inherit;
    }

    .hz-mobile-search-circle i {
        font-size: 22px;
        color: inherit;
    }

    .hz-mobile-bottom-item.hz-mobile-bottom-search span:last-child {
        margin-top: 0;
    }

    /* Home product sections: remove stretching, keep cards compact and stable. */
    #common-home .home-product-section,
    #common-home .prosp,
    #common-home .latest-module,
    #common-home .featured-module,
    #common-home .jd-2,
    #common-home .onspro,
    #common-home .bestseller,
    #common-home .timerpro,
    #common-home .arrivalpro {
        margin-bottom: 28px !important;
    }

    #common-home .home-product-carousel .owl-wrapper-outer,
    #common-home .fnb .owl-wrapper-outer,
    #common-home .onspro .owl-wrapper-outer {
        overflow: hidden;
    }

    #common-home .home-product-carousel .owl-wrapper,
    #common-home .fnb .owl-wrapper,
    #common-home .onspro .owl-wrapper {
        display: block !important;
        height: auto !important;
    }

    #common-home .home-product-carousel .owl-item,
    #common-home .fnb .owl-item,
    #common-home .onspro .owl-item,
    #common-home .home-product-carousel .product-layout,
    #common-home .fnb .product-layout,
    #common-home .onspro .product-layout,
    #common-home .home-product-carousel .product-thumb,
    #common-home .fnb .product-thumb,
    #common-home .onspro .product-thumb {
        height: auto !important;
        min-height: 0 !important;
    }

    #common-home .home-product-carousel .product-thumb,
    #common-home .fnb .product-thumb,
    #common-home .onspro .product-thumb {
        display: block !important;
        border: 1px solid #ededf2;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(17,24,39,.04);
        overflow: hidden;
    }

    #common-home .home-product-carousel .product-thumb .image,
    #common-home .fnb .product-thumb .image,
    #common-home .onspro .product-thumb .image {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 180px;
        min-height: 180px;
        padding: 14px 10px;
        border-bottom: 1px solid #f1f1f4;
        background: #fff;
    }

    #common-home .home-product-carousel .product-thumb .image > a:first-child,
    #common-home .fnb .product-thumb .image > a:first-child,
    #common-home .onspro .product-thumb .image > a:first-child {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    #common-home .home-product-carousel .product-thumb .image img,
    #common-home .fnb .product-thumb .image img,
    #common-home .onspro .product-thumb .image img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 150px !important;
        object-fit: contain;
        margin: 0 auto !important;
    }

    #common-home .home-product-carousel .product-thumb .caption,
    #common-home .fnb .product-thumb .caption,
    #common-home .onspro .product-thumb .caption {
        display: block !important;
        padding: 12px 12px 12px !important;
        border-top: 0;
        text-align: center;
    }

    #common-home .home-product-carousel .product-thumb .opbtn,
    #common-home .fnb .product-thumb .opbtn,
    #common-home .onspro .product-thumb .opbtn {
        display: block !important;
    }

    #common-home .home-product-carousel .product-thumb .rat,
    #common-home .fnb .product-thumb .rat,
    #common-home .onspro .product-thumb .rat,
    #common-home .home-product-carousel .product-thumb .rating,
    #common-home .fnb .product-thumb .rating,
    #common-home .onspro .product-thumb .rating {
        display: none !important;
    }

    #common-home .home-product-carousel .protitle,
    #common-home .fnb .protitle,
    #common-home .onspro .protitle {
        min-height: 44px;
        margin: 0 0 8px !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
        font-weight: 600;
    }

    #common-home .home-product-carousel .protitle a,
    #common-home .fnb .protitle a,
    #common-home .onspro .protitle a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    #common-home .home-product-carousel .price,
    #common-home .fnb .price,
    #common-home .onspro .price,
    #common-home .home-product-carousel .price-new,
    #common-home .fnb .price-new,
    #common-home .onspro .price-new {
        display: block;
        margin: 0;
        padding: 0 !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
        font-weight: 800 !important;
        color: #16171c;
    }

    #common-home .home-product-carousel .button-group,
    #common-home .fnb .button-group,
    #common-home .onspro .button-group {
        margin-top: 12px;
        text-align: center;
    }

    #common-home .home-product-carousel .absbtn,
    #common-home .fnb .absbtn,
    #common-home .onspro .absbtn {
        position: static !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        opacity: 1 !important;
        transform: none !important;
        margin: 0 auto;
    }

    #common-home .home-product-carousel .wish,
    #common-home .home-product-carousel .view,
    #common-home .home-product-carousel .cartb,
    #common-home .fnb .wish,
    #common-home .fnb .view,
    #common-home .fnb .cartb,
    #common-home .onspro .wish,
    #common-home .onspro .view,
    #common-home .onspro .cartb {
        float: none !important;
    }

    #common-home .home-product-carousel .bwish,
    #common-home .home-product-carousel .bcom,
    #common-home .home-product-carousel .cartb,
    #common-home .fnb .bwish,
    #common-home .fnb .bcom,
    #common-home .fnb .cartb,
    #common-home .onspro .bwish,
    #common-home .onspro .bcom,
    #common-home .onspro .cartb {
        position: static !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid #e8e8ee !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: none !important;
        opacity: 1 !important;
    }

    #common-home .home-product-carousel .cartb span,
    #common-home .fnb .cartb span,
    #common-home .onspro .cartb span {
        display: none !important;
    }

    #common-home .home-product-carousel .owl-buttons,
    #common-home .fnb .owl-buttons,
    #common-home .onspro .owl-buttons {
        top: -50px;
        right: 0;
        position: absolute;
        display: flex !important;
        gap: 8px;
    }

    #common-home .home-product-carousel .owl-buttons > div,
    #common-home .fnb .owl-buttons > div,
    #common-home .onspro .owl-buttons > div {
        position: static !important;
        width: 42px;
        height: 42px;
        margin: 0 !important;
        border: 1px solid #e8e8ee;
        border-radius: 12px;
        background: #fff;
        color: #1f2025;
        line-height: 40px;
        opacity: 1 !important;
    }

    /* Product detail mobile tightening */
    #product-product.hz-product-page {
        padding-bottom: calc(var(--hz-bottom-nav-height) + var(--hz-buybar-height) + 34px + env(safe-area-inset-bottom));
    }

    #product-product.hz-product-page .container,
    #product-product.hz-product-page #content {
        padding-left: 12px;
        padding-right: 12px;
    }

    #product-product.hz-product-page .hz-product-gallery .thumbnail {
        min-height: 300px;
        padding: 14px;
    }

    #product-product.hz-product-page .hz-product-gallery .thumbnail img {
        max-height: 300px;
    }

    #product-product.hz-product-page .hz-product-title {
        font-size: 20px;
        line-height: 1.32;
        margin-bottom: 10px;
    }

    #product-product.hz-product-page .hz-rating-row {
        margin-bottom: 14px;
        gap: 8px;
    }

    #product-product.hz-product-page .hz-product-meta {
        gap: 8px;
        padding: 12px;
        margin-bottom: 14px;
    }

    #product-product.hz-product-page .hz-price-box {
        padding-top: 12px;
        margin-bottom: 14px;
    }

    #product-product.hz-product-page .hz-price-box h2,
    #product-product.hz-product-page .hz-price-box .pro-price {
        font-size: 26px;
    }

    #product-product.hz-product-page .hz-bank-price,
    #product-product.hz-product-page .hz-shipping-note {
        margin-bottom: 12px;
    }

    #product-product.hz-product-page .hz-purchase-panel {
        padding: 14px;
        border: 1px solid #ececf2;
        border-radius: 14px;
        background: #fff;
    }

    #product-product.hz-product-page .hz-buy-row {
        grid-template-columns: 102px minmax(0, 1fr) 44px;
        gap: 8px;
        align-items: stretch;
    }

    #product-product.hz-product-page .hz-qty {
        grid-template-columns: 34px 1fr 34px;
        height: 46px;
        border-radius: 12px;
    }

    #product-product.hz-product-page .hz-qty .btn-number,
    #product-product.hz-product-page .hz-qty .input-number,
    #product-product.hz-product-page .hz-main-cart,
    #product-product.hz-product-page .hz-wishlist {
        height: 44px;
        min-height: 44px;
    }

    #product-product.hz-product-page .hz-main-cart,
    #product-product.hz-product-page .hz-buy-now {
        border-radius: 12px;
        font-size: 12px;
    }

    #product-product.hz-product-page .hz-buy-now {
        height: 46px;
        margin-top: 8px;
    }

    #product-product.hz-product-page .hz-whatsapp-order {
        min-height: 54px;
        margin-top: 8px;
        padding: 10px 12px;
    }

    body .hz-mobile-buybar {
        left: 0;
        right: 0;
        bottom: calc(var(--hz-bottom-nav-height) + env(safe-area-inset-bottom));
        z-index: 1035;
        gap: 10px;
        padding: 10px 12px;
        border-top: 1px solid #ececf2;
        border-radius: 14px 14px 0 0;
        background: rgba(255,255,255,.98);
        box-shadow: 0 -8px 22px rgba(17,24,39,.10);
        backdrop-filter: blur(12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    body .hz-mobile-buybar.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    body .hz-mobile-buybar .hz-mobile-price {
        min-width: 88px;
        font-size: 17px;
    }

    body .hz-mobile-buybar .hz-mobile-cart {
        height: 44px;
        border-radius: 12px;
        font-size: 12px;
    }
}


/* =========================================================
   HAZSHOP MOBILE V2 - PHASE 1.4 NAVIGATION
   Final bottom navigation: no Search tab, custom SVG icons,
   compact ecommerce-style active state.
   ========================================================= */
@media (max-width: 767px) {
    :root {
        --hz-bottom-nav-height: 70px;
    }

    body {
        padding-bottom: calc(var(--hz-bottom-nav-height) + env(safe-area-inset-bottom));
    }

    .hz-mobile-bottom-nav {
        position: fixed;
        z-index: 1040;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        gap: 0;
        min-height: var(--hz-bottom-nav-height);
        padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid #ececf1;
        border-radius: 0;
        background: rgba(255,255,255,.98);
        box-shadow: 0 -7px 24px rgba(26,31,44,.09);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .hz-mobile-bottom-item {
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        min-height: 56px;
        margin: 0;
        padding: 3px 1px;
        border: 0;
        background: transparent;
        color: #737783;
        font-family: inherit;
        font-size: 10.5px;
        font-weight: 650;
        line-height: 1;
        text-align: center;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .hz-mobile-nav-icon {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 30px;
        border-radius: 10px;
        color: currentColor;
        transition: color .18s ease, background .18s ease, transform .18s ease;
    }

    .hz-mobile-nav-icon svg {
        display: block;
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        vector-effect: non-scaling-stroke;
    }

    .hz-mobile-nav-label {
        display: block;
        width: 100%;
        overflow: hidden;
        color: currentColor;
        line-height: 1.15;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .hz-mobile-bottom-item::before,
    .hz-mobile-bottom-item.is-active::before {
        display: none !important;
        content: none !important;
    }

    .hz-mobile-bottom-item.is-active,
    .hz-mobile-bottom-item:focus,
    .hz-mobile-bottom-item:active {
        color: #f22976;
        outline: 0;
    }

    .hz-mobile-bottom-item.is-active .hz-mobile-nav-icon {
        background: #fff0f6;
        color: #f22976;
        transform: translateY(-1px);
    }

    .hz-mobile-bottom-item:not(.is-active):active .hz-mobile-nav-icon {
        background: #f5f5f7;
        transform: scale(.96);
    }

    .hz-mobile-cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border: 2px solid #fff;
        border-radius: 999px;
        background: #f22976;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        line-height: 1;
    }

    /* Search is intentionally not part of the mobile bottom navigation. */
    .hz-mobile-bottom-search,
    .hz-mobile-search-circle {
        display: none !important;
    }

    /* Product sticky buy bar must remain above the final nav. */
    body .hz-mobile-buybar {
        bottom: calc(var(--hz-bottom-nav-height) + env(safe-area-inset-bottom));
    }
}


/* =========================================================
   HAZSHOP MOBILE V2 - PHASE 1.5 HOME PRODUCT CARD REDESIGN
   Make homepage product modules feel polished and consistent.
   ========================================================= */
@media (max-width: 767px) {
    #common-home .home-product-section,
    #common-home .prosp,
    #common-home .latest-module,
    #common-home .jd-2,
    #common-home .onspro,
    #common-home .bestseller,
    #common-home .arrivalpro,
    #common-home .timerpro,
    #common-home .category_module {
        clear: both;
        margin-bottom: 28px !important;
    }

    #common-home .home-product-section .head-t,
    #common-home .prosp .head-t,
    #common-home .jd-2 .head-t,
    #common-home .onspro .head-t,
    #common-home .bestseller .head-t,
    #common-home .arrivalpro .head-t,
    #common-home .timerpro .head-t {
        margin: 0 0 16px !important;
        padding-right: 0 !important;
    }

    #common-home .home-product-section .rless,
    #common-home .prosp .rless,
    #common-home .onspro .rless {
        margin-left: -6px;
        margin-right: -6px;
    }

    #common-home .home-product-section .product-layout,
    #common-home .prosp .product-layout,
    #common-home .onspro .product-layout,
    #common-home .product-layout.product-grid,
    #common-home .product-layout.product-list {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 12px !important;
    }

    #common-home .home-product-section .owl-item,
    #common-home .prosp .owl-item,
    #common-home .onspro .owl-item,
    #common-home .home-product-section .product-layout,
    #common-home .prosp .product-layout,
    #common-home .onspro .product-layout {
        height: auto !important;
        min-height: 0 !important;
    }

    #common-home .home-product-section .product-thumb,
    #common-home .prosp .product-thumb,
    #common-home .onspro .product-thumb,
    #common-home .product-list .product-thumb,
    #common-home .product-grid .product-thumb {
        position: relative;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        min-height: 300px;
        border: 1px solid #ebedf3;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(17, 24, 39, .045);
        overflow: hidden;
    }

    #common-home .home-product-section .product-thumb .image,
    #common-home .prosp .product-thumb .image,
    #common-home .onspro .product-thumb .image,
    #common-home .product-list .product-thumb .image,
    #common-home .product-grid .product-thumb .image {
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 170px !important;
        min-height: 170px !important;
        padding: 16px 12px 12px !important;
        border-bottom: 1px solid #f1f2f6;
        background: linear-gradient(180deg, #fff 0%, #fdfdff 100%);
        text-align: center !important;
    }

    #common-home .home-product-section .product-thumb .image > a:first-child,
    #common-home .prosp .product-thumb .image > a:first-child,
    #common-home .onspro .product-thumb .image > a:first-child,
    #common-home .product-list .product-thumb .image > a:first-child,
    #common-home .product-grid .product-thumb .image > a:first-child {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    #common-home .home-product-section .product-thumb .image img,
    #common-home .prosp .product-thumb .image img,
    #common-home .onspro .product-thumb .image img,
    #common-home .product-list .product-thumb .image img,
    #common-home .product-grid .product-thumb .image img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 138px !important;
        object-fit: contain;
        margin: 0 auto !important;
    }

    #common-home .home-product-section .product-thumb .second-img,
    #common-home .prosp .product-thumb .second-img,
    #common-home .onspro .product-thumb .second-img,
    #common-home .product-thumb .view,
    #common-home .product-thumb .bquickv,
    #common-home .product-thumb .rating,
    #common-home .product-thumb .rat {
        display: none !important;
    }

    #common-home .home-product-section .product-thumb .caption,
    #common-home .prosp .product-thumb .caption,
    #common-home .onspro .product-thumb .caption,
    #common-home .product-list .product-thumb .caption,
    #common-home .product-grid .product-thumb .caption,
    #common-home .caption {
        float: none !important;
        width: 100% !important;
        flex: 1 1 auto;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between;
        padding: 14px 12px 14px !important;
        border-top: 0 !important;
        text-align: left !important;
    }

    #common-home .home-product-section .product-thumb .opbtn,
    #common-home .prosp .product-thumb .opbtn,
    #common-home .onspro .product-thumb .opbtn,
    #common-home .product-list .product-thumb .opbtn,
    #common-home .product-grid .product-thumb .opbtn {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        flex: 1 1 auto;
    }

    #common-home .home-product-section .protitle,
    #common-home .prosp .protitle,
    #common-home .onspro .protitle,
    #common-home .product-list .protitle,
    #common-home .product-grid .protitle {
        width: 100% !important;
        min-height: 40px;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.38 !important;
        font-weight: 700;
        color: #1c1d23;
    }

    #common-home .home-product-section .protitle a,
    #common-home .prosp .protitle a,
    #common-home .onspro .protitle a,
    #common-home .product-list .protitle a,
    #common-home .product-grid .protitle a {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        color: inherit !important;
    }

    #common-home .home-product-section .price,
    #common-home .prosp .price,
    #common-home .onspro .price,
    #common-home .product-list .price,
    #common-home .product-grid .price,
    #common-home .home-product-section .price-new,
    #common-home .prosp .price-new,
    #common-home .onspro .price-new,
    #common-home .product-list .price-new,
    #common-home .product-grid .price-new {
        width: 100% !important;
        display: block !important;
        margin: auto 0 0 !important;
        padding: 0 !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
        font-weight: 800 !important;
        color: #15161b;
        text-align: left !important;
    }

    #common-home .home-product-section .price-old,
    #common-home .prosp .price-old,
    #common-home .onspro .price-old,
    #common-home .product-list .price-old,
    #common-home .product-grid .price-old {
        margin-left: 4px;
        font-size: 12px !important;
        color: #9b9daa !important;
    }

    #common-home .home-product-section .button-group,
    #common-home .prosp .button-group,
    #common-home .onspro .button-group,
    #common-home .product-list .button-group,
    #common-home .product-grid .button-group {
        width: 100% !important;
        margin-top: 12px !important;
        text-align: left !important;
    }

    #common-home .home-product-section .absbtn,
    #common-home .prosp .absbtn,
    #common-home .onspro .absbtn,
    #common-home .product-list .absbtn,
    #common-home .product-grid .absbtn {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        margin: 0 !important;
        opacity: 1 !important;
        transform: none !important;
    }

    #common-home .home-product-section .wish,
    #common-home .prosp .wish,
    #common-home .onspro .wish,
    #common-home .product-list .wish,
    #common-home .product-grid .wish {
        display: inline-flex !important;
        margin: 0 !important;
    }

    #common-home .home-product-section .view,
    #common-home .prosp .view,
    #common-home .onspro .view,
    #common-home .product-list .view,
    #common-home .product-grid .view {
        display: none !important;
    }

    #common-home .home-product-section .bwish,
    #common-home .prosp .bwish,
    #common-home .onspro .bwish,
    #common-home .product-list .bwish,
    #common-home .product-grid .bwish {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        border: 1px solid #e4e6ee !important;
        border-radius: 12px !important;
        background: #fff !important;
        color: #6b7080 !important;
        box-shadow: none !important;
    }

    #common-home .home-product-section .cartb,
    #common-home .prosp .cartb,
    #common-home .onspro .cartb,
    #common-home .product-list .cartb,
    #common-home .product-grid .cartb {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0 !important;
        height: 42px !important;
        padding: 0 14px !important;
        border: 1px solid var(--hz-pink) !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #ff4d96 0%, #f22976 100%) !important;
        color: #fff !important;
        fill: currentColor !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-transform: none !important;
        opacity: 1 !important;
        box-shadow: 0 10px 20px rgba(242, 41, 118, .18);
    }

    #common-home .home-product-section .cartb svg,
    #common-home .prosp .cartb svg,
    #common-home .onspro .cartb svg,
    #common-home .product-list .cartb svg,
    #common-home .product-grid .cartb svg {
        width: 16px !important;
        height: 16px !important;
        fill: currentColor !important;
    }

    #common-home .home-product-section .cartb span,
    #common-home .prosp .cartb span,
    #common-home .onspro .cartb span,
    #common-home .product-list .cartb span,
    #common-home .product-grid .cartb span {
        display: inline !important;
        white-space: nowrap;
        color: inherit !important;
    }

    #common-home .home-product-section .product-thumb:hover,
    #common-home .prosp .product-thumb:hover,
    #common-home .onspro .product-thumb:hover {
        transform: none !important;
        box-shadow: 0 10px 24px rgba(17, 24, 39, .045) !important;
    }
}


/* =========================================================
   HAZSHOP MOBILE V2 - PHASE 1.6 REAL HOME PRODUCT MODULES
   Mobile product modules are rendered separately from the legacy
   Remart/Owl markup so old multi-row rules cannot break the layout.
   ========================================================= */
.hz-mobile-product-module {
    display: none;
}

@media (max-width: 767px) {
    #common-home .hz-desktop-product-module {
        display: none !important;
    }

    #common-home .hz-mobile-product-module {
        display: block !important;
        margin: 0 0 28px;
        padding: 0 12px;
    }

    #common-home .hz-mobile-product-module__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 42px;
        margin: 0 0 12px;
    }

    #common-home .hz-mobile-product-module__head h3 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: 20px;
        line-height: 1.25;
        font-weight: 800;
        letter-spacing: -.25px;
        color: #1b1c22;
    }

    #common-home .hz-mobile-product-module__star {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #fff0f6;
        color: #f22976;
        font-size: 14px;
        line-height: 1;
    }

    #common-home .hz-mobile-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #common-home .hz-mobile-product-card {
        position: relative;
        min-width: 0;
        border: 1px solid #ececf2;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(17,24,39,.045);
        overflow: hidden;
    }

    #common-home .hz-mobile-product-card__media {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 176px;
        padding: 14px;
        background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
        border-bottom: 1px solid #f1f1f5;
    }

    #common-home .hz-mobile-product-card__image-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    #common-home .hz-mobile-product-card__media img {
        display: block;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 146px !important;
        object-fit: contain;
        margin: 0 auto;
    }

    #common-home .hz-mobile-product-card__badge {
        position: absolute;
        left: 10px;
        top: 10px;
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 8px;
        border-radius: 999px;
        background: #f22976;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .02em;
    }

    #common-home .hz-mobile-product-card__wish {
        position: absolute;
        top: 10px;
        right: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 1px solid #e8e8ee;
        border-radius: 50%;
        background: rgba(255,255,255,.96);
        color: #60636e;
        box-shadow: 0 5px 14px rgba(17,24,39,.06);
    }

    #common-home .hz-mobile-product-card__wish svg {
        width: 18px;
        height: 18px;
    }

    #common-home .hz-mobile-product-card__body {
        display: flex;
        flex-direction: column;
        min-height: 174px;
        padding: 12px;
    }

    #common-home .hz-mobile-product-card__title {
        min-height: 42px;
        margin: 0 0 10px;
        font-size: 14px;
        line-height: 1.45;
        font-weight: 700;
        color: #1d1f25;
    }

    #common-home .hz-mobile-product-card__title a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        color: inherit;
        text-decoration: none;
    }

    #common-home .hz-mobile-product-card__price {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 6px;
        margin: auto 0 11px;
    }

    #common-home .hz-mobile-product-card__price strong {
        font-size: 17px;
        line-height: 1.2;
        font-weight: 850;
        letter-spacing: -.2px;
        color: #14151a;
    }

    #common-home .hz-mobile-product-card__price span {
        font-size: 11px;
        color: #9a9ca6;
        text-decoration: line-through;
    }

    #common-home .hz-mobile-product-card__cart {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        height: 42px;
        padding: 0 10px;
        border: 0;
        border-radius: 12px;
        background: #f22976;
        color: #fff;
        box-shadow: 0 9px 18px rgba(242,41,118,.18);
        font-size: 12px;
        line-height: 1;
        font-weight: 800;
        white-space: nowrap;
    }

    #common-home .hz-mobile-product-card__cart svg {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
    }

    #common-home .hz-mobile-product-card__cart:active {
        transform: translateY(1px);
    }
}

@media (max-width: 359px) {
    #common-home .hz-mobile-product-grid {
        gap: 8px;
    }
    #common-home .hz-mobile-product-card__media {
        height: 160px;
        padding: 12px;
    }
    #common-home .hz-mobile-product-card__media img {
        max-height: 132px !important;
    }
    #common-home .hz-mobile-product-card__body {
        padding: 10px;
    }
    #common-home .hz-mobile-product-card__cart {
        font-size: 11px;
        gap: 5px;
    }
}
