/* Shop archive (design: "All Flowers")
   Loaded on the shop page, product categories/tags/attributes and product search.
--------------------------------------------- */
.bluthe_shop {
  font-family: var(--bl-serif);
  color: var(--bl-navy);
  background: var(--bl-cream);
  padding: clamp(28px, 4vw, 54px) 0 clamp(56px, 7vw, 92px);
  -webkit-font-smoothing: antialiased;
}
/* Zero specificity so component colours (e.g. .bluthe_btn--solid) win. */
:where(.bluthe_shop) a {
  color: var(--bl-navy);
  text-decoration: none;
}
.bluthe_shop .woocommerce-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bl-text-muted);
  margin: 0 0 18px;
}

/* Intro */
.bluthe_shop__intro {
  margin-bottom: clamp(22px, 3vw, 34px);
}
.bluthe_shop .bluthe_shop__title {
  font-family: var(--bl-serif);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.06;
  margin: 0 0 12px;
  color: var(--bl-navy);
}
.bluthe_shop__description,
.bluthe_shop__description p {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(22, 40, 63, 0.8);
  margin: 0;
}
.bluthe_shop__description p + p {
  margin-top: 10px;
}

/* Collection chips (Theme Options → Shop Page → Product Group) */
.bluthe_shop__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(22px, 3vw, 34px);
  --bl-scroller-item: auto;
}
.bluthe_shop__group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bl-pill);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background 0.18s ease;
}
.bluthe_shop__group:hover {
  background: var(--bl-pill-hover);
}
.bluthe_shop__group img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0;
}

/* Layout */
.bluthe_shop__layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  padding: 0;
}
.bluthe_shop-main-content {
  min-width: 0;
}

/* Filter sidebar */
.bluthe_filters {
  border: 1px solid #E4DCD2;
  background: var(--bl-cream);
  position: sticky;
  top: 140px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  /* Reserve the scrollbar's space permanently so the content doesn't jump
     sideways when a group opens and the scrollbar appears. */
  scrollbar-gutter: stable;
  overflow-anchor: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 40, 63, 0.25) transparent;
  margin: 0;
  border-radius: 0;
}
.bluthe_filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #E4DCD2;
}
.bluthe_filters__title {
  font-size: 18px;
}
.bluthe_filters .bluthe_filters__reset {
  background: var(--bl-navy);
  border: 1px solid var(--bl-navy);
  color: var(--bl-cream);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
  margin-inline-start: auto;
  transition: background 0.18s ease;
}
.bluthe_filters .bluthe_filters__reset:hover {
  background: var(--bl-navy-deep);
  color: var(--bl-cream);
}
.bluthe_filters__close {
  display: none;
  background: var(--bl-pill);
  border: 0;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  color: var(--bl-navy);
  cursor: pointer;
}
.bluthe_filters__form {
  padding: 18px 20px 22px;
}
.bluthe_filters .bluthe_filters__search {
  width: 100%;
  background: var(--bl-panel);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--bl-serif);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--bl-navy);
  outline: none;
  margin: 0 0 22px;
}
.bluthe_filters .bluthe_filters__search::placeholder {
  color: rgba(22, 40, 63, 0.45);
}
.bluthe_filters__group {
  border: 0;
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--bl-line);
  min-width: 0;
}
.bluthe_filters__group:last-child {
  margin-bottom: 0;
  padding-bottom: 2px;
  border-bottom: 0;
}
.bluthe_filters__label {
  display: block;
  width: 100%;
  font-size: 15.5px;
  font-weight: 500;
  margin-bottom: 14px;
  padding: 0;
}
/* Group heading doubles as the collapse toggle (arrow on the right). */
.bluthe_filters__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--bl-navy);
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* no grey flash on touch */
  outline: none;
}
.bluthe_filters__toggle:focus-visible {
  outline: 2px solid var(--bl-accent);
  outline-offset: 3px;
}
.bluthe_filters__chevron {
  flex: 0 0 auto;
  transition: transform 0.28s ease;
}
.bluthe_filters__label {
  transition: margin-bottom 0.28s ease;
}
/* Body is shown/hidden by filter.js with a height animation (slideDown/slideUp),
   so collapsed groups take no space in any browser. */
.bluthe_filters__body {
  overflow: hidden;
}
.bluthe_filters__group.is-collapsed .bluthe_filters__label {
  margin-bottom: 0;
}
.bluthe_filters__group.is-collapsed .bluthe_filters__chevron {
  transform: rotate(-90deg);
}
.bluthe_filters__group.is-collapsed .bluthe_filters__body {
  display: none;
}
.bluthe_filters__options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.bluthe_filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 300;
  color: var(--bl-navy);
  margin: 0;
  line-height: 1.3;
  transition: color 0.18s ease;
}
.bluthe_filter__option:hover {
  color: var(--bl-accent);
}
.bluthe_filter__option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.bluthe_filter__box {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border-radius: 3px;
  border: 1px solid rgba(22, 40, 63, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.bluthe_filter__option input:checked ~ .bluthe_filter__box {
  background: var(--bl-navy);
  border-color: var(--bl-navy);
}
.bluthe_filter__box::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--bl-cream);
  display: none;
}
.bluthe_filter__option input:checked ~ .bluthe_filter__box::after {
  display: block;
}
.bluthe_filter__option input:focus-visible ~ .bluthe_filter__box {
  outline: 2px solid var(--bl-accent);
  outline-offset: 2px;
}
.bluthe_filter__count {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(22, 40, 63, 0.78);
}
.bluthe_filters .view-more-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 0 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(22, 40, 63, 0.45);
  color: var(--bl-navy);
  font-size: 14px;
  cursor: pointer;
}
.bluthe_filters__price {
  display: flex;
  gap: 12px;
  margin: 0;
}
.bluthe_filters__price .price-field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.bluthe_filters__price .price-field span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bl-text-muted);
}
.bluthe_filters .price-field input[type="number"] {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(22, 40, 63, 0.3);
  border-radius: 0;
  padding: 7px 2px;
  font-family: var(--bl-serif);
  font-size: 14px;
  font-weight: 300;
  color: var(--bl-navy);
  outline: none;
}
.bluthe_filters .price-field input[type="number"]:focus {
  border-bottom-color: var(--bl-navy);
}

