@media (max-width: 575.98px) {
  .shop-product-wrap.grid-view .product-item {
    display: flex;
    align-items: center;
    height: 135px;
    /* margin-bottom: 15px; */
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #efefef;
  }

  .shop-product-wrap.grid-view .product-item .product-thumb {
    flex: 0 0 135px;
    height: 135px;
  }

  .shop-product-wrap.grid-view .product-item .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .shop-product-wrap.grid-view .product-item .product-caption {
    flex-grow: 1;
    padding: 10px 15px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .shop-product-wrap.grid-view .product-item .product-caption .product-name {
    text-align: right;
  }

  .shop-product-wrap.grid-view .product-item .product-caption .price-box .price-old{
        padding-left: 0;
}
  .shop-product-wrap.grid-view .product-item .product-caption .price-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .shop-product-wrap.grid-view .product-item .product-caption .price-box .discount-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .shop-product-wrap.grid-view .product-item .product-caption .price-box .discount {
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    position: static;
    margin-right: 5px;
}

  .shop-product-wrap.grid-view .product-item .product-caption .price-box .price-old,
  .shop-product-wrap.grid-view .product-item .product-caption .price-box .discount {
    display: inline-block;
  }

  .shop-product-wrap.grid-view .product-item .product-caption .price-box .price-old {
        margin-left: 0;
    }
}
.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #ccc;
    vertical-align: middle;
}

/* Receipt/invoice styling */
.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.receipt-table th,
.receipt-table td {
    padding: 0.5rem;
    border-bottom: .1rem dashed #ccc;
}

.receipt-table tr:last-child {
  border-bottom: none;
}

.receipt-table th {
    text-align: right;
    font-weight: bold;
    width: 30%;
}

.receipt-table td {
    text-align: left;
}

/* Price Range Slider Touch Improvements */
.price-range {
    position: relative;
    margin: 20px 0;
}

/* Make slider track more touch-friendly */
.price-range .ui-slider {
    height: 8px !important;
    background: #e9ecef !important;
    border: none !important;
    border-radius: 4px !important;
    position: relative;
}

/* Style the range selection */
.price-range .ui-slider-range {
    background: var(--green-300) !important;
    border-radius: 4px !important;
    height: 100% !important;
    top: 0 !important;
}

/* Make handles larger and more touch-friendly */
.price-range .ui-slider-handle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: var(--green-500) !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    outline: none !important;
    top: 50% !important;
    margin-top: -12px !important;
    margin-left: -12px !important;
    z-index: 2 !important;
}

/* Active state for handles */
.price-range .ui-slider-handle:hover,
.price-range .ui-slider-handle:focus,
.price-range .ui-slider-handle.ui-state-active {
    background: var(--green-500) !important;
    transform: scale(1.1) !important;
    /* transition: all 0s ease !important; */
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .price-range .ui-slider {
        height: 10px !important;
    }
    
    .price-range .ui-slider-handle {
        width: 28px !important;
        height: 28px !important;
        margin-top: -14px !important;
        margin-left: -14px !important;
    }
    
    /* Add larger touch area around handles */
    .price-range .ui-slider-handle::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: 5px;
        bottom: -10px;
        border-radius: 50%;
    }
}

/* Ensure proper stacking context */
.price-range .ui-slider-handle:first-child {
    z-index: 3 !important;
}

.price-range .ui-slider-handle:last-child {
    z-index: 4 !important;
}

