/* ============================================================
   Nexa Product Elegance v1
   Scoped WooCommerce restyle for nexatechcore.com
   - No template overrides. Astra + WooCommerce templates stay.
   - Every rule is scoped to the single-product page
     (body.single-product) or the shop / category archives
     (body.post-type-archive-product, body.tax-product_cat,
     body.tax-product_tag). Nothing leaks to the rest of the site.
   - Brand: blue #0866ff · ink #101b3f · light bg #f5f8ff
     Fonts: Inter (body) + Space Grotesk (headings)
   - Apply: Customizer -> Additional CSS (see README.md)
   ============================================================ */

/* ------------------------------------------------------------
   1. PAGE BASE — both scopes
   ------------------------------------------------------------ */
body.single-product,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  background: #f5f8ff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.single-product .woocommerce,
body.post-type-archive-product .woocommerce,
body.tax-product_cat .woocommerce,
body.tax-product_tag .woocommerce {
  color: #101b3f;
}

body.single-product .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
  padding-top: 28px;
  padding-bottom: 56px;
}

/* ------------------------------------------------------------
   2. BREADCRUMBS (single product)
   ------------------------------------------------------------ */
body.single-product .woocommerce-breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0 0 22px;
  letter-spacing: 0.01em;
}

body.single-product .woocommerce-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

body.single-product .woocommerce-breadcrumb a:hover {
  color: #0866ff;
}

/* ------------------------------------------------------------
   3. NOTICES (single + archive)
   ------------------------------------------------------------ */
body.single-product .woocommerce-message,
body.post-type-archive-product .woocommerce-message,
body.tax-product_cat .woocommerce-message,
body.tax-product_tag .woocommerce-message {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  border-top: 1px solid #a6f4c5;
  border-radius: 12px;
  color: #067647;
  box-shadow: 0 8px 24px rgba(16, 27, 63, 0.06);
  padding: 14px 18px 14px 52px;
  font-size: 14.5px;
}

body.single-product .woocommerce-message::before,
body.post-type-archive-product .woocommerce-message::before,
body.tax-product_cat .woocommerce-message::before,
body.tax-product_tag .woocommerce-message::before {
  color: #12b76a;
  top: 14px;
  left: 18px;
}

body.single-product .woocommerce-message .button,
body.post-type-archive-product .woocommerce-message .button,
body.tax-product_cat .woocommerce-message .button,
body.tax-product_tag .woocommerce-message .button {
  background: #0866ff;
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 13.5px;
}

body.single-product .woocommerce-info,
body.post-type-archive-product .woocommerce-info,
body.tax-product_cat .woocommerce-info,
body.tax-product_tag .woocommerce-info {
  background: #eef4ff;
  border: 1px solid #c7dcff;
  border-top: 1px solid #c7dcff;
  border-radius: 12px;
  color: #101b3f;
  padding: 14px 18px 14px 52px;
  font-size: 14.5px;
}

body.single-product .woocommerce-info::before,
body.post-type-archive-product .woocommerce-info::before,
body.tax-product_cat .woocommerce-info::before,
body.tax-product_tag .woocommerce-info::before {
  color: #0866ff;
  top: 14px;
  left: 18px;
}

body.single-product .woocommerce-error,
body.post-type-archive-product .woocommerce-error,
body.tax-product_cat .woocommerce-error,
body.tax-product_tag .woocommerce-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-top: 1px solid #fecdca;
  border-radius: 12px;
  color: #b42318;
  padding: 14px 18px 14px 52px;
  font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(16, 27, 63, 0.06);
}

body.single-product .woocommerce-error::before,
body.post-type-archive-product .woocommerce-error::before,
body.tax-product_cat .woocommerce-error::before,
body.tax-product_tag .woocommerce-error::before {
  color: #f04438;
  top: 14px;
  left: 18px;
}

/* ------------------------------------------------------------
   4. SALE BADGE (single + archive) — blue pill
   ------------------------------------------------------------ */
