/* Keep semantic headings at the original Electrify scale in both colour modes. */
html:not([data-pcr-layout]) :is(#content, #column-left, #column-right) .box-heading,
html:not([data-pcr-layout]) footer #footer h2 {
  font: 400 16px/26px "Montserrat", sans-serif !important;
  letter-spacing: .6px;
  text-transform: uppercase !important;
  text-align: start;
}

/* Product attributes: keep the native table semantics in both product tabs. */
body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table {
  width: 100%;
  margin: 24px 0 18px;
  border: 1px solid #dce5d9;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(36, 61, 30, .05);
}
body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > thead > tr > td {
  padding: 15px 20px;
  border: 0;
  border-bottom: 1px solid #dce5d9;
  background: #f1f7ed;
  color: #24351e;
  font-size: 16px;
  line-height: 1.45;
}
body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > tbody > tr > td {
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid #e8ede6;
  color: #29352b;
  font-size: 15px;
  line-height: 1.55;
  vertical-align: top;
  overflow-wrap: anywhere;
}
body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > tbody > tr > td:first-child {
  width: 38%;
  color: #546452;
  font-weight: 600;
}
body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > tbody:last-child > tr:last-child > td { border-bottom: 0; }
html[data-theme="dark"] body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table {
  border-color: #465548;
  background: #252e29;
  box-shadow: none;
}
html[data-theme="dark"] body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > thead > tr > td {
  background: #30432f;
  border-color: #465548;
  color: #f2f8ed;
}
html[data-theme="dark"] body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > tbody > tr > td {
  background: #252e29;
  border-color: #3d4941;
  color: #edf3eb;
}
html[data-theme="dark"] body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > tbody > tr > td:first-child { color: #c5d5c1; }
@media (max-width: 575px) {
  body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > :is(thead, tbody) > tr > td { padding: 12px 14px; font-size: 14px; }
  body[class*="product-product"] :is(#tab-specification, #tab-specification1) > table.table > tbody > tr > td:first-child { width: 42%; }
}

/* A real shared row replaces the legacy floats and negative tab margin. */
html:not([data-pcr-layout]) #content .hometab > .tab-head {
  box-sizing: border-box;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  height: auto;
  min-height: 64px;
  margin: 0 0 20px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--dm-border, #e6e6e6);
  border-radius: 0;
  text-align: start;
}

html:not([data-pcr-layout]) #content .hometab > .tab-head > .box-heading {
  display: block;
  flex: 1 1 190px;
  float: none !important;
  width: auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html:not([data-pcr-layout]) #content .hometab > .tab-head > .box-heading::after { display: none; }

html:not([data-pcr-layout]) #content .hometab .htabs {
  display: flex;
  flex: 0 1 auto;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}
html:not([data-pcr-layout]) #content .hometab .htabs .etabs {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 18px;
  float: none;
  width: auto;
  margin: 0 !important;
  padding: 0;
  text-align: start;
}
html:not([data-pcr-layout]) #content .hometab .htabs .etabs > li {
  display: block;
  float: none;
  width: auto;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
html:not([data-pcr-layout]) #content .hometab .htabs .etabs a {
  display: block;
  float: none;
  width: auto;
  margin: 0 !important;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--dm-border-soft, #ededed);
  font: 400 13px/26px "Montserrat", sans-serif;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-align: center;
  transition: color .15s ease, border-color .15s ease;
}

/* The other catalogue sections use the same left inset and control row. */
html:not([data-pcr-layout]) #content .box:is(.featured, .latest, .special, .bestseller, .related, .blogs, .banners-slider-carousel) .box-head {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 64px;
  height: auto;
  margin: 0 0 20px !important;
  padding: 12px 106px 12px 14px !important;
  border-bottom: 1px solid var(--dm-border, #e6e6e6);
  text-align: start;
}
html:not([data-pcr-layout]) #content .box:is(.featured, .latest, .special, .bestseller, .related, .blogs, .banners-slider-carousel) .box-head > .box-heading {
  display: block;
  float: none !important;
  width: auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html:not([data-pcr-layout]) #content .box .box-head > .box-heading::after { display: none; }
html:not([data-pcr-layout]) #content .box:is(.featured, .latest, .special, .bestseller, .related, .blogs, .banners-slider-carousel) .box-content > .customNavigation {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  inset: -70px 14px auto auto;
  width: auto;
  margin: 0;
}
html:not([data-pcr-layout]) #content .box:is(.featured, .latest, .special, .bestseller, .related, .blogs, .banners-slider-carousel) .customNavigation :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static;
  float: none;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  font-size: 0;
  line-height: 1;
}
html:not([data-pcr-layout]) #content .box .customNavigation :is(a, button)::before { font-size: 22px; line-height: 1; }

html:not([data-theme="dark"]):not([data-pcr-layout]) #content .hometab .htabs .etabs a { color: #5c6357; }
html:not([data-theme="dark"]):not([data-pcr-layout]) #content .hometab .htabs .etabs a:is(.selected, .active, :hover, :focus-visible) {
  color: #26351f;
  border-bottom-color: #357a0b;
}
html:not([data-theme="dark"])[data-pcr-sale-bg] :is(#column-left, #column-right) .box.category > .box-heading { color: var(--sale-ink) !important; }

@media (max-width: 767px) {
  html:not([data-pcr-layout]) #content .hometab > .tab-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  html:not([data-pcr-layout]) #content .hometab > .tab-head > .box-heading { flex: 0 0 auto; width: 100%; }
  html:not([data-pcr-layout]) #content .hometab .htabs { flex: 0 0 auto; width: 100%; }
  html:not([data-pcr-layout]) #content .hometab .htabs .etabs {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    width: 100%;
  }
  html:not([data-pcr-layout]) #content .hometab .htabs .etabs > li { min-width: 0; }
  html:not([data-pcr-layout]) #content .hometab .htabs .etabs > li:nth-child(3):last-child { grid-column: 1 / -1; }
  html:not([data-pcr-layout]) #content .hometab .htabs .etabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    min-height: 44px;
    padding: 6px 0;
    font-size: 11px;
    line-height: 18px;
    white-space: normal;
  }
  html:not([data-pcr-layout]) #content .box:is(.featured, .latest, .special, .bestseller, .related, .blogs, .banners-slider-carousel) .box-head {
    min-height: 52px;
    margin-bottom: 12px !important;
    padding-inline-end: 14px !important;
  }
  html:not([data-pcr-layout]) #content .box:is(.featured, .latest, .special, .bestseller, .related, .blogs, .banners-slider-carousel) .box-content > .customNavigation {
    position: static;
    inset: auto;
    justify-content: flex-end;
    margin: 0 0 12px;
  }
}