/* Responsive tweaks for very small screens (≤350px) */
@media (max-width: 350px) {
    /* Sort label on its own line */
    /* .product-short > p {
        display: block !important;
        margin-bottom: 0.25rem !important;
    } */

    /* Dropdown wrapper full width */
    .product-short .d-block.d-lg-none {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Nice-select dropdown full width */
    .product-short .nice-select {
        width: 100% !important;
    }

    /* Original select (hidden) ensure full width fallback */
    .product-short select#sortDropdown {
        width: 100% !important;
    }

    /* Make filter toggle button full-width below dropdown */
    #filterToggleBtn {
        display: block !important;
        /* width: 100% !important; */
        /* margin: 0.5rem 0 !important; */
    }

    /* Stack sort and filter button vertically */
    .top-bar-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .top-bar-right .product-short, .top-bar-right #filterToggleBtn {
        width: 100% !important;
    }
    .top-bar-right .product-short {
        margin-bottom: 0.5rem !important;
    }
    /* Ensure label on its own line */
    /* .top-bar-right .product-short > p {
        display: block !important;
        margin-bottom: 0.25rem !important;
    } */
    /* Full-width NiceSelect dropdown */
    .product-short .nice-select {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 0.25rem 0 !important;
    }
}

/* Bottom sheet for mobile filters */
.filter-sheet-container {
    position: relative;
}

.filter-sheet-container .filter-sheet {
    position: fixed;
    bottom: -20px;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 10000;
    overflow-y: auto;
    border-top: 7px solid var(--green-500);
    border-radius: 15px 15px 0 0;
}

.filter-sheet-container .filter-sheet.open {
    transform: translateY(0);
}

.filter-sheet-container .sheet-header {
    display: flex;
    place-content: center;
    padding-top: 1rem !important;
    font-weight: 400;   
}

.filter-sheet-container .sheet-body {
    padding: 1rem;
}

/* Hide the original sidebar entirely on mobile (optional backup) */
@media (max-width: 768px) {
    /* Hide the desktop sidebar on mobile */
    .col-lg-3 .sidebar-wrapper {
        display: none !important;
    }
    /* Show sidebar-wrapper inside the filter sheet */
    .filter-sheet-container .sidebar-wrapper {
        display: block !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Ensure filter-sheet-container sits above content */
/* .filter-sheet-container {
    z-index: 9999;
} */

/* Lock background scroll when filter sheet is open */
html.no-scroll, body.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
}

/* Backdrop behind mobile filter sheet */
.sheet-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    transition: opacity 0.3s ease-in-out;
}

/* When sheet is open, show backdrop */
.filter-sheet-container .filter-sheet.open ~ .sheet-backdrop,
.filter-sheet-container.open .sheet-backdrop {
    display: block;
    opacity: 1;
}

/* Sticky apply button at bottom of sheet */
.filter-sheet .sticky-footer {
    position: sticky;
    bottom: 10px;
    z-index: 10001;
    /* background: #fff; */
    padding-bottom: .5rem;
    padding-top: .5rem;
}
/* Add bottom padding to sheet-body to avoid overlap */
.filter-sheet .sheet-body {
    padding-bottom: 4rem;
}

/* New sort-sheet styling: hide radio and style labels */
.filter-sheet .form-check {
    margin-bottom: 0.5rem;
}
.filter-sheet .form-check-input {
    display: none;
}
.filter-sheet .form-check-label {
    display: block;
    width: 100%;
    cursor: pointer;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    transition: background-color 0.2s, border-color 0.2s;
}
.filter-sheet .form-check-input:checked + .form-check-label {
    border-color: #007bff;
    background-color: #e9f5ff;
    color: #007bff;
}

.w-fit{
    width: fit-content !important;
}

/* Hot deal styling */
.hot-deal-label {
  background-color: #dc3545; /* bootstrap danger red */
  color: #fff;
}
.hot-deal-discount {
  background-color: #dc3545 !important;
  color: #fff !important;
  margin-top: 10px;
}

/* Ensure hot-deal-discount overrides default discount badge background */
.unified-discount-badge.hot-deal-discount {
    font-size: 0.7rem !important;
    background-color: #dc3545 !important;
    color: #fff !important;
    padding: 2px 8px;
    padding-top: 5px;
    border-radius: 5px;
}

/* Search Result Dropdown */
#search-results {
    position: absolute;
    top: calc(100% + .25rem);
    left: 0;
    width: 250%;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
}
.search-section {
    padding: .5rem 0;
    border-bottom: 1px solid #eee;
}
.search-section:last-child {
    border-bottom: none;
}
.search-section-title {
    font-weight: bold;
    padding: .5rem 1rem;
}
.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1rem;
    text-decoration: none;
    color: #333;
}
.search-item:hover {
    background: #f8f9fa;
}

