/* =========================================================
   BODY & NAVBAR
========================================================= */

body{
    padding-top:50px !important;
    overflow-x:hidden !important;
    background:#f5f5f5;
}

.navbar-fixed-top{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    z-index:1050 !important;
}


/* =========================================================
   HAMBURGER / DROPDOWN
========================================================= */

.header-item{
    position:relative;
}

.header-item .dropdown-menu{
    left:0 !important;
    right:auto !important;
    transform:none !important;
    min-width:180px;
    border-radius:6px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    padding:5px 0;
    z-index:1060 !important;
}

.header-item .dropdown-menu ul{
    margin:0;
    padding:0;
    list-style:none;
}

.header-item .dropdown-menu ul li a{
    display:block;
    padding:10px 16px;
    color:#2a9d8f;
    text-decoration:none;
    font-size:14px;
    white-space:nowrap;
}

.header-item .dropdown-menu ul li a:hover{
    background:#e8f4f3;
}


/* =========================================================
   PANEL FOOTER
========================================================= */

.panel-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.panel-footer .footer-left,
.panel-footer .footer-right{
    margin-bottom:10px;
}


/* =========================================================
   SIDEBAR
========================================================= */

#mySidebar{
    padding-top:0;
    margin-top:0;
    position:relative;
    width:100%;
    z-index:1;
    overflow:visible !important;
}

#mySidebar .nav.nav-pills.nav-stacked{
    display:grid !important;
    grid-template-columns:repeat(2,1fr);
    gap:4px;
    padding:5px;
    margin:0;
    list-style:none;
}

#mySidebar .nav.nav-pills.nav-stacked > li{
    width:100%;
    display:block;
    float:none !important;
}

#mySidebar .nav li.header-item,
#mySidebar .nav li:first-child{
    grid-column:1 / -1;
    background:#2a9d8f;
    border-radius:4px;
    margin-bottom:4px;
}

#mySidebar .nav li.header-item a,
#mySidebar .nav li.header-item a h4{
    color:#fff;
    margin:0;
    padding:8px 12px;
}

#mySidebar .nav li a{
    display:block;
    padding:8px 10px;
    color:#333;
    text-decoration:none;
    font-size:13px;
    border-radius:4px;
    line-height:1.4;
    word-break:break-word;
}

#mySidebar .nav li a:hover{
    background:#e8f4f3;
    color:#2a9d8f;
}


/* =========================================================
   WEBVIEW SAFE PRODUCT GRID
========================================================= */

#get_product{
    display:block !important;
    width:100% !important;
    overflow:visible !important;
    clear:both !important;
    position:static !important;
    margin:0 -4px !important;
    padding:0 !important;
}

/* CLEAR FLOATS */

#get_product::before,
#get_product::after{
    content:"";
    display:table;
    clear:both;
}

/* PRODUCT COLUMN */

#get_product > div{
    width:50% !important;
    float:left !important;
    padding:4px !important;
    margin:0 0 8px 0 !important;
    box-sizing:border-box !important;
    position:static !important;
}

/* DESKTOP */

@media (min-width:768px){

    #get_product > div{
        width:25% !important;
    }

    #mySidebar .nav.nav-pills.nav-stacked{
        grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
    }
}

/* MOBILE */

@media (max-width:767px){

    #mySidebar{
        width:100% !important;
        float:none !important;
    }

    .panel-footer{
        flex-direction:column;
        text-align:center;
    }

    .panel-footer .footer-right{
        margin-top:10px;
    }
}


/* =========================================================
   PRODUCT PANEL
========================================================= */

#get_product .panel.panel-info{
    display:block !important;
    width:100% !important;
    height:auto !important;
    margin:0 !important;
    border:1px solid #31b0a5 !important;
    border-radius:6px !important;
    overflow:hidden !important;
    background:#fff !important;
    box-shadow:none !important;
    position:relative !important;
}

/* PANEL HEADING */

#get_product .panel-heading{
    background:#31b0a5 !important;
    color:#fff !important;
    padding:8px !important;
    font-size:12px !important;
    line-height:1.3 !important;
    border:none !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}

/* PANEL BODY */

#get_product .panel-body{
    padding:0 !important;
    margin:0 !important;
    border:none !important;
    background:#fff !important;
    overflow:hidden !important;
}

