/* top page background color */

#wrapper {
  background: #fff !important; /* fallback */
  background: var(--primary-color-am) !important;
}

/* ---- top category banner  ----*/

.shop-category--section {
	padding-left: 9.5px !important;
	padding-right: 9.5px !important;
}

/* .shop-category--section .section {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.shop-category--section .section .section-bg {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
} */

/* ---- top banner ----- */

.banner--row .banner--col {
  justify-content: flex-end;
}

/* ----- search bar styling ------ */

/* Product Search Widget Styling in Sidebar */
#shop-sidebar .widget_product_search .searchform {
  border: none;
}

#shop-sidebar .widget_product_search {
  display: flex;
  flex-direction: column;
}

/* Search form row */
#shop-sidebar .widget_product_search .flex-row {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid #f0f0f0; /* fallback */
  border: 1px solid var(--grey-color-am-200);
  background: #fff; /* fallback */
  background: var(--primary-color-am);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transform: translateZ(0);
}

/* Windows fallback for search form row */
@supports not (-webkit-backdrop-filter: blur(1px)) {
  #shop-sidebar .widget_product_search .flex-row {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  }
}

/* Category dropdown styling */
#shop-sidebar .search_categories {
  border: none;
  background-color: #fff; /* fallback */
  background-color: var(--primary-color-am);
  color: #203a60; /* fallback */
  color: var(--secondary-color-am);
  font-size: 14px;
  padding: 0 20px 0 20px;
  height: 46px;
  max-width: 130px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23555555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 3px center;
  background-size: 20px;
  cursor: pointer;
}

/* Style the dropdown container */
#shop-sidebar .flex-col.search-form-categories {
  position: relative;
}

/* Search input field */
#shop-sidebar #woocommerce-product-search-field-1 {
  border: none;
  padding: 0 15px;
  height: 46px;
  font-size: 15px;
  width: 100%;
  background-color: #fff; /* fallback */
  background-color: var(--primary-color-am);
  box-shadow: none;
}

#shop-sidebar #woocommerce-product-search-field-1::placeholder {
  color: #203a60; /* fallback */
  color: var(--secondary-color-am);
  opacity: .8;
  font-size: 14px;
  opacity: 1;
}

/* Search button */
#shop-sidebar .widget_product_search .ux-search-submit {
  background-color: transparent;
  color: #203a60; /* fallback */
  color: var(--secondary-color-am);
  border: none;
  padding: 0 20px 0 15px;
  height: 46px;
  transition: color 0.3s;
}

#shop-sidebar .widget_product_search .ux-search-submit:hover {
  background-color: transparent;
  color: #203a60; /* fallback */
  color: var(--secondary-color-am);
}

/* Icon in search button */
#shop-sidebar .widget_product_search .icon-search {
  font-size: 16px;
}

/* Widget title and divider */
#shop-sidebar .widget_product_search .widget-title {
  margin-bottom: 15px;
}

h3.widget-title, span.widget-title {
  letter-spacing: normal !important;
}

/* divider line under heading */
.is-divider.small {
  display: none;
}

.widget>ul>li li>a, ul.menu>li li>a {
  font-size: 1rem !important;
}

.widget .current-cat>a {
  color: #5183e0 !important; /* fallback */
  color: var(--tertiary-color-am) !important;
}

/* Live search results styling */
#shop-sidebar .live-search-results {
  margin-top: 5px;
  border-radius: 8px;
  background: #fff; /* fallback */
  background: var(--primary-color-am);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transform: translateZ(0);
  overflow: hidden;
}

/* Windows fallback for live search results */
@supports not (-webkit-backdrop-filter: blur(1px)) {
  #shop-sidebar .live-search-results {
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.1));
  }
}

/* background shop section */
#main {
  background: #fff !important; /* fallback */
  background: var(--primary-color-am) !important;
}

.shop-page-title.category-page-title.page-title { 
  background-color: #fff; /* fallback */
  background-color: var(--primary-color-am);
  padding-bottom: 30px;
  padding-top: 30px;
  margin-bottom: 0px;
}

/* padding-top */
#main .category-page-row {
  padding-top: 15px !important;
}

