/* Macromed product and navigation refinements - 2026-09-30 */
.home-hero-wrapper .swiper .swiper-slide { background: #fff; }
.home-hero-wrapper .swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill !important;
}

.header .right .dropdown-content-products,
.footer .footer-header .right .dropdown-content-products {
  min-width: 180px;
  width: max-content;
  max-width: 280px;
  overflow: visible;
}
.dropdown-content-products .category-menu-item { position: relative; }
.dropdown-content-products .category-menu-item > a {
  min-width: 180px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: normal;
}
.dropdown-content-products .category-menu-item > a:hover {
  background: #2559b7 !important;
  color: #fff !important;
}
.dropdown-content-products .submenu-arrow { font-size: 22px; line-height: 1; }
.dropdown-content-products .subcategory-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  width: max-content;
  max-width: 320px;
  background: #f1f1f1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.dropdown-content-products .category-menu-item:hover > .subcategory-menu { display: block; }

.products-container .categories-content .category .nav-category .subcategory-link {
  width: calc(100% - 18px);
  margin-left: 18px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.45);
}
.category-results .itemresult .result-img-wrap img,
.inner-content-product .left-swip-content .mySwiper2 .swiper-wrapper img,
.inner-content-product .left-swip-content .swiper-slide img { object-fit: contain !important; }
.category-results .itemresult span {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  min-height: 48px;
  overflow-wrap: anywhere;
}
.category-results .itemresult,
.other-products-container .carousel-other-products .swiper .swiper-slide {
  height: auto;
  min-height: 100%;
}
.other-products-container .carousel-other-products .swiper .swiper-slide span {
  width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Product detail layout */
.inner-content-product {
  width: min(90%, 1440px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 3vw, 44px);
  margin-top: 120px;
}

.inner-content-product .left-swip-content {
  width: 100%;
  height: auto !important;
  min-width: 0;
  display: flex;
  gap: 18px;
}

.inner-content-product .left-swip-content .mySwiper2 {
  width: 100%;
  height: clamp(430px, 38vw, 620px);
  min-height: 430px;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.inner-content-product .left-swip-content .mySwiper2 .swiper-wrapper,
.inner-content-product .left-swip-content .mySwiper2 .swiper-slide {
  width: 100%;
  height: 100% !important;
}

.inner-content-product .left-swip-content .mySwiper2 .swiper-slide {
  padding: 20px;
  background: #fff;
}

.inner-content-product .left-swip-content .mySwiper2 .swiper-slide img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain !important;
}

.inner-content-product .left-swip-content .mySwiper2_2 {
  width: 100%;
  height: 112px;
  padding: 0;
  right: auto;
  border-radius: 0;
}

.inner-content-product .left-swip-content .mySwiper2_2 .swiper-slide {
  height: 106px !important;
  padding: 8px;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  background: #fff;
  opacity: 0.72;
}

.inner-content-product .left-swip-content .mySwiper2_2 .swiper-slide-thumb-active {
  border: 2px solid #2559b7;
  opacity: 1;
}

.inner-content-product .left-swip-content .mySwiper2_2 img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

.inner-content-product .right-text-content {
  width: 100%;
  padding: clamp(8px, 2vw, 24px) 0;
  align-items: flex-start;
  justify-content: flex-start;
}

.inner-content-product .right-text-content h2 {
  margin: 0;
  color: #023084;
  font-size: clamp(28px, 2.3vw, 42px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.inner-content-product .right-text-content p {
  position: static;
  margin: 24px 0 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  white-space: pre-line;
}

@media (max-width: 967px) {
  .inner-content-product {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 18px;
    margin-top: 100px;
  }
  .inner-content-product .left-swip-content .mySwiper2 {
    height: clamp(340px, 75vw, 520px);
    min-height: 340px;
  }
  .inner-content-product .left-swip-content .mySwiper2_2 {
    height: 96px;
  }
  .inner-content-product .left-swip-content .mySwiper2_2 .swiper-slide {
    height: 90px !important;
  }
  .inner-content-product .right-text-content {
    padding: 0 4px 12px;
  }
  .header .show .content .right .dropdown-content-products {
    min-width: 227px;
    width: min(82vw, 340px);
    max-width: 340px;
    overflow: visible;
  }
  .header .show .content .right .dropdown-content-products .category-menu-item > a {
    min-width: 0;
    padding: 8px 12px;
  }
  .header .show .content .right .dropdown-content-products .subcategory-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    background: #e4e4e4;
  }
  .header .show .content .right .dropdown-content-products .subcategory-menu a {
    padding-left: 26px;
  }
}

@media (max-width: 575px) {
  .inner-content-product .left-swip-content .mySwiper2 {
    height: 360px;
    min-height: 360px;
  }
  .inner-content-product .left-swip-content .mySwiper2 .swiper-slide {
    padding: 10px;
  }
}
.top-header .right .macromed-admin-social .logo-wrapper svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.top-header .right .macromed-admin-social .logo-wrapper img {
    object-fit: contain;
}

/* Home slider controls - 2026-10-06 */
.home-hero-wrapper .mySwiper5555 .swiper-button-next,
.home-hero-wrapper .mySwiper5555 .swiper-button-prev {
  width: 48px;
  height: 48px;
  top: 50%;
  bottom: auto;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #ee2c2c !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.home-hero-wrapper .mySwiper5555 .swiper-button-prev { left: 30px; right: auto; }
.home-hero-wrapper .mySwiper5555 .swiper-button-next { right: 30px; left: auto; }
.home-hero-wrapper .mySwiper5555 .swiper-button-next::after,
.home-hero-wrapper .mySwiper5555 .swiper-button-prev::after { content: none; }
.home-hero-wrapper .mySwiper5555 .swiper-button-next svg,
.home-hero-wrapper .mySwiper5555 .swiper-button-prev svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-hero-wrapper .mySwiper5555 .swiper-button-next:not(.swiper-button-disabled):hover,
.home-hero-wrapper .mySwiper5555 .swiper-button-prev:not(.swiper-button-disabled):hover {
  background: #fff5f5;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .18);
}
.home-hero-wrapper .mySwiper5555 .swiper-button-next:focus-visible,
.home-hero-wrapper .mySwiper5555 .swiper-button-prev:focus-visible {
  outline: 2px solid #ee2c2c;
  outline-offset: 3px;
}
.home-hero-wrapper .mySwiper5555 .swiper-button-disabled {
  opacity: 1;
  cursor: default;
  pointer-events: none;
}
.home-hero-wrapper .mySwiper5555 .swiper-pagination-hero {
  position: absolute;
  top: auto;
  bottom: 64px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 20;
}
.home-hero-wrapper .mySwiper5555 .swiper-pagination-bullet {
  display: block !important;
  width: 10px;
  height: 10px;
  margin: 0 !important;
  border-radius: 50%;
  background: #fff;
  opacity: .7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: width .25s, border-radius .25s, background-color .25s;
}
.home-hero-wrapper .mySwiper5555 .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 8px;
  background: #ee2c2c;
  opacity: 1;
}
@media (max-width: 575px) {
  .home-hero-wrapper .mySwiper5555 .swiper-button-next,
  .home-hero-wrapper .mySwiper5555 .swiper-button-prev { width: 44px; height: 44px; }
  .home-hero-wrapper .mySwiper5555 .swiper-button-prev { left: 12px; }
  .home-hero-wrapper .mySwiper5555 .swiper-button-next { right: 12px; }
  .home-hero-wrapper .mySwiper5555 .swiper-pagination-hero { bottom: 36px; }
}


/* Fixed banner proportions - 2026-10-06 */
.home-hero-wrapper {
  height: auto !important;
  min-height: 0;
  display: block;
}
.home-hero-wrapper .mySwiper5555 {
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 8 / 3;
}
.home-hero-wrapper .mySwiper5555 .swiper-wrapper {
  height: 100% !important;
  min-height: 0;
  align-items: stretch;
}
.home-hero-wrapper .mySwiper5555 .swiper-slide {
  position: relative;
  height: 100% !important;
  min-height: 0;
}
.home-hero-wrapper .mySwiper5555 .swiper-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

/* Taller home banner and compact statistics - 2026-10-07 */
.top-container .statistics {
  padding: 7.5px 28px;
}
@media (min-width: 768px) {
  .top-container .statistics { flex-direction: row; }
}
@media (max-width: 767px) {
  .top-container .statistics {
    padding: 6px 18px;
    gap: 10px;
  }
  .top-container .statistics .quality-product { padding: 4px 10px; }
  .top-container .statistics .quality-product .logowrapper {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
}

/* Product image enlargement - 2026-10-07 */
.mm-product-zoom { position: relative; cursor: zoom-in; text-decoration: none; }
.mm-gallery-zoom { display: block; width: 100%; height: 100%; }
.mm-product-zoom .mm-zoom-hint {
  position: absolute; right: 8px; bottom: 8px; display: flex;
  align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: #023084; color: #fff;
  font: 26px/1 Arial, sans-serif; box-shadow: 0 2px 8px #0003;
  pointer-events: none;
}
.mm-product-zoom:focus-visible {
  outline: 3px solid #2559b7; outline-offset: 3px;
}
.mm-product-lightbox { --fancybox-bg: rgba(9, 18, 32, .96); }
.mm-product-lightbox .fancybox__toolbar { --f-button-width: 44px; --f-button-height: 44px; }

/* Arial for desktop and mobile header navigation, including dropdowns. */
.header .right,
.header .right a,
.header .right button,
.header .right span {
  font-family: Arial, Helvetica, sans-serif !important;
}
