.baostyle-mobile-menu-top .widget:last-child, .baostyle-mobile-menu-bottom .widget:last-child {
  margin-bottom: 0;
}

.baostyle-home-widgets, .baostyle-home-hero-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.baostyle-home-widgets .widget, .baostyle-home-hero-widgets .widget {
  margin-bottom: 0;
}

.baostyle-home-count-1 .widget {
  max-width: 100%;
}

.baostyle-home-section-ad .widget img, .baostyle-home-hero-widgets .widget img, .baostyle-home-widgets .widget img {
  max-width: 100%;
  height: auto;
  display: block;
}

.baostyle-home-section-ad .widget, .baostyle-home-section-layout .widget, .baostyle-home-hero-widgets .widget {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

@media (min-width: 992px) {
  .baostyle-home-widgets.baostyle-home-count-2, .baostyle-home-hero-widgets.baostyle-home-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baostyle-home-widgets.baostyle-home-count-3, .baostyle-home-hero-widgets.baostyle-home-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .baostyle-home-widgets.baostyle-home-count-4plus, .baostyle-home-hero-widgets.baostyle-home-count-4plus {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.baostyle-hero-slide .widget {
  margin-bottom: 0;
}

.baostyle-home-hero-slider .widget {
  box-shadow: none;
  border: 0;
  background: transparent;
}

.baostyle-woo-filters .widget + .widget {
  margin-top: 1rem;
}

.widget {
  margin-bottom: var(--coolgar-gap-md);
}

.widget:last-child {
  margin-bottom: 0;
}

.home .baostyle-home-widgets, .home .baostyle-home-hero-widgets {
  align-items: stretch;
}

.baostyle-sidebar-area .widget:last-child {
  margin-bottom: 0;
}

.baostyle-sidebar-area {
  position: relative;
}

@media (max-width: 991.98px) {
  .baostyle-sidebar-area {
    margin-top: 1rem;
  }
}

.baostyle-sidebar-area .widget {
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--coolgar-card-radius);
}

.baostyle-woo-lite-page .wc-block-components-sidebar, .baostyle-woo-lite-page .wc-block-checkout__sidebar, .baostyle-woo-lite-page .wc-block-cart-sidebar {
  box-sizing: border-box;
}

.baostyle-mobile-sidebar-toggle:hover, .baostyle-mobile-sidebar-toggle:focus, .baostyle-mobile-sidebar-toggle:active {
  opacity: 1;
  color: #212529;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.5);
}

.baostyle-mobile-sidebar-toggle i {
  font-size: 1rem;
  line-height: 1;
}

.baostyle-mobile-sidebar-toggle-text {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@media (max-width: 575.98px) {
  .baostyle-mobile-sidebar-toggle-wrap {
    left: 8px;
  }

  .baostyle-mobile-sidebar-toggle {
    padding: 0.55rem 0.35rem;
    min-width: 40px;
  }
}

.baostyle-mobile-sidebar-toggle-wrap {
  position: fixed;
  left: 10px;
  top: 58%;
  transform: translateY(-50%);
  z-index: 540;
  pointer-events: none;
}

.baostyle-mobile-sidebar-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.65rem 0.45rem;
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #212529;
  font-size: 0.75rem;
  line-height: 1.1;
  opacity: 0.82;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.wc-block-components-sidebar {
  width: 33%;
}

.baostyle-sidebar-area .widget-title {
  margin-bottom: 0.75rem;
}

.widget-title {
  margin-bottom: .875rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}







/**** Sidebar Search Widget Unified Layout ****/

.widget_product_search .woocommerce-product-search,
.widget_search .search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 8px;
}

.widget_product_search .woocommerce-product-search label,
.widget_search .search-form label {
    flex: 1 1 auto;
    margin: 0;
}

.widget_product_search .search-field,
.widget_search .search-field {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

.widget_product_search .search-field:focus,
.widget_search .search-field:focus {
    border-color: var(--bs-primary, #0d6efd);
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.widget_product_search button,
.widget_search .search-submit {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 16px;
    border-radius: 4px;
    white-space: nowrap;
}

/**** Mobile ****/

@media (max-width: 575.98px) {

    .widget_product_search .woocommerce-product-search,
    .widget_search .search-form {
        gap: 6px;
    }

    .widget_product_search button,
    .widget_search .search-submit {
        padding: 0 14px;
        font-size: 13px;
    }
}




/***css my add***/
.widget_product_categories ul {list-style: none;padding-left:0px;}
.widget_product_categories ul li {list-style: none;padding-left:1rem;}
.widget_product_categories ul li a {text-decoration:none;}

.search-field {line-height:40px;}

.widget a {text-decoration: none;}
.woocommerce ul.cart_list li a, .woocommerce ul.product_list_widget li a {font-weight:normal;}

.widget_product_search .woocommerce-product-search button,.widget_search input.search-submit {line-height: 40px;background:var(--coolgar-color-primary);color:#fff;}

.widget_search input.search-submit {line-height: 40px;}