/* Ensure category titles align properly */
.products .category {
  opacity: 1;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #5183e0; /* fallback */
  color: var(--tertiary-color-am);
  font-size: .9rem;
}

/* Product title styling */
.products .product-small .name.product-title.woocommerce-loop-product__title {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.4;
  height: auto !important;
  color: #203a60 !important; /* fallback */
  color: var(--secondary-color-am) !important;
}

.products .product-small .product-title a:hover {
  color: #203a60 !important; /* fallback */
  color: var(--secondary-color-am) !important;
}

/* Style "View product" links */
.products .product-small .button {
  border-radius: 6px;
  margin-top: 10px;
}

/* Remove divider since we're styling differently */
.shop-sidebar .widget .is-divider {
  display: none;
}

/* Widget titles styling */
.shop-sidebar .widget-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #203a60; /* fallback */
  color: var(--secondary-color-am);
}

/* Category links styling */
.widget_product_categories ul li,
.widget_brand_nav ul li {
  border-top: 1px solid #f1f1f1;
  padding: 10px 0;
  font-size: .9rem;
}

.widget_product_categories ul li:first-child,
.widget_brand_nav ul li:first-child {
  border-top: none;
}

/* Remove default bullets from lists */
.widget_product_categories ul,
.widget_brand_nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Subcategory styling */
.widget_product_categories ul.children {
  margin-top: 10px;
  padding-left: 15px;
  border-top: 1px solid #f1f1f1;
}

/* Common styling for white boxes with rounded corners and shadow */
.widget,
.shop-sidebar .widget_product_search,
.shop-sidebar .widget_product_categories,
.shop-sidebar .widget_brand_nav,
.woocommerce-widget-layered-nav,
.widget_layered_nav,
.widget_brand_nav {
  background-color: #ffffff;
  border-radius: 15px;
  border: 1px solid #f0f0f0; /* fallback */
  border: 1px solid var(--grey-color-am-200);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
  /* overflow: hidden; */
  padding: 20px 25px; /* Increased left/right padding */
  margin-bottom: 25px;
}

/* Windows fallback for sidebar widgets */
@supports not (-webkit-backdrop-filter: blur(1px)) {
  .widget,
  .shop-sidebar .widget_product_search,
  .shop-sidebar .widget_product_categories,
  .shop-sidebar .widget_brand_nav,
  .woocommerce-widget-layered-nav,
  .widget_layered_nav,
  .widget_brand_nav {
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.1));
  }
}

/* Category toggle button styling */
.widget_product_categories .toggle {
  opacity: 0.7;
  transition: all 0.3s;
}

.widget_product_categories .toggle:hover {
  opacity: 1;
}

.shop-container .row:not(.row-collapse) {
  margin-right: 0px !important;
  margin-left: 0px !important;
  padding-left: 9.8px;
}

/* Removing sorting */
.woocommerce-ordering, .woocommerce-ordering select {
  display: none;
}

/* Media queries for responsive styling - Flatsome breakpoints */
@media screen and (max-width: 849px) {
  .widget,
  .shop-sidebar .widget_product_search,
  .shop-sidebar .widget_product_categories,
  .shop-sidebar .widget_brand_nav,
  .woocommerce-widget-layered-nav,
  .widget_layered_nav,
  .widget_brand_nav {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 15px;
  }
  
  /* Disable Windows fallbacks on mobile since shadows are removed */
  @supports not (-webkit-backdrop-filter: blur(1px)) {
    .widget,
    .shop-sidebar .widget_product_search,
    .shop-sidebar .widget_product_categories,
    .shop-sidebar .widget_brand_nav,
    .woocommerce-widget-layered-nav,
    .widget_layered_nav,
    .widget_brand_nav {
      filter: none;
    }
  }
  
 .mfp-content #shop-sidebar {
    background-color: hsl(0deg 0% 100%);
  }
  
  /* Add back the dividers for mobile */
  .shop-sidebar .widget .is-divider {
    display: block;
  }
  
  /* Adjust spacing for mobile */
  .widget_product_categories ul li,
  .widget_brand_nav ul li {
    padding: 8px 0;
  }
}

/* remove woocommerce sorting */
.woocommerce-ordering {
  display: none;
}