.eco-button {margin-top: -2em !important;}

/* =========================
   SMALL GLOBAL TWEAKS
========================= */

.RadGrid { margin-top: 3em !important; }

.categories-navbar { line-height: 16px; }

.categories-navbar .category-title-wrapper .category-title {
  margin-right: 0px !important;
  margin-bottom: 6px;
}

.categories-navbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  align-items: stretch;
  justify-content: flex-start;
}

#DocumentsContainerDiv { max-height: 50vh !important; }

.xw-featured-products-swiper .swiper-slide img { object-fit: cover !important; }

/* Make product name text sit neatly under image */
.xw-featured-products-swiper .xw-featured-products-name {
  text-align: left;
  margin: 10px auto 0;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.layout .main-content { padding-top: 0em !important; }


/* =========================
   FEATURED PRODUCTS TITLE LINE
========================= */

/* Add a line above the Eco Products title */
.xw-featured-products-title:before {
  content: "";
  display: block;
  width: 100%;
  max-width: 90%;
  height: 1px;
  background-color: #00abaa;
  margin: 60px auto 20px auto; /* top | right | bottom | left */
}

/* Title spacing */
.xw-featured-products-title {
  margin-top: 3em;
}

/* Subtitle */
.xw-featured-widget-subtitle {
  color: black !important;
  margin-bottom: 2em;
}

.xw-featured-products-swiper .swiper-wrapper {margin-bottom: 5em !Important;}


/* =========================
   HOMEPAGE BANNER BUTTON
========================= */

.xw-homepage-banner-button-cta.truncate {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

.xw-homepage-banner-button-cta {
  cursor: pointer;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: #20a8ce;
  text-transform: uppercase;
  text-align: center;
  background-color: transparent;
  border: 3px solid #20a8ce;
  border-radius: 25px;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: fit-content;
  text-transform: none !important;
}


/* ==========================================
   HOMEPAGE BANNER SWIPER (SCOPED TO HOMEPAGE)
   IMPORTANT: prevents breaking product page swipers
========================================== */

/* Swiper container — ONLY for the homepage banner */
.home .xw-homepage-banner-swiper.swiper {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

/* Slide layout and alignment — ONLY for homepage banner */
.home .xw-homepage-banner-swiper .swiper-slide,
.home .xw-homepage-banner-swiper .swiper-slide-active {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 80vh !important;
  box-sizing: border-box;
  padding: 0 1rem;
  text-align: center;
  background-image: none !important;
}

/* Placeholder image hidden — ONLY for homepage banner */
.home .xw-homepage-banner-placeholder {
  display: none !important;
}

/* Hide slider arrows — ONLY for homepage banner */
.home .xw-homepage-banner-swiper-button-prev,
.home .xw-homepage-banner-swiper-button-next {
  display: none !important;
}

/* Title + Subtext Styling — ONLY for homepage banner */
.home .xw-homepage-banner-slide-title {
  font-size: 30px !important;
  color: #ffffff;
  margin-bottom: 1em;
}

.home .xw-homepage-banner-slide-subtext {
  font-size: 20px !important;
  color: #ffffff;
  margin-bottom: 1em;
}

/* CTA Button — ONLY for homepage banner */
.home .xw-homepage-banner-swiper .swiper-slide .cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background-color: #ffffff;
  color: #00abaa;
  font-weight: bold;
  border: none;
  text-decoration: none;
  margin-top: 1em;
  font-size: 16px;
  transition: background-color 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.home .xw-homepage-banner-swiper .swiper-slide .cta:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Slide-specific colour styles — ONLY for homepage banner */
.home .xw-homepage-banner-swiper .swiper-slide:nth-child(1) {
  background-color: #00abaa !important;
}

.home .xw-homepage-banner-swiper .swiper-slide:nth-child(1) h2,
.home .xw-homepage-banner-swiper .swiper-slide:nth-child(1) .subtext {
  color: #ffffff !important;
}

.home .xw-homepage-banner-swiper .swiper-slide:nth-child(2) {
  background-color: #f0f0f0 !important;
}

.home .xw-homepage-banner-swiper .swiper-slide:nth-child(2) h2,
.home .xw-homepage-banner-swiper .swiper-slide:nth-child(2) .subtext {
  color: #00abaa !important;
}


/* =========================
   HEADER / PROMO CLEANUP
========================= */

/* Prevent header from overlapping */
header, .header, .site-header {
  position: relative !important;
  z-index: 1000;
}

/* Hide promotion/image defaults */
.promotion-item,
.promotion-item .promotion-image,
.promotion-item .main {
  display: none !important;
  height: 0 !important;
}


/* =========================
   MOBILE RESPONSIVENESS (HOMEPAGE BANNER ONLY)
========================= */

@media screen and (max-width: 768px) {
  .home .xw-homepage-banner-slide-title {
    font-size: 24px !important;
  }

  .home .xw-homepage-banner-slide-subtext {
    font-size: 16px !important;
  }

  .home .xw-homepage-banner-swiper .swiper-slide {
    padding: 1rem;
    min-height: calc(90vh - 100px);
  }

  .home .xw-homepage-banner-swiper .swiper-slide .cta {
    font-size: 14px;
    padding: 8px 16px;
    margin-top: 1em;
    width: fit-content;
    min-width: auto;
  }
}


/* =========================
   TABLE STYLES
========================= */

.DP2Htable {
  width: auto;
  max-width: 960px;
  margin: 20px 0;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 14px;
  text-align: center;
  border: 1px solid #ccc;
}

.DP2Htable th,
.DP2Htable td {
  padding: 10px 12px;
  border: 1px solid #ccc;
}

/* Top header row (teal block) */
.DP2Htable thead th {
  background-color: #00A8A8;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
}

/* First row after thead — Silk / Gloss header */
.DP2Htable .header td {
  background-color: #fff;
  color: #444;
  font-weight: normal;
}

/* Sub-header row (gsm weights) */
.DP2Htable .subHeader td {
  background-color: #f5f5f5;
  font-weight: normal;
  color: #444;
}

/* Alternating row colours */
.DP2Htable tr:nth-child(even):not(.header):not(.subHeader) td {
  background-color: #f9f9f9;
}

/* Last row (Contact us) */
.DP2Htable tr:last-child td {
  font-weight: bold;
  background-color: #f5f5f5;
  color: #444;
  text-align: center;
}

/* Optional borders */
.leftBorder { border-left: 1px solid #ccc; }
.rightBorder { border-right: 1px solid #ccc; }


/* =========================
   GENERAL CLEANUPS & FIXES
   (kept safe — removed half-sticky footer behaviour)
========================= */

html, body {
  height: auto;
  margin: 0;
  padding: 0;
}

/* NOTE:
   Removed margin-top:auto footer behaviour because it only works reliably
   when body is flex, and can cause layout oddities in some themes.
   Your custom footer styling below stays exactly the same.
*/


/* =========================
   THEME CUSTOMIZATIONS
========================= */

.home .featured-products-wrapper { display: none; }

.promotion-item .button {
  color: black;
  background-color: white;
}

.search .search-button {
  background-color: #00ABAB;
  border-color: #00ABAB;
}

.categories-navbar .category-title-wrapper {
  height: auto;
  align-content: flex-start;
  margin: 0px;
  padding: 0px;
}

.categories-navbar .category-title {
  font-weight: 600;
  border: 1px solid #00ABAB !important;
  background-color: #00ABAB;
  padding: 6px 10px;
  margin: 0px;
  border-radius: 15px;
  text-decoration: none;
  color: #ffffff;
  display: inline-block;
}

.categories-navbar .category-title-wrapper .category-title.highlight {
  font-weight: 600;
  border: 2px solid #00ABAB !important;
  background-color: #e3e6e5;
  padding: 6px 10px;
  border-radius: 15px;
  color: #000000 !important;
}

.header .header-stripe .search { width: 200px; }

.categories-wrapper,
.divider { display: none; }

.product-item .image-wrapper {
  padding: 0px;
  background-color: white;
}


/* =========================
   TABLE STYLE (OPTIONAL)
========================= */

.DP1Htable {
  width: 20em;
  border-collapse: collapse;
  background-color: #f9f9f9;
  font-size: 16px;
}

.DP1Htable th,
.DP1Htable td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.DP1Htable th {
  background-color: #00ABAB;
  color: #ffffff;
  font-weight: bold;
}

.DP1Htable tr:nth-child(even) {
  background-color: #f2f2f2;
}

.tbody { width: 100%; }

.Duc dl .dtiName .FormLabel {
  margin: 0px !important;
  padding: 0px !important;
  line-height: 0px !important;
}

.categorytext {
  padding-top: 3em !important;
  margin-bottom: -1em;
}


/* =========================
   CUSTOM FOOTER STYLES
========================= */

.custom-footer {
  background-color: #00abaa;
  color: white;
  font-family: sans-serif;
  padding: 2rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.custom-footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 0px solid rgba(255, 255, 255, 0.3);
  padding-top: 2rem;
}

.custom-footer-column {
  flex: 1;
  min-width: 200px;
  margin: 0 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 2rem;
}

.custom-footer-column:last-child {
  border-right: none;
  padding-right: 0;
}

.custom-footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.custom-footer a {
  color: white;
  text-decoration: underline;
}

.footer-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: white;
  color: #00abaa !important;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: bold;
  transition: all 0.1s ease;
  border: none;
}

.footer-link:hover {
  background-color: transparent;
  color: white !important;
  border: 2px solid white;
}

.footer {
  height: auto !important;
  padding: 0 !important;
}


/* =========================
   PRODUCT PAGE IMAGE STYLES
========================= */

/* Enlarge and left-align the product image */
.ProductDescMainSlide img {
  max-width: 100% !important;
  width: 300px !important;
  height: auto !important;
  display: block;
  margin: 0 auto 0 0;
  object-fit: contain;
}

/* Caption underneath the image */
.ProductDescMainSlide span[id$="_lblPage"] {
  display: block;
  text-align: left;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
}

/* Restore arrow icon size */
.ProductDescMainSlide img[id*="_btnPrev"],
.ProductDescMainSlide img[id*="_btnNext"] {
  width: 24px !important;
  height: 24px !important;
  margin: 0 5px !important;
  vertical-align: middle;
}