/* Site-wide visual consistency layer. Loaded after the legacy theme assets. */
:root {
  --jwl-consistency-container: 1328px;
  --jwl-consistency-h1: clamp(2.35rem, 5.2vw, 4.7rem);
  --jwl-consistency-h2: clamp(2rem, 4.2vw, 3.8rem);
  --jwl-consistency-h3: 1.8rem;
  --jwl-consistency-body: 1.05rem;
  --jwl-inner-h1: clamp(2.5rem, 3.6vw, 3.5rem);
  --jwl-inner-h2: clamp(2rem, 2.8vw, 2.75rem);
  --jwl-inner-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --jwl-consistency-grape: #4b2530;
  --jwl-consistency-muted: #736668;
}

/* Home header composition, with the Products navigation size used globally. */
.jwl-site-header {
  background: rgba(255, 250, 246, 0.97);
  border: 0;
  box-shadow: none;
  min-height: 72px;
  position: relative;
  z-index: 50;
}

.jwl-site-header__inner {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 140px minmax(0, 1fr) auto auto;
  margin-inline: auto;
  max-width: none;
  min-height: 72px;
  padding: 0;
  width: min(calc(100% - 64px), var(--jwl-consistency-container));
}

.jwl-brand,
.jwl-main-nav {
  min-width: 0;
}

.jwl-site-header .custom-logo {
  height: auto;
  max-height: 52px;
  max-width: 112px;
  object-fit: contain;
  width: 112px;
}

.jwl-main-nav {
  justify-self: center;
}

.jwl-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(16px, 2vw, 30px);
  justify-content: center;
}

.jwelllove-elementor-site .jwl-nav a {
  align-items: center;
  color: #17141a;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  gap: 4px;
  line-height: 1.15;
  padding: 6px 0;
  white-space: nowrap;
}

.jwl-header-cta {
  align-items: center;
  background: #ef172d;
  border: 1px solid #ef172d;
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  padding: 8px 20px;
  text-decoration: none;
}

.jwl-header-whatsapp {
  align-items: center;
  background: #18c869;
  border: 0;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 0;
  height: 38px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 38px;
}

.jwl-header-whatsapp svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 23px;
}

/* A compact editorial scale keeps long inner-page titles visually consistent. */
body:not(.jwelllove-homepage-v3) .jwl-editable-page h1 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-inner-h1);
  line-height: 1.04;
}

body:not(.jwelllove-homepage-v3) .jwl-page-header h1,
body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 h1 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-consistency-h1);
  line-height: 1;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 h1 {
    font-size: 60px;
    line-height: 1.03;
  }
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page h2 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-inner-h2);
  line-height: 1.08;
}

body:not(.jwelllove-homepage-v3) .jwl-product-category-navigation h2,
body:not(.jwelllove-homepage-v3) .jwl-product-archive-v1 > .site-container > h2,
body:not(.jwelllove-homepage-v3) .jwl-product-section__heading h2 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-consistency-h2);
  line-height: 1;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page h3 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-inner-h3);
  line-height: 1.15;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page p:not(.jwl-eyebrow),
body:not(.jwelllove-homepage-v3) .jwl-editable-page li {
  color: var(--jwl-consistency-muted);
  font-size: var(--jwl-consistency-body);
  line-height: 1.72;
}

/* Global footer mirrors the footer embedded in the Home composition. */
.factory-home__footer--global {
  background: #412e25 url("https://jwelllove.com/wp-content/uploads/2026/08/jwell-global-team-meeting.webp") center 48% / cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.factory-home__footer--global::before {
  background: rgba(42, 26, 20, 0.86);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.factory-home__footer--global .factory-home__container {
  margin-inline: auto;
  width: min(calc(100% - 64px), var(--jwl-consistency-container));
}

.factory-home__footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.35fr repeat(5, 1fr);
  padding: 26px 0 24px;
}

.factory-home__footer-brand strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.factory-home__footer-brand > span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  margin-top: 5px;
}

.factory-home__footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 15px 0 0;
  max-width: 240px;
}

.factory-home__footer-grid nav {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.factory-home__footer-grid h2 {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 5px;
  text-transform: none;
}

.factory-home__footer-grid a,
.factory-home__footer-grid nav > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.63rem;
  line-height: 1.35;
  text-decoration: none;
}

.factory-home__footer-grid a:hover,
.factory-home__footer-grid a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.factory-home__footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  font-size: 0.59rem;
  gap: 20px;
  justify-content: space-between;
  margin-top: 0;
  max-width: none;
  padding: 14px 0 17px;
}

