/**
 * VapeAndMore — Cosmos category scene
 * Title → glass hubs → TOP SEO | hot strip | grid | long BOTTOM
 */

/* ----- Header scene: title → hubs → TOP SEO ----- */
.woocommerce-products-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
}

.woocommerce-products-header .page-title,
.tax-product_cat h1.page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

/* Glass hubs (reuse .oc-shop-hub from shop CRO) */
.oc-cat-hubs-wrap {
  margin: 0 0 1.15rem;
}

.oc-cat-hubs-wrap .oc-shop-cro__kicker {
  margin: 0 0 8px;
}

.oc-cat-hubs {
  margin-bottom: 0;
}

.oc-cat-hot {
  margin: 0 0 1.25rem;
}

.oc-cat-hot .oc-shop-trust {
  margin-bottom: 0;
}

/* TOP SEO/CRO — descriptive, with links; no collapse */
.woocommerce-products-header .term-description {
  max-width: 48rem;
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #2a2a2a;
}

.woocommerce-products-header .term-description p {
  margin: 0 0 0.75rem;
}

.woocommerce-products-header .term-description p:last-child {
  margin-bottom: 0;
}

.woocommerce-products-header .term-description a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-products-header .term-description a:hover,
.woocommerce-products-header .term-description a:focus {
  color: #444;
}

/* ----- Product badges / soft OOS ----- */
ul.products li.product {
  position: relative;
}

ul.products li.product.outofstock .product-wrap,
ul.products li.product.oc-oos .product-wrap {
  opacity: 0.55;
}

ul.products li.product .oc-badge {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  pointer-events: none;
}

ul.products li.product .oc-badge--sale {
  background: #b91c1c;
}

ul.products li.product .oc-badge--oos {
  left: auto;
  right: 10px;
  background: #374151;
}

ul.products li.product .wcsob_soldout {
  opacity: 0.92;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

/* ----- BOTTOM long SEO + collapse ----- */
.pcbdw-bottom-description-content {
  position: relative;
  margin: 1.75rem 0 0.5rem !important;
  padding: 0 0 0.5rem !important;
  max-width: 52rem;
  background: transparent !important;
}

.pcbdw-bottom-description-content.oc-bottom-collapse {
  max-height: 14rem;
  overflow: hidden;
}

.pcbdw-bottom-description-content.oc-bottom-collapse::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 78%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.pcbdw-bottom-description-content.oc-bottom-collapse.is-expanded {
  max-height: none;
}

.pcbdw-bottom-description-content.oc-bottom-collapse.is-expanded::after {
  opacity: 0;
}

.pcbdw-bottom-description-content h2 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #111;
}

.pcbdw-bottom-description-content > h2:first-child {
  margin-top: 0;
}

.pcbdw-bottom-description-content p {
  margin: 0 0 0.9rem;
  color: #333;
  line-height: 1.65;
}

.pcbdw-bottom-description-content .faq_question {
  margin: 1.25rem 0 0.35rem;
}

.pcbdw-bottom-description-content .faq_question h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.pcbdw-bottom-description-content .faq_answer {
  margin: 0 0 0.85rem;
}

.pcbdw-bottom-description-content .faq_answer p {
  margin: 0 0 0.65rem;
}

.pcbdw-bottom-description-content .oc-related-products {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
}

.pcbdw-bottom-description-content .oc-trust {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e5e5e5;
}

.oc-show-more {
  margin: 0 0 2rem;
  max-width: 52rem;
}

.oc-show-more__btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.oc-show-more__btn:hover,
.oc-show-more__btn:focus {
  color: #444;
}

/* Light sidebar polish */
.woocommerce .widget_layered_nav,
.woocommerce .widget_price_filter,
.woocommerce .widget_product_categories {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .pcbdw-bottom-description-content.oc-bottom-collapse {
    max-height: 11rem;
  }
}
