/* =========================================================
   FAISAL TALEB LLC — SINGLE PRODUCT PRO
   Astra + Native WooCommerce Gallery
   ========================================================= */

body.single-product {
  --ft-primary: #0f766e;
  --ft-primary-dark: #134e4a;
  --ft-deep: #172a2a;
  --ft-accent: #d97706;
  --ft-accent-light: #fde68a;
  --ft-heading: #1f2937;
  --ft-text: #475569;
  --ft-muted: #64748b;
  --ft-white: #ffffff;
  --ft-soft: #fffdf7;
  --ft-ivory: #f1f7f5;
  --ft-border: rgba(19, 78, 74, .13);
  background: #fff;
}

body.single-product .site-content,
body.single-product #content {
  width: 100% !important;
  max-width: none !important;
}

body.single-product .site-content > .ast-container,
body.single-product #content > .ast-container,
body.single-product .ast-container {
  width: calc(100vw - 20px) !important;
  max-width: 1420px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

body.single-product .content-area,
body.single-product .site-main,
body.single-product article,
body.single-product .entry-content,
body.single-product .woocommerce div.product {
  width: 100% !important;
  max-width: none !important;
}

body.single-product .woocommerce div.product {
  display: block !important;
  margin: 30px auto 0 !important;
}

/* =========================================================
   HERO LAYOUT — reliable server-side wrapper
   ========================================================= */
body.single-product .ftllc-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: clamp(34px, 4.3vw, 66px);
  align-items: start;
  width: 100%;
  margin-bottom: 44px;
}