body.single-product .woocommerce .onsale,
body.post-type-archive-product .woocommerce ul.products li.product .onsale,
body.tax-product_cat .woocommerce ul.products li.product .onsale,
body.tax-product_tag .woocommerce ul.products li.product .onsale {
  background: linear-gradient(135deg, #0866ff 0%, #3d8bff 100%);
  color: #fff;
  border-radius: 999px;
  min-height: 0;
  min-width: 0;
  width: auto;
  height: auto;
  line-height: 1;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(8, 102, 255, 0.35);
  z-index: 5;
}

/* ------------------------------------------------------------
   5. GALLERY (single product)
   ------------------------------------------------------------ */
body.single-product .woocommerce-product-gallery {
  background: #fff;
  border: 1px solid #e3ebfb;
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(16, 27, 63, 0.08);
  padding: 14px;
  box-sizing: border-box;
}

body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

body.single-product .woocommerce-product-gallery__image img {
  border-radius: 14px;
  display: block;
  width: 100%;
}

body.single-product .woocommerce-product-gallery .flex-viewport {
  border-radius: 14px;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li {
  width: 72px;
  float: none;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img {
  border: 1px solid #e3ebfb;
  border-radius: 10px;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active,
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img:hover {
  border-color: #0866ff;
  opacity: 1;
}

/* Zoom / lightbox trigger — keep it subtle */
body.single-product .woocommerce-product-gallery__trigger {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e3ebfb;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(16, 27, 63, 0.10);
  top: 12px;
  right: 12px;
}

/* ------------------------------------------------------------
   6. SUMMARY — eyebrow, title, rating, price (single product)
   ------------------------------------------------------------ */
body.single-product .summary .single-product-category a,
body.single-product .summary .ast-woo-single-category a,
body.single-product .summary .product-category a,
body.single-product .summary a[rel="tag"]:first-of-type {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0866ff;
  text-decoration: none;
  margin-bottom: 10px;
}

body.single-product .summary .product_title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #101b3f;
  margin: 0 0 14px;
}

body.single-product .woocommerce-product-rating {
  margin-bottom: 14px;
  line-height: 1;
}

body.single-product .woocommerce-product-rating .star-rating {
  color: #f59e0b;
  font-size: 16px;
  margin: 0 10px 0 0;
}

body.single-product .woocommerce-product-rating .woocommerce-review-link {
  font-size: 13.5px;
  color: #64748b;
  text-decoration: none;
}

body.single-product .woocommerce-product-rating .woocommerce-review-link:hover {
  color: #0866ff;
}

body.single-product .summary .price {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: #0866ff;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

body.single-product .summary .price del {
  color: #94a3b8;
  font-size: 20px;
  font-weight: 600;
  opacity: 1;
}

body.single-product .summary .price ins {
  text-decoration: none;
  background: transparent;
}

/* "You save" pill — element lives at the top of the short
   description (class .nxprod-save), right under the price */
body.single-product .nxprod-save {
  display: inline-flex;
  align-items: center;
  background: #e8f1ff;
  border: 1px solid #c7dcff;
  color: #0866ff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 2px 0 4px;
}

/* ------------------------------------------------------------
   7. SHORT DESCRIPTION + CHECK LIST + TRUST STRIP
   ------------------------------------------------------------ */
body.single-product .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.75;
  color: #475569;
  margin-top: 14px;
}

body.single-product .woocommerce-product-details__short-description p {
  margin: 0 0 14px;
}

body.single-product .woocommerce-product-details__short-description strong {
  color: #101b3f;
}

body.single-product ul.nxprod-checks {
  list-style: none;
  margin: 18px 0 20px;
  padding: 0;
}

body.single-product ul.nxprod-checks li {
  position: relative;
  padding: 5px 0 5px 36px;
  font-size: 15.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.55;
}

body.single-product ul.nxprod-checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0866ff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

body.single-product .nxprod-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 4px 0 8px;
}

body.single-product .nxprod-trust .nxprod-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f8ff;
  border: 1px solid #e3ebfb;
  border-radius: 14px;
  padding: 11px 14px;
}

body.single-product .nxprod-trust .nxprod-trust-item svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  stroke: #0866ff;
}

body.single-product .nxprod-trust .nxprod-trust-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #101b3f;
}

