/* ===============================
   APEX – PRODUCT CATEGORY DROPDOWN
   Full Override
================================ */

/* Reset base theme anchor styling */
.filter-holder.dropdown-menu .product-categories a {
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #111 !important;
    text-decoration: none !important;
}

/* Remove theme weird uppercase from base.css */
.filter-holder.dropdown-menu .product-categories {
    font-size: 15px !important;
}

/* Parent row wrapper (the div you injected) */
.filter-holder.dropdown-menu .apex-parent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 10px;
}

/* Make parent category label stronger */
.filter-holder.dropdown-menu .cat-parent > .apex-parent-row > a {
    font-weight: 600 !important;
}

/* Child categories */
.filter-holder.dropdown-menu .children {
    margin-top: 6px;
    margin-left: 18px;
    padding-left: 12px;
    border-left: 2px solid #eee;
}

/* Child list items */
.filter-holder.dropdown-menu .children li {
    margin: 6px 0;
}

/* Expand / collapse toggle button */
.filter-holder.dropdown-menu .apex-toggle {
    min-width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

/* Toggle hover effect */
.filter-holder.dropdown-menu .apex-toggle:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Space entire list cleanly */
.filter-holder.dropdown-menu .product-categories > li {
    margin-bottom: 4px;
}

/* Remove default bullet / weird spacing */
.filter-holder.dropdown-menu .product-categories {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Improve vertical scroll usability */
.filter-holder.dropdown-menu {
    max-height: 65vh;
    overflow-y: auto;
}

/* Improve scroll appearance */
.filter-holder.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.filter-holder.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Active category highlight */
.filter-holder.dropdown-menu .current-cat > .apex-parent-row > a,
.filter-holder.dropdown-menu .current-cat > a {
    color: #b22222 !important;
    font-weight: 700 !important;
}
/* =========================================
   APEX TIME – BRANDS PANEL (GLOBAL)
   ========================================= */

/* Reset list */
#sidebar ul.product-categories,
.filter-holder.dropdown-menu ul.product-categories {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Make list flex everywhere */
ul.product-categories {
  display: flex !important;
  flex-direction: column !important;
}

/* Move Best Sellers to top */
li.cat-item-162 {
  order: -1 !important;
}

/* Standalone top-level categories */
ul.product-categories > li:not(.cat-parent) > a {
  display: block !important;
  padding: 14px 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  color: #111 !important;
}

/* Top-level categories */
#sidebar ul.product-categories > li,
.filter-holder.dropdown-menu ul.product-categories > li {
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Parent row wrapper */
.apex-parent-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 0 !important;
}

/* Parent category links */
#sidebar ul.product-categories > li > .apex-parent-row > a,
#sidebar ul.product-categories > li > a,
.filter-holder.dropdown-menu .product-categories > li > .apex-parent-row > a,
.filter-holder.dropdown-menu .product-categories > li > a {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  color: #111 !important;
  text-decoration: none !important;
}

/* Children list */
ul.product-categories ul.children {
  padding: 8px 0 14px 18px !important;
  margin: 0 !important;
  border-left: 1px solid rgba(0,0,0,.08);
}

/* Child links */
ul.product-categories ul.children li a {
  display: block !important;
  padding: 10px 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
  color: rgba(0,0,0,.75) !important;
}

/* Modern premium toggle button */
.apex-toggle {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  background: #f8f8f8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #111 !important;
  transition: all 0.25s ease !important;
}

.apex-toggle:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.apex-toggle:active {
  transform: scale(.95);
}

/* ACTIVE PARENT */
ul.product-categories > li.current-cat {
  position: relative;
}

ul.product-categories > li.current-cat::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 0;
  height: 100%;
  width: 4px;
  background: #111;
  border-radius: 3px;
}

ul.product-categories > li.current-cat > .apex-parent-row,
ul.product-categories > li.current-cat > a {
  background: rgba(0,0,0,.04);
  border-radius: 8px;
  padding-left: 10px !important;
}

ul.product-categories > li.current-cat > .apex-parent-row > a,
ul.product-categories > li.current-cat > a {
  font-weight: 700 !important;
  color: #000 !important;
}

/* ACTIVE CHILD */
ul.product-categories ul.children li.current-cat {
  position: relative;
}

ul.product-categories ul.children li.current-cat::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #111;
  border-radius: 3px;
}

ul.product-categories ul.children li.current-cat > a {
  font-weight: 700 !important;
  color: #000 !important;
}
@media (max-width: 991px) {

  #sidebar .sidebar-mobile-header {
    display: none !important;
  }

  #sidebar .sidebar_inner {
    padding: 24px 18px 30px !important;
    background: #fff !important;
  }

  #sidebar li.cat-item-162 {
    order: -1 !important;
  }

  #sidebar ul.product-categories {
    display: flex !important;
    flex-direction: column !important;
  }

}
/* ======================================================
   APEX – LUXURY PREMIUM GLIDE DROPDOWN
====================================================== */

/* Children container base state */
#sidebar ul.product-categories ul.children {
  display: block !important; /* required for animation */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.55s cubic-bezier(.25,.8,.25,1),
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(.25,.8,.25,1);
  will-change: max-height, opacity, transform;
}

/* Open state (controlled via JS) */
#sidebar ul.product-categories ul.children.apex-open {
  opacity: 1;
  transform: translateY(0);
}

/* Slight stagger polish for child links */
#sidebar ul.product-categories ul.children li {
  transition: opacity 0.25s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(4px);
}

#sidebar ul.product-categories ul.children.apex-open li {
  opacity: 1;
  transform: translateY(0);
}

/* Toggle button smoother interaction */
#sidebar .apex-toggle {
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

#sidebar .apex-toggle:active {
  transform: scale(.96);
}
/* MODERN STRUCTURED INCENTIVE CARD */

.apex-cart-incentive {
    margin-top: 42px !important;
    margin-bottom: 38px !important;
}

/* Card container */
.apex-incentive-box {
    background: #ffffff;
    padding: 26px 24px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    text-align: left;
    position: relative;
}

/* Top accent line */
.apex-incentive-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #111;
    opacity: 0.85;
}

/* Label */
.apex-incentive-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.45);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

/* Main message */
.apex-incentive-title {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.6;
    color: #111;
    font-family: 'Montserrat', sans-serif;
}

/* Bold first phrase */
.apex-strong {
    font-weight: 700;
}

/* Red accent for 50% off */
.apex-accent {
    font-weight: 700;
    color: #C1121F; /* modern deep red */
}

/* Separation from checkout */
.woocommerce .wc-proceed-to-checkout {
    margin-top: 36px !important;
}
.site-header .cart-dropdown-wrapper .apex-mini-summary{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dee0ea;
}

.site-header .cart-dropdown-wrapper .apex-mini-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 6px 0;
  font-size: 14px;
}

.site-header .cart-dropdown-wrapper .apex-mini-subtotal{
  color:#444;
}

.site-header .cart-dropdown-wrapper .apex-mini-discount{
  color:#b11226;
  font-weight:500;
}

.site-header .cart-dropdown-wrapper .apex-mini-divider{
  height:1px;
  background:#dee0ea;
  margin: 10px 0;
}

.site-header .cart-dropdown-wrapper .apex-mini-total{
  font-weight:600;
  font-size: 16px;
}