body.single-product .ftllc-product-hero > .woocommerce-product-gallery,
body.single-product .ftllc-product-hero > div.images,
body.single-product .ftllc-product-hero > .summary {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* =========================================================
   NATIVE WOOCOMMERCE GALLERY
   ========================================================= */
body.single-product .ftllc-product-hero .woocommerce-product-gallery {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 82px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: stretch;
  min-width: 0 !important;
  padding: 14px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(circle at 96% 4%, rgba(217,119,6,.07), transparent 29%),
    linear-gradient(145deg, #fff, #fffdf7) !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 44px rgba(31,41,55,.09) !important;
}

body.single-product .ftllc-product-hero .woocommerce-product-gallery .flex-viewport {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: clamp(500px, 43vw, 620px) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 14px !important;
}

/* FlexSlider owns width/transform on this wrapper. */
body.single-product .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.single-product .flex-viewport .woocommerce-product-gallery__image {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  text-align: center !important;
}

body.single-product .flex-viewport .woocommerce-product-gallery__image > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

body.single-product .flex-viewport .woocommerce-product-gallery__image > a > img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  margin: auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Desktop vertical thumbnails */
body.single-product .ftllc-product-hero .woocommerce-product-gallery .flex-control-thumbs {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 9px !important;
  width: 82px !important;
  height: clamp(500px, 43vw, 620px) !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 1px 4px 1px 1px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  list-style: none !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,118,110,.24) transparent;
}

body.single-product .flex-control-thumbs li {
  float: none !important;
  flex: 0 0 auto !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .flex-control-thumbs li img {
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
  padding: 3px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
  border: 1px solid rgba(19,78,74,.15) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  opacity: .62 !important;
  cursor: pointer !important;
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.single-product .flex-control-thumbs li img:hover {
  opacity: 1 !important;
  border-color: var(--ft-primary) !important;
  transform: translateY(-1px);
}

body.single-product .flex-control-thumbs li img.flex-active {
  opacity: 1 !important;
  border-color: var(--ft-accent) !important;
  box-shadow: 0 0 0 3px rgba(217,119,6,.13) !important;
}

/* Zoom/lightbox icon */
body.single-product .woocommerce-product-gallery__trigger {
  top: 19px !important;
  right: 19px !important;
  z-index: 65 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: 50% !important;
  box-shadow: 0 7px 18px rgba(31,41,55,.12) !important;
  text-decoration: none !important;
}

/* Sale badge */
body.single-product .ftllc-product-hero span.onsale {
  top: 19px !important;
  left: 19px !important;
  z-index: 70 !important;
  min-width: auto !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 7px 11px !important;
  color: var(--ft-deep) !important;
  background: #fff !important;
  border: 1px solid rgba(217,119,6,.42) !important;
  border-radius: 999px !important;
  box-shadow: 0 5px 15px rgba(31,41,55,.13) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* =========================================================
   SUMMARY
   ========================================================= */
body.single-product .ftllc-product-hero .summary {
  padding: 4px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.single-product .woocommerce-breadcrumb {
  margin: 0 0 11px !important;
  color: var(--ft-muted) !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
}

body.single-product .woocommerce-breadcrumb a,
body.single-product .summary .product_meta a {
  color: var(--ft-primary) !important;
  text-decoration: none !important;
}

body.single-product .ftllc-product-hero .product_title {
  margin: 7px 0 12px !important;
  color: var(--ft-heading) !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  letter-spacing: -1px !important;
}

body.single-product .ftllc-product-hero .summary .price {
  display: flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px !important;
  color: var(--ft-primary-dark) !important;
  font-size: clamp(24px, 2vw, 31px) !important;
  font-weight: 850 !important;
}

body.single-product .ftllc-product-hero .price del {
  color: #94a3b8 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

body.single-product .ftllc-product-hero .price ins {
  color: var(--ft-primary-dark) !important;
  text-decoration: none !important;
}

body.single-product .woocommerce-product-details__short-description {
  margin: 0 0 18px;
  color: var(--ft-text);
  font-size: 13px;
  line-height: 1.7;
}

/* Summary specification tables */
body.single-product .ftllc-product-hero .summary table {
  width: 100% !important;
  margin: 16px 0 !important;
  overflow: hidden;
  border: 1px solid var(--ft-border) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px !important;
  table-layout: fixed;
}

body.single-product .ftllc-product-hero .summary table th,
body.single-product .ftllc-product-hero .summary table td {
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ft-border) !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
}

body.single-product .ftllc-product-hero .summary table tr:last-child th,
body.single-product .ftllc-product-hero .summary table tr:last-child td {
  border-bottom: 0 !important;
}

body.single-product .ftllc-product-hero .summary table th {
  width: 31% !important;
  color: var(--ft-heading) !important;
  background: #fffdf7 !important;
  font-weight: 750 !important;
}

body.single-product .ftllc-product-hero .summary table td {
  color: var(--ft-text) !important;
  background: #fff !important;
}

/* Cart row */
body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form),
body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart {
  display: grid !important;
  grid-template-columns: 68px minmax(0,1fr) !important;
  align-items: stretch !important;
  gap: 9px !important;
  width: 100% !important;
  margin: 15px 0 13px !important;
  padding: 0 !important;
}

body.single-product .ftllc-product-hero .quantity {
  float: none !important;
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  margin: 0 !important;
}

body.single-product .ftllc-product-hero .quantity .qty {
  display: block;
  width: 100% !important;
  height: 49px !important;
  min-height: 49px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  color: var(--ft-heading) !important;
  background: #fff !important;
  border: 1px solid rgba(19,78,74,.20) !important;
  border-radius: 8px !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center !important;
}

body.single-product .ftllc-product-hero .summary .single_add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 49px !important;
  min-height: 49px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--ft-primary-dark), var(--ft-primary)) !important;
  border: 1px solid var(--ft-primary) !important;
  border-radius: 8px !important;
  box-shadow: 0 9px 20px rgba(15,118,110,.19) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

body.single-product .summary .product_meta {
  margin-top: 14px;
  padding-top: 13px;
  color: var(--ft-muted) !important;
  border-top: 1px solid var(--ft-border);
  font-size: 10px !important;
  line-height: 1.7;
}

body.single-product .summary a.compare,
body.single-product .summary .compare.button,
body.single-product .summary .woosc-btn,
body.single-product .summary .yith-wcwl-add-to-wishlist a,
body.single-product .summary .yith-wcwl-add-button a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 37px !important;
  margin-top: 7px !important;
  padding: 0 13px !important;
  color: var(--ft-primary-dark) !important;
  background: #fff !important;
  border: 1px solid rgba(19,78,74,.18) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* =========================================================
   TABS / DESCRIPTION CARD
   ========================================================= */
body.single-product .woocommerce div.product > .woocommerce-tabs {
  width: 100% !important;
  margin: 0 0 44px !important;
  padding: clamp(22px, 3vw, 34px) !important;
  background: #fff !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: 17px !important;
  box-shadow: 0 12px 34px rgba(31,41,55,.065) !important;
  box-sizing: border-box;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 23px !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--ft-border) !important;
}

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 !important;
}

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