/* Center search-results in middle of the screen */
#search-results {
  position: fixed !important;
  top: 46% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 50vw !important;
  max-height: 70vh !important;
}
@media (max-width: 768px) {
  #search-results {
    width: 70vw !important;
    max-height: 50vh !important;
    top: 34% !important;
  }
}

/* Stack search items vertically and show category below name */
#search-results .search-item {
    display: block !important;
}
#search-results .search-item .text-muted {
    display: block;
    margin-top: .25rem;
}

/* Show header search box on mid-size screens (600px to 991px) */
@media (min-width: 992px) {
  .header-search-container{
    width: 50% !important;
  }
}
@media (min-width: 600px) and (max-width: 991px) {
    .header-search-box {
        width: 100% !important;
        display: block !important;
    }
}

/* Only mobile search on very small screens */
@media (max-width: 500px) {
    .header-search-container { display: none !important; }
    .mobile-search-container { display: flex !important; width: auto !important; }    
}

/* Mobile small ≤500px: overlay full-width expansion with animation */
@media (max-width: 500px) {
    .mobile-main-header {
        position: relative;
    }
    .mobile-search-container {
        /* position: absolute; */
        top: 0;
        /* collapsed: no left/right, auto width */
        width: auto;
        overflow: hidden;
        z-index: 1000;
        transition: width 0.3s ease;
    }
    .mobile-search-container .header-search-field {
        width: 0;
        opacity: 0;
        transition: width 0.3s ease, opacity 0.3s ease;
    }
    .mobile-search-container.expanded {
        left: 0;
        right: 0;
        width: 100% !important;
    }
    .header-search-box.expanded .header-search-field {
        width: 100% !important;
        opacity: 1 !important;
        display: block !important;
        /* margin: 0.5rem 0; */
    }
    #search-results {
        width: 100vw !important;
        left: 0 !important;
    }
    .mobile-search-container {
        margin-left: 0px !important;
        width: fit-content !important;
    }

}

/* When search is open on mobile header, hide icons and expand search */
@media (max-width: 768px) {
  .mobile-header.search-open .home-link,
  .mobile-header.search-open .mini-cart-wrap,
  .mobile-header.search-open .mobile-menu-btn {
    display: none !important;
  }
  .mobile-header.search-open .mobile-menu-toggler {
    width: 100% !important;
    justify-content: center !important;
  }
  .mobile-header.search-open .mobile-search-container,
  .mobile-header.search-open .header-search-box,
  .mobile-header.search-open .header-search-box .header-search-field {
    width: 100% !important;
    opacity: 1 !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
    .mobile-menu-toggler {
        justify-content: end !important;
    }
}
@media (max-width: 500px) {
    .mobile-menu-toggler {
      justify-content: space-between;
      width: 100% !important;
      /* justify-content: end !important; */
    }
}
/* Mobile toggler flex layout and search positioning */
@media (max-width: 991px) {
    .mobile-menu-toggler {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .mobile-search-container {
        display: flex;
        align-items: center;
        /* margin-left: 1rem; */
    }
    .mobile-search-container .header-search-btn {
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        font-size: 1.2rem;
    }
}

/* Bottom navigation bar for mobile */
.bottom-nav {
    box-shadow: 0 -1px 6px rgba(0,0,0,0.1);
    z-index: 20;
}

/* Bottom nav item labels */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}
.nav-label {
    font-size: .75rem;
    margin-top: .25rem;
    color: #333;
}

/* Hide header hamburger and cart at ≤768px */
@media (max-width: 768px) {
    .mobile-menu-btn,
    .header-configure-area {
        display: none !important;
    }
}

/* Category bottom sheet styles */
#bottom-category-sheet-container {
    position: relative;
}
#bottom-category-sheet-container.open .sheet-backdrop,
#bottom-category-sheet-container .filter-sheet.open ~ .sheet-backdrop {
    display: block;
    opacity: 1;
}
.category-tree, .category-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.category-tree li a {
    display: block;
    padding: .5rem 0;
    color: #333;
    text-decoration: none;
}
.category-tree li ul li a {
    padding-left: 1rem;
}
/* Lock background when open */
html.no-scroll, body.no-scroll {
    overflow: hidden !important;
}
.child-cats{
    justify-items: right;
}

