/*
Theme Name: Suplo Gym
Theme URI: https://suplo-gym.myharavan.com/
Author: DevVN / Antigravity
Author URI: https://suplo.vn/
Description: Giao diện WordPress chuyên nghiệp cho Phòng tập Suplo Gym & Fitness. Chuyển đổi chuẩn 100% từ HTML gốc sang WordPress kết hợp ACF/SCF (Options Page cho Header/Footer & Page Template cho Trang chủ) và WooCommerce theo quy chuẩn devvn-html-to-wp-acf.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suplo-gym
*/

/* ==========================================================================
   Home Banners Overlay Caption (#home-banners)
   ========================================================================== */
#main-slider #home-banners .hbanners-item a {
  display: block;
  position: relative;
  overflow: hidden;
}

#main-slider #home-banners .hbanners-item a img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

#main-slider #home-banners .hbanners-item a:hover img {
  transform: scale(1.04);
}

#main-slider #home-banners .hbanners-item .hbanner-content {
  position: absolute;
  left: 15px;
  bottom: 20px;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 8px;
  max-width: 85%;
  pointer-events: none;
}

#main-slider #home-banners .hbanners-item .hbanner-text {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.3px;
  padding: 7px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#main-slider #home-banners .hbanners-item .hbanner-text-white {
  background-color: #ffffff;
  color: #111111;
}

#main-slider #home-banners .hbanners-item .hbanner-text-yellow {
  background-color: #fecc09;
  color: #111111;
}

@media (min-width: 769px) and (max-width: 991px) {
  #main-slider #home-banners .hbanners-item .hbanner-content {
    left: 10px;
    bottom: 12px;
    gap: 5px;
  }
  #main-slider #home-banners .hbanners-item .hbanner-text {
    font-size: 10px;
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  #main-slider #home-banners a {
    margin-bottom: 15px;
  }
  #main-slider #home-banners .hbanners-item .hbanner-content {
    left: 12px;
    bottom: 15px;
    gap: 6px;
  }
  #main-slider #home-banners .hbanners-item .hbanner-text {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* ==========================================================================
   Home Gallery Grid Layout (4 items per row)
   ========================================================================== */
#home-gallery .grid-uniform .large--one-quarter {
  width: 25%;
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
  #home-gallery .grid-uniform .medium--one-quarter {
    width: 25%;
  }
}

@media only screen and (max-width: 480px) {
  #home-gallery .grid-uniform .small--one-half {
    width: 50%;
  }
}

/* ==========================================================================
   3. Product Catalog Images (Aspect Ratio 16:9)
   ========================================================================== */
.product-item .product-img {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.product-item .product-img a {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #ffffff;
  overflow: hidden;
}

.product-item .product-img a img,
.product-item .product-img a img.pro-img1,
.product-item .product-img a img.pro-img2 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-item .product-img a img.pro-img2 {
  opacity: 0;
  z-index: 1;
}

.product-item:hover .product-img a img.pro-img2 {
  opacity: 1;
}

.product-item:hover .product-img a img.pro-img1 {
  opacity: 0;
}

.product-item:hover .product-img a img {
  transform: scale(1.05);
}

/* ==========================================================================
   4. Single Product Thumbnails Carousel (inner owl-carousel) Aspect Ratio 16:9
   ========================================================================== */
#ProductThumbs .inner.owl-carousel .thumbnail-item a,
#ProductThumbs .thumbnail-item a,
.product-single__thumbnails .inner.owl-carousel .thumbnail-item a,
#product-wrapper #ProductThumbs .thumbnail-item a {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #ffffff;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}

#ProductThumbs .inner.owl-carousel .thumbnail-item a.active,
#ProductThumbs .thumbnail-item a.active,
.product-single__thumbnails .inner.owl-carousel .thumbnail-item a.active,
#product-wrapper #ProductThumbs .thumbnail-item a.active {
  border-color: #fecc09;
}

#ProductThumbs .inner.owl-carousel .thumbnail-item a img,
#ProductThumbs .thumbnail-item a img,
.product-single__thumbnails .inner.owl-carousel .thumbnail-item a img,
#product-wrapper #ProductThumbs .thumbnail-item a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ==========================================================================
   5. News / Article Featured Images Aspect Ratio 16:9
   ========================================================================== */
.article-item .article-img,
#home-articles .harticle-item .harticle-img,
#related-product-articles .home-section-body .rparticle-item .rparticle-img,
.blog-sidebar .article-img {
  position: relative;
  overflow: hidden;
}

.article-item .article-img > a,
#home-articles .harticle-item .harticle-img a,
#related-product-articles .home-section-body .rparticle-item .rparticle-img a,
.blog-sidebar .article-img a {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background-color: #f2f2f2;
}

.article-item .article-img > a img,
#home-articles .harticle-item .harticle-img a img,
#related-product-articles .home-section-body .rparticle-item .rparticle-img a img,
.blog-sidebar .article-img a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.article-item .article-img > a:hover img,
#home-articles .harticle-item .harticle-img a:hover img,
#related-product-articles .home-section-body .rparticle-item .rparticle-img a:hover img,
.blog-sidebar .article-img a:hover img {
  transform: scale(1.05);
}