body.single-product .woocommerce-tabs ul.tabs li a {
  position: relative;
  display: block;
  padding: 11px 0 !important;
  color: var(--ft-muted) !important;
  font-size: 11px;
  font-weight: 750 !important;
  text-decoration: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--ft-primary) !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--ft-primary), var(--ft-accent));
  border-radius: 999px 999px 0 0;
}

body.single-product .woocommerce-Tabs-panel {
  margin: 0 !important;
  color: var(--ft-text);
  font-size: 12px;
  line-height: 1.75;
}

body.single-product .woocommerce-tabs table {
  width: 100% !important;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--ft-border) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px !important;
}

body.single-product .woocommerce-tabs table th,
body.single-product .woocommerce-tabs table td {
  padding: 11px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ft-border) !important;
  font-size: 11px !important;
}

body.single-product .woocommerce-tabs table th {
  width: 34%;
  color: var(--ft-heading);
  background: #fffdf7;
  font-weight: 750;
}

body.single-product .woocommerce-tabs table tr:last-child th,
body.single-product .woocommerce-tabs table tr:last-child td {
  border-bottom: 0 !important;
}

/* =========================================================
   RELATED PRODUCTS — reference style
   ========================================================= */
body.single-product .woocommerce div.product > .related.products,
body.single-product .woocommerce div.product > .upsells {
  width: 100% !important;
  margin: 0 0 46px !important;
  padding: clamp(26px, 3vw, 40px) !important;
  background: linear-gradient(145deg, #fffdf7, #eef6f4) !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(31,41,55,.045) !important;
  box-sizing: border-box;
}

body.single-product .related.products > h2,
body.single-product .upsells > h2 {
  margin: 0 0 28px !important;
  color: var(--ft-heading) !important;
  font-size: clamp(30px, 3vw, 40px) !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  letter-spacing: -.8px !important;
}

body.single-product .related.products ul.products,
body.single-product .upsells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .upsells ul.products li.product {
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 16px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(31,41,55,.07) !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

body.single-product .related.products ul.products li.product:hover,
body.single-product .upsells ul.products li.product:hover {
  border-color: rgba(217,119,6,.43) !important;
  box-shadow: 0 18px 38px rgba(31,41,55,.12) !important;
  transform: translateY(-5px);
}

body.single-product .related.products li.product .astra-shop-thumbnail-wrap,
body.single-product .upsells li.product .astra-shop-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

body.single-product .related.products li.product .astra-shop-thumbnail-wrap img,
body.single-product .upsells li.product .astra-shop-thumbnail-wrap img,
body.single-product .related.products li.product > a > img,
body.single-product .upsells li.product > a > img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 10px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
}

body.single-product .related.products li.product .astra-shop-summary-wrap,
body.single-product .upsells li.product .astra-shop-summary-wrap {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  padding: 15px 16px 0 !important;
}

body.single-product .related.products .ast-woo-product-category,
body.single-product .upsells .ast-woo-product-category {
  display: block !important;
  margin: 0 0 7px !important;
  color: var(--ft-muted) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

body.single-product .related.products .woocommerce-loop-product__title,
body.single-product .upsells .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 16px 8px !important;
  overflow: hidden;
  color: var(--ft-heading) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.38 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.single-product .related.products li.product .price,
body.single-product .upsells li.product .price {
  display: flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 22px;
  margin: 0 16px 14px !important;
  color: var(--ft-primary-dark) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
}

body.single-product .related.products li.product .price del,
body.single-product .upsells li.product .price del {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

body.single-product .related.products li.product .button,
body.single-product .upsells li.product .button,
body.single-product .related.products li.product .add_to_cart_button,
body.single-product .upsells li.product .add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(100% - 32px) !important;
  min-height: 47px !important;
  margin: auto 16px 0 !important;
  padding: 0 14px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--ft-primary-dark), var(--ft-primary)) !important;
  border: 1px solid var(--ft-primary) !important;
  border-radius: 9px !important;
  box-shadow: 0 7px 18px rgba(15,118,110,.16) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
}