.factory-home__footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.factory-home__footer-bottom a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

@media (max-width: 1099px) {
  .jwl-site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .jwl-brand {
    justify-self: start;
    order: 0;
  }

  .jwl-header-whatsapp {
    justify-self: end;
    order: 1;
  }

  .jwl-menu-toggle {
    justify-self: end;
    margin-left: 0;
    order: 2;
  }

  .jwl-main-nav,
  .jwl-header-cta {
    display: none;
  }

  .jwl-menu-toggle {
    display: inline-flex;
  }

  .jwl-site-header.is-menu-open .jwl-main-nav {
    display: flex;
  }

  body.jwelllove-homepage-v3 .jwl-site-header.is-menu-open .jwl-main-nav {
    display: flex;
  }

  .jwelllove-elementor-site .jwl-nav,
  body.jwelllove-homepage-v3 .jwl-nav {
    align-items: stretch;
    display: grid;
    gap: 0;
    justify-content: stretch;
  }

  .jwelllove-elementor-site .jwl-nav a {
    display: block;
    font-size: 22px;
    padding: 15px 0;
    white-space: normal;
  }

  body.jwelllove-homepage-v3 .jwl-nav a {
    display: block;
    font-size: 22px;
    padding: 15px 0;
    white-space: normal;
  }

  .factory-home__footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .jwl-site-header,
  .jwl-site-header__inner {
    min-height: 64px;
  }

  body.jwelllove-homepage-v3 .jwl-site-header,
  body.jwelllove-homepage-v3 .jwl-site-header__inner {
    min-height: 64px;
  }

  .jwl-site-header__inner,
  .factory-home__footer--global .factory-home__container {
    gap: 9px;
    width: min(calc(100% - 30px), var(--jwl-consistency-container));
  }

  .jwl-site-header .custom-logo {
    max-width: 94px;
    width: 94px;
  }

  body.jwelllove-homepage-v3 .jwl-site-header .custom-logo {
    max-width: 94px;
    width: 94px;
  }

  .jwl-header-whatsapp {
    height: 36px;
    width: 36px;
  }

  body.jwelllove-homepage-v3 .jwl-header-whatsapp {
    height: 36px;
    width: 36px;
  }

  body:not(.jwelllove-homepage-v3) .jwl-editable-page h1 {
    font-size: 2.1rem;
  }

  body:not(.jwelllove-homepage-v3) .jwl-editable-page h2 {
    font-size: 1.75rem;
  }

  body:not(.jwelllove-homepage-v3) .jwl-editable-page h3 {
    font-size: 1.25rem;
  }

  .factory-home__footer-grid {
    gap: 24px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-home__footer-brand {
    grid-column: 1 / -1;
  }

  .factory-home__footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .factory-home__footer-grid {
    grid-template-columns: 1fr;
  }

  .factory-home__footer-brand {
    grid-column: auto;
  }
}


/* 1.3.0 (2026-10-20): Products dropdown in the primary menu. */
.jwl-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jwl-nav .jwl-sub-toggle {
  display: none;
}

@media (min-width: 1100px) {
  .jwl-nav > li {
    position: relative;
  }

  .jwl-nav > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
  }

  .jwl-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 60;
    display: none;
    min-width: 250px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(75, 37, 48, 0.12);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(48, 37, 42, 0.12);
  }

  .jwl-nav > li:hover > .sub-menu,
  .jwl-nav > li:focus-within > .sub-menu {
    display: block;
  }

  .jwl-site-header .jwl-nav .sub-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .jwl-nav .sub-menu a:hover {
    background: #fbf1ea;
  }
}

@media (max-width: 1099px) {
  .jwl-nav > .menu-item-has-children {
    position: relative;
  }

  .jwl-nav > .menu-item-has-children > a {
    padding-right: 52px;
  }

  .jwl-nav .jwl-sub-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
  }

  .jwl-nav .jwl-sub-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s;
  }

  .jwl-nav .is-sub-open > .jwl-sub-toggle::before {
    transform: translateY(2px) rotate(225deg);
  }

  .jwl-nav .sub-menu {
    display: none;
    padding: 0 0 6px 14px;
  }

  .jwl-nav .is-sub-open > .sub-menu {
    display: block;
  }

  .jwl-site-header .jwl-nav .sub-menu a {
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
  }
}

