/* ===== SHOP PAGE STYLES ===== */

/* ===== SIDEBAR ===== */
.sidebar-inner .widget {
  background: #fff !important;
  border-radius: 14px !important;
  padding: 24px 20px !important;
  margin-bottom: 20px !important;
  border: 1px solid #f0f0f0 !important;
}

/* Sidebar titles */
.sidebar-inner .widget-title,
.sidebar-inner .widgettitle {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #1a1a1a !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #f5c518 !important;
}

/* Remove default Flatsome underline on titles */
.sidebar-inner .widget-title::after,
.sidebar-inner .widget-title::before,
.sidebar-inner .widgettitle::after,
.sidebar-inner .widgettitle::before {
  display: none !important;
}
.sidebar-inner .widget-title,
.sidebar-inner .widgettitle {
  border: none !important;
  background: none !important;
}

/* Sidebar lists */
.sidebar-inner .widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Sidebar links */
.sidebar-inner .widget ul li {
  border-bottom: 1px solid #f0f0f0 !important;
  border-top: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sidebar-inner .widget ul li:last-child {
  border-bottom: none !important;
}
.sidebar-inner .widget ul li a {
  color: #555 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 10px 0 !important;
  display: block !important;
  transition: all .2s !important;
  border: none !important;
}
.sidebar-inner .widget ul li a:hover {
  color: #f5c518 !important;
  padding-left: 6px !important;
}

/* Sidebar active/current category */
.sidebar-inner .widget ul li.current-cat > a,
.sidebar-inner .widget ul li.chosen > a {
  color: #f5c518 !important;
  font-weight: 700 !important;
}

/* Sidebar count badges */
.sidebar-inner .widget ul li .count {
  background: #f5f5f5 !important;
  color: #999 !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
  float: right !important;
}

/* Sidebar category arrows */
.sidebar-inner .widget .cat-item .toggle {
  color: #ccc !important;
}
.sidebar-inner .widget .cat-item .toggle:hover {
  color: #f5c518 !important;
}

/* ===== SHOP HEADER ===== */
/* Remove old yellow banner space */
.shop-page-title {
  margin-bottom: 0 !important;
}

/* ===== PRODUCT GRID CLEANUP ===== */
/* Ensure card buttons are full-width on shop page too */
.products .product-small .add-to-cart-button {
  width: 100% !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Product grid spacing */
.products .product-small.box {
  margin-bottom: 20px !important;
}

/* ===== SHOP TOOLBAR / SORTING ===== */
/* Custom sorting injected via PHP - show only on mobile */
.ttm-sorting {
  display:none !important;
}
@media (max-width: 849px) {
  .ttm-sorting {
    display:block !important;
    text-align:right !important;
    padding:8px 10px !important;
    margin-bottom:8px !important;
  }
  .ttm-sorting .woocommerce-ordering {
    display:inline-block !important;
  }
}
.catalog-ordering,
.woocommerce-ordering {
  margin-bottom: 0 !important;
}
.catalog-ordering .orderby,
.woocommerce-ordering .orderby,
select.orderby {
  border-radius: 8px !important;
  border: 1.5px solid #ddd !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: border-color .2s !important;
  height: auto !important;
  min-height: 44px !important;
  width: auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  white-space: normal !important;
  -webkit-appearance: menulist !important;
}
.catalog-ordering .orderby:focus,
.woocommerce-ordering .orderby:focus,
select.orderby:focus {
  border-color: #f5c518 !important;
  outline: none !important;
}

/* ===== PRICE FILTER WIDGET ===== */
.sidebar-inner .widget_price_filter .price_slider_wrapper .ui-slider {
  background: #eee !important;
  border-radius: 4px !important;
}
.sidebar-inner .widget_price_filter .price_slider_wrapper .ui-slider .ui-slider-range {
  background: #f5c518 !important;
}
.sidebar-inner .widget_price_filter .price_slider_wrapper .ui-slider .ui-slider-handle {
  background: #1a1a1a !important;
  border: 2px solid #f5c518 !important;
  border-radius: 50% !important;
}
.sidebar-inner .widget_price_filter .price_slider_amount .button {
  background: #1a1a1a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  text-transform: none !important;
}
.sidebar-inner .widget_price_filter .price_slider_amount .button:hover {
  background: #f5c518 !important;
  color: #1a1a1a !important;
}

/* ===== PAGINATION ===== */
.page-numbers li a,
.page-numbers li span {
  border-radius: 8px !important;
}
.page-numbers li span.current {
  background: #f5c518 !important;
  color: #1a1a1a !important;
  border-color: #f5c518 !important;
}

/* ===== REMOVE bf-banner promotional cards from grid ===== */
.bf-banner-wrapper {
  display: none !important;
}

/* ===== MOBILE SHOP ===== */
@media (max-width: 849px) {
  /* Ensure sorting dropdown is visible on mobile */
  .catalog-ordering {
    display:block !important;
    margin-bottom:16px !important;
  }
  .catalog-ordering .orderby {
    width:100% !important;
    padding:12px 14px !important;
    font-size:14px !important;
  }

  /* Sidebar widgets on mobile: tighter padding */
  .sidebar-inner .widget {
    padding:18px 16px !important;
    margin-bottom:14px !important;
  }
}
