.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Explicit grid for custom wrappers */
.product-main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.product-gallery-column {
  width: 100%;
}
.product-details-column {
  width: 100%;
}

/* Hide duplicate summaries rendered inside our auxiliary wrapper; keep the top one */
.single-product .product-main-content .summary.entry-summary {
  display: none !important;
}

/* Keep only the injected comment form; hide any others on the page */
.single-product .comment-respond {
  display: none !important;
}
.single-product #tb-comment-respond .comment-respond {
  display: block !important;
}

/* ====== Reviews block (our injected container) ====== */
#tb-comment-respond {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
#tb-comment-respond ol.commentlist {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  padding: 10px 0 20px !important;
  margin: 0 !important;
  list-style: none !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for cleaner look */
}

#tb-comment-respond .commentlist::-webkit-scrollbar {
  display: none;
}
#tb-comment-respond ol.commentlist > li {
  flex: 0 0 calc(100% / 3 - 16px * 2 / 3) !important; /* Three items per row, accounting for gap */
  scroll-snap-align: start;
  list-style: none;
  box-sizing: border-box; /* Ensure consistent box model */
  max-width: calc(
    100% / 3 - 16px * 2 / 3
  ); /* Three items per row, accounting for gap */
}
@media (max-width: 768px) {
  #tb-comment-respond .commentlist > li {
    flex: 0 0 calc(50% - 8px) !important; /* Two items per row on medium screens, accounting for gap */
    max-width: calc(50% - 8px) !important;
  }
}
@media (max-width: 480px) {
  #tb-comment-respond .commentlist > li {
    flex: 0 0 100% !important; /* One item per row on small screens */
    max-width: 100% !important;
  }
}
#tb-comment-respond .comment_container {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  background: #fafafa;
}
#tb-comment-respond .commentlist img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
#tb-comment-respond .star-rating {
  color: #28a745;
  font-size: 18px;
  margin-bottom: 6px;
}
#tb-comment-respond .meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
#tb-comment-respond .description {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}
#tb-comment-respond .comment-form-rating label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
}

/* ====== Fix Woo star rendering ====== */
.woocommerce .star-rating,
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1.2;
  font-size: 14px;
  width: 6.2em; /* Adjusted width to fit all 5 stars with letter-spacing */
  font-family: inherit !important;
  display: inline-block;
  white-space: nowrap;
}

.woocommerce .star-rating::before,
.star-rating::before {
  content: "★★★★★" !important;
  color: #e0e0e0 !important;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  letter-spacing: 2px;
  white-space: nowrap;
}

.woocommerce .star-rating span,
.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em; /* hides the text by pushing it down */
}

.woocommerce .star-rating span::before,
.star-rating span::before {
  content: "★★★★★" !important;
  top: 0;
  position: absolute;
  left: 0;
  color: #ffb100 !important; /* Gold/Yellow stars */
  letter-spacing: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

/* For form rating */
.woocommerce p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
}

.woocommerce p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: inherit !important;
  content: "☆" !important;
  text-indent: 0;
  color: #ffb100;
}

.woocommerce p.stars a:hover ~ a::before {
  content: "☆" !important;
}

.woocommerce p.stars:hover a::before {
  content: "★" !important;
}

.woocommerce p.stars.selected a.active::before {
  content: "★" !important;
}

.woocommerce p.stars.selected a.active ~ a::before {
  content: "☆" !important;
}

.woocommerce p.stars.selected a:not(.active)::before {
  content: "★" !important;
}

.woocommerce-product-gallery {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
}

.summary.entry-summary {
  padding-top: 20px;
}

.product_title.entry-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

.woocommerce-product-rating .star-rating {
  font-size: 14px;
  width: 6.2em;
  margin-right: 5px;
}
.woocommerce-product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  line-height: 1;
}
.woocommerce-product-rating .woocommerce-review-link {
  font-size: 13px;
  color: var(--text-soft);
  text-decoration: none;
}
.woocommerce-product-rating .woocommerce-review-link:hover {
  color: var(--green);
}

p.price {
  font-size: 28px;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
}

.woocommerce-product-details__short-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Eco-conscious labels --- */
.eco-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0;
}

.eco-label {
  background-color: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.eco-label svg {
  width: 24px;
  height: 24px;
  fill: #28a745;
}

/* --- Variations --- */
.variations_form .variations {
  margin-bottom: 25px;
}

.variations label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  display: block;
}

.variations .label {
  display: none;
}

.variations select {
  display: none; /* Hide original select */
}

.color-swatches {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
  transition: box-shadow 0.2s;
}

.color-swatch.selected {
  box-shadow: 0 0 0 2px #0073e6;
}

/* --- Add to Cart & Shop Now Buttons --- */
.single_add_to_cart_button,
.shop_now_button {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  display: block;
  margin-bottom: 10px;
}

