* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    overflow-x: hidden;
}

/* STICKY TOP ICON MENU */
#icon-menu {
    background-color: #e7e7e7;
}

.icon-menu {
    justify-content: flex-end !important;
    gap: 20px;
    font-size: 13pt;

}

.icon-menu a {
    text-decoration: none;
}

/* END STICKY TOP */

/* START OF NEW NAV */
/* .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; 
} */

.dropdown-item {
    overflow: hidden;
}

/*  END NEW NAV*/

/* PRODUCTS */

.offcanvas-body {
    font-size: 12px;
    font-weight: bold;
}

/* HORIZONTAL MENU NAVIGATION */

/* ============= Desktop: single-ellipsis for whole list ============= */
.offcanvas-body .nav-inline-wrapper {
    display: block;
    /* block with ellipsis applied */
    width: 100%;
    overflow: hidden;
    /* hide overflow so ellipsis can appear */
    white-space: nowrap;
    /* keep everything on one line */
    text-overflow: ellipsis;
    /* single "..." for the whole row */
}

/* Treat the UL as inline-content so the wrapper can truncate it */
.offcanvas-body .nav-inline-wrapper .navbar-nav {
    display: inline-block;
    /* makes the whole UL act like one long inline box */
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

/* Keep items side-by-side */
.offcanvas-body .nav-inline-wrapper .nav-item {
    display: inline-block;
    margin-right: 1rem;
}

/* tidy up padding for inline flow */
.offcanvas-body .nav-inline-wrapper .nav-link {
    display: inline-block;
    padding: .25rem 0;
}

/* ============= Mobile: horizontal scrolling instead of ellipsis ============= */
@media (max-width: 768px) {
    .offcanvas-body .nav-inline-wrapper {
        overflow-x: auto;
        /* allow horizontal swipe */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        /* smooth scrolling on iOS */
        text-overflow: clip;
        /* don't show ellipsis on mobile */
    }

    .offcanvas-body .nav-inline-wrapper .navbar-nav {
        display: flex;
        /* flex row so items line up horizontally */
        flex-wrap: nowrap;
        /* no wrap so it scrolls horizontally */
        align-items: center;
    }

    .offcanvas-body .nav-inline-wrapper .nav-item {
        flex: 0 0 auto;
        /* prevent shrinking */
        margin-right: 1rem;
    }
}


/* END OF HORIZONTAL */

/* USER DEFINED OVERIDE BOOTSTRAP */
.row {
    --bs-gutter-x: 0px;
    font-size: 1rem;
    align-items: center;
}

.row-user {
    --bs-gutter-x: 0px;
    font-size: 0.8rem;
    align-items: start;
}

.row-address {
    --bs-gutter-x: 0px;
    font-size: 0.8rem;
    align-items: start;
}

.col-3-user {
    flex: 0 0 auto;
    width: 20%;
}

.col-9-user {
    flex: 0 0 auto;
    width: 80%;
}

.color-white {
    color: white !important;
}


.form-control-user {
    display: inline-flex;
    padding: .375rem .75rem;
    /* font-size: 0.8rem; */
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* END OF USER DEFINED OVERIDE BOOTSTRAP */

/* USER DEFINED TABLE CLASS */

.w100 {
    width: 100% !important;
    max-width: 100% !important;
}

.mw-30 {
    min-width: 30px;
}

.mw-65 {
    min-width: 65px;
}

.left-10 {
    left: 10% !important;
}

.cart-badge {
    left: 22% !important;
    top: 15% !important;
    font-size: 8px;
}

.product-category {
    margin-top: 2px !important;
    margin-bottom: 15px !important;
    opacity: 1;
}

.list-inline {
    padding-left: 12px !important;
}

/* END OF USER DEFINED TABLE CLASS */

.swatch-btn.selected {
    border: 2px solid #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

.swatch.selected {
    border: 2px solid #007bff;
    box-shadow: 0 0 5px #007bff;
}

.font-size-18 {
    font-size: 18px;
}

.zoom-scroll-wrapper {
    width: 100%;
    /* max-width: 500px; */
    /* max-height: 500px; */
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.zoom-scroll-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
}

.zoom-scroll-wrapper:hover .zoom-scroll-container {
    overflow: scroll;
    cursor: grab;
}

.zoom-scroll-wrapper:hover .zoom-scroll-container:active {
    cursor: grabbing;
}

.zoom-scroll-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    user-select: none;
    pointer-events: none;
    /* prevents default image drag ghost */
}

.zoom-scroll-wrapper:hover .zoom-scroll-img {
    transform: scale(2);
    /* Zoom in on hover */
    transform-origin: top left;
}

/* Optional: hide scrollbars visually but keep scroll functionality */
.img-scroll-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.img-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}


/* Sidebar Styles */
.sidebar {
    height: 100vh;
    /* Full height */
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    background-color: #343a40;
    padding-top: 60px;
    /* Space for toggle button */
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    /* Ensure sidebar is above content */
}

.sidebar a {
    color: white;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #495057;
}

/* Toggle Button */
.toggle-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #343a40;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1100;
    /* Ensure button is above everything */
}