body.single-product .related.products li.product span.onsale,
body.single-product .upsells li.product span.onsale {
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  color: var(--ft-deep) !important;
  background: #fff !important;
  border: 1px solid rgba(19,78,74,.10) !important;
  border-radius: 999px !important;
  box-shadow: 0 5px 15px rgba(31,41,55,.14) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1100px) {
  body.single-product .ftllc-product-hero {
    grid-template-columns: minmax(0,1fr) minmax(340px,.88fr);
    gap: 27px;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells ul.products {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
}

/* =========================================================
   MOBILE / SMALL TABLET
   ========================================================= */
@media (max-width: 850px) {
  body.single-product .ftllc-product-hero {
    display: block !important;
    margin-bottom: 32px;
  }

  body.single-product .ftllc-product-hero .woocommerce-product-gallery {
    margin-bottom: 20px !important;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells ul.products {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

/* =========================================================
   MOBILE GALLERY
   ========================================================= */
@media (max-width: 767px) {
  body.single-product .ftllc-product-hero .woocommerce-product-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }

  body.single-product .ftllc-product-hero .woocommerce-product-gallery .flex-viewport {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 10px !important;
  }

  body.single-product .flex-viewport .woocommerce-product-gallery__image > a {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    padding: 5px !important;
  }

  body.single-product .ftllc-product-hero .woocommerce-product-gallery .flex-control-thumbs {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 7px !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
  }

  body.single-product .flex-control-thumbs li {
    flex: 0 0 61px !important;
    width: 61px !important;
    height: 61px !important;
    scroll-snap-align: start;
  }

  body.single-product .flex-control-thumbs li img {
    width: 59px !important;
    height: 59px !important;
  }

  body.single-product .ftllc-product-hero .product_title {
    font-size: 26px !important;
  }

  body.single-product .ftllc-product-hero .summary .price {
    font-size: 23px !important;
  }

  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form),
  body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart {
    grid-template-columns: 62px minmax(0,1fr) !important;
    gap: 8px !important;
  }

  body.single-product .ftllc-product-hero .quantity {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }

  body.single-product .woocommerce div.product > .related.products,
  body.single-product .woocommerce div.product > .upsells {
    padding: 20px 11px !important;
    border-radius: 15px !important;
  }

  body.single-product .related.products > h2,
  body.single-product .upsells > h2 {
    margin-bottom: 19px !important;
    font-size: 27px !important;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells ul.products {
    gap: 10px !important;
  }

  body.single-product .related.products ul.products li.product,
  body.single-product .upsells ul.products li.product {
    border-radius: 11px !important;
    padding-bottom: 10px !important;
  }

  body.single-product .related.products .woocommerce-loop-product__title,
  body.single-product .upsells .woocommerce-loop-product__title {
    min-height: 39px;
    margin-inline: 10px !important;
    font-size: 11px !important;
  }

  body.single-product .related.products li.product .price,
  body.single-product .upsells li.product .price {
    margin-inline: 10px !important;
    margin-bottom: 10px !important;
    font-size: 12px !important;
  }

  body.single-product .related.products li.product .button,
  body.single-product .upsells li.product .button {
    width: calc(100% - 20px) !important;
    min-height: 39px !important;
    margin: auto 10px 0 !important;
    padding: 0 5px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 420px) {
  body.single-product .ftllc-product-hero .product_title {
    font-size: 23px !important;
  }
}


/* =========================================================
   V1.1.0 — CART + READABILITY REFINEMENT
   Fixes the single-product purchase row and improves
   specification / product-detail text readability.
   ========================================================= */

/* ---------------------------------------------------------
   PRODUCT DETAILS — DESKTOP READABILITY
   --------------------------------------------------------- */
body.single-product .ftllc-product-hero .woocommerce-breadcrumb {
  font-size: 11.5px !important;
  line-height: 1.6 !important;
}

body.single-product .ftllc-product-hero .woocommerce-product-details__short-description,
body.single-product .ftllc-product-hero .summary .woocommerce-product-details__short-description {
  font-size: 14.5px !important;
  line-height: 1.75 !important;
}

body.single-product .ftllc-product-hero .summary table th,
body.single-product .ftllc-product-hero .summary table td,
body.single-product .ftllc-product-hero .summary .woocommerce-product-attributes th,
body.single-product .ftllc-product-hero .summary .woocommerce-product-attributes td {
  padding: 13px 14px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

body.single-product .ftllc-product-hero .summary table th,
body.single-product .ftllc-product-hero .summary .woocommerce-product-attributes th {
  font-weight: 800 !important;
}

body.single-product .ftllc-product-hero .summary .product_meta {
  font-size: 12px !important;
  line-height: 1.75 !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  font-size: 12.5px !important;
}

body.single-product .woocommerce-Tabs-panel,
body.single-product .woocommerce-Tabs-panel p,
body.single-product .woocommerce-Tabs-panel li {
  font-size: 14px !important;
  line-height: 1.75 !important;
}

body.single-product .woocommerce-tabs table th,
body.single-product .woocommerce-tabs table td,
body.single-product .woocommerce-Tabs-panel .woocommerce-product-attributes th,
body.single-product .woocommerce-Tabs-panel .woocommerce-product-attributes td {
  padding: 13px 15px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

/* ---------------------------------------------------------
   ADD TO CART — HARDENED SIMPLE-PRODUCT LAYOUT
   Explicit grid placement prevents Astra/add-on elements
   from pushing the button into the narrow quantity column.
   --------------------------------------------------------- */
body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  grid-template-rows: minmax(54px, auto) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 20px 0 16px !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
}

body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) > .quantity,
body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) .quantity {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  height: 54px !important;
  margin: 0 !important;
  float: none !important;
}

body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) .quantity .qty {
  display: block !important;
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  line-height: 54px !important;
}

body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) > .single_add_to_cart_button,
body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) .single_add_to_cart_button,
body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) button.single_add_to_cart_button {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Hide/neutralize common empty layout items that can become grid cells. */
body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) > input[type="hidden"],
body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) > script,
body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) > style {
  display: none !important;
}