.single_add_to_cart_button {
  background-color: #28a745;
  color: #fff;
  border: none;
}

.shop_now_button {
  background-color: #222;
  color: #fff;
  text-decoration: none;
}

/* --- Customer Stories / Reviews --- */
#reviews {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

#reviews #comments h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
}

.woocommerce-Reviews-title {
  display: none;
}

#review_form_wrapper {
  margin-top: 40px;
}

.comment.byuser {
  background-color: #e9f5ea;
  border: 1px solid #d4e9d7;
  border-radius: 8px;
  padding: 25px;
  list-style: none;
}

.comment-text .star-rating {
  font-size: 18px;
  color: #28a745;
  margin-bottom: 15px;
}

.comment-text p {
  font-style: italic;
  color: #333;
  margin-bottom: 20px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.meta strong {
  font-weight: 600;
  color: #222;
}

.related.products h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .single-product div.product {
    grid-template-columns: 1fr;
  }
  .product-main-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Product Data Tabs (Description, Reviews, etc.) --- */
.woocommerce-tabs {
  clear: both;
  padding: 40px 0 0 0;
}

.woocommerce-tabs ul.tabs::before {
  display: none;
}

.woocommerce-tabs ul.tabs li {
  padding: 0 0 15px 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: color 0.3s;
  background: none;
  border-radius: 0;
}

.woocommerce-tabs ul.tabs li:hover {
  color: #222;
}

.woocommerce-tabs ul.tabs li.active {
  color: #222;
  border-bottom-color: #28a745;
  background: none;
}

.woocommerce-tabs .panel h2 {
  display: none;
}

/* --- Main Product Layout (Flexbox) --- */
.single-product div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: none;
}

.woocommerce-product-gallery {
  flex: 1 1 48%;
  position: relative; /* For badges */
  border: none;
  padding: 0;
}

.summary.entry-summary {
  flex: 1 1 48%;
  padding-top: 0;
}

/* Ensure tabs and related products are full-width below */
.woocommerce-tabs,
.related.products,
.upsells.products {
  flex-basis: 100%;
}

/* ── SALE BADGE ─────────────────────────────────────── */
.woocommerce span.onsale {
  background: var(--red) !important;
  color: #fff !important;
  font-family: var(--fb) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px !important;
  border-radius: 3px !important;
  min-height: unset !important;
  min-width: unset !important;
  line-height: 1.6 !important;
  width: auto !important;
  height: auto !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 5;
}

/* ECO badge — top right of gallery */
.woocommerce-product-gallery::before {
  content: "ECO-CONSCIOUS EDITION";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--eco-green);
  color: #fff;
  font-family: var(--fb);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 10;
  pointer-events: none;
}

/* ── GALLERY MAIN IMAGE ─────────────────────────────── */
.woocommerce-product-gallery__wrapper {
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-product-gallery__image {
  background: var(--cream);
  margin: 0 !important;
  overflow: hidden;
}
.woocommerce-product-gallery__image > a {
  display: block;
  overflow: hidden;
}
.woocommerce-product-gallery__image > a > img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px;
  object-fit: cover;
  display: block !important;
  transition: transform 0.5s ease;
}
.woocommerce-product-gallery__image:hover > a > img {
  transform: scale(1.03);
}
.woocommerce-product-gallery__trigger {
  display: none !important;
}

/* ── THUMBNAILS ─────────────────────────────────────── */
.flex-control-nav.flex-control-thumbs {
  display: flex !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  background: var(--cream) !important;
  list-style: none !important;
  overflow-x: auto;
}
.flex-control-thumbs li {
  list-style: none !important;
  width: auto !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.flex-control-thumbs li img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  border: 2px solid transparent !important;
  opacity: 0.55 !important;
  cursor: pointer;
  transition:
    border-color var(--t),
    opacity var(--t) !important;
  display: block !important;
}
.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
  border-color: var(--green) !important;
  opacity: 1 !important;
}

/* ── SUMMARY LAYOUT ─────────────────────────────────── */
.woocommerce div.product .summary.entry-summary {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

/* Product Title */
.woocommerce div.product .product_title.entry-title {
  font-family: var(--fh) !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  color: var(--charcoal) !important;
  margin: 0 !important;
  letter-spacing: -0.01em;
}

/* Star rating row */
.woocommerce div.product .woocommerce-product-rating {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}
.woocommerce .star-rating {
  color: var(--gold) !important;
  font-size: 14px !important;
}
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
  color: var(--gold) !important;
}
.woocommerce a.woocommerce-review-link {
  font-family: var(--fb) !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  text-decoration: none !important;
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--fb) !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  color: var(--charcoal) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  font-size: 16px !important;
  color: var(--muted) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  background: none !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description {
  font-family: var(--fb) !important;
  font-size: 13.5px !important;
  color: var(--mid) !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}