/* Toolbar */
.bluthe_shop__toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bl-line);
  margin-bottom: 24px;
}
.bluthe_shop__count {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(22, 40, 63, 0.78);
}
.bluthe_shop__tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bluthe_shop__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(22, 40, 63, 0.7);
  margin: 0;
}
.bluthe_shop__sort .woocommerce-ordering {
  margin: 0;
}
.bluthe_shop__sort select.orderby {
  width: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(22, 40, 63, 0.3);
  border-radius: 0;
  padding: 7px 2px;
  font-family: var(--bl-serif);
  font-size: 14px;
  font-weight: 300;
  color: var(--bl-navy);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  margin: 0;
}
.bluthe_shop .bluthe_shop__filter_toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(22, 40, 63, 0.35);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--bl-serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bl-navy);
  cursor: pointer;
  margin: 0;
}

/* Grid, note, load more */
.bluthe_shop #latest-products-block {
  margin: 0;
}
/* While filter.js fetches a new result set. */
.bluthe_shop__results {
  transition: opacity 0.2s ease;
}
.bluthe_shop__results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}
.bluthe_shop #latest-products-block ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* 1. No wishlist button on cards (hook is also removed in inc/shop.php). */
.bluthe_product_card .yith-wcwl-add-to-wishlist,
.bluthe_product_card .yith-wcwl-add-to-wishlist-button {
  display: none !important;
}
.bluthe_shop__note {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(22, 40, 63, 0.62);
  margin: 32px 0 0;
}
.bluthe_shop .bluthe_shop__more {
  margin: 34px auto 0;
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: max-content;
}
.bluthe_shop .bluthe_shop__more .bluthe-load-more-break {
  display: none;
}
.bluthe_shop .bluthe_shop__more .bluthe-load-more-indicator {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--bl-text-muted);
  text-transform: none;
}
.bluthe_shop .bluthe_shop__more.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.bluthe_shop__pagination .woocommerce-pagination ul.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  justify-content: center;
  margin: 24px 0 0;
  padding: 0;
}
.bluthe_shop__pagination .page-numbers a,
.bluthe_shop__pagination .page-numbers span {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 40, 63, 0.25);
  font-size: 13px;
}
.bluthe_shop__pagination .page-numbers span.current {
  background: var(--bl-navy);
  color: var(--bl-cream);
  border-color: var(--bl-navy);
}

/* Empty state */
.bluthe_shop__empty {
  border: 1px solid #E4DCD2;
  padding: clamp(24px, 3vw, 42px);
  max-width: 620px;
}
.bluthe_shop .bluthe_shop__empty_title {
  font-family: var(--bl-serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--bl-navy);
}
.bluthe_shop__empty_text {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(22, 40, 63, 0.8);
  margin: 0 0 22px;
}
.bluthe_shop__empty_actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.bluthe_shop .bluthe_shop__empty .bluthe_btn {
  padding: 13px 28px;
}

/* Tablet */
@media (max-width: 1024px) {
  .bluthe_shop__layout {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  }
  .bluthe_shop #latest-products-block ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: filters become a bottom sheet opened from the toolbar */
@media (max-width: 767px) {
  .bluthe_shop__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Phones: the archive/category description under the title is hidden. */
  .bluthe_shop__description {
    display: none;
  }
  .bluthe_shop__groups {
    flex-wrap: nowrap;
  }
  .bluthe_shop__groups > .bluthe_shop__group {
    flex: 0 0 auto;
    max-width: none;
  }
  .bluthe_shop .bluthe_shop__filter_toggle {
    display: inline-flex;
  }
  .bluthe_shop__toolbar {
    align-items: center;
  }
  .bluthe_shop__tools {
    width: 100%;
    justify-content: space-between;
  }

  .bluthe_filters {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1002;
    max-height: 86vh;
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -20px 50px rgba(22, 40, 63, 0.25);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .bluthe_filters.active {
    transform: translateY(0);
  }
  .bluthe_filters {
    overscroll-behavior: contain; /* scrolling the sheet never scrolls the page behind */
  }
  .bluthe_filters.dragging {
    transition: none;
  }
  .bluthe_filters__head {
    position: sticky;
    top: 0;
    background: var(--bl-cream);
    z-index: 1;
  }
  .bluthe_filters__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 40, 63, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
  }
  .filter-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  /* filter.js also fixes the body in place (position: fixed + stored scroll offset),
     which is what actually stops background scrolling on iOS. */
  body.filter-open {
    overflow: hidden;
    position: fixed;
    inset-inline: 0;
    width: 100%;
  }
}