/* Custom border color override for little-dark */
.border-little-dark {
  border-color: #c6c6c6 !important;
}
.parent-cat-btn{
    font-size: .7rem;
    color: #333;
    transition: none;
}

/* bottom-nav active top border (replaced with pseudo-element) */
.bottom-nav-item {
  position: relative;
}
.bottom-nav-item.active {
  border-top: none !important;
}
.bottom-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: var(--green-500) !important;
  border-radius: 2px;
  box-shadow: 0 0 16px var(--green-500), 0 0 24px var(--green-500);
}

/* Equal width for bottom nav items */
.bottom-nav {
  justify-content: flex-start !important;
}
.bottom-nav-item {
  flex: 1 1 auto !important;
  max-width: 25% !important;
  text-align: center;
}

/* Active bottom-nav icon color */
.bottom-nav-item.active i {
  color: var(--green-500) !important;
}

/* Limit megamenu dropdown height and enable scrolling */
.megamenu.dropdown {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  /* border-bottom: 5px solid var(--green-500) !important; */
  border-radius: 0 0 10px 10px;
}

/* Custom scrollbar for megamenu.dropdown */
.megamenu.dropdown {
  scrollbar-width: auto;
  scrollbar-color: var(--green-500) #f1f1f1;
}
/* WebKit-based browsers */
.megamenu.dropdown::-webkit-scrollbar {
  width: 18px;
}
.megamenu.dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.megamenu.dropdown::-webkit-scrollbar-thumb {
  background-color: var(--green-500) !important;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}
.megamenu.dropdown::-webkit-scrollbar-thumb:hover {
  background-color: var(--green-600) !important;
}

/* Hide scrollbar buttons on megamenu.dropdown */
.megamenu.dropdown::-webkit-scrollbar-button:vertical:decrement,
.megamenu.dropdown::-webkit-scrollbar-button:vertical:increment {
  display: none;
  width: 0;
  height: 0;
}

/* Ensure mobile search input is visible on expand */
@media (max-width: 500px) {
  .mobile-search-container {
    overflow: visible !important;
  }
  .mobile-search-container.expanded {
    width: 100% !important;
  }
  .mobile-search-container .header-search-field {
    display: none !important;
    width: 0 !important;
    opacity: 0 !important;
  }
  .mobile-search-container.expanded .header-search-field {
    display: block !important;
    width: calc(100% - 40px) !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    padding-left: 40px !important;
  }
}

/* Force mobile search input visible when expanded */
@media (max-width: 500px) {
  .mobile-search-container.expanded .header-search-field {
    display: block !important;
    width: calc(100% - 40px) !important;
    opacity: 1 !important;
  }
}

/* Desktop megamenu: hide by default and toggle by click or hover */
@media (min-width: 768px) {
  .desktop-menu .position-static .megamenu {
    display: none !important;
    /* allow default width and centering */
    /* width: auto !important; */
  }
  .desktop-menu .position-static.open .megamenu {
    display: flex !important;
    flex-wrap: wrap;
  }
}