/* ---------------------------------------------------------
   VARIABLE PRODUCTS — PURCHASE ROW
   --------------------------------------------------------- */
body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  grid-template-rows: 54px !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
}

body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart .quantity {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  height: 54px !important;
}

body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  font-size: 14px !important;
}

/* ---------------------------------------------------------
   MOBILE READABILITY + CART
   --------------------------------------------------------- */
@media (max-width: 767px) {
  body.single-product .ftllc-product-hero .woocommerce-product-details__short-description,
  body.single-product .ftllc-product-hero .summary .woocommerce-product-details__short-description {
    font-size: 14px !important;
  }

  body.single-product .ftllc-product-hero .summary table th,
  body.single-product .ftllc-product-hero .summary table td,
  body.single-product .ftllc-product-hero .summary .woocommerce-product-attributes th,
  body.single-product .ftllc-product-hero .summary .woocommerce-product-attributes td {
    padding: 11px 10px !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  body.single-product .woocommerce-Tabs-panel,
  body.single-product .woocommerce-Tabs-panel p,
  body.single-product .woocommerce-Tabs-panel li {
    font-size: 13.5px !important;
  }

  body.single-product .woocommerce-tabs table th,
  body.single-product .woocommerce-tabs table td {
    padding: 11px 10px !important;
    font-size: 12.5px !important;
  }

  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form),
  body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    grid-template-rows: 50px !important;
    gap: 9px !important;
  }

  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) > .quantity,
  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) .quantity,
  body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart .quantity {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: 50px !important;
  }

  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) .quantity .qty,
  body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart .quantity .qty {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    line-height: 50px !important;
    font-size: 14px !important;
  }

  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) .single_add_to_cart_button,
  body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 390px) {
  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form),
  body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) > .quantity,
  body.single-product .ftllc-product-hero .summary form.cart:not(.variations_form) .quantity,
  body.single-product .ftllc-product-hero .woocommerce-variation-add-to-cart .quantity {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }
}