/* Content */
.content {
    margin-left: 250px;
    /* Same width as sidebar */
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
}

.nav-link.active {
    border-bottom: 3px solid #ffffff !important;
}

/* LOGIN form */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

@media (min-width: 1100px) {

    .nav-link {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
}

/* Mobile View */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .content {
        margin-left: 0;
    }

    #search1 {
        display: none !important;
    }

    #search2 {
        width: 90%;
    }

    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link.show,
    .nav-link {
        color: #222222 !important;
    }

    .item,
    .category {
        width: 46%;
        text-align: center;
        margin-bottom: 5px;
        margin-right: 2px;
    }

}

@media (max-width: 580px) {

    #search2 {
        width: 85%;
    }

    #logo-nav {
        justify-content: center;
    }

    .logo {
        width: 250px;
    }

    .item,
    .category {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;

    }
}

@media (max-width: 400px) {
    #search2 {
        width: 80%;
    }

    .item,
    .category {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;

    }

    #logo-nav {
        justify-content: center;
    }
}

@media (min-width: 991px) {
    #search2 {
        display: none !important;
    }

    #search1 {
        width: 95%;
    }

    .h-500 {
        height: 500px;
    }



    /* products  - categories */

    .item {
        min-height: 100px;
        width: 30%;
        text-align: center;
        margin-bottom: 5px;
        margin-right: 3px;
        /* width: 16rem; */
        font-size: 12px;
    }

    .category {
        /* min-height: 100px; */

        text-align: center;
        padding: 10px;
        /* margin-bottom: 5px; */
        /* margin-right: 5px; */
    }

    .logo {
        width: 500px;
    }

}

@media (min-width: 1279px) {
    
    /* products  - categories */

    .item {
        min-height: 100px;
        width: 22%;
        text-align: center;
        margin-bottom: 5px;
        margin-right: 3px;
        /* width: 16rem; */
        font-size: 12px;
    }
}

/* Show Sidebar */
.sidebar.show {
    transform: translateX(0);
}

/* Main content */


.admin-logo {
    width: 200px;
    padding: 10px;
    background-color: #fff;
}

.admin-logo-icon {
    display: none;
}

.bg-dark {
    background-color: #63666a !important;
}

.active {
    font-weight: normal;
}

.border-bottom-2 {
    border-bottom: 2px solid #206169;
}

.border-bottom-4 {
    border-bottom: 4px solid #206169;
}

.red {
    color: orangered;
}

.no-padding {
    padding: 0px;
}

.bold {
    font-weight: bold;
}

.font-small {
    font-size: 10px;
}

.text-decoration-none a {
    text-decoration: none;
}

