/* Catalog: turn variant_table list into product cards */

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table {
  display: grid !important;
  grid-template-columns: repeat(var(--slwp-columns, 4), minmax(0, 1fr)) !important;
  gap: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-product {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  align-items: stretch !important;
  min-width: 0;
  height: auto;
  border: 1px solid var(--slwp-border, #e5e7eb) !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: var(--sw-surface-bg, #fff);
  box-shadow: none !important;
}

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-product:last-child {
  border-bottom: 1px solid var(--slwp-border, #e5e7eb) !important;
}

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-product > a.shoplight-wp-product-link {
  display: block !important;
  padding: 0 !important;
}

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-product img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  padding: 12px !important;
  background: #fff;
}

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-product-body {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-column: auto !important;
  flex: 1 1 auto;
  gap: 10px;
  align-items: stretch !important;
  padding: 14px !important;
  min-width: 0;
}

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-product-body h3 {
  margin: 0 !important;
  min-height: 2.6em;
  font-size: 15px;
  line-height: 1.35;
}

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-price {
  margin: 0;
}

.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-add,
.shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table .shoplight-wp-add.btn {
  margin-top: auto;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0 !important;
}

@media (max-width: 1100px) {
  .shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .shoplight-wp-catalog .shoplight-wp-products.is-products-layout-variant_table {
    grid-template-columns: 1fr !important;
  }
}

/* Root category overview: subcategory cards (image + title only, 4 per row) */

.shoplight-wp-root-category-overview .shoplight-wp-category-card-count,
.shoplight-wp-root-category-overview .shoplight-wp-category-card-price,
.shoplight-wp-root-category-overview .shoplight-wp-category-card-description,
.is-root-category-overview .shoplight-wp-category-card-count,
.is-root-category-overview .shoplight-wp-category-card-price,
.is-root-category-overview .shoplight-wp-category-card-description,
.is-root-category-overview .shoplight-wp-category-route-description,
.shoplight-wp-catalog:has(.shoplight-wp-root-category-overview) .shoplight-wp-category-route-description {
  display: none !important;
}

.shoplight-wp-catalog:has(.shoplight-wp-root-category-overview) .shoplight-wp-catalog-title,
.shoplight-wp-catalog:has(.shoplight-wp-root-category-overview) .shoplight-wp-catalog-title h2,
.is-root-category-overview .shoplight-wp-collection-head,
.is-root-category-overview .shoplight-wp-collection-head h2 {
  text-align: center !important;
}

.shoplight-wp-root-category-overview {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch;
}

.shoplight-wp-root-category-overview .shoplight-wp-category-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: #e8e8e8 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.shoplight-wp-root-category-overview .shoplight-wp-category-card-media {
  display: block !important;
  margin: 12px 12px 0 !important;
  padding: 16px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.shoplight-wp-root-category-overview .shoplight-wp-category-card-media img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent;
}

.shoplight-wp-root-category-overview .shoplight-wp-category-card-body {
  display: block !important;
  margin: 10px 12px 12px !important;
  padding: 14px 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: center !important;
}

.shoplight-wp-root-category-overview .shoplight-wp-category-card-body h2 {
  margin: 0 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center !important;
}

.shoplight-wp-root-category-overview .shoplight-wp-category-card-link {
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 1100px) {
  .shoplight-wp-root-category-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .shoplight-wp-root-category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .shoplight-wp-root-category-overview {
    grid-template-columns: 1fr !important;
  }
}

/* Smart Slider: homepage category blocks — stack vertically on mobile */
@media (max-width: 1024px) {
  .n2-ss-slider-1:has([data-href*="/womens-health/"]),
  .n2-ss-slider-2:has([data-href*="/womens-health/"]),
  .n2-ss-slider-3:has([data-href*="/womens-health/"]),
  .n2-ss-slide:has([data-href*="/womens-health/"]),
  .n2-ss-layers-container:has([data-href*="/womens-health/"]) {
    overflow: visible !important;
  }

  .n2-ss-layer-row:has(> .n2-ss-layer-row-inner > .n2-ss-layer-row-inner:has([data-href*="/womens-health/"])) {
    padding: 20px 10px !important;
    box-sizing: border-box !important;
  }

  .n2-ss-layer-row-inner:has([data-href*="/womens-health/"]) > .n2-ss-layer {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    aspect-ratio: 390 / 490 !important;
    height: auto !important;
  }

  .n2-ss-layer-row-inner:has([data-href*="/womens-health/"]) > .n2-ss-layer > .n2-ss-layer-col {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
  }

  .n2-ss-layer-row-inner:has([data-href*="/womens-health/"]) > .n2-ss-layer > .n2-ss-layer-col > .n2-ss-layer {
    height: 100% !important;
  }
}

@media (max-width: 768px) {
  .n2-ss-layer-row-inner:has([data-href*="/womens-health/"]) {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    align-content: stretch !important;
    margin: 0 !important;
    gap: 10px !important;
  }
}