.woocommerce div.product .woocommerce-product-details__short-description p {
  margin: 0;
}

/* ── FEATURE PILLS ──────────────────────────────────── */
.tb-pills {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
.tb-pills span {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-family: var(--fb) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--mid) !important;
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
}

/* ── CURRENCY SELECTOR ──────────────────────────────── */
#alg_currency_selector {
  margin: 0 !important;
}
.wSelect.wSelect-theme-classic {
  border: 1px solid var(--border) !important;
  border-radius: 7px !important;
  font-family: var(--fb) !important;
  font-size: 13px !important;
  background: var(--cream) !important;
  color: var(--mid) !important;
}
.wSelect .wSelect-selected {
  padding: 8px 12px !important;
}
.wSelect .wSelect-options {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 0 7px 7px !important;
}
.wSelect .wSelect-option:hover {
  background: var(--cream) !important;
}
.alg_currency_select {
  appearance: none;
  border: 1px solid var(--border) !important;
  border-radius: 7px;
  background: var(--cream);
  font-family: var(--fb) !important;
  font-size: 13px !important;
  color: var(--mid);
  padding: 8px 30px 8px 12px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ── CART FORM ──────────────────────────────────────── */
.woocommerce div.product form.cart {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  margin: 4px 0 0 !important;
  flex-wrap: nowrap !important;
}

/* Quantity */
.woocommerce div.product form.cart div.quantity {
  display: flex !important;
  align-items: stretch !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  height: 48px !important;
  margin: 0 !important;
  background: #fff;
}
.woocommerce div.product form.cart div.quantity input.qty {
  width: 44px !important;
  height: 48px !important;
  border: none !important;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  background: transparent !important;
  font-family: var(--fb) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--charcoal) !important;
  text-align: center !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -moz-appearance: textfield !important;
}
.woocommerce
  div.product
  form.cart
  div.quantity
  input.qty::-webkit-outer-spin-button,
.woocommerce
  div.product
  form.cart
  div.quantity
  input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tb-qty {
  width: 36px;
  height: 48px;
  border: none;
  background: #f5f5f3;
  font-size: 17px;
  color: #666;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tb-qty:hover {
  background: #e8e8e6;
}

/* ADD TO CART — bright green
.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--green-btn) !important;
  color: #fff !important;
  font-family: var(--fb) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 8px !important;
  height: 48px !important;
  padding: 0 22px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  transition:
    background var(--t),
    transform var(--t) !important;
  box-shadow: none !important;
  white-space: nowrap;
} */
.woocommerce div.product form.cart .single_add_to_cart_button::before {
  content: "";
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='white' stroke-width='2.2' viewBox='0 0 24 24'%3E%3Cpath d='M6 2 3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4zM3 6h18M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E")
    center/contain no-repeat;
  flex-shrink: 0;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: #25a660 !important;
  transform: translateY(-1px) !important;
}

/* SHOP NOW — black */
.tb-shop-now {
  background: var(--black-btn) !important;
  color: #fff !important;
  font-family: var(--fb) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 8px !important;
  height: 48px !important;
  padding: 0 22px !important;
  cursor: pointer !important;
  white-space: nowrap;
  transition: background var(--t) !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}
.tb-shop-now:hover {
  background: #333 !important;
}

/* Shipping note */
.tb-ship {
  font-family: var(--fb);
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}

/* ── PRODUCT META ────────────────────────────────────── */
.woocommerce div.product .product_meta {
  font-family: var(--fb) !important;
  font-size: 12.5px !important;
  color: var(--muted) !important;
  margin: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--border);
}
.woocommerce div.product .product_meta a {
  color: var(--green) !important;
  text-decoration: none;
}
.woocommerce div.product .product_meta span {
  display: block;
  margin-bottom: 3px;
}

/* ── REVIEWS / CUSTOMER STORIES ─────────────────────── */
.woocommerce #reviews {
  padding: 48px 0 !important;
  border-top: 1px solid var(--border);
}
.woocommerce-Reviews-title,
.woocommerce #reviews h2 {
  font-family: var(--fh) !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  color: var(--charcoal) !important;
  margin: 0 0 20px !important;
}

.tb-reviews-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
  padding: 0; /* Remove padding from container */
  box-sizing: border-box; /* Include padding in width */
}
.tb-reviews-slider {
  overflow: hidden;
  width: 100%;
  min-width: 0; /* Allow flex item to shrink */
  flex: 1; /* Ensure it takes available space */
}
.tb-slider-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.tb-slider-btn:hover {
  background: var(--cream);
  color: var(--green);
}
.tb-slider-btn.prev {
  left: 0px; /* Adjusted position */
}
.tb-slider-btn.next {
  right: 0px; /* Adjusted position */
}
@media (max-width: 768px) {
  .tb-slider-btn {
    display: none !important; /* Hide buttons on mobile, rely on swipe */
  }
}

#tb-comment-respond ol.commentlist li .comment-text {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#tb-comment-respond ol.commentlist li .description p {
  font-family: var(--fb) !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: var(--text-mid) !important;
  font-style: italic !important;
  margin: 0 !important;
}
#tb-comment-respond ol.commentlist li .woocommerce-review__author {
  font-family: var(--fb) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  display: block !important;
  padding-top: 10px !important;
  border-top: 1px solid var(--border) !important;
  margin-top: 6px !important;
}
#tb-comment-respond ol.commentlist li .woocommerce-review__dash {
  display: none !important;
}
#tb-comment-respond ol.commentlist li .woocommerce-review__published-date,
#tb-comment-respond ol.commentlist li .woocommerce-review__verified {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.45) !important;
}

/* ── RELATED / YOU MAY ALSO LIKE ─────────────────────── */
.woocommerce .related.products,
.woocommerce .upsells.products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--border);
  padding-top: 48px !important;
}
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
  font-family: var(--fh) !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: var(--charcoal) !important;
  margin: 0 0 24px !important;
}
.woocommerce .related ul.products,
.woocommerce .upsells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  text-align: left !important;
  float: none !important;
  width: auto !important;
}
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  background: var(--cream) !important;
  border-radius: 10px !important;
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-bottom: 10px !important;
  transition: transform 0.35s ease !important;
}
.woocommerce ul.products li.product:hover img {
  transform: scale(1.04) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--fb) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--charcoal) !important;
  padding: 0 !important;
  margin: 0 0 3px !important;
}
.woocommerce ul.products li.product .price {
  font-family: var(--fb) !important;
  font-size: 13px !important;
  color: var(--mid) !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product .price ins {
  background: none !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  color: var(--charcoal) !important;
}
.woocommerce ul.products li.product .price del {
  color: var(--muted) !important;
}
.woocommerce ul.products li.product a.button {
  display: none !important;
}

/* ── TABS ────────────────────────────────────────────── */
/* .woocommerce div.product .woocommerce-tabs {
  padding: 48px 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--border);
} */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 0 !important;
  border-bottom: 2px solid var(--border) !important;
  padding: 0 !important;
  margin: 0 0 28px !important;
  background: none !important;
  list-style: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--fb) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  padding: 10px 20px !important;
  display: block;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color var(--t),
    border-color var(--t);
  text-decoration: none;
  background: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--charcoal) !important;
  border-bottom-color: var(--green) !important;
  background: none !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
  font-family: var(--fb) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--mid) !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
}

/* ── NOTICES ──────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--green) !important;
  border-radius: 8px !important;
  font-family: var(--fb) !important;
  background: #f0faf4 !important;
}
.woocommerce-message a.button {
  background: var(--green-btn) !important;
  border-radius: 6px !important;
}

/* ── FADE IN ANIMATION ─────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.woocommerce div.product .summary > * {
  animation: fadeUp 0.4s ease both;
}
.woocommerce div.product .summary > *:nth-child(1) {
  animation-delay: 0.05s;
}
.woocommerce div.product .summary > *:nth-child(2) {
  animation-delay: 0.1s;
}
.woocommerce div.product .summary > *:nth-child(3) {
  animation-delay: 0.15s;
}
.woocommerce div.product .summary > *:nth-child(4) {
  animation-delay: 0.2s;
}
.woocommerce div.product .summary > *:nth-child(5) {
  animation-delay: 0.25s;
}
.woocommerce div.product .summary > *:nth-child(6) {
  animation-delay: 0.3s;
}
.woocommerce div.product .summary > *:nth-child(7) {
  animation-delay: 0.35s;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 860px) {
  .woocommerce div.product {
    grid-template-columns: 1fr !important;
  }
  .woocommerce div.product .summary.entry-summary {
    padding: 24px 16px !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .woocommerce-product-gallery {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .woocommerce .related ul.products,
  .woocommerce .upsells ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 540px) {
  .woocommerce div.product form.cart {
    flex-wrap: wrap !important;
  }
  .woocommerce div.product form.cart .single_add_to_cart_button {
    flex: 1 !important;
  }
}
.woocommerce-tabs.wc-tabs-wrapper .related.products {
  display: none;
}

/* Ensure custom reviews title is visible on single product */
body.single-product #reviews #comments .woocommerce-Reviews-title {
  display: block !important;
  margin: 0 0 18px !important;
  font-size: 30px !important;
  line-height: 1.2;
  color: var(--text, #1a1a18);
}

@media (max-width: 768px) {
  body.single-product #reviews #comments .woocommerce-Reviews-title {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }
}

