/* Maintain existing sections while supporting editable text and empty media. */
.not-found.thank {
  padding: 90px 0 100px;
  text-align: center;
}
.not-found.thank .not-found-t2 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 24px;
}
.not-found.thank .not-found-t3 {
  max-width: 850px;
  margin: 0 auto 32px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.shop-details .addto-cart-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-details .addto-cart-box > li {
  margin: 0;
}
.main-footer .contact-widget a,
.contact-info-section .inner-box a {
  overflow-wrap: anywhere;
}
@media (max-width: 991px) {
  .contact-style-two .map-inner.is-empty {
    height: 0;
  }
}
@media (max-width: 767px) {
  .not-found.thank { padding: 60px 0 70px; }
  .not-found.thank .not-found-t2 { font-size: 32px; }
}
@media (min-width: 769px) {
  .banner-section > .owl-nav { top: auto; bottom: 24px; height: 60px; margin-top: 0; }
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 14px;
}
.breadcrumb a { color: var(--text-color); }
.product-item-carousel .owl-nav.disabled { display: none; }
/* Reserve the existing contact rail instead of covering editable content. */
@media (min-width: 768px) and (max-width: 1439px) {
  .auto-container { max-width: calc(100% - 120px); }
}
@media (min-width: 768px) {
  body .chat-icon { right: 10px; }
}
@media (max-width: 767px) {
  body .mobile-bottom-nav { padding-right: 60px; box-sizing: border-box; }
  body .chat-icon { right: 5px; bottom: 5px; z-index: 10000; }
}

/* Keep product listings complete within equal display areas. */
.course-details .content-side > .row > .shop-block .image-box .image,
.index-product-ul .shop-block-one .image-box .image {
  aspect-ratio: 3 / 4;
  max-height: 360px;
  margin: 0;
}
.course-details .content-side > .row > .shop-block .image-box .image img,
.index-product-ul .shop-block-one .image-box .image img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center;
}
.course-details .content-side > .row > .shop-block .inner-box:hover .image-box img,
.index-product-ul .shop-block-one .inner-box:hover .image-box img {
  transform: none;
}

/* Keep desktop home-banner descriptions within the existing left text area. */
@media (min-width: 769px) {
  .banner-section.loader-index--banner .banner-text .content-box > p {
    max-width: min(38vw, 560px);
  }
}

/* Preserve Owl's measured slide width inside the flex stage. */
.top-carousel.page-title .owl-stage > .owl-item {
  flex-shrink: 0;
}

/* Keep mobile home-banner copy above the product packaging. */
@media (max-width: 768px) {
  .banner-section.loader-index--banner .banner-text {
    top: 5% !important;
    transform: none !important;
  }
  .banner-section.loader-index--banner .banner-text .banner-heading {
    font-size: clamp(20px, 6.15vw, 24px);
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .banner-section.loader-index--banner .banner-text .content-box > p {
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .banner-section.loader-index--banner .banner-text .theme-btn {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 18px;
  }
}


/* Keep the existing square gallery frames; preserve complete package ratios. */
.shop-details .thumbs-slider .mySwiper2 {
  aspect-ratio: 1 / 1;
}
.shop-details .thumbs-slider .mySwiper2 .swiper-slide > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.shop-details .thumbs-slider .mySwiper .swiper-slide {
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-details .thumbs-slider .mySwiper2 .swiper-slide img,
.shop-details .thumbs-slider .mySwiper .swiper-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Keep the complete customer factory photo in the original home About frame. */
.image_block_one .image-box .home-about-primary {
  aspect-ratio: 47 / 65;
  overflow: hidden;
  border-radius: 30px;
}
.image_block_one .image-box .home-about-primary img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 30px;
}


/* Let the factory photo retain its natural height in the mobile image stack. */
@media (max-width: 499px) {
  .image_block_one .image-box .home-about-primary { aspect-ratio: 3 / 2; }
  .image_block_one .image-box .home-about-primary img { height: auto; }
}