/* 1.3.0: editable pages (e.g. Contact) keep side padding once wide blocks stop bleeding on small screens. */
@media (max-width: 1023px) {
  .jwl-editable-page > .wp-block-group__inner-container > .alignwide {
    padding-inline: 20px;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   1.4.0 — unified design system (Claude, 2026-10-20)
   One type scale, one button system, calmer spacing on inner templates.
   Loads last on every template, so these rules win without !important
   except where WordPress core layout uses !important itself.
   ========================================================================== */
:root {
  --jwl-ds-ink: #2f2327;
  --jwl-ds-text: #4a3d42;
  --jwl-ds-muted: #76696d;
  --jwl-ds-grape: #4b2530;
  --jwl-ds-accent: #8e2942;
  --jwl-ds-accent-hover: #741f35;
  --jwl-ds-line: rgba(75, 37, 48, 0.12);
  --jwl-ds-h1: clamp(2rem, 1.4rem + 1.9vw, 2.75rem);
  --jwl-ds-h2: clamp(1.6rem, 1.25rem + 1.1vw, 2.125rem);
  --jwl-ds-h2-side: clamp(1.4rem, 1.15rem + 0.8vw, 1.75rem);
  --jwl-ds-h3: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  --jwl-ds-body: 1rem;
  --jwl-ds-section: clamp(44px, 5vw, 72px);
}

/* Wide blocks no longer bleed past the container (caused left-edge clipping
   on Contact, Private Label and other editable pages at 1024–1440px). */
body:not(.jwelllove-homepage-v3) .jwl-editable-page .alignwide,
body:not(.jwelllove-homepage-v3) .entry-content .alignwide {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
}

/* ---- Headings ---------------------------------------------------------- */
body:not(.jwelllove-homepage-v3) .jwl-page-header h1,
body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 h1,
body:not(.jwelllove-homepage-v3) .jwl-editable-page h1,
body:not(.jwelllove-homepage-v3) .jwl-editable-hero h1 {
  color: var(--jwl-ds-grape);
  font-size: var(--jwl-ds-h1);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 h1 {
    font-size: var(--jwl-ds-h1);
    line-height: 1.1;
  }
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page h2,
body:not(.jwelllove-homepage-v3) .jwl-section h2,
body:not(.jwelllove-homepage-v3) .jwl-section-head h2,
body:not(.jwelllove-homepage-v3) .jwl-page-content h2,
body:not(.jwelllove-homepage-v3) .jwl-category-private-label h2,
body:not(.jwelllove-homepage-v3) .jwl-product-category-navigation h2,
body:not(.jwelllove-homepage-v3) .jwl-product-archive-v1 > .site-container > h2,
body:not(.jwelllove-homepage-v3) .jwl-product-decision-layer__intro h2,
body:not(.jwelllove-homepage-v3) .jwl-product-final-cta h2 {
  color: var(--jwl-ds-grape);
  font-size: var(--jwl-ds-h2);
  letter-spacing: -0.005em;
  line-height: 1.15;
}

body:not(.jwelllove-homepage-v3) .jwl-product-final-cta h2 {
  color: #fff;
  max-width: 760px;
}

/* Side-column headings on product pages read as labels, not posters. */
body:not(.jwelllove-homepage-v3) .jwl-product-section__heading h2 {
  color: var(--jwl-ds-grape);
  font-size: var(--jwl-ds-h2-side);
  line-height: 1.2;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page h3,
body:not(.jwelllove-homepage-v3) .jwl-section h3 {
  color: var(--jwl-ds-ink);
  font-size: var(--jwl-ds-h3);
  line-height: 1.3;
}

/* ---- Body copy --------------------------------------------------------- */
body:not(.jwelllove-homepage-v3) .jwl-editable-page p:not(.jwl-eyebrow),
body:not(.jwelllove-homepage-v3) .jwl-editable-page li,
body:not(.jwelllove-homepage-v3) .jwl-page-header p:not(.jwl-eyebrow),
body:not(.jwelllove-homepage-v3) .jwl-section-head p:not(.jwl-eyebrow),
body:not(.jwelllove-homepage-v3) .jwl-product-short-v1 p,
body:not(.jwelllove-homepage-v3) .jwl-product-prose,
body:not(.jwelllove-homepage-v3) .jwl-product-key-features ul {
  color: var(--jwl-ds-text);
  font-size: var(--jwl-ds-body);
  line-height: 1.7;
}

/* Long single-column paragraphs stay readable on wide screens. */
body:not(.jwelllove-homepage-v3) .jwl-editable-page .wp-block-group__inner-container > p,
body:not(.jwelllove-homepage-v3) .jwl-editable-page .wp-block-group__inner-container > ul,
body:not(.jwelllove-homepage-v3) .jwl-page-header p:not(.jwl-eyebrow) {
  max-width: 760px;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page .has-text-align-center,
body:not(.jwelllove-homepage-v3) .jwl-editable-page .wp-block-group__inner-container > p.has-text-align-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Spacing ----------------------------------------------------------- */
body:not(.jwelllove-homepage-v3) .jwl-page-header {
  padding-bottom: clamp(36px, 4.5vw, 60px);
  padding-top: clamp(36px, 4.5vw, 60px);
}

body:not(.jwelllove-homepage-v3) .jwl-section {
  padding-bottom: var(--jwl-ds-section);
  padding-top: var(--jwl-ds-section);
}

body:not(.jwelllove-homepage-v3) .jwl-product-hero {
  padding: clamp(28px, 4vw, 52px) 0;
}

body:not(.jwelllove-homepage-v3) .jwl-product-section {
  gap: clamp(20px, 4vw, 56px);
  grid-template-columns: minmax(200px, 0.3fr) minmax(0, 0.7fr);
  padding: clamp(32px, 4vw, 52px) 0;
}

body:not(.jwelllove-homepage-v3) .jwl-product-decision-layer {
  gap: 20px;
  padding-bottom: clamp(28px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 48px);
}

body:not(.jwelllove-homepage-v3) .jwl-product-decision-layer__intro h2 {
  margin-bottom: 0;
}

body:not(.jwelllove-homepage-v3) .jwl-product-final-cta {
  padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 56px);
}

body:not(.jwelllove-homepage-v3) .jwl-product-sections {
  padding-bottom: clamp(44px, 5vw, 72px);
}

/* Colour options render as compact chips. */
body:not(.jwelllove-homepage-v3) .jwl-product-color-list {
  align-items: flex-start;
}

body:not(.jwelllove-homepage-v3) .jwl-product-color-list span {
  border-radius: 999px;
  display: inline-flex;
  height: auto;
  min-height: 0;
  padding: 7px 14px;
  width: auto;
}

/* "Add to inquiry list" moves into the product summary (see site.js). */
.jwl-product-summary-v1 .jwlf-add-row--moved {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 14px 0 0;
  padding: 0;
  width: auto;
}

.jwl-product-summary-v1 .jwlf-add-row--moved button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--jwl-ds-accent);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jwl-product-summary-v1 .jwlf-add-row--moved p {
  color: var(--jwl-ds-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* ---- One button system ------------------------------------------------- */
.jwl-site-header .jwl-header-cta,
.jwl-header-cta {
  background: var(--jwl-ds-accent);
  border-color: var(--jwl-ds-accent);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 18px;
}

.jwl-site-header .jwl-header-cta:hover,
.jwl-header-cta:hover {
  background: var(--jwl-ds-accent-hover);
  border-color: var(--jwl-ds-accent-hover);
  color: #fff;
}

body:not(.jwelllove-homepage-v3) .jwl-button:not(.is-style-outline):not(.jwl-button--ghost) {
  background: var(--jwl-ds-accent);
  border-color: var(--jwl-ds-accent);
  color: #fff;
}

body:not(.jwelllove-homepage-v3) .jwl-button:not(.is-style-outline):not(.jwl-button--ghost):hover {
  background: var(--jwl-ds-accent-hover);
  border-color: var(--jwl-ds-accent-hover);
}

body:not(.jwelllove-homepage-v3) .jwl-product-final-cta .jwl-button:not(.is-style-outline) {
  background: #fff;
  border-color: #fff;
  color: var(--jwl-ds-grape);
}

body:not(.jwelllove-homepage-v3) .wp-block-button__link {
  border-radius: 999px;
}

body:not(.jwelllove-homepage-v3) .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--jwl-ds-accent);
  color: #fff;
}

/* ---- Mobile ------------------------------------------------------------ */
@media (max-width: 767px) {
  :root {
    --jwl-ds-h1: 1.85rem;
    --jwl-ds-h2: 1.5rem;
    --jwl-ds-h2-side: 1.35rem;
    --jwl-ds-section: 40px;
  }

  body:not(.jwelllove-homepage-v3) .jwl-product-section {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 0;
  }
}

/* Homepage accent follows the same brand colour as the rest of the site. */
:root {
  --fh-red: #8e2942;
  --fh-red-dark: #741f35;
}

/* 1.4.1 — product ordering section + quieter floating buttons */
.jwl-product-ordering {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.jwl-product-ordering .jwl-product-decision-grid {
  margin: 0;
}

.jwl-product-ordering__note {
  color: var(--jwl-ds-muted);
  font-size: 0.88rem;
  margin: 0;
}

.jwlf-list-open.is-empty {
  display: none !important;
}

@media (max-width: 767px) {
  .jwlf-list-open {
    bottom: 14px !important;
    font-size: 0.8rem !important;
    left: 12px !important;
    min-height: 0 !important;
    padding: 7px 12px !important;
  }

  .jwl-floating-contact a {
    align-items: center !important;
    display: flex !important;
    height: 48px !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: 48px !important;
  }

  .jwl-floating-contact {
    bottom: 14px !important;
    right: 12px !important;
  }
}

/* ==========================================================================
   1.4.2 — one content edge on every inner page
   Every block lines up with the header logo (same 1328px container).
   ========================================================================== */
:root {
  --jwl-wrap: min(calc(100% - 64px), 1328px);
}

@media (max-width: 767px) {
  :root {
    --jwl-wrap: calc(100% - 40px);
  }
}

/* Top-level bands keep their full-width background; their content sits in the wrap. */
body:not(.jwelllove-homepage-v3) .jwl-editable-page > .wp-block-group__inner-container > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page > .wp-block-group__inner-container > * > .wp-block-group__inner-container,
body:not(.jwelllove-homepage-v3) .jwl-editable-page > .wp-block-group__inner-container > *:not(.wp-block-group) {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  width: var(--jwl-wrap) !important;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page .wp-block-columns.alignwide,
body:not(.jwelllove-homepage-v3) .jwl-editable-page .wp-block-group.alignwide {
  width: 100%;
}

/* Text is left-aligned everywhere on inner pages (no centre/left mix). */
body:not(.jwelllove-homepage-v3) .jwl-editable-page .has-text-align-center {
  text-align: left !important;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page .is-content-justification-center {
  justify-content: flex-start !important;
}

/* Product catalogue + product family pages use the same edge. */
body:not(.jwelllove-homepage-v3) main.jwv-catalog,
body:not(.jwelllove-homepage-v3) main.jwv-product {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: var(--jwl-wrap);
}

body:not(.jwelllove-homepage-v3) .jwl-product-final-cta--wide {
  padding-left: calc((100% - var(--jwl-wrap)) / 2);
  padding-right: calc((100% - var(--jwl-wrap)) / 2);
}

/* ---- "Evaluate a model" sample band ------------------------------------ */
body:not(.jwelllove-homepage-v3) section.jwl-sample-content,
body:not(.jwelllove-homepage-v3) .jwl-editable-page.jwl-sample-content {
  box-sizing: border-box;
  margin: 0 auto clamp(36px, 4vw, 56px);
  max-width: none;
  width: var(--jwl-wrap);
}

body:not(.jwelllove-homepage-v3) section.jwl-sample-content {
  background: #f7ebe7;
  border-radius: 16px;
  display: grid;
  gap: 10px 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px);
}

body:not(.jwelllove-homepage-v3) section.jwl-sample-content h2 {
  color: var(--jwl-ds-grape);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  grid-column: 1;
  line-height: 1.25;
  margin: 0;
}

body:not(.jwelllove-homepage-v3) section.jwl-sample-content p {
  color: var(--jwl-ds-text);
  grid-column: 1;
  margin: 0;
}

/* The button line becomes a right-hand action column; the "·" separator is dropped. */
body:not(.jwelllove-homepage-v3) section.jwl-sample-content p:has(.jwl-button) {
  align-items: flex-end;
  align-self: center;
  display: flex;
  flex-direction: column;
  font-size: 0;
  gap: 10px;
  grid-column: 2;
  grid-row: 1 / span 2;
}

body:not(.jwelllove-homepage-v3) section.jwl-sample-content p:has(.jwl-button) a {
  font-size: 0.9rem;
}

body:not(.jwelllove-homepage-v3) section.jwl-sample-content p:has(.jwl-button) a:not(.jwl-button) {
  color: var(--jwl-ds-accent);
  font-weight: 600;
}

/* ---- "Next steps" link row → tidy chips -------------------------------- */
body:not(.jwelllove-homepage-v3) nav.jwl-buyer-next-steps {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto clamp(44px, 5vw, 72px);
  padding: 0;
  width: var(--jwl-wrap);
}

body:not(.jwelllove-homepage-v3) nav.jwl-buyer-next-steps::before {
  color: var(--jwl-ds-muted);
  content: "Next steps";
  flex-basis: 100%;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

body:not(.jwelllove-homepage-v3) nav.jwl-buyer-next-steps > span {
  display: none;
}

body:not(.jwelllove-homepage-v3) nav.jwl-buyer-next-steps a {
  background: #fff;
  border: 1px solid var(--jwl-ds-line);
  border-radius: 999px;
  color: var(--jwl-ds-grape);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
}

body:not(.jwelllove-homepage-v3) nav.jwl-buyer-next-steps a:hover {
  border-color: var(--jwl-ds-accent);
  color: var(--jwl-ds-accent);
}

/* ---- Contact page: form on the left, company details on the right ------ */
@media (min-width: 1100px) {
  body.page-id-11 .jwl-editable-page > .wp-block-group__inner-container {
    column-gap: 0;
    display: grid;
    grid-template-columns: [full-start] max(32px, calc((100% - 1328px) / 2)) [main-start] minmax(0, 1fr) [main-end] 48px [side-start] 400px [side-end] max(32px, calc((100% - 1328px) / 2)) [full-end];
  }

  body.page-id-11 .jwl-editable-page > .wp-block-group__inner-container > * {
    grid-column: full;
  }

  body.page-id-11 .jwl-editable-page > .wp-block-group__inner-container > .jwl-editable-page-shortcode {
    grid-column: main;
    grid-row: 2;
  }

  body.page-id-11 .jwl-editable-page > .wp-block-group__inner-container > .wp-block-group.alignwide {
    align-self: start;
    grid-column: side-start / side-end;
    grid-row: 2;
    margin-top: clamp(36px, 4vw, 56px) !important;
  }

  body.page-id-11 .jwl-editable-page > .wp-block-group__inner-container > .jwl-editable-page-shortcode > .wp-block-group__inner-container,
  body.page-id-11 .jwl-editable-page > .wp-block-group__inner-container > .wp-block-group.alignwide > .wp-block-group__inner-container {
    width: 100% !important;
  }

  body.page-id-11 .jwl-editable-page > .wp-block-group__inner-container > .jwl-editable-page-head > .wp-block-group__inner-container {
    width: var(--jwl-wrap) !important;
  }

  body.page-id-11 .jwl-editable-page > .wp-block-group__inner-container > .wp-block-group.alignwide .wp-block-columns {
    background: #fff;
    border: 1px solid var(--jwl-ds-line);
    border-radius: 16px;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 28px;
  }
}

body.page-id-11 .jwl-editable-page .wp-block-group.alignwide .wp-block-column h2 {
  font-size: var(--jwl-ds-h2-side);
  margin-bottom: 10px;
}

body:not(.jwelllove-homepage-v3) div.jwl-editable-page.jwl-sample-content {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: var(--jwl-wrap) !important;
}

/* Section rhythm inside editable page bodies: equal spacing + a hairline between sections. */
body:not(.jwelllove-homepage-v3) .jwl-editable-page-body > .wp-block-group__inner-container > * + .wp-block-group,
body:not(.jwelllove-homepage-v3) .jwl-editable-page-body > .wp-block-group__inner-container > * + .wp-block-columns,
body:not(.jwelllove-homepage-v3) .jwl-editable-page-body > .wp-block-group__inner-container > * + .wp-block-media-text {
  border-top: 1px solid var(--jwl-ds-line);
  margin-top: clamp(40px, 4.5vw, 64px) !important;
  padding-top: clamp(40px, 4.5vw, 64px) !important;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page-body > .wp-block-group__inner-container > * + p {
  margin-top: 20px !important;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page-body > .wp-block-group__inner-container > :first-child {
  margin-top: clamp(16px, 2vw, 28px) !important;
}

/* Media + text blocks: headings use the full text column instead of 11ch. */
body:not(.jwelllove-homepage-v3) .jwl-editable-split h2,
body:not(.jwelllove-homepage-v3) .wp-block-media-text__content h2 {
  max-width: 20ch;
}

body:not(.jwelllove-homepage-v3) .wp-block-media-text.alignwide {
  border-radius: 16px;
  overflow: hidden;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page h2 {
  margin-bottom: 18px;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page h3 {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  body:not(.jwelllove-homepage-v3) section.jwl-sample-content {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.jwelllove-homepage-v3) section.jwl-sample-content p:has(.jwl-button) {
    align-items: flex-start;
    grid-column: 1;
    grid-row: auto;
  }
}

body:not(.jwelllove-homepage-v3) .jwl-inquiry-form button[type="submit"] {
  background: var(--jwl-ds-accent);
  border-color: var(--jwl-ds-accent);
  color: #fff;
}

body:not(.jwelllove-homepage-v3) .jwl-inquiry-form button[type="submit"]:hover {
  background: var(--jwl-ds-accent-hover);
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page-body {
  padding-bottom: clamp(40px, 5vw, 72px) !important;
}

@media (max-width: 767px) {
  body:not(.jwelllove-homepage-v3) nav.jwl-buyer-next-steps {
    gap: 8px;
  }

  body:not(.jwelllove-homepage-v3) nav.jwl-buyer-next-steps a {
    font-size: 0.82rem;
    padding: 6px 12px;
  }
}

/* Header and product-page shells share the same edge as page content. */
.jwl-site-header .jwl-site-header__inner {
  width: var(--jwl-wrap) !important;
}

body:not(.jwelllove-homepage-v3) .jwl-product-system .jwl-product-shell {
  box-sizing: border-box;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: var(--jwl-wrap);
}

/* jwv templates (catalogue, product family, buyer guides) share the 1328px edge. */
:root {
  --jwv-max: 1392px;
  --jwv-pad: 32px;
}

body.jwv-system .jwl-site-header .jwl-site-header__inner,
.jwv-system .jwl-site-header .jwl-site-header__inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 767px) {
  :root {
    --jwv-pad: 20px;
  }
}

body:not(.jwelllove-homepage-v3) main.jbg-page {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: var(--jwl-wrap);
}

/* ==========================================================================
   1.5.0 — compact standard product page
   ========================================================================== */
.jwl-product-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 8px;
}

.jwl-product-facts > div {
  background: #f7efec;
  border-radius: 10px;
  padding: 11px 14px;
}

.jwl-product-facts dt {
  color: var(--jwl-ds-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 2px;
}

.jwl-product-facts dd {
  color: var(--jwl-ds-ink);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
}

.jwl-product-facts__note {
  color: var(--jwl-ds-muted);
  font-size: 0.82rem;
  margin: 0 0 18px;
}

body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 .jwl-product-key-features {
  margin-top: 18px;
  padding-top: 16px;
}

body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 .jwl-product-key-features ul {
  margin-bottom: 0;
}

.jwl-product-details {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.jwl-product-details .jwl-product-prose p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .jwl-product-details .jwl-product-data-table {
    column-gap: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jwl-product-details .jwl-product-data-table > div {
    grid-template-columns: minmax(110px, 0.45fr) minmax(0, 0.55fr);
    padding: 12px 0;
  }
}

.jwl-product-faq details ul {
  color: var(--jwl-ds-text);
  margin: 10px 0 4px;
  padding-left: 20px;
}

.jwl-product-guides-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
}

.jwl-product-guides-inline span {
  color: var(--jwl-ds-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.jwl-product-guides-inline a {
  border: 1px solid var(--jwl-ds-line);
  border-radius: 999px;
  color: var(--jwl-ds-grape);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 12px;
  text-decoration: none;
}

.jwl-product-packaging-image img {
  border-radius: 12px;
  height: auto;
  max-width: 360px;
  width: 100%;
}

body:not(.jwelllove-homepage-v3) .jwl-product-section--related .jwl-product-section__heading {
  align-self: start;
}

/* Attribute tags duplicated the key features and crowded the summary. */
body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 .jwl-product-attribute-list {
  display: none;
}

/* ==========================================================================
   1.6.0 — single-model products share the v2 product layout
   ========================================================================== */
.jwv-add-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
}

.jwv-add-row p {
  margin: 0;
}

.jwv-link-button {
  background: none;
  border: 0;
  color: var(--jwl-ds-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jwv-feature-list {
  color: var(--jwl-ds-text);
  line-height: 1.6;
  margin: 0 0 22px;
  padding-left: 20px;
}

.jwv-product--single .jwv-gallery:not(:has(.jwv-thumbnails)) {
  grid-template-columns: minmax(0, 1fr);
}

/* ==========================================================================
   Mobile footer: link groups in two columns
   ========================================================================== */
@media (max-width: 767px) {
  .factory-home__footer--global .factory-home__footer-grid {
    column-gap: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .factory-home__footer--global .factory-home__footer-brand,
  .factory-home__footer--global .factory-home__footer-grid > nav:last-child {
    grid-column: 1 / -1;
  }

  .factory-home__footer--global .factory-home__footer-grid > nav h2 {
    margin-bottom: 6px;
  }

  .factory-home__footer--global .factory-home__footer-grid > nav a {
    padding-block: 3px;
  }

  /* Contact column spans both columns: links on one row, social + address below. */
  .factory-home__footer--global .factory-home__footer-grid > nav:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: block !important;
    padding-top: 18px;
  }

  .factory-home__footer--global .factory-home__footer-grid > nav:last-child > a {
    display: inline-block !important;
    margin-right: 18px;
  }

  .factory-home__footer--global .factory-home__footer-grid > nav:last-child .jwl-footer-follow,
  .factory-home__footer--global .factory-home__footer-grid > nav:last-child > span {
    display: block !important;
    margin-top: 14px;
    max-width: none;
    white-space: normal;
    width: auto;
  }
}

/* 1.6.1 related models on v2 product pages */
.jwv-related .jwl-product-grid,
.jwv-related .jwl-products-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .jwv-related .jwl-product-grid,
  .jwv-related .jwl-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.jwv-related .jwv-section-top p a {
  color: var(--jwl-ds-accent);
  font-weight: 700;
}

.jwv-related .jwl-product-card h3 a {
  color: var(--jwl-ds-ink);
  text-decoration: none;
}

.jwv-related .jwl-product-card h3 a:hover {
  color: var(--jwl-ds-accent);
}

.jwv-related .jwl-product-card .jwl-product-card__link {
  background: var(--jwl-ds-accent);
  border-color: var(--jwl-ds-accent);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.jwv-related .jwl-product-card .jwl-product-card__link:hover {
  background: var(--jwl-ds-accent-hover);
  color: #fff;
}

/* 1.6.2 homepage certification marks: one tidy row, no wrapping inside a mark */
.factory-home__cert-marks {
  align-items: center;
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.factory-home__cert-marks span {
  white-space: nowrap;
}

/* 1.6.2 helpful 404 page */
.jwl-404__inner {
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 0;
  width: var(--jwl-wrap);
}

.jwl-404__inner h1 {
  color: var(--jwl-ds-grape);
  font-size: var(--jwl-ds-h1);
  line-height: 1.1;
  margin: 8px 0 14px;
  max-width: 760px;
}

.jwl-404__inner > p:not(.jwl-eyebrow) {
  color: var(--jwl-ds-text);
  max-width: 680px;
}

.jwl-404__inner h2 {
  color: var(--jwl-ds-grape);
  font-size: var(--jwl-ds-h2-side);
  margin: 36px 0 12px;
}

.jwl-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.jwl-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jwl-404__links a {
  background: #fff;
  border: 1px solid var(--jwl-ds-line);
  border-radius: 999px;
  color: var(--jwl-ds-grape);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
}

.jwl-404 .jwl-button.is-style-outline {
  background: transparent;
  border: 1px solid rgba(75, 37, 48, 0.36);
  color: var(--jwl-ds-grape);
}

/* 1.6.3 inquiry form guard */
.jwl-form-guard{margin:8px 0 0;padding:10px 12px;border-radius:8px;background:#fbeef1;color:#8e2942;font-size:14px;line-height:1.45}

/* 1.7.0 category pages share the catalog look */
.jwv-category .jwv-breadcrumb{padding:20px 0 0}
.jwv-category .jwv-catalog-hero{padding-top:24px}
.jwv-category .jwv-catalog-hero .jwv-actions{margin-top:8px}
.jwv-card-more{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--jwv-line);border-radius:5px;font-size:12px;font-weight:700;color:var(--jwv-accent);background:#fff}
.jwv-category-about{border-top:1px solid var(--jwv-line);padding-top:40px}
.jwv-category-about>div>p{font-size:15px;max-width:900px}
.jwv-category-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin:8px 0 12px}
.jwv-category-lists h3{font-size:16px!important;margin:8px 0 10px!important}
.jwv-category-lists ul{padding-left:20px;margin:0;font-size:14px}
.jwv-category-lists li{margin-bottom:6px}
.jwv-category-moq{background:#f7f5f4;border-radius:8px;padding:14px 16px;font-size:14px}
@media(max-width:700px){.jwv-category-lists{grid-template-columns:1fr;gap:12px}}
@media(max-width:700px){
.jwv-catalog-visual{display:none!important}
.jwv-catalog-hero{padding-bottom:8px!important}
body .jwv-category-pills{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:12px -20px 16px!important;padding:0 20px 4px!important;justify-content:flex-start!important}
.jwv-category-pills::-webkit-scrollbar{display:none}
body .jwv-category-pills a{flex:none!important;white-space:nowrap}
}
