/* Wrapper */
.bc-widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bc-widget-body {
  font-size: 14px;
}

/* ── Scrollable filter sections ── */
.filter-collapsible,
.bc-widget-body .bc-cat-list,
.widget_layered_nav .widget-body,
.widget_product_status .widget-body {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.widget_product_status.lyn-filter-status-widget .widget-body {
  max-height: none;
  overflow: visible;
}

.filter-collapsible::-webkit-scrollbar,
.bc-widget-body .bc-cat-list::-webkit-scrollbar,
.widget_layered_nav .widget-body::-webkit-scrollbar,
.widget_product_status .widget-body::-webkit-scrollbar {
  width: 5px;
}

.filter-collapsible::-webkit-scrollbar-track,
.bc-widget-body .bc-cat-list::-webkit-scrollbar-track,
.widget_layered_nav .widget-body::-webkit-scrollbar-track,
.widget_product_status .widget-body::-webkit-scrollbar-track {
  background: transparent;
}

.filter-collapsible::-webkit-scrollbar-thumb,
.bc-widget-body .bc-cat-list::-webkit-scrollbar-thumb,
.widget_layered_nav .widget-body::-webkit-scrollbar-thumb,
.widget_product_status .widget-body::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* Attribute group sections (legacy, empty after <details> refactor) */
.attribute-group {
  margin-bottom: 12px;
}

.attribute-group .attribute-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Collapsible attribute rows (marketplace-style, one section at a time) */
.js-attribute-filters .lyn-filter-attr {
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fafbfc;
}

.js-attribute-filters .lyn-filter-attr[open] {
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.js-attribute-filters .lyn-filter-attr__summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.js-attribute-filters .lyn-filter-attr__summary::-webkit-details-marker {
  display: none;
}

.js-attribute-filters .lyn-filter-attr__summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.js-attribute-filters .lyn-filter-attr[open] .lyn-filter-attr__summary::after {
  transform: rotate(45deg);
}

.js-attribute-filters .lyn-filter-attr__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.js-attribute-filters .lyn-filter-attr__count {
  font-weight: 600;
  color: #94a3b8;
  font-size: 12px;
  flex-shrink: 0;
}

.js-attribute-filters .lyn-filter-attr__body {
  padding: 0 8px 10px 12px;
  border-top: 1px solid #f1f5f9;
  max-height: 220px;
  overflow-y: auto;
}

/* Category / filter sections — <details> wrappers */
.lyn-filter-section {
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}

.lyn-filter-section > .lyn-filter-section__summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  user-select: none;
}

.lyn-filter-section > .lyn-filter-section__summary::-webkit-details-marker {
  display: none;
}

.lyn-filter-section > .lyn-filter-section__summary::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
}

.lyn-filter-section[open] > .lyn-filter-section__summary::after {
  transform: rotate(45deg);
}

.lyn-filter-section__panel {
  padding: 0 8px 10px;
  border-top: 1px solid #f1f5f9;
}

/* Availability — compact chips */
.lyn-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lyn-filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lyn-filter-chip:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.lyn-filter-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lyn-filter-chip span {
  pointer-events: none;
}

.lyn-filter-status-widget .lyn-filter-chips {
  padding-top: 4px;
}

@media (min-width: 992px) {
  /*
   * Desktop sidebar: stack of attribute accordions can get very tall.
   * One scroll container with a viewport-aware cap (~5–9 collapsed rows visible).
   */
  .widget-body.filter-collapsible.js-attribute-filters {
    max-height: min(42vh, 320px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding-right: 6px;
  }

  .widget-body.filter-collapsible.js-attribute-filters::-webkit-scrollbar {
    width: 5px;
  }

  .widget-body.filter-collapsible.js-attribute-filters::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
  }

  /* Slightly tighter value list inside an open row (outer panel scrolls too) */
  .js-attribute-filters .lyn-filter-attr__body {
    max-height: 180px;
  }
}

@media (max-width: 991px) {
  .widget-body.filter-collapsible.js-attribute-filters {
    max-height: none;
    overflow: visible;
  }

  .js-attribute-filters .lyn-filter-attr__body {
    max-height: 220px;
  }
}

/* ── Mobile sidebar filter sections ── */
@media (max-width: 991px) {
  .filter-collapsible,
  .bc-widget-body .bc-cat-list,
  .widget_layered_nav .widget-body,
  .widget_product_status .widget-body {
    max-height: 220px;
  }
}

/* List */
.bc-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bc-cat-item {
  margin-bottom: 6px;
}

/* Row */
.bc-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Checkbox */
.bc-cat-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Label */
.bc-cat-row label {
  cursor: pointer;
  flex: 1;
  user-select: none;
}

/* Toggle */
.bc-toggle {
  width: 18px;
  height: 18px;
  text-align: center;
  cursor: pointer;
  line-height: 18px;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  color: #636363;
  -webkit-font-smoothing: antialiased;
  font-variant: normal;
}

.bc-plus::before {
  content: "+";
  font-style: normal;
  color: #636363;
  -webkit-font-smoothing: antialiased;
  font-variant: normal;
}

.bc-minus::before {
  content: "−";
}

/* Children */
.bc-sub-list {
  padding-left: 22px;
  transition: height 0.3s ease;
}

/* Animation helper */
.bc-sub-list.open {
  overflow: hidden;
}


/* ===== Base (drawer + overlay — full rules below) ===== */
.bc-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100800;
  pointer-events: none;
}

.bc-sidebar-overlay.active {
  pointer-events: auto;
}