/* Responsive column layout for desktop megamenu categories */
@media (min-width: 992px) {
  .megamenu.dropdown {
    display: flex;
    flex-wrap: wrap;
  }
  .megamenu.dropdown .mega-title {
    width: 33.3333% !important;
    box-sizing: border-box;
    padding: 0 1rem;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .megamenu.dropdown {
    display: flex;
    flex-wrap: wrap;
  }
  .megamenu.dropdown .mega-title {
    width: 50% !important;
    box-sizing: border-box;
    padding: 0 1rem;
  }
}
@media (max-width: 767px) {
  .megamenu.dropdown {
    display: block;
  }
  .megamenu.dropdown .mega-title {
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
  }
}

/* Override flex basis for correct column count in megamenu */
@media (min-width: 992px) {
  .megamenu.dropdown .mega-title {
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .megamenu.dropdown .mega-title {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}
@media (max-width: 767px) {
  .megamenu.dropdown .mega-title {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Overlay backdrop for desktop megamenu */
#megamenu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 9;
}

/* Ensure megamenu appears above backdrop */
@media (min-width: 768px) {
  .desktop-menu .position-static.open .megamenu {
    z-index: 10 !important;
  }
}

/* Keep header above megamenu overlay */
.header-area.header-wide,
.mobile-header {
  position: relative;
  z-index: 11 !important;
}

/* Ensure header and mobile header are always fully opaque above the backdrop */
.header-area.header-wide {
  background-color: #fff !important;
  z-index: 2000 !important;
  position: relative !important;
}
.mobile-header {
  background-color: #fff !important;
  z-index: 20 !important;
  position: relative !important;
}

/* Bottom categories sheet: enable separate scrolling */
#bottom-category-sheet.filter-sheet {
  display: flex;
  flex-direction: column;
  height: 80vh;
}
#bottom-category-sheet.filter-sheet .sheet-body {
  /* subtract header height (approx 50px) */
  max-height: calc(80vh - 50px) !important;
  overflow: hidden !important;
  padding: 0 !important;
}
#bottom-category-sheet.filter-sheet .sidebar-single {
  display: flex;
  height: 100%;
}
#bottom-category-sheet.filter-sheet .sidebar-body {
  display: flex;
  flex: 1 1 auto;
}
#bottom-category-sheet.filter-sheet .parent-cats {
  flex: 0 0 25%;
  overflow-y: auto;
}
#bottom-category-sheet.filter-sheet .child-cats {
  flex: 1 1 auto;
  overflow-y: auto;
}

/* Force scrollbars on the right for bottom categories sheet */
#bottom-category-sheet.filter-sheet .parent-cats,
#bottom-category-sheet.filter-sheet .child-cats {
  /* Switch container text direction to LTR so scrollbar appears on right */
  direction: ltr !important;
  /* Reserve scrollbar gutter on trailing edge */
  scrollbar-gutter: stable trailing;
}
#bottom-category-sheet.filter-sheet .parent-cats *,
#bottom-category-sheet.filter-sheet .child-cats * {
  /* Restore RTL for text content */
  direction: rtl !important;
}

/* Remove bottom border on last nested category node */
.children-panel > div:last-child,
.collapse > div:last-child {
    border-bottom: none !important;
}

/* Place search results below the mobile search input and unify pill style */
@media (max-width: 500px) {
    .mobile-search-container {
        position: relative !important;
        direction: ltr !important;
        width: 40px !important;
        transition: width 0.3s ease !important;
        overflow: visible !important;
    }
    .mobile-search-container.expanded {
        width: calc(100% - 20px) !important;
    }
    .mobile-search-container .header-search-box {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        background-color: #f7f7f7 !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        height: 40px !important;
    }
    .mobile-search-container .header-search-field {
        flex: 1 !important;
        background: transparent !important;
        border: none !important;
        color: #000000 !important;
        /* extra left padding to avoid overlap with button */
        padding: 0 10px 0 50px !important;
        /* enforce LTR text direction and alignment */
        direction: ltr !important;
        text-align: right !important;
        opacity: 1 !important;
        width: auto !important;
    }
    /* ensure placeholder aligns left */
    .mobile-search-container .header-search-field::placeholder {
        text-align: right !important;
    }
    .mobile-search-container .header-search-btn {
        background: transparent !important;
        border: none !important;
        color: #000000 !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .mobile-search-container .header-search-field,
    .mobile-search-container .header-search-btn {
        border-radius: 0 !important;
    }
    .mobile-search-container.expanded #search-results {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-height: 50vh !important;
    }
}

