/* August Flooring — shared product-detail styling for the four dynamic templates. */
.single-product .elementor-location-single.elementor-532,
.single-product .elementor-location-single.elementor-541,
.single-product .elementor-location-single.elementor-1058,
.single-product .elementor-location-single.elementor-1742 {
  --af-navy: #123a72;
  --af-blue: #1597d4;
  --af-ink: #182a42;
  --af-muted: #5a6d82;
  --af-pale: #f4f8fc;
  --af-line: #d9e4ee;
  color: var(--af-ink);
  background: #fff;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* Product heading and breadcrumb — remove the old wood-photo banner. */
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:first-child {
  padding: 30px 0 12px;
  background: #fff !important;
  border-top: 1px solid var(--af-line);
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:first-child > .elementor-container,
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(2) > .elementor-container {
  width: min(1280px, calc(100% - 40px));
  max-width: 1280px;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-woocommerce-product-title .product_title {
  margin: 0;
  color: var(--af-navy) !important;
  font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(34px, 3.2vw, 48px) !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  letter-spacing: -.7px;
  text-shadow: none !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .woocommerce-breadcrumb {
  margin-top: 12px;
  color: #77879a !important;
  font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 13px !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .woocommerce-breadcrumb a {
  color: var(--af-navy) !important;
}

/* Dynamic hero section: gallery left, product facts and conversion button right. */
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(2) {
  padding: 28px 0 58px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--af-line);
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(2) > .elementor-container {
  gap: 44px;
  align-items: flex-start;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-column {
  width: calc(50% - 22px);
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-woocommerce-product-images {
  padding: 18px;
  border: 1px solid var(--af-line);
  background: #f9fbfd;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .woocommerce-product-gallery__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .woocommerce-product-gallery__trigger {
  top: 28px !important;
  right: 28px !important;
  background: var(--af-navy) !important;
  color: #fff !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .product_meta {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 5px;
  background: #eaf6fc;
  color: #167dad;
  font-size: 13px;
  font-weight: 700;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .product_meta a {
  color: #167dad !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .woocommerce-product-details__short-description {
  color: var(--af-muted);
  font-size: 16px;
  line-height: 1.75;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-woocommerce-product-additional-information h2 {
  display: none;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) table.woocommerce-product-attributes {
  width: 100%;
  margin: 20px 0 22px;
  border: 1px solid var(--af-line) !important;
  border-collapse: collapse;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) table.woocommerce-product-attributes th,
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) table.woocommerce-product-attributes td {
  padding: 12px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--af-line) !important;
  color: var(--af-muted);
  font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 14px;
  font-style: normal !important;
  text-align: left;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) table.woocommerce-product-attributes th {
  width: 34%;
  background: #edf5fa !important;
  color: var(--af-navy) !important;
  font-weight: 700;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .woocommerce-product-attributes-item--attribute_roll-length td p {
  font-size: 0;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .woocommerce-product-attributes-item--attribute_roll-length td p::after {
  content: "15–24 m";
  font-size: 14px;
}

/* Conversion buttons. */
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-button .elementor-button {
  min-height: 52px;
  padding: 15px 28px !important;
  border: 1px solid var(--af-navy) !important;
  border-radius: 5px !important;
  background: var(--af-navy) !important;
  color: #fff !important;
  font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-button .elementor-button:hover {
  background: var(--af-blue) !important;
  border-color: var(--af-blue) !important;
}

/* Long-form content and related products. */
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(n+3) {
  background: #fff !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(n+3) > .elementor-container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) h2:not(.woocommerce-loop-product__title),
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) h4 {
  color: var(--af-navy) !important;
  font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) h4 {
  margin: 34px 0 18px !important;
  padding: 14px 18px;
  border-left: 5px solid var(--af-blue);
  background: var(--af-pale);
  font-size: 21px !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) p,
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) li {
  color: var(--af-muted);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.75;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-woocommerce-product-related {
  padding-top: 32px;
  border-top: 1px solid var(--af-line);
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .related.products > h2 {
  margin-bottom: 24px;
  color: var(--af-navy) !important;
  font-size: 28px !important;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .products .product {
  padding: 12px !important;
  border: 1px solid var(--af-line);
  background: #fff;
}
.single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .products .woocommerce-loop-product__title {
  color: var(--af-navy) !important;
  font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

@media (max-width: 767px) {
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:first-child {
    padding: 18px 0 8px;
  }
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:first-child > .elementor-container,
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(2) > .elementor-container,
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(n+3) > .elementor-container {
    width: calc(100% - 28px);
  }
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-woocommerce-product-title .product_title {
    font-size: 30px !important;
    letter-spacing: -.3px;
  }
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(2) {
    padding: 18px 0 38px !important;
  }
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(2) > .elementor-container {
    display: block;
  }
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-column {
    width: 100%;
  }
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-woocommerce-product-images {
    margin-bottom: 24px;
    padding: 12px;
  }
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) table.woocommerce-product-attributes th,
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) table.woocommerce-product-attributes td {
    padding: 10px 11px !important;
    font-size: 13px;
  }
  .single-product .elementor-location-single:not(.elementor-2000):not(.elementor-2013) .elementor-widget-button .elementor-button {
    width: 100%;
  }
}

/* Version 1.1: Lutop-inspired three-column product structure. */
.single-product .elementor-location-single.af-layout-ready > .elementor-top-section:first-child {
  display: none !important;
}
.single-product .elementor-location-single.af-layout-ready > .elementor-top-section:nth-child(2) {
  padding: 54px 0 72px !important;
}
.single-product .elementor-location-single.af-layout-ready > .elementor-top-section:nth-child(2) > .elementor-container {
  display: grid !important;
  grid-template-columns: minmax(0, 34fr) minmax(0, 41fr) minmax(270px, 25fr);
  gap: 28px !important;
  align-items: start;
  width: min(1440px, calc(100% - 48px));
  max-width: 1440px;
}
.single-product .elementor-location-single.af-layout-ready > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-column {
  width: auto !important;
  min-width: 0;
}
.single-product .elementor-location-single.af-layout-ready .af-product-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #eaf6fc;
  color: #167dad;
  font-size: 14px;
  font-weight: 750;
}
.single-product .elementor-location-single.af-layout-ready .elementor-widget-woocommerce-product-title .product_title {
  margin: 0 0 14px !important;
  font-size: clamp(34px, 3.1vw, 52px) !important;
  line-height: 1.12 !important;
  text-align: left !important;
}
.single-product .elementor-location-single.af-layout-ready .elementor-widget-woocommerce-product-title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  text-align: left !important;
}
.single-product .elementor-location-single.af-layout-ready .elementor-widget-woocommerce-breadcrumb {
  margin-bottom: 22px;
}
.single-product .elementor-location-single.af-layout-ready .woocommerce-breadcrumb {
  margin-top: 0;
}
.single-product .elementor-location-single.af-layout-ready .product_meta {
  display: none;
}
.single-product .elementor-location-single.af-layout-ready .elementor-widget-woocommerce-product-meta {
  display: none !important;
}
.single-product .elementor-location-single.af-layout-ready .woocommerce-product-details__short-description {
  font-size: 17px;
  line-height: 1.8;
}
.single-product .elementor-location-single.af-layout-ready .af-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.single-product .elementor-location-single.af-layout-ready .af-action-row .elementor-widget-button {
  width: 100%;
  margin: 0;
}
.single-product .elementor-location-single.af-layout-ready .af-email-action,
.single-product .elementor-location-single.af-layout-ready .af-action-row .elementor-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px !important;
  border: 1px solid #cbd9e6 !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #49617b !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  text-align: center;
}
.single-product .elementor-location-single.af-layout-ready .af-email-action:hover,
.single-product .elementor-location-single.af-layout-ready .af-action-row .elementor-button:hover {
  border-color: #1597d4 !important;
  color: #123a72 !important;
}
.single-product .elementor-location-single.af-layout-ready .af-primary-inquiry {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 12px;
  border-radius: 5px;
  background: #123a72;
  color: #fff !important;
  font-size: 17px;
  font-weight: 800;
}
.single-product .elementor-location-single.af-layout-ready .af-primary-inquiry:hover {
  background: #1597d4;
}
.single-product .elementor-location-single.af-layout-ready .af-product-sidebar {
  display: grid;
  gap: 20px;
}
.single-product .elementor-location-single.af-layout-ready .af-side-card {
  overflow: hidden;
  border: 1px solid #d7e2ec;
  border-radius: 7px;
  background: #fff;
}
.single-product .elementor-location-single.af-layout-ready .af-side-card h3 {
  margin: 0;
  padding: 24px 24px 16px;
  color: #182a42;
  font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.25;
}
.single-product .elementor-location-single.af-layout-ready .af-side-card nav {
  padding: 0 20px 18px;
}
.single-product .elementor-location-single.af-layout-ready .af-side-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 8px 10px 14px;
  border-bottom: 1px solid #e2eaf1;
  color: #5a6d82;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.single-product .elementor-location-single.af-layout-ready .af-side-card a.is-active {
  border-left: 5px solid #1597d4;
  color: #1597d4;
}
.single-product .elementor-location-single.af-layout-ready .af-side-card a b {
  color: #90a3b6;
  font-size: 22px;
}

@media (max-width: 1100px) {
  .single-product .elementor-location-single.af-layout-ready > .elementor-top-section:nth-child(2) > .elementor-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .single-product .elementor-location-single.af-layout-ready .af-product-sidebar {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .single-product .elementor-location-single.af-layout-ready > .elementor-top-section:nth-child(2) {
    padding: 26px 0 44px !important;
  }
  .single-product .elementor-location-single.af-layout-ready > .elementor-top-section:nth-child(2) > .elementor-container {
    display: grid !important;
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    gap: 24px !important;
  }
  .single-product .elementor-location-single.af-layout-ready .elementor-widget-woocommerce-product-title .product_title {
    font-size: 32px !important;
  }
  .single-product .elementor-location-single.af-layout-ready .af-product-sidebar {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .single-product .elementor-location-single.af-layout-ready .af-action-row {
    grid-template-columns: 1fr;
  }
}