/* ------------------------------------------------------------
   8. CART ROW — quantity + Add to Cart (single product)
   ------------------------------------------------------------ */
body.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 22px 0 20px;
}

body.single-product form.cart .quantity {
  float: none;
  margin: 0;
}

body.single-product form.cart .quantity .qty {
  height: 52px;
  width: 78px;
  border: 1.5px solid #d7e0f4;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: #101b3f;
  text-align: center;
  padding: 0 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.single-product form.cart .quantity .qty:focus {
  border-color: #0866ff;
  box-shadow: 0 0 0 4px rgba(8, 102, 255, 0.14);
  outline: none;
}

body.single-product .single_add_to_cart_button,
body.single-product .single_add_to_cart_button.button.alt {
  background: linear-gradient(135deg, #0866ff 0%, #0057e0 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  height: 52px;
  padding: 0 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(8, 102, 255, 0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

body.single-product .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #1a74ff 0%, #0866ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(8, 102, 255, 0.38);
}

body.single-product .single_add_to_cart_button:active {
  transform: scale(0.98);
  box-shadow: 0 8px 18px rgba(8, 102, 255, 0.28);
}

body.single-product .single_add_to_cart_button:focus-visible,
body.post-type-archive-product .woocommerce ul.products li.product .button:focus-visible,
body.tax-product_cat .woocommerce ul.products li.product .button:focus-visible,
body.tax-product_tag .woocommerce ul.products li.product .button:focus-visible {
  outline: 3px solid rgba(8, 102, 255, 0.45);
  outline-offset: 2px;
}

body.single-product .stock.in-stock {
  color: #067647;
  font-weight: 600;
  font-size: 14.5px;
  margin: 0 0 14px;
}

body.single-product .stock.out-of-stock {
  color: #b42318;
  font-weight: 600;
  font-size: 14.5px;
  margin: 0 0 14px;
}

/* ------------------------------------------------------------
   9. PRODUCT META — SKU / categories / tags (single product)
   ------------------------------------------------------------ */
body.single-product .product_meta {
  border-top: 1px solid #e3ebfb;
  padding-top: 18px;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
}

body.single-product .product_meta .sku_wrapper,
body.single-product .product_meta .posted_in,
body.single-product .product_meta .tagged_as {
  display: block;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

body.single-product .product_meta .sku_wrapper .sku {
  color: #101b3f;
  font-weight: 600;
}

body.single-product .product_meta a {
  color: #0866ff;
  font-weight: 600;
  text-decoration: none;
}

body.single-product .product_meta a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   10. TABS (single product)
   ------------------------------------------------------------ */
body.single-product .woocommerce-tabs {
  margin-top: 52px;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  padding: 0 4px;
  border-bottom: 2px solid #e3ebfb;
  overflow: visible;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none;
  content: none;
  border: none;
  box-shadow: none;
}

body.single-product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

body.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: #101b3f;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  background: transparent;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #0866ff;
  box-shadow: inset 0 -3px 0 #0866ff;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  background: #fff;
  border: 1px solid #e3ebfb;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(16, 27, 63, 0.06);
  padding: 28px;
  margin-top: 22px;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #101b3f;
  margin: 0 0 14px;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #101b3f;
  margin: 22px 0 10px;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel p,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel li {
  font-size: 15.5px;
  line-height: 1.75;
  color: #475569;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel strong {
  color: #101b3f;
}

/* Reviews tab bits */
body.single-product .woocommerce-tabs #reviews .woocommerce-Reviews-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: #101b3f;
}

body.single-product .woocommerce-tabs #respond .form-submit .submit {
  background: linear-gradient(135deg, #0866ff 0%, #0057e0 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 700;
  border: none;
}

/* ------------------------------------------------------------
   11. RELATED / UPSELLS HEADINGS (single product)
   ------------------------------------------------------------ */
body.single-product .related.products,
body.single-product .upsells.products {
  margin-top: 56px;
}

body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #101b3f;
  margin: 0 0 22px;
}

/* ------------------------------------------------------------
   12. SHOP ARCHIVE — header, count, ordering
   ------------------------------------------------------------ */
body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_tag .woocommerce-products-header__title,
body.post-type-archive-product .page-title,
body.tax-product_cat .page-title,
body.tax-product_tag .page-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #101b3f;
  margin: 0 0 10px;
}

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
  font-size: 14px;
  color: #64748b;
  margin: 10px 0 22px;
  padding: 0;
  float: none;
  display: inline-block;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
  margin: 0 0 22px;
}