/* Unify mobile search input and button styling and smooth expand */
@media (max-width: 991px) {
    .mobile-search-container .header-search-field,
    .mobile-search-container .header-search-btn {
        background-color: #f7f7f7 !important;
        border-radius: 30px !important;
        height: 40px !important;
        transition: width 0.3s ease, opacity 0.3s ease;

    }
    .mobile-search-container .header-search-btn {
        border: none !important;
        padding: 0 10px !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem !important;
        /* left: auto !important; */
    }
}

/* Position search icon flush to left inside the search input */
.header-search-box {
    position: relative !important;
}
.header-search-box .header-search-btn {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.header-search-box .header-search-field {
    padding-left: 40px !important;
}

/* Indentation utility classes for nested categories in bottom sheet */
.indent-0 { padding-right: 0rem !important; }
.indent-1 { padding-right: 1rem !important; }
.indent-2 { padding-right: 2rem !important; }
.indent-3 { padding-right: 3rem !important; }
.indent-4 { padding-right: 4rem !important; }
.indent-5 { padding-right: 5rem !important; }

.indent-1-xsm { padding-right: 0.2rem !important; }
.indent-2-xsm { padding-right: 0.4rem !important; }
.indent-3-xsm { padding-right: 0.6rem !important; }
.indent-4-xsm { padding-right: 0.8rem !important; }
.indent-5-xsm { padding-right: 1rem !important; }

/* Chevron toggle rotation */
.chevron-toggle i {
    transition: transform 0.3s ease;
}
.chevron-toggle.collapsed i {
    transform: rotate(0deg);
}
.chevron-toggle:not(.collapsed) i {
    transform: rotate(-180deg);
}

/* Megamenu nested dropdown bottom positioning */
.main-menu ul li ul.megamenu li ul.dropdown {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin-top: 0.5rem !important;
}

/* Disable hover-based nested submenu show/hide */
.main-menu ul li ul.dropdown li:hover > ul.dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Always display nested collapse when expanded */
.main-menu ul li ul.megamenu li ul.collapse.show {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Desktop megamenu parent-cats independent scroll */
.desktop-cats-wrap .parent-cats {
  overflow-y: auto !important;
  max-height: calc(100vh - 150px) !important; /* adjust offset for header height */
  direction: ltr !important;             /* scrollbar on right */
  scrollbar-gutter: stable trailing;
}
.desktop-cats-wrap .parent-cats * {
  direction: rtl !important;            /* restore RTL for text */
}

/* Desktop megamenu child-cats independent scroll */
.desktop-cats-wrap .child-cats {
  overflow-y: auto !important;
  max-height: calc(100vh - 150px) !important; /* match parent offset */
  direction: ltr !important;
}

/* Disable container scroll on desktop menu when open */
@media (min-width: 768px) {
  .desktop-menu .position-static.open .megamenu.dropdown {
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    height: auto !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .main-menu ul li a {
    font-size: 12px;
  }
}

/* Custom style for category page heading */
.category-heading {
    color: #333333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 576px) {
    .category-heading {
        font-size: 1rem;
    }
}
.rounded-5{
  border-radius: 1rem !important;
}

/* Highlight hot-deal variations in the variation list */
.variation-card.hot-deal-variation {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

/* New Products section: green discount badge */
.group-list-carousel--3 .product-label.discount {
    background-color: var(--green-500) !important;
    color: #fff !important;
    padding: 2px 8px;
    padding-top: 5px;
    border-radius: 20px;
}

/* Category product list: green discount badge */
.shop-product-wrap .product-label.discount {
    background-color: var(--green-500) !important;
    color: #fff !important;
    padding: 2px 8px;
    padding-top: 5px;
    border-radius: 20px;
}

/* Override search-results to stick below the search input */
.header-search-box #search-results {
    position: absolute !important;
    top: calc(100% + .25rem) !important;
    left: 0 !important;
    transform: none !important;
    width: 250% !important;
    max-height: 300px !important;
    z-index: 3000 !important;
}

/* Overlay for graying out background when search results are open */
#search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1005 !important;
}