:root {
  --lefine-navy: #102a43;
  --lefine-blue: #245a91;
  --lefine-green: #17724b;
  --lefine-ink: #142033;
  --lefine-muted: #5d6b7c;
  --lefine-line: #dfe6ee;
  --lefine-soft: #f5f8fb;
}

/* Products page only: replace the legacy pseudo-heading and suppress the old
   brand-inference browser without changing its homepage behavior. */
body.page-id-74 .entry-content::before {
  content: none !important;
  display: none !important;
}

body.page-id-74 .entry-content [class$="-brand-browser"] {
  display: none !important;
}

.lefine-products-architecture,
.lefine-pdp,
.lefine-sheet-metal-capability {
  box-sizing: border-box;
  color: var(--lefine-ink);
}

.lefine-products-architecture *,
.lefine-pdp *,
.lefine-sheet-metal-capability * {
  box-sizing: border-box;
}

.lefine-products-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 44px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(16, 42, 67, .12);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f4f8fc 62%, #eaf2f8 100%);
  box-shadow: 0 18px 48px rgba(15, 39, 66, .08);
}

.lefine-products-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(36, 90, 145, .07);
  pointer-events: none;
}

.lefine-products-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--lefine-navy);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.lefine-products-hero > p:not(.lefine-pdp__eyebrow) {
  max-width: 790px;
  margin: 0;
  color: var(--lefine-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
}

.lefine-products-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 26px;
  color: #405268;
  font-size: 14px;
  font-weight: 750;
}

.lefine-category-heading,
.lefine-all-products-heading {
  margin: 0 0 22px;
}

.lefine-category-heading h2,
.lefine-all-products-heading h2 {
  margin: 0;
  color: var(--lefine-navy);
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.lefine-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 56px;
}

.lefine-category-card {
  position: relative;
  display: flex;
  min-height: 226px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--lefine-line);
  border-radius: 18px;
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 11px 30px rgba(15, 39, 66, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.lefine-category-card:hover,
.lefine-category-card:focus-visible {
  border-color: rgba(36, 90, 145, .5);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 39, 66, .12);
  outline: none;
}

.lefine-category-card__index {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #eaf1f8;
  color: var(--lefine-blue);
  font-size: 13px;
  font-weight: 850;
}

.lefine-category-card h2 {
  margin: 0 0 10px;
  color: var(--lefine-navy);
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -.01em;
}

.lefine-category-card p {
  margin: 0 0 20px;
  color: var(--lefine-muted);
  font-size: 14px;
  line-height: 1.6;
}

.lefine-category-card__link {
  margin-top: auto;
  color: var(--lefine-blue);
  font-size: 13px;
  font-weight: 800;
}

.lefine-all-products-heading {
  padding-top: 8px;
}

body.page-id-74 ul.products li.product img,
body.post-type-archive-product ul.products li.product img,
body.woocommerce-shop ul.products li.product img,
body.tax-product_cat ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  padding: 12px;
  border: 1px solid var(--lefine-line);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.lefine-pdp {
  width: min(100%, 1180px);
  clear: both;
  margin: 46px auto 0;
  padding: 0 0 70px;
}

.lefine-pdp__section {
  margin: 0 0 22px;
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid var(--lefine-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 39, 66, .055);
}

.lefine-pdp__section > h2,
.lefine-sheet-metal-capability h2 {
  margin: 0 0 20px;
  color: var(--lefine-navy);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.lefine-pdp__section > h3 {
  margin: 27px 0 12px;
  color: #253d58;
  font-size: 18px;
}

.lefine-pdp__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lefine-pdp__features li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border-radius: 12px;
  background: var(--lefine-soft);
  color: #33485f;
  font-size: 15px;
  line-height: 1.55;
}

.lefine-pdp__features li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--lefine-green);
  font-weight: 900;
}

.lefine-pdp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.lefine-pdp__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #cdd9e5;
  border-radius: 999px;
  background: #f7fafc;
  color: #294968;
  font-size: 14px;
  font-weight: 750;
}

.lefine-pdp__note {
  margin: 17px 0 0;
  color: var(--lefine-muted);
  font-size: 13px;
  line-height: 1.65;
}

.lefine-pdp__table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--lefine-line);
  border-radius: 14px;
}

.lefine-pdp__table {
  width: 100%;
  min-width: 620px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  font-size: 14px;
}

