/**
 * Hot House — single product (Elementor Theme Builder + design system palette)
 */

/* -------------------------------------------------------------------------- */
/* Page shell                                                                 */
/* -------------------------------------------------------------------------- */

.hh-product-page {
  background: var(--hh-bg);
}

/* Cool modern palette on single product (no warm beige) */
body.hh-product-premium {
  --hh-product-bg: #ffffff;
  --hh-product-muted: #f4f6f8;
  --hh-product-line: #e2e6ea;
  --hh-product-ink: #0d1117;
  --hh-product-accent: #061d33;
  --hh-product-steel: #66707c;
}

body.hh-product-premium .hh-product-page,
body.hh-product-premium .hh-product-page__inner {
  background: var(--hh-product-bg);
}

/* -------------------------------------------------------------------------- */
/* Hero v2 — full bleed + bubble (Elementor [hh_product_hero_v2])             */
/* -------------------------------------------------------------------------- */

body.hh-product-premium .elementor-location-single,
body.hh-elementor-product .elementor-location-single {
  overflow-x: clip;
}

.hh-e-product-hero-root,
.hh-e-product-body-root {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hh-product-hero-v2 {
  position: relative;
  min-height: min(78vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--hh-navy, #061d33);
  overflow: hidden;
}

.hh-product-hero-v2__backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--hh-product-hero-bg);
  background-size: cover;
  background-position: center center;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hh-product-hero-v2__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(6, 29, 51, 0.35) 42%,
    rgba(6, 29, 51, 0.72) 100%
  );
  pointer-events: none;
}

.hh-product-hero-v2__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding: 5rem 0 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 56rem) {
  .hh-product-hero-v2__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2.5rem;
    padding-block: 6rem 3rem;
  }
}

.hh-product-hero-v2__gallery {
  min-width: 0;
}

.hh-product-gallery-shell--hero .woocommerce-product-gallery .flex-viewport,
.hh-product-hero-v2 .woocommerce-product-gallery .flex-viewport {
  min-height: min(52vh, 520px);
  max-height: min(58vh, 580px);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 64px rgba(13, 17, 23, 0.28);
  background: rgba(255, 255, 255, 0.96);
}

.hh-product-gallery-shell--hero .woocommerce-product-gallery .flex-viewport img,
.hh-product-hero-v2 .woocommerce-product-gallery .flex-viewport img {
  max-height: min(58vh, 580px);
  object-fit: contain;
}

