/* Shop / product category — Apple shell (BioPak-style cards) */

body.bth-apple-shop {
  background: #fff;
  color: #1d1d1f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.bth-apple-shop .bth-apple-main.bth-shop-main,
body.bth-apple-shop .bth-shop-main {
  width: 100%;
  max-width: 100%;
  padding-bottom: 0;
}

body.bth-apple-shop .bth-apple-footer {
  margin-top: 0;
}

body.bth-apple-shop .bth-apple-main > .newsletter-band {
  margin-top: clamp(24px, 4vw, 40px);
}

.bth-shop-shell {
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding: 0 0 24px;
}

.bth-shop-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px);
  text-align: center;
}

.bth-shop-eyebrow {
  margin: 0 0 10px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bth-shop-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.bth-shop-lead {
  margin: 12px 0 0;
  color: #6e6e73;
  font-size: 16px;
  line-height: 1.55;
}

.bth-shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.bth-shop-filters {
  position: sticky;
  top: calc(var(--bth-header-height, 64px) + 16px);
}

.bth-shop-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bth-shop-filters__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.bth-shop-filters__clear {
  font-size: 13px;
  color: #b91c1c;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

.bth-shop-filter-group {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bth-shop-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.bth-shop-filter-group h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.bth-shop-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bth-shop-filter-list li {
  margin: 0 0 8px;
}

.bth-shop-filter-list a {
  display: block;
  font-size: 14px;
  color: #6e6e73;
  text-decoration: none;
  line-height: 1.4;
}

.bth-shop-filter-list a:hover {
  color: #b91c1c;
}

.bth-shop-filter-list a.is-active {
  color: #1d1d1f;
  font-weight: 600;
}

.bth-shop-filter-list .bth-shop-filter-empty {
  display: block;
  font-size: 12px;
  color: #86868b;
  line-height: 1.45;
}

.bth-shop-main-col {
  min-width: 0;
}

.bth-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bth-shop-toolbar__left,
.bth-shop-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bth-shop-toolbar .woocommerce-result-count {
  margin: 0;
  font-size: 14px;
  color: #6e6e73;
  float: none;
}

.bth-shop-toolbar .woocommerce-ordering {
  margin: 0;
  float: none;
}

.bth-shop-toolbar .woocommerce-ordering select {
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font: inherit;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  color: #1d1d1f;
}

.bth-shop-filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Override WooCommerce / theme purple-pink button hover (#96588a) */
body.bth-apple-shop .bth-shop-filters-toggle,
body.bth-apple-shop .bth-shop-filters-toggle:hover,
body.bth-apple-shop .bth-shop-filters-toggle:focus,
body.bth-apple-shop .bth-shop-filters-toggle:focus-visible,
body.bth-apple-shop .bth-shop-filters-toggle:active,
body.bth-apple-shop .bth-shop-filters-toggle.button,
body.bth-apple-shop .bth-shop-filters-toggle.button:hover {
  background: #fff !important;
  color: #1d1d1f !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
  outline: none;
}

body.bth-apple-shop .bth-shop-filters-toggle:hover,
body.bth-apple-shop .bth-shop-filters-toggle:focus-visible {
  background: #f5f5f7 !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
}

body.bth-apple-shop .bth-shop-filters-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.22) !important;
}

body.bth-apple-shop .bth-shop-view-toggle button {
  background: #fff !important;
  color: #6e6e73 !important;
  box-shadow: none !important;
}

body.bth-apple-shop .bth-shop-view-toggle button:hover,
body.bth-apple-shop .bth-shop-view-toggle button:focus-visible {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}

body.bth-apple-shop .bth-shop-view-toggle button.is-active {
  background: #fbfbfd !important;
  color: #1d1d1f !important;
}

body.bth-apple-shop .bth-shop-view-toggle button.is-active:hover,
body.bth-apple-shop .bth-shop-view-toggle button.is-active:focus-visible {
  background: #f0f0f2 !important;
  color: #1d1d1f !important;
}

.bth-shop-view-toggle {
  display: inline-flex;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.bth-shop-view-toggle button {
  padding: 8px 12px;
  border: 0;
  background: #fff !important;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: #6e6e73 !important;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.bth-shop-view-toggle button:hover,
.bth-shop-view-toggle button:focus-visible {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}

.bth-shop-view-toggle button.is-active {
  background: #fbfbfd !important;
  color: #1d1d1f !important;
  font-weight: 600;
}

.bth-shop-view-toggle button.is-active:hover,
.bth-shop-view-toggle button.is-active:focus-visible {
  background: #f0f0f2 !important;
  color: #1d1d1f !important;
}

.bth-shop-view-toggle button + button {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.bth-shop-notices {
  margin-bottom: 16px;
}

.bth-shop-notices .woocommerce-message,
.bth-shop-notices .woocommerce-info,
.bth-shop-notices .woocommerce-error {
  margin: 0 0 10px;
  border-radius: 12px;
  font-size: 14px;
}

.bth-shop-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.5vw, 28px);
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.bth-apple-shop .woocommerce ul.products.bth-shop-grid,
body.bth-apple-shop .bth-shop-main-col .bth-shop-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.bth-apple-shop .woocommerce ul.products.bth-shop-grid::before,
body.bth-apple-shop .woocommerce ul.products.bth-shop-grid::after {
  display: none !important;
  content: none !important;
}

body.bth-apple-shop .bth-shop-grid .bth-shop-card,
body.bth-apple-shop .bth-shop-grid li.product {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  flex: none !important;
  min-width: 0 !important;
  position: relative !important;
}

body.bth-apple-shop .bth-shop-grid.is-list,
.bth-shop-grid.is-list {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card,
.bth-shop-grid.is-list .bth-shop-card {
  display: grid !important;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 152px;
}

body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__media,
.bth-shop-grid.is-list .bth-shop-card__media {
  aspect-ratio: unset;
  height: auto;
  min-height: 152px;
  align-self: stretch;
  border-radius: 12px 0 0 12px;
}

body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__media img,
.bth-shop-grid.is-list .bth-shop-card__media img {
  max-height: 140px;
}

body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__body,
.bth-shop-grid.is-list .bth-shop-card__body {
  justify-content: center;
  padding: 18px 12px 18px 20px;
  min-width: 0;
}

body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__title,
.bth-shop-grid.is-list .bth-shop-card__title {
  font-size: 16px;
}

body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__actions,
.bth-shop-grid.is-list .bth-shop-card__actions {
  grid-column: 3;
  margin: 0;
  padding: 0 20px 0 12px;
  align-self: center;
  flex-shrink: 0;
}

body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__btn,
.bth-shop-grid.is-list .bth-shop-card__btn {
  width: auto;
  min-width: 150px;
  white-space: nowrap;
}

.bth-shop-card {
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.bth-shop-card:hover {
  border-color: rgba(185, 28, 28, 0.22);
}

.bth-shop-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: clamp(12px, 2vw, 20px);
  background: #f5f5f7;
  text-decoration: none;
  overflow: hidden;
}

.bth-shop-card__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.bth-shop-card__body {
  padding: 14px 16px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bth-shop-card__actions {
  margin-top: auto;
  padding: 0 16px 18px;
}

.bth-shop-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.bth-shop-card__title a {
  color: inherit;
  text-decoration: none;
}

.bth-shop-card__title a:hover {
  color: #b91c1c;
}

.bth-shop-card__sku {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6e6e73;
  letter-spacing: 0.02em;
}

.bth-shop-card__price {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.bth-shop-card__price .price {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.bth-shop-card__price del {
  font-size: 13px;
  color: #6e6e73;
  font-weight: 400;
}

.bth-shop-card__pack {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e6e73;
}

.bth-shop-card__btn,
.bth-shop-card__btn.button {
  display: block;
  width: 100%;
  padding: 11px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #b91c1c !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: none !important;
}

.bth-shop-card__btn:hover,
.bth-shop-card__btn.button:hover {
  background: #991b1b !important;
  color: #fff !important;
}

.bth-shop-card__btn.added {
  background: #991b1b !important;
}

.bth-shop-card__btn--disabled,
.bth-shop-card__btn--disabled.button {
  background: #d1d1d6 !important;
  pointer-events: none;
  cursor: not-allowed;
}

.bth-shop-pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(8px, 2vw, 16px) 0;
}

body.bth-apple-shop .bth-shop-pagination .woocommerce-pagination {
  float: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

body.bth-apple-shop .bth-shop-pagination ul.page-numbers {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

body.bth-apple-shop .bth-shop-pagination ul.page-numbers li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  background: none !important;
  float: none !important;
}

body.bth-apple-shop .bth-shop-pagination a.page-numbers,
body.bth-apple-shop .bth-shop-pagination span.page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #fff !important;
  color: #1d1d1f !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.bth-apple-shop .bth-shop-pagination a.page-numbers.prev,
body.bth-apple-shop .bth-shop-pagination a.page-numbers.next {
  min-width: auto;
  padding: 0 18px !important;
  font-weight: 500 !important;
}

body.bth-apple-shop .bth-shop-pagination a.page-numbers:hover,
body.bth-apple-shop .bth-shop-pagination a.page-numbers:focus-visible {
  border-color: rgba(185, 28, 28, 0.25) !important;
  color: #b91c1c !important;
  background: #fff !important;
}

body.bth-apple-shop .bth-shop-pagination span.page-numbers.current {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}

body.bth-apple-shop .bth-shop-pagination span.page-numbers.dots,
body.bth-apple-shop .bth-shop-pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 4px !important;
  border: 0 !important;
  background: none !important;
  color: #6e6e73 !important;
  font-weight: 500 !important;
}

.bth-shop-seo {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.65;
  color: #6e6e73;
}

.bth-shop-seo h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #1d1d1f;
}

.bth-shop-seo a {
  color: #b91c1c;
  font-weight: 600;
}

.bth-shop-empty {
  text-align: center;
  padding: 48px 20px;
  color: #6e6e73;
}

.bth-shop-empty__btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .bth-shop-layout {
    grid-template-columns: 1fr;
  }

  .bth-shop-filters {
    display: none;
    position: static;
    top: auto;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fbfbfd;
  }

  .bth-shop-filters.is-open {
    display: block;
  }

  .bth-shop-filters-toggle {
    display: inline-flex;
  }

  .bth-shop-grid,
  body.bth-apple-shop .bth-shop-main-col .bth-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.bth-apple-shop .bth-shop-grid.is-list,
  .bth-shop-grid.is-list {
    grid-template-columns: 1fr !important;
  }

  body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card,
  .bth-shop-grid.is-list .bth-shop-card {
    grid-template-columns: 120px minmax(0, 1fr) auto;
    min-height: 120px;
  }

  body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__media,
  .bth-shop-grid.is-list .bth-shop-card__media {
    min-height: 120px;
  }
}

@media (max-width: 560px) {
  .bth-shop-grid,
  body.bth-apple-shop .bth-shop-main-col .bth-shop-grid {
    grid-template-columns: 1fr !important;
  }

  body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card,
  .bth-shop-grid.is-list .bth-shop-card {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__actions,
  .bth-shop-grid.is-list .bth-shop-card__actions {
    grid-column: auto;
    padding: 0 16px 16px;
    width: 100%;
  }

  .bth-shop-grid.is-list .bth-shop-card__media {
    border-radius: 12px 12px 0 0;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body.bth-apple-shop .bth-shop-grid.is-list .bth-shop-card__btn,
  .bth-shop-grid.is-list .bth-shop-card__btn {
    width: 100%;
    min-width: 0;
  }

  .bth-shop-toolbar .woocommerce-result-count {
    width: 100%;
  }
}