.mt-40 {
    margin-top: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.ml-15 {
    margin-left: 15px;
}

.strike-through {
    text-decoration: line-through;
}

.topnav {
    background-color: #444;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 0px;
}

.topnav a {
    color: #fff;
}

#shop-by-category {
    display: flex;
    justify-content: space-between;
}


.detail {
    width: 50%;
}

.p-15 {
    padding: 15px;
}

.card-body-item {
    display: grid;
    /* align-items: end; */
    padding: 0 0 15px 0 !important;
    margin-top: 10px !important;
}


/* carousel */
.inner-carousel2 .carousel-inner2 {
    display: flex;
}

.inner-carousel2 .carousel-item2 {
    flex: 0 0 calc(100% / 3);
    /* Show 3 images at once */
    padding: 5px;
}

.carousel-inner2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: 0 0;
    border: 0;
    opacity: .5;
    transition: opacity .15s ease;
}



/* PRODUCT SIDEBAR */
@media (min-width: 991px) {
    #filter-btn {
        display: none;
    }

    #sidebar2 {
        margin: 0;
        padding: 5px;
        width: 200px;
        background-color: #f1f1f1;
        position: absolute;
        height: 100%;
        /* overflow: auto; */
    }

    #sidebar2 a {
        display: block;
        color: black;
        padding: 5px ;
        text-decoration: none;
        font-size: 12px;
        font-weight: normal;
    }

    #sidebar2 a.active {
        background-color: #04AA6D;
        color: white;
    }

    #sidebar2 a:hover:not(.active) {
        background-color: #555;
        color: white;
    }

    div.content {
        margin-left: 250px;
        padding: 1px 8px;
    }

}

@media screen and (max-width: 992px) {
    #sidebar2.hide {
        display: none;
    }

    #sidebar2.show {
        display: block;
        position: fixed;
        /* overlay instead of push */
        top: 0;
        left: 0;
        width: 250px;
        /* adjust as needed */
        max-height: 100vh;
        /* fill viewport height */
        overflow-y: auto;
        /* vertical scroll */
        background-color: #f1f1f1;
        border-right: 2px solid darkgrey;
        z-index: 9999;
        /* stay above content */
    }

    #sidebar2.show a {
        display: block;
        float: none;
    }

    div.content {
        margin-left: 0px;
        padding: 8px;
        /* prevent push on small screens */
    }
}

@media screen and (max-width: 400px) {
    #sidebar2.show a {
        text-align: center;
        float: none;
    }
}

.nav-link {
    font-size: 14px;
}


.form-check-input[type=checkbox] {
    border-radius: 50%;
    border: 1px solid blue;
}

/* SLIDER RANGE */

.slider-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.slider {
    position: absolute;
    width: 100%;
    pointer-events: none;
}

input[type="range"] {
    margin-top: 11px;
    position: absolute;
    width: 100%;
    pointer-events: auto;
    appearance: none;
    background: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #0d6efd;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.range-track {
    margin-top: 20px;
    position: absolute;
    height: 6px;
    background: #0d6efd;
    /* top: 50%; */
    transform: translateY(-50%);
    z-index: 1;
}

/* END OF SLIDER RANGE */


/* Sortable tables */

table.sortable {
    font-size: 12px;
}

table.sortable thead {
    /* background-color:#eee; */
    color: #666666;
    font-weight: bold;
    cursor: default;
    font-size: 14px;
}


table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after {
    content: " \25B4\25BE"
}

table,
thead,
th,
tbody,
tr,
td {
    font-weight: 100;
}

.table>thead {
    vertical-align: middle !important;
}

/* CATEGORY GRID    */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform .2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
}

.category-image {
  height: 180px;
  background-image: url("/static/img/categories/categories-sprite.png");
  background-repeat: no-repeat;
  background-size: 1200px auto;
}

.category-name {
  padding: 12px;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 992px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
}

.w-250 {
    width: 250px !important;
}

.discount-display {
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    width: 500px;
}

.w-30 {
    width: 30% !important;
}