body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
  background: #fff;
  border: 1.5px solid #d7e0f4;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #101b3f;
  cursor: pointer;
}

body.post-type-archive-product .woocommerce-ordering select:focus,
body.tax-product_cat .woocommerce-ordering select:focus,
body.tax-product_tag .woocommerce-ordering select:focus {
  border-color: #0866ff;
  box-shadow: 0 0 0 4px rgba(8, 102, 255, 0.12);
  outline: none;
}

/* ------------------------------------------------------------
   13. SHOP ARCHIVE — product cards
   (applies on shop, category archives AND related products
   on the single-product page)
   ------------------------------------------------------------ */
body.post-type-archive-product .woocommerce ul.products li.product,
body.tax-product_cat .woocommerce ul.products li.product,
body.tax-product_tag .woocommerce ul.products li.product,
body.single-product .woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #e3ebfb;
  border-radius: 18px;
  overflow: hidden;
  padding: 0 0 18px;
  box-shadow: 0 6px 22px rgba(16, 27, 63, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.post-type-archive-product .woocommerce ul.products li.product:hover,
body.tax-product_cat .woocommerce ul.products li.product:hover,
body.tax-product_tag .woocommerce ul.products li.product:hover,
body.single-product .woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: #c7dcff;
  box-shadow: 0 20px 44px rgba(16, 27, 63, 0.13);
}

body.post-type-archive-product .woocommerce ul.products li.product a img,
body.tax-product_cat .woocommerce ul.products li.product a img,
body.tax-product_tag .woocommerce ul.products li.product a img,
body.single-product .woocommerce ul.products li.product a img {
  border-radius: 17px 17px 0 0;
  margin: 0;
  display: block;
  width: 100%;
}

/* Astra shop thumbnail wrap, when present */
body.post-type-archive-product .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.tax-product_cat .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.tax-product_tag .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.single-product .woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  border-radius: 17px 17px 0 0;
  overflow: hidden;
  margin: 0;
}

/* Astra shop summary wrap, when present */
body.post-type-archive-product .woocommerce ul.products li.product .astra-shop-summary-wrap,
body.tax-product_cat .woocommerce ul.products li.product .astra-shop-summary-wrap,
body.tax-product_tag .woocommerce ul.products li.product .astra-shop-summary-wrap,
body.single-product .woocommerce ul.products li.product .astra-shop-summary-wrap {
  padding: 16px 18px 2px;
}

/* Card category (small blue label above the title) */
body.post-type-archive-product .woocommerce ul.products li.product .ast-woo-shop-product-category,
body.tax-product_cat .woocommerce ul.products li.product .ast-woo-shop-product-category,
body.tax-product_tag .woocommerce ul.products li.product .ast-woo-shop-product-category,
body.single-product .woocommerce ul.products li.product .ast-woo-shop-product-category,
body.post-type-archive-product .woocommerce ul.products li.product .astra-shop-loop-category,
body.tax-product_cat .woocommerce ul.products li.product .astra-shop-loop-category,
body.tax-product_tag .woocommerce ul.products li.product .astra-shop-loop-category,
body.single-product .woocommerce ul.products li.product .astra-shop-loop-category,
body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__category,
body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__category,
body.tax-product_tag .woocommerce ul.products li.product .woocommerce-loop-product__category,
body.single-product .woocommerce ul.products li.product .woocommerce-loop-product__category {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #0866ff;
  margin: 16px 18px 0;
}

/* Card title — 2-line clamp */
body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.single-product .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: "Inter", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #101b3f;
  margin: 8px 18px 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* When Astra summary wrap is used, inner margins come from the wrap */