/* Close link inside drawer */
.bc-sidebar-close {
  display: none;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  padding: 4px 8px;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 8px;
}

.bc-sidebar-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.bc-mobile-sidebar__top {
  display: none;
}

.bc-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem 1.25rem;
}

/* Mobile drawer panel */
.bc-mobile-sidebar {
  background: #fff;
  padding: 0;
  display: none;
  flex-direction: column;
}

@media (max-width: 991px) {
  /* Only use slide-in drawer on small screens (avoid theme fixed sidebar under nav) */
  #sidebar.filter-sidebar.secondary-column {
    display: none !important;
  }

  .bc-mobile-sidebar {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: min(100% - 48px, 360px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-102%);
    transition: transform 0.3s ease;
    z-index: 100801;
    overflow: hidden;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
  }

  .bc-mobile-sidebar.active {
    transform: translateX(0);
  }

  .bc-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .bc-mobile-sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #e8ecf1;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .bc-mobile-sidebar__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
  }

  .bc-sidebar-close {
    display: block;
  }
}

@media (min-width: 992px) {
  .bc-mobile-sidebar {
    position: static;
    transform: none !important;
    height: auto;
    display: none !important;
    box-shadow: none;
  }

  .bc-sidebar-overlay {
    display: none !important;
  }
}


/* ===== Hero Breadcrumb Card ===== */
.hero-card {
  background-color: #2563eb;
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin: 1.5rem 0;
  width: 100%;
  text-align: left;
}

/* Breadcrumb small text */
.breadcrumb-top .breadcrumb-small {
  font-size: 0.85rem;
  opacity: 0.8;
  display: block;
  margin-bottom: 0.25rem;
}

/* Page title */
.breadcrumb-title {
  font-size: 2rem;
  margin: 0.25rem 0 0.5rem 0;
  font-weight: 700;
  line-height: 1.2;
}

/* Discover text */
.breadcrumb-text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
  .hero-card {
    padding: 1.5rem 1rem;
  }

  .breadcrumb-title {
    font-size: 1.5rem;
  }

  .breadcrumb-top .breadcrumb-small,
  .breadcrumb-text {
    font-size: 0.8rem;
  }
}


/* Container */
.wc-brand-list-layered-nav-product_brand {
  list-style: none;
  padding: 0;
  margin: 0;
}


.wc-brand-list-layered-nav-product_brand li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 1px;
  cursor: pointer;
  transition: background 0.2s;
}

.wc-brand-list-layered-nav-product_brand li:hover {
  background-color: #f9f9f9;
}


.wc-brand-list-layered-nav-product_brand li label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-grow: 1;
}


.wc-brand-list-layered-nav-product_brand li input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}


.wc-brand-list-layered-nav-product_brand li .count {
  font-size: 0.875rem;
  color: #888;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .wc-brand-list-layered-nav-product_brand li {
    padding: 1px;
  }

  .wc-brand-list-layered-nav-product_brand li .count {
    font-size: 0.75rem;
  }
}

            /* You’re not using Bootstrap, so those col-* classes do nothing.
   Force a 2-column layout using flex on the wrapper. */

.content-wrapper{
  display: flex !important;
  align-items: flex-start;
  gap: 30px;               /* optional spacing */
}

/* If you want the sidebar on the LEFT, keep row-reverse (it reverses order) */
.content-wrapper.row-reverse{
  flex-direction: row-reverse;
}

/* Make sure neither column can “push” the other below */
#primary{
  flex: 1 1 auto;
  min-width: 0;            /* IMPORTANT: prevents overflow from forcing wrap */
}

#sidebar{
  flex: 0 0 320px;         /* sidebar fixed width */
  width: 320px;
  max-width: 100%;
}

/* If you prefer percentage widths instead of fixed sidebar width, use this instead:
#primary{ flex: 0 0 75%; max-width: 75%; min-width:0; }
#sidebar{ flex: 0 0 25%; max-width: 25%; }
*/

/* Mobile: stack */
@media (max-width: 991px){
  .content-wrapper{
    flex-direction: column;
  }
  .content-wrapper.row-reverse{
    flex-direction: column; /* stack on mobile too */
  }
  #sidebar{
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Kill any theme floats/clears that could break the row */
.content-wrapper > #primary,
.content-wrapper > #sidebar{
  float: none !important;
  clear: none !important;
}

/* If the products grid is “too wide” and causing wrapping, contain it */
.shop-products-wrapper,
.products{
  max-width: 100%;
  overflow: hidden;
}

/* Shop grid: equal column widths on mobile. Plain repeat(N, 1fr) uses min-size auto, so
   the column with more text/badge content grows — left vs right look uneven. */
.shop-products-wrapper .products.product-grid-style.grid-column-2-mobile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shop-products-wrapper .products.product-grid-style > .product {
  min-width: 0;
}
@media screen and (min-width: 576.1px) and (max-width: 768px) {
  .shop-products-wrapper .products.product-grid-style.grid-column-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (min-width: 768.1px) {
  .shop-products-wrapper .products.product-grid-style.grid-column-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Homepage (and any block) using grid-column-6 — match theme breakpoints */
@media screen and (min-width: 576.1px) and (max-width: 1024px) {
  .shop-products-wrapper .products.product-grid-style.grid-column-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (min-width: 1024.1px) and (max-width: 1280px) {
  .shop-products-wrapper .products.product-grid-style.grid-column-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media screen and (min-width: 1280.1px) {
  .shop-products-wrapper .products.product-grid-style.grid-column-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
 .content-wrapper{
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: flex-start;
  }