.hh-product-hero-bubble.hh-hero-bubble {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 64px rgba(13, 17, 23, 0.18);
  border-radius: 2px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hh-product-hero-bubble .hh-product-title {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  color: var(--hh-ink, #0d1117);
  margin: 0;
}

.hh-product-hero-bubble .hh-product-brand {
  margin: 0;
}

.hh-product-hero-bubble .hh-product-positioning {
  font-size: 1rem;
  border-inline-start-color: var(--hh-product-accent, #061d33);
}

.hh-product-hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--hh-steel, #66707c);
}

.hh-product-hero-v2__trust {
  position: relative;
  z-index: 2;
  background: var(--hh-graphite, #171a1f);
  border-block: 1px solid #2a3038;
  text-align: center;
  padding: 0.85rem 1.25rem;
}

.hh-product-hero-v2__trust p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c5cad0;
}

.hh-product-purchase-row {
  margin-block: 0.25rem 0.5rem;
}

.hh-product-purchase-row .hh-btn--navy,
.hh-product-purchase-row .add_to_cart_button,
.hh-product-purchase-row .button {
  width: 100%;
  text-align: center;
  background: var(--hh-navy, #061d33) !important;
  border-color: var(--hh-navy, #061d33) !important;
  color: #fff !important;
  border-radius: 2px !important;
}

.hh-product-purchase-row .hh-btn--navy::after {
  content: none;
}

.hh-product-hero-bubble .hh-product-cta-bar--hero {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hh-line, #dde1e5);
}

/* Spec — grouped cards */
.hh-product-section--spec {
  background: var(--hh-product-muted, #f4f6f8);
  margin-inline: 0;
  padding: 3.5rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: none;
}

.hh-spec-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.hh-spec-head .hh-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-product-steel, #66707c);
  margin-bottom: 0.5rem;
}

.hh-spec-head__lead {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hh-steel, #66707c);
}

.hh-spec-group {
  margin-bottom: 2rem;
}

.hh-spec-group__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hh-product-accent, #061d33);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--hh-product-accent, #061d33);
  display: inline-block;
}

.hh-spec-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .hh-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .hh-spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hh-spec-card {
  background: #fff;
  border: 1px solid var(--hh-product-line, #e2e6ea);
  border-radius: 2px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 10px rgba(13, 17, 23, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 5.5rem;
}

a.hh-spec-card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  padding-inline-end: 2rem;
}

a.hh-spec-card--link:hover {
  border-color: var(--hh-product-accent, #061d33);
  box-shadow: 0 8px 24px rgba(13, 17, 23, 0.08);
  transform: translateY(-2px);
}

a.hh-spec-card--link .hh-spec-card__value {
  color: var(--hh-product-accent, #061d33);
}

.hh-spec-card__go {
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--hh-product-steel, #66707c);
  transition: color 0.2s ease, transform 0.2s ease;
}

a.hh-spec-card--link:hover .hh-spec-card__go {
  color: var(--hh-product-accent, #061d33);
  transform: translateY(-50%) translateX(-3px);
}

.hh-spec-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hh-steel, #66707c);
}

.hh-spec-card__value {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hh-ink, #0d1117);
}

.hh-product-section--spec .hh-product-facts__note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-inline-start: 3px solid var(--hh-product-accent, #061d33);
  border-radius: 2px;
}

body.hh-product-premium .hh-product-page__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.hh-product-page__inner {
  width: min(100% - var(--hh-space-xl) * 2, var(--hh-container));
  margin-inline: auto;
  padding-bottom: var(--hh-space-4xl);
}

/* Elementor Theme Builder product location */
.elementor-location-single .hh-scope,
.hh-theme.single-product .hh-scope {
  font-family: var(--hh-font-sans);
}

/* -------------------------------------------------------------------------- */
/* Hero — PHP fallback (full shortcode)                                         */
/* -------------------------------------------------------------------------- */

.hh-product-hero {
  padding-block: var(--hh-space-3xl);
  background: linear-gradient(180deg, #f4f6f8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--hh-border);
}

.hh-product-hero__grid {
  display: grid;
  gap: var(--hh-space-2xl);
  width: min(100% - var(--hh-space-xl) * 2, var(--hh-container));
  margin-inline: auto;
  align-items: start;
}

@media (min-width: 56rem) {
  .hh-product-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--hh-space-3xl);
  }
}

/* -------------------------------------------------------------------------- */
/* Gallery — WooCommerce native (Elementor widget / no shortcode)             */
/* -------------------------------------------------------------------------- */

:root {
  --hh-gallery-radius: 8px;
  --hh-gallery-gap: 10px;
}

@media (min-width: 48rem) {
  .e-con.hh-e-product-gallery,
  .elementor-element.hh-e-product-gallery {
    flex: 1 1 58% !important;
    max-width: 58% !important;
    width: 58% !important;
  }

  .e-con.hh-e-product-summary,
  .elementor-element.hh-e-product-summary {
    flex: 1 1 40% !important;
    max-width: 40% !important;
    width: 40% !important;
  }

  #hhspherorow.e-con,
  .elementor-element[data-id="hhspherorow"] {
    flex-wrap: nowrap !important;
  }
}

/* Scope: single product only — does not edit WooCommerce plugin files */
.hh-theme.single-product .woocommerce-product-gallery,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery,
.hh-e-product-gallery .woocommerce-product-gallery,
.hh-product-gallery-shell .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  opacity: 1 !important;
  position: relative;
}

/* Main hero image (Flexslider viewport) */
.hh-theme.single-product .woocommerce-product-gallery .flex-viewport,
.elementor-widget-woocommerce-product-images .flex-viewport {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 var(--hh-gallery-gap) !important;
  border-radius: var(--hh-gallery-radius);
  overflow: hidden;
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  box-shadow: var(--hh-shadow-sm);
}

.hh-theme.single-product .woocommerce-product-gallery .flex-viewport img,
.elementor-widget-woocommerce-product-images .flex-viewport img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(32rem, 55vh);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 0;
}

/* Hide duplicate stack when slider is active */
.hh-theme.single-product .woocommerce-product-gallery.flexslider .woocommerce-product-gallery__wrapper {
  display: none !important;
}

/* Fallback before JS: one image only */
.hh-theme.single-product .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
  display: none;
}

.hh-theme.single-product .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child {
  display: block;
  width: 100%;
  margin-bottom: var(--hh-gallery-gap);
}

.hh-theme.single-product .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child img {
  width: 100%;
  height: auto;
  max-height: min(32rem, 55vh);
  object-fit: contain;
  border-radius: var(--hh-gallery-radius);
  border: 1px solid var(--hh-border);
  background: var(--hh-white);
}

/* Thumbnail grid — spacing + rounded corners */
.hh-theme.single-product .woocommerce-product-gallery ol.flex-control-thumbs,
.hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs,
.elementor-widget-woocommerce-product-images ol.flex-control-thumbs,
.elementor-widget-woocommerce-product-images .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--hh-gallery-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  float: none !important;
}

@media (max-width: 40rem) {
  .hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs,
  .elementor-widget-woocommerce-product-images .flex-control-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs li,
.elementor-widget-woocommerce-product-images .flex-control-thumbs li {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  line-height: 0;
}

.hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs li::before,
.hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs li::after {
  display: none !important;
}

.hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs li img,
.elementor-widget-woocommerce-product-images .flex-control-thumbs li img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--hh-gallery-radius);
  border: 2px solid transparent;
  background: var(--hh-white);
  opacity: 0.92;
  transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover img,
.hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs li.flex-active img,
.elementor-widget-woocommerce-product-images .flex-control-thumbs li:hover img,
.elementor-widget-woocommerce-product-images .flex-control-thumbs li.flex-active img,
body.hh-product-premium .woocommerce-product-gallery .flex-control-thumbs li:hover img,
body.hh-product-premium .woocommerce-product-gallery .flex-control-thumbs li.flex-active img {
  border-color: var(--hh-navy, #061d33);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(12, 12, 14, 0.08);
}

/* Zoom trigger icon — keep subtle */
.hh-theme.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  border-radius: var(--hh-gallery-radius);
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
}

/* Hide broken Elementor product-title placeholder */
.hh-e-product-summary .elementor-widget-woocommerce-product-title {
  display: none !important;
}

a.hh-badge {
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--hh-transition), background var(--hh-transition);
}

a.hh-badge:hover {
  border-color: var(--hh-navy, #061d33);
  background: #f4f6f8;
}

a.hh-badge--category {
  background: var(--hh-white);
  color: var(--hh-navy);
}

/* -------------------------------------------------------------------------- */
/* Hero summary / meta                                                        */
/* -------------------------------------------------------------------------- */

.hh-product-hero-meta,
.hh-e-product-summary {
  display: flex;
  flex-direction: column;
  gap: var(--hh-space-md);
}

.hh-product-breadcrumbs,
.hh-e-product-summary .woocommerce-breadcrumb {
  font-size: var(--hh-font-size-sm);
  color: var(--hh-soft-gray);
  margin-bottom: var(--hh-space-sm);
}

.hh-product-breadcrumbs a,
.hh-e-product-summary .woocommerce-breadcrumb a {
  color: var(--hh-soft-gray);
  text-decoration: none;
}

.hh-product-breadcrumbs a:hover,
.hh-e-product-summary .woocommerce-breadcrumb a:hover {
  color: var(--hh-navy);
}

.elementor-widget-woocommerce-product-title .product_title,
.hh-product-title {
  font-family: var(--hh-font-serif);
  font-size: var(--hh-font-size-3xl);
  font-weight: 500;
  line-height: var(--hh-line-tight);
  color: var(--hh-black);
  margin: 0 0 var(--hh-space-xs);
}

.hh-product-brand {
  font-size: var(--hh-font-size-xs);
  font-weight: 600;
  letter-spacing: var(--hh-letter-wide);
  text-transform: uppercase;
  color: var(--hh-product-steel, #66707c);
  margin: 0 0 var(--hh-space-md);
}

body.hh-product-premium .hh-product-brand {
  color: var(--hh-product-accent, #061d33);
}

.hh-product-positioning {
  font-size: var(--hh-font-size-lg);
  line-height: var(--hh-line-body);
  color: var(--hh-graphite);
  padding-inline-start: var(--hh-space-md);
  border-inline-start: 2px solid var(--hh-navy, #061d33);
}

.hh-product-positioning p:last-child {
  margin-bottom: 0;
}

.hh-product-price {
  font-family: var(--hh-font-serif);
  font-size: var(--hh-font-size-2xl);
  color: var(--hh-navy);
}

.hh-product-quote {
  padding: var(--hh-space-lg) var(--hh-space-xl);
  background: var(--hh-product-muted, #f4f6f8);
  border-inline-start: 4px solid var(--hh-navy, #061d33);
  border-radius: var(--hh-radius-md);
}

.hh-product-quote__label {
  font-family: var(--hh-font-serif);
  font-size: var(--hh-font-size-xl);
  color: var(--hh-navy);
  margin: 0 0 var(--hh-space-xs);
}

.hh-product-quote__text {
  margin: 0;
  font-size: var(--hh-font-size-sm);
  color: var(--hh-soft-gray);
}

.hh-product-cta-bar--hero {
  flex-direction: column;
  align-items: stretch;
  gap: var(--hh-space-sm);
  margin-top: var(--hh-space-md);
}

@media (min-width: 40rem) {
  .hh-product-cta-bar--hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.hh-product-hero-bubble .hh-product-cta-bar--hero .hh-btn,
.hh-product-hero-meta .hh-product-cta-bar .hh-btn {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hh-product-hero-bubble .hh-product-cta-bar--hero .hh-btn--whatsapp,
.hh-product-hero-meta .hh-product-cta-bar .hh-btn--whatsapp {
  background: #25d366 !important;
  border: 1px solid #1da851 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.hh-product-hero-bubble .hh-product-cta-bar--hero .hh-btn--whatsapp:hover,
.hh-product-hero-meta .hh-product-cta-bar .hh-btn--whatsapp:hover {
  background: #20bd5a !important;
  color: #fff !important;
  filter: none;
}

.hh-product-hero-bubble .hh-product-cta-bar--hero .hh-btn--whatsapp::after,
.hh-product-hero-meta .hh-product-cta-bar .hh-btn--whatsapp::after {
  content: none;
}

.hh-product-hero-bubble .hh-product-cta-bar--hero .hh-btn--outline-navy,
.hh-product-hero-meta .hh-product-cta-bar .hh-btn--outline-navy,
.hh-product-cta-bar--hero .hh-btn--secondary {
  background: #fff !important;
  border: 1px solid var(--hh-navy, #061d33) !important;
  color: var(--hh-navy, #061d33) !important;
}

.hh-product-hero-bubble .hh-product-cta-bar--hero .hh-btn--outline-navy:hover,
.hh-product-hero-meta .hh-product-cta-bar .hh-btn--outline-navy:hover,
.hh-product-cta-bar--hero .hh-btn--secondary:hover {
  background: var(--hh-navy, #061d33) !important;
  color: #fff !important;
}

.hh-product-services.hh-trust-band {
  background: #f4f6f8;
  border-bottom: none;
  padding-block: 2.5rem;
}

.hh-product-services .hh-trust-cards {
  margin-top: 1.25rem;
}

/* Badges — palette accents */
.hh-product-hero-meta .hh-badge,
.hh-product-hero .hh-badge {
  background: var(--hh-white);
  border-color: var(--hh-border);
}

.hh-product-hero-meta .hh-badge--brand,
.hh-product-hero .hh-badge--brand,
body.hh-product-premium .hh-badge--brand {
  background: #fff;
  color: var(--hh-navy, #061d33);
  border-color: var(--hh-product-line, #e2e6ea);
}

.hh-product-hero-meta .hh-badge--fuel,
.hh-product-hero .hh-badge--fuel,
body.hh-product-premium .hh-badge--fuel {
  border-color: var(--hh-product-line, #e2e6ea);
  color: var(--hh-navy, #061d33);
}

.hh-product-hero-meta .hh-badge--quote,
.hh-product-hero .hh-badge--quote,
body.hh-product-premium .hh-badge--quote {
  background: #f4f6f8;
  border-color: var(--hh-navy, #061d33);
  color: var(--hh-navy, #061d33);
}

/* -------------------------------------------------------------------------- */
/* Content sections — navy / gold / stone                                     */
/* -------------------------------------------------------------------------- */

.hh-product-section {
  padding-block: var(--hh-space-3xl);
  border-bottom: 1px solid var(--hh-border);
}

body.hh-product-premium .hh-product-page__inner .hh-product-section:nth-child(even):not(.hh-product-section--spec) {
  background: #fafbfc;
  margin-inline: calc(-1 * var(--hh-space-xl));
  padding-inline: var(--hh-space-xl);
  border-radius: 2px;
}

.hh-product-section:nth-child(even) {
  background: #fafbfc;
  margin-inline: calc(-1 * var(--hh-space-xl));
  padding-inline: var(--hh-space-xl);
  border-radius: 2px;
}

.hh-product-section .hh-h2,
body.hh-product-premium .hh-product-section .hh-h2 {
  color: var(--hh-navy, #061d33);
  padding-bottom: var(--hh-space-sm);
  border-bottom: 2px solid var(--hh-navy, #061d33);
  display: inline-block;
  margin-bottom: var(--hh-space-xl);
}

.hh-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hh-font-size-base);
  background: var(--hh-white);
  border-radius: var(--hh-radius-md);
  overflow: hidden;
  box-shadow: var(--hh-shadow-sm);
}

.hh-spec-table th,
.hh-spec-table td {
  padding: var(--hh-space-md) var(--hh-space-lg);
  text-align: start;
  border-bottom: 1px solid var(--hh-border);
  vertical-align: top;
}

.hh-spec-table th {
  width: 36%;
  font-weight: 600;
  color: var(--hh-white);
  background: var(--hh-navy);
}

.hh-spec-table tr:last-child th,
.hh-spec-table tr:last-child td {
  border-bottom: none;
}

.hh-spec-table td {
  color: var(--hh-black);
  background: var(--hh-white);
}

.hh-product-facts__note {
  margin-top: var(--hh-space-lg);
  font-size: var(--hh-font-size-sm);
  color: var(--hh-soft-gray);
}

.hh-suitability-grid {
  display: grid;
  gap: var(--hh-space-xl);
}

@media (min-width: 48rem) {
  .hh-suitability-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hh-suitability-col {
  padding: var(--hh-space-xl);
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius-md);
}

.hh-suitability-col--muted,
body.hh-product-premium .hh-suitability-col--muted {
  background: #f4f6f8;
  border-color: var(--hh-product-line, #e2e6ea);
}

.hh-suitability-col .hh-h3 {
  color: var(--hh-navy);
}

.hh-callout,
body.hh-product-premium .hh-callout {
  padding: var(--hh-space-xl);
  background: #f4f6f8;
  border-radius: 2px;
  border: 1px solid var(--hh-product-line, #e2e6ea);
  border-inline-start: 4px solid var(--hh-navy, #061d33);
}

.hh-prose h2,
.hh-prose h3 {
  color: var(--hh-navy);
  font-family: var(--hh-font-serif);
}

.hh-prose ul {
  padding-inline-start: 1.25rem;
  margin: 0 0 var(--hh-space-md);
}

.hh-prose li {
  margin-bottom: var(--hh-space-xs);
}

.hh-product-services .hh-card--service {
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  transition: border-color var(--hh-transition), box-shadow var(--hh-transition);
}

.hh-product-services .hh-card--service:hover,
body.hh-product-premium .hh-card--service:hover {
  border-color: var(--hh-navy, #061d33);
  box-shadow: var(--hh-shadow-md);
}

.hh-product-services .hh-card__title {
  color: var(--hh-navy);
}

.hh-product-related .hh-card--product .hh-card__title a:hover,
body.hh-product-premium .hh-card--product .hh-card__title a:hover {
  color: var(--hh-navy, #061d33);
}

.hh-product-faq .hh-faq__question {
  color: var(--hh-navy);
}

.hh-product-gate {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  padding-block: var(--hh-space-4xl);
  background: #f4f6f8;
  border-radius: 2px;
}

/* Hide duplicate WC layout */
.hh-theme.single-product.hh-custom-product .product > .woocommerce-product-gallery,
.hh-theme.single-product.hh-custom-product .product .summary,
.hh-theme.single-product.hh-custom-product .product .woocommerce-tabs,
.hh-theme.single-product.hh-custom-product .related.products,
.hh-theme.single-product.hh-elementor-product .hh-product-shell {
  display: none !important;
}

.hh-theme.single-product .woocommerce-Reviews-title:empty,
.hh-theme.single-product #reviews .woocommerce-noreviews {
  display: none;
}

/* Elementor: hide empty price widget */
.hh-e-product-summary .price:empty,
.elementor-widget-woocommerce-product-price .price:empty {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Mobile — single product (Elementor + PHP fallback)                           */
/* -------------------------------------------------------------------------- */

@media (max-width: 48rem) {
  body.hh-product-premium .hh-product-page__inner,
  .hh-product-page__inner {
    padding-inline: 1rem;
  }

  #hhspherorow.e-con,
  .elementor-element[data-id="hhspherorow"],
  .e-con.hh-e-product-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
  }

  .e-con.hh-e-product-gallery,
  .elementor-element.hh-e-product-gallery,
  .e-con.hh-e-product-summary,
  .elementor-element.hh-e-product-summary {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .hh-theme.single-product .woocommerce-product-gallery .flex-viewport img,
  .elementor-widget-woocommerce-product-images .flex-viewport img {
    max-height: min(22rem, 52vh) !important;
  }

  .hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs,
  .elementor-widget-woocommerce-product-images .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.hh-showcase-v-b.hh-product-premium .hh-product-hero-bubble,
  .hh-product-hero-bubble,
  .hh-e-product-summary,
  .hh-product-hero-meta {
    padding: 1rem 1.1rem !important;
    border-radius: 8px;
  }

  .elementor-widget-woocommerce-product-title .product_title,
  .hh-product-title {
    font-size: clamp(1.25rem, 5vw, 1.65rem) !important;
    line-height: 1.25 !important;
  }

  .hh-badge-row {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  a.hh-badge,
  .hh-product-hero-meta .hh-badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
  }

  .hh-product-cta-bar--hero,
  .hh-product-cta-bar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hh-product-cta-bar--hero .hh-btn,
  .hh-product-cta-bar .hh-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hh-product-section {
    padding-block: 2rem;
  }

  body.hh-product-premium .hh-product-page__inner .hh-product-section:nth-child(even):not(.hh-product-section--spec) {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .hh-spec-cards {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 32rem) {
  .hh-theme.single-product .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