/* IMAGE WRAPPER */

#get_product .img-container{
    display:block !important;
    width:100% !important;
    height:150px !important;
    overflow:hidden !important;
    background:#f5f5f5 !important;
    margin:0 !important;
    padding:0 !important;
    position:relative !important;
}

/* DESKTOP IMAGE HEIGHT */

@media (min-width:768px){

    #get_product .img-container{
        height:180px !important;
    }
}

/* IMAGE LINK */

#get_product .img-container a{
    display:block !important;
    width:100% !important;
    height:100% !important;
    margin:0 !important;
    padding:0 !important;
    text-decoration:none !important;
}

/* IMAGE */

#get_product .img-container img,
#get_product .product-img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    margin:0 !important;
    padding:0 !important;
    border:none !important;
    vertical-align:middle !important;
}

/* CARD FOOTER */

#get_product .card-footer{
    display:block !important;
    width:100% !important;
    padding:8px 6px !important;
    background:#fff !important;
    text-align:center !important;
}

/* PRICE */

#get_product .product-price{
    font-size:13px !important;
    font-weight:bold !important;
    margin-bottom:4px !important;
}

/* QUANTITY */

#get_product .product-qty{
    font-size:11px !important;
    color:#666 !important;
    margin-bottom:8px !important;
}

/* ACTIONS */

.product-actions{
    margin-top:auto !important;
}

/* BUTTON ROW */

#get_product .btn-row{
    display:flex !important;
    gap:4px !important;
    margin-bottom:4px !important;
}

/* PRODUCT BUTTONS */

#get_product .product-btn{
    flex:1 !important;
    font-size:11px !important;
    padding:5px 4px !important;
    white-space:nowrap !important;
}

/* CONTACT BUTTON */

#get_product .contact-btn{
    width:100% !important;
    font-size:11px !important;
    padding:5px 4px !important;
}

/* CUSTOM BUTTON */

.custom-button{
    padding:10px;
    margin-top:10px;
}


/* =========================================================
   WEBVIEW OVERLAP FIXES
========================================================= */

#get_product *,
#get_product *::before,
#get_product *::after{
    box-sizing:border-box !important;
    transform:none !important;
    filter:none !important;
    perspective:none !important;
    backface-visibility:visible !important;
}

/* REMOVE RANDOM OVERLAY ISSUES */

.panel,
.panel-heading,
.panel-body,
.card-footer,
.img-container,
.img-container a,
.img-container img{
    z-index:auto !important;
}

/* PREVENT HIDDEN FLOATING ELEMENTS */

.row::before,
.row::after{
    content:"";
    display:table;
    clear:both;
}

/* FIX ANDROID WEBVIEW RENDER BUG */

img{
    max-width:100%;
    height:auto;
}

/* REMOVE BLUE TAP HIGHLIGHT */

*{
    -webkit-tap-highlight-color:transparent;
}

/* FIX BUTTON OVERFLOW */

button{
    overflow:hidden;
    text-overflow:ellipsis;
}

/* PREVENT HORIZONTAL SCROLL */

html,
body{
    max-width:100%;
    overflow-x:hidden !important;
}
/* =========================================================
   CLEAN ANDROID WEBVIEW FIX
========================================================= */

*{
    -webkit-tap-highlight-color:transparent;
}

html,
body{
    overflow-x:hidden !important;
}

/* PRODUCT GRID */
#get_product{
    position:relative !important;
    z-index:5 !important;
}

/* PRODUCT COLUMN */
#get_product > div{
    position:relative !important;
}

/* BUTTONS */
#get_product button,
#get_product .btn,
#get_product a{
    position:relative !important;
    z-index:20 !important;
    pointer-events:auto !important;
}

/* IMAGES SHOULD NOT BLOCK TOUCH */
#get_product img{
    pointer-events:none !important;
}

/* PANEL */
#get_product .panel{
    position:relative !important;
    overflow:hidden !important;
}

/* SIDEBAR BELOW PRODUCTS */
#mySidebar{
    position:relative !important;
    z-index:1 !important;
}

/* FIX BOOTSTRAP ROW */
.row{
    margin-left:0 !important;
    margin-right:0 !important;
}