/* Native Smoke Shop product cards, including both homepage sections and the
   catalog/category/search/related-product grid. Keep actions at the bottom
   when names, metadata, prices or savings badges wrap. Preserve existing
   visual styling, responsive columns and all cart/stock behavior. */
:root[data-store="shop"] .product-card,
:root[data-store="shop"] .home-product-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

:root[data-store="shop"] .product-card > .product-card-body,
:root[data-store="shop"] .home-product-card > .home-product-copy {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
}

:root[data-store="shop"] .product-card > .product-card-body > .product-price-row {
  margin-top: auto;
}

/* Anchor the wrapper, not only the button nested inside it. */
:root[data-store="shop"] .product-card > .product-card-actions {
  margin-top: auto;
  flex-shrink: 0;
}

/* Homepage buttons live inside the copy, immediately after the price. Let
   space grow before that price/button group, not below the button. Padding
   retains the original 13px minimum metadata gap when auto margin is zero.
   Discount prices and Save badges keep their natural wrapping and height. */
:root[data-store="shop"] .home-product-card > .home-product-copy > .home-product-price {
  margin-top: auto;
  padding-top: 13px;
}

:root[data-store="shop"] .home-product-card > .home-product-copy > .home-add-cart {
  flex-shrink: 0;
}

/*
 * My Legacy-style price hierarchy for Native Smoke Shop only.
 * This styles existing server-approved compare-at data; it must never
 * manufacture a regular price, discount or rewards entitlement.
 * The independent Native Bulk Smokes storefront is unaffected.
 */
:root[data-store="shop"] .catalog-price-display {
  width: 100%;
  min-width: 0;
}
:root[data-store="shop"] .catalog-price-prices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 11px;
  min-width: 0;
}
:root[data-store="shop"] .catalog-price-original {
  color: #777b76;
  font-size: 14px;
  line-height: 1.3;
  text-decoration-line: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #777b76;
  white-space: nowrap;
}
:root[data-store="shop"] .catalog-price-main {
  color: var(--accent);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
}
:root[data-store="shop"] .product-price-row .catalog-price-main,
:root[data-store="shop"] .home-product-price .catalog-price-main,
:root[data-store="shop"] #shop-product-grid .product-price-row .catalog-price-main {
  font-size: 22px;
}
:root[data-store="shop"] .catalog-price-savings {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #def6e6;
  color: #145c38;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
}
:root[data-store="shop"] .product-detail-price .catalog-price-prices {
  gap: 10px 14px;
}
:root[data-store="shop"] .product-detail-price .catalog-price-main {
  font-size: clamp(30px, 4vw, 38px);
}
:root[data-store="shop"] .product-detail-price .catalog-price-original {
  font-size: 17px;
}
:root[data-store="shop"] .product-detail-price .catalog-price-savings {
  font-size: 12px;
}

@media (max-width: 600px) {
  :root[data-store="shop"] .product-card .catalog-price-prices,
  :root[data-store="shop"] .home-product-card .catalog-price-prices {
    gap: 5px 7px;
  }
  :root[data-store="shop"] .product-price-row .catalog-price-main,
  :root[data-store="shop"] .home-product-price .catalog-price-main,
  :root[data-store="shop"] #shop-product-grid .product-price-row .catalog-price-main {
    font-size: 18px;
  }
  :root[data-store="shop"] .product-card .catalog-price-original,
  :root[data-store="shop"] .home-product-card .catalog-price-original {
    font-size: 11px;
  }
  :root[data-store="shop"] .product-card .catalog-price-savings,
  :root[data-store="shop"] .home-product-card .catalog-price-savings,
  :root[data-store="shop"] #shop-product-grid .catalog-price-savings {
    padding: 4px 7px;
    font-size: 10px;
    white-space: normal;
  }
}