.lefine-pdp__table th,
.lefine-pdp__table td {
  padding: 13px 15px;
  border: 0 !important;
  border-bottom: 1px solid var(--lefine-line) !important;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.lefine-pdp__table th {
  background: #eef4f9;
  color: #233e5a;
  font-weight: 800;
}

.lefine-pdp__table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.lefine-pdp__custom {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
  gap: 30px;
  align-items: center;
  border-color: rgba(36, 90, 145, .22);
  background: linear-gradient(135deg, #f8fbfe, #edf4fa);
}

.lefine-pdp__custom h2 {
  margin-bottom: 12px;
}

.lefine-pdp__custom p:not(.lefine-pdp__eyebrow) {
  margin: 0;
  color: var(--lefine-muted);
  line-height: 1.7;
}

.lefine-pdp__custom .lefine-pdp__confirm {
  margin-top: 13px !important;
  color: #344d66;
  font-size: 14px;
}

.lefine-pdp__eyebrow {
  margin: 0 0 10px;
  color: var(--lefine-blue);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lefine-pdp__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lefine-pdp__button {
  display: inline-flex !important;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px !important;
  border: 1px solid var(--lefine-navy) !important;
  border-radius: 10px !important;
  background: var(--lefine-navy) !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  text-align: center;
  text-decoration: none !important;
}

.lefine-pdp__button:hover,
.lefine-pdp__button:focus-visible {
  background: #1d486f !important;
  color: #fff !important;
}

.lefine-pdp__button--whatsapp {
  border-color: var(--lefine-green) !important;
  background: var(--lefine-green) !important;
}

.lefine-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lefine-related-card {
  overflow: hidden;
  border: 1px solid var(--lefine-line);
  border-radius: 15px;
  background: #fff;
}

.lefine-related-card a {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}

.lefine-related-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 !important;
  padding: 12px;
  background: var(--lefine-soft);
  object-fit: contain;
}

.lefine-related-card h3 {
  min-height: 63px;
  margin: 0;
  padding: 13px 15px 16px;
  color: var(--lefine-navy);
  font-size: 14px;
  line-height: 1.35;
}

.lefine-sheet-metal-capability {
  display: grid;
  grid-template-columns: 1.25fr 1fr .85fr;
  gap: 28px;
  align-items: center;
  margin: 24px 0 38px;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid rgba(36, 90, 145, .22);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #edf4fa);
  box-shadow: 0 14px 38px rgba(15, 39, 66, .07);
}

.lefine-sheet-metal-capability h2 {
  margin-bottom: 12px;
}

.lefine-sheet-metal-capability p {
  margin: 0;
  color: var(--lefine-muted);
  line-height: 1.7;
}

.lefine-sheet-metal-capability ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lefine-sheet-metal-capability li {
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff;
  color: #29435d;
  font-size: 14px;
  font-weight: 750;
}

.lefine-sheet-metal-capability strong {
  display: block;
  margin-bottom: 14px;
  color: var(--lefine-navy);
  line-height: 1.45;
}

/* Native WooCommerce image treatment for approved Phase 1 PDPs. */
body.single-product .product[data-product_variations] .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery {
  border-radius: 18px;
}

body.single-product .woocommerce-product-gallery__image a,
body.single-product .flex-control-thumbs li {
  background: #fff;
}

body.single-product .woocommerce-product-gallery__image img {
  object-fit: contain;
}

@media (max-width: 1080px) {
  .lefine-category-grid,
  .lefine-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lefine-sheet-metal-capability {
    grid-template-columns: 1fr 1fr;
  }

  .lefine-sheet-metal-capability > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .lefine-products-hero {
    margin-bottom: 34px;
    padding: 27px 22px;
    border-radius: 18px;
  }

  .lefine-products-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .lefine-products-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lefine-category-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 42px;
  }

  .lefine-category-card {
    min-height: 0;
    padding: 20px;
  }

  .lefine-category-card__index {
    margin-bottom: 16px;
  }

  .lefine-pdp {
    margin-top: 34px;
    padding-bottom: 44px;
  }

  .lefine-pdp__section {
    padding: 21px 17px;
    border-radius: 16px;
  }

  .lefine-pdp__features,
  .lefine-pdp__custom,
  .lefine-sheet-metal-capability {
    grid-template-columns: 1fr;
  }

  .lefine-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lefine-related-card h3 {
    min-height: 72px;
    padding: 11px 12px 14px;
    font-size: 13px;
  }

  .lefine-sheet-metal-capability {
    gap: 20px;
    padding: 22px 18px;
  }

  .lefine-sheet-metal-capability > div:last-child {
    grid-column: auto;
  }
}
