/**
 * Global responsive media — loaded after theme styles.
 * Hero image class used on home (replaces fixed inline px).
 */
.intro1__thumb .intro-hero-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 11 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

@media screen and (max-width: 991.98px) {
  /* Avoid horizontal scroll from oversized media + hero layout */
  .intro1__thumb {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding-inline: 0;
  }

  .intro1__thumb .intro-hero-img {
    max-width: 100%;
    max-height: min(72vh, 520px);
    border-radius: 16px;
  }

  .intro1__shape1 img,
  .intro1__shape2 img,
  .intro1__shape3 img {
    max-width: min(200px, 42vw);
    height: auto;
  }

  /* Large fixed-height product hero in “best selling” */
  main .best-selling-product-card__thumb1 img {
    height: auto;
    max-height: min(70vh, 440px);
    min-height: 200px;
    object-fit: cover;
  }

  main .best-selling-product-card__thumb img {
    height: auto;
    max-height: 280px;
    min-height: 160px;
    object-fit: cover;
  }

  /* Default: never wider than the column (height unchanged so object-fit cards still work) */
  main img,
  footer.footer1 img {
    max-width: 100%;
  }

  /* About page inline-style blocks */
  .about2-items__hand-right img {
    width: 100%;
    max-width: 312px;
    height: auto;
  }

  main .about1-thumb img,
  main .about2-items__title img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
  }

  /* Swiper: constrain width without breaking slide layout */
  .swiper-slide img {
    max-width: 100%;
  }

  /* Embedded media */
  main iframe,
  main video,
  .contact2 iframe {
    max-width: 100%;
  }

  /* Bootstrap columns: images should not force overflow */
  .container img,
  .container-fluid img,
  .rr-container-1350 img,
  .rr-container-1895 img {
    max-width: 100%;
  }
}

@media screen and (max-width: 575.98px) {
  .intro1__thumb .intro-hero-img {
    border-radius: 12px;
    max-height: min(68vh, 420px);
  }

  main .best-selling-product-card__thumb1 img {
    min-height: 180px;
    max-height: min(65vh, 380px);
  }

  /* Hero Banner Slider Mobile Responsive */
  .hero-banner-section {
    padding: 0;
  }

  .hero-banner-slider {
    max-height: 280px !important;
    border-radius: 8px;
  }

  .hero-banner-slider .swiper-slide {
    height: 280px;
  }

  .hero-banner-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #f5f5f5;
  }

  .hero-banner-slider .swiper-button-next,
  .hero-banner-slider .swiper-button-prev {
    display: none !important;
  }

  .hero-banner-slider .swiper-pagination {
    padding-bottom: 10px;
  }

  .hero-banner-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
}

/* Additional tablet responsive styles */
@media screen and (max-width: 991.98px) and (min-width: 576px) {
  .hero-banner-slider {
    max-height: 400px;
  }

  .hero-banner-slider .swiper-slide {
    height: 400px;
  }
}

/* Mobile Category Drill-Down Navigation Styles */
@media screen and (max-width: 1199px) {
  /* Style the back button */
  .mobile-menu .mobile-menu-back {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 10px;
    padding-bottom: 10px;
    list-style: none;
  }

  .mobile-menu .mobile-menu-back a {
    color: #0c0c0c !important;
    display: flex !important;
    align-items: center;
    font-weight: 600;
    padding: 8px 0;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .mobile-menu .mobile-menu-back a:hover {
    color: #EE2D7A !important;
  }

  .mobile-menu .mobile-menu-back a span {
    margin-right: 12px;
    font-size: 16px;
  }

  /* Style the category items with subcategories */
  .mobile-menu > ul > li li:has(> ul) > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  /* Style the > icon for categories */
  .mobile-menu.mean-container .mean-nav ul li a.mean-expand {
    color: #0c0c0c !important;
    font-weight: 700;
    font-size: 18px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    line-height: 42px !important;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none !important;
    border: none !important;
    right: 0;
    top: 3px;
  }

  .mobile-menu.mean-container .mean-nav ul li a.mean-expand:hover,
  .mobile-menu.mean-container .mean-nav ul li a.mean-expand.mobile-category-open {
    color: #EE2D7A !important;
    background: rgba(238, 45, 122, 0.08) !important;
  }

  /* Hide default meanmenu reveal styles */
  .mobile-menu.mean-container .mean-nav ul li a.mean-expand::before,
  .mobile-menu.mean-container .mean-nav ul li a.mean-expand::after {
    display: none !important;
  }

  .mobile-menu.mean-container .mean-nav ul li.mobile-category-hidden {
    display: none !important;
  }

  .mobile-menu.mean-container .mean-nav ul li.mobile-category-focused > a:not(.mean-expand) {
    color: #EE2D7A !important;
    font-weight: 700;
  }

  /* Smooth subcategory display */
  .mobile-menu.mean-container .mean-nav > ul > li > ul {
    display: none;
    transition: display 0.3s ease;
  }

  .mobile-menu.mean-container .mean-nav > ul > li > ul[style*="display: block"] {
    display: block !important;
  }

  /* Smooth category item display */
  .mobile-menu.mean-container .mean-nav > ul > li {
    transition: display 0.3s ease;
  }

  /* Styling for subcategory items */
  .mobile-menu.mean-container .mean-nav > ul > li > ul > li > a {
    padding-left: 30px !important;
    font-size: 13px;
  }

  .mobile-menu.mean-container .mean-nav > ul > li > ul > li > a img {
    margin-right: 8px;
  }
}