body.post-type-archive-product .woocommerce ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title,
body.tax-product_tag .woocommerce ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title,
body.single-product .woocommerce ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title {
  margin-left: 0;
  margin-right: 0;
}

/* Card rating */
body.post-type-archive-product .woocommerce ul.products li.product .star-rating,
body.tax-product_cat .woocommerce ul.products li.product .star-rating,
body.tax-product_tag .woocommerce ul.products li.product .star-rating,
body.single-product .woocommerce ul.products li.product .star-rating {
  color: #f59e0b;
  font-size: 13px;
  margin: 8px 18px 0;
}

/* Card price */
body.post-type-archive-product .woocommerce ul.products li.product .price,
body.tax-product_cat .woocommerce ul.products li.product .price,
body.tax-product_tag .woocommerce ul.products li.product .price,
body.single-product .woocommerce ul.products li.product .price {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #0866ff;
  margin: 8px 18px 0;
}

body.post-type-archive-product .woocommerce ul.products li.product .price del,
body.tax-product_cat .woocommerce ul.products li.product .price del,
body.tax-product_tag .woocommerce ul.products li.product .price del,
body.single-product .woocommerce ul.products li.product .price del {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  margin-right: 6px;
}

body.post-type-archive-product .woocommerce ul.products li.product .price ins,
body.tax-product_cat .woocommerce ul.products li.product .price ins,
body.tax-product_tag .woocommerce ul.products li.product .price ins,
body.single-product .woocommerce ul.products li.product .price ins {
  text-decoration: none;
  background: transparent;
  font-weight: 800;
}

/* Card Add to Cart — pill button */
body.post-type-archive-product .woocommerce ul.products li.product .button,
body.tax-product_cat .woocommerce ul.products li.product .button,
body.tax-product_tag .woocommerce ul.products li.product .button,
body.single-product .woocommerce ul.products li.product .button {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #0866ff 0%, #0057e0 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  margin: 14px 18px 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(8, 102, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.post-type-archive-product .woocommerce ul.products li.product .button:hover,
body.tax-product_cat .woocommerce ul.products li.product .button:hover,
body.tax-product_tag .woocommerce ul.products li.product .button:hover,
body.single-product .woocommerce ul.products li.product .button:hover {
  background: linear-gradient(135deg, #1a74ff 0%, #0866ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(8, 102, 255, 0.32);
  color: #fff;
}

body.post-type-archive-product .woocommerce ul.products li.product .added_to_cart,
body.tax-product_cat .woocommerce ul.products li.product .added_to_cart,
body.tax-product_tag .woocommerce ul.products li.product .added_to_cart,
body.single-product .woocommerce ul.products li.product .added_to_cart {
  display: block;
  text-align: center;
  margin: 10px 18px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0866ff;
}

/* Archive pagination */
body.post-type-archive-product .woocommerce-pagination ul,
body.tax-product_cat .woocommerce-pagination ul,
body.tax-product_tag .woocommerce-pagination ul {
  border: none;
}

body.post-type-archive-product .woocommerce-pagination ul li,
body.tax-product_cat .woocommerce-pagination ul li,
body.tax-product_tag .woocommerce-pagination ul li {
  border: none;
  margin: 0 3px;
}

body.post-type-archive-product .woocommerce-pagination ul li a,
body.post-type-archive-product .woocommerce-pagination ul li span,
body.tax-product_cat .woocommerce-pagination ul li a,
body.tax-product_cat .woocommerce-pagination ul li span,
body.tax-product_tag .woocommerce-pagination ul li a,
body.tax-product_tag .woocommerce-pagination ul li span {
  border: 1px solid #e3ebfb;
  background: #fff;
  border-radius: 10px;
  color: #101b3f;
  font-weight: 600;
  padding: 9px 14px;
}

body.post-type-archive-product .woocommerce-pagination ul li span.current,
body.tax-product_cat .woocommerce-pagination ul li span.current,
body.tax-product_tag .woocommerce-pagination ul li span.current {
  background: #0866ff;
  border-color: #0866ff;
  color: #fff;
}

/* ------------------------------------------------------------
   14. TABLET / MOBILE — <= 768px
   ------------------------------------------------------------ */
@media (max-width: 768px) {

  body.single-product .site-content,
  body.post-type-archive-product .site-content,
  body.tax-product_cat .site-content,
  body.tax-product_tag .site-content {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  /* Single product: stack gallery + summary full width */
  body.single-product .woocommerce-product-gallery,
  body.single-product .summary.entry-summary {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  body.single-product .summary .product_title {
    font-size: 27px;
  }

  body.single-product .summary .price {
    font-size: 26px;
  }

  body.single-product .summary .price del {
    font-size: 17px;
  }

  body.single-product .woocommerce-product-details__short-description {
    font-size: 15.5px;
  }

  /* Cart row wraps; button grows, full width on small phones below */
  body.single-product form.cart {
    gap: 10px;
  }

  body.single-product form.cart .single_add_to_cart_button {
    flex: 1 1 auto;
    padding: 0 22px;
  }

  /* Tabs scroll horizontally instead of crushing */
  body.single-product .woocommerce-tabs ul.tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
  }

  body.single-product .woocommerce-tabs ul.tabs li {
    flex: 0 0 auto;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    padding: 12px 16px;
    white-space: nowrap;
  }

  body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 20px;
    border-radius: 14px;
  }

  body.single-product .related.products > h2,
  body.single-product .upsells.products > h2 {
    font-size: 22px;
  }

  body.post-type-archive-product .woocommerce-products-header__title,
  body.tax-product_cat .woocommerce-products-header__title,
  body.tax-product_tag .woocommerce-products-header__title,
  body.post-type-archive-product .page-title,
  body.tax-product_cat .page-title,
  body.tax-product_tag .page-title {
    font-size: 26px;
  }

  /* Cards: two per row on small tablets / large phones */
  body.post-type-archive-product .woocommerce ul.products li.product,
  body.tax-product_cat .woocommerce ul.products li.product,
  body.tax-product_tag .woocommerce ul.products li.product,
  body.single-product .woocommerce ul.products li.product {
    border-radius: 16px;
  }
}

/* ------------------------------------------------------------
   15. SMALL PHONES — <= 480px
   ------------------------------------------------------------ */
@media (max-width: 480px) {

  /* Add to Cart goes full width under the quantity box */
  body.single-product form.cart .quantity .qty {
    height: 50px;
  }

  body.single-product form.cart .single_add_to_cart_button {
    flex: 1 1 100%;
    width: 100%;
    height: 50px;
  }

  body.single-product .nxprod-trust {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.single-product .nxprod-trust .nxprod-trust-item {
    padding: 9px 11px;
    gap: 8px;
  }

  body.single-product .nxprod-trust .nxprod-trust-label {
    font-size: 12.5px;
  }

  body.single-product ul.nxprod-checks li {
    font-size: 15px;
  }

  /* Cards: one per row for maximum elegance */
  body.post-type-archive-product .woocommerce ul.products li.product,
  body.tax-product_cat .woocommerce ul.products li.product,
  body.tax-product_tag .woocommerce ul.products li.product {
    width: 100%;
    float: none;
    margin-right: 0;
  }
}

/* ------------------------------------------------------------
   16. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {

  body.single-product .single_add_to_cart_button,
  body.post-type-archive-product .woocommerce ul.products li.product,
  body.tax-product_cat .woocommerce ul.products li.product,
  body.tax-product_tag .woocommerce ul.products li.product,
  body.single-product .woocommerce ul.products li.product,
  body.post-type-archive-product .woocommerce ul.products li.product .button,
  body.tax-product_cat .woocommerce ul.products li.product .button,
  body.tax-product_tag .woocommerce ul.products li.product .button,
  body.single-product .woocommerce ul.products li.product .button {
    transition: none;
  }

  body.single-product .single_add_to_cart_button:hover,
  body.post-type-archive-product .woocommerce ul.products li.product:hover,
  body.tax-product_cat .woocommerce ul.products li.product:hover,
  body.tax-product_tag .woocommerce ul.products li.product:hover,
  body.single-product .woocommerce ul.products li.product:hover {
    transform: none;
  }
}
