.ie-home-showcase {
  float: left;
  width: 100%;
  margin: 0 0 30px;
}

.ie-home-section {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  float: left;
  margin: 0 0 28px;
  padding: 22px 18px 10px;
  width: 100%;
}

.ie-home-section-head {
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 0 4px 16px;
}

.ie-home-section-title {
  color: #222;
  font: 600 24px/30px "Poppins", Helvetica, sans-serif;
  margin: 0 0 4px;
}

.ie-home-section-subtitle {
  color: #777;
  font-size: 13px;
  margin: 0;
}

.ie-home-view-all {
  background: #fff;
  border: 1px solid #f12a43;
  border-radius: 4px;
  color: #f12a43 !important;
  font: 600 13px/18px "Poppins", Helvetica, sans-serif;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  white-space: nowrap;
}

.ie-home-view-all:hover,
.ie-home-view-all:focus {
  background: #f12a43;
  border-color: #f12a43;
  color: #fff !important;
}

.ie-home-section-anime-paid .ie-home-section-title::before {
  content: "🎌 ";
}

.ie-home-section-anime-free .ie-home-section-title::before {
  content: "🆓 ";
}

.ie-home-section-trending .ie-home-section-title::before {
  content: "🔥 ";
}

.ie-home-section-bestsellers .ie-home-section-title::before {
  content: "⭐ ";
}

/* CSS Grid — 4×9 on desktop (larger tiles, easier tap/click) */
.ie-home-grid {
  display: grid;
  gap: 22px 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.ie-home-grid-item {
  margin: 0;
  min-width: 0;
}

.ie-home-grid .product-thumb {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ie-home-grid .product-thumb:hover {
  border-color: #f12a43;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.ie-home-grid .product-thumb .image {
  aspect-ratio: 1 / 1;
  background: #fafafa;
  overflow: visible;
  position: relative;
}

/* Theme hover buttons — keep absolute positioning from stylesheet.css */
.ie-home-grid .product-thumb .button-group {
  opacity: 0;
  z-index: 4;
}

.ie-home-grid .product-thumb:hover .button-group {
  opacity: 1;
  bottom: 0;
}

.ie-home-grid .product-thumb .image a {
  display: block;
  height: 100%;
  width: 100%;
}

.ie-home-grid .product-thumb .image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ie-home-grid .thumb-description {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 14px 16px;
}

.ie-home-grid .caption h4 {
  color: #222;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  margin: 0 0 8px;
  max-height: 40px;
  overflow: hidden;
}

.ie-home-grid .rating {
  margin-bottom: 4px;
}

.ie-home-grid .price {
  font-size: 16px;
  font-weight: 600;
  margin-top: auto;
}

.ie-home-carousel .product-layouts {
  padding: 0 8px;
}

.ie-home-carousel .product-thumb {
  margin-bottom: 8px;
}

.ie-home-carousel.owl-carousel .owl-buttons {
  top: 38%;
}

.ie-home-carousel.owl-carousel .owl-buttons div {
  background: rgba(241, 42, 67, 0.9);
  border-radius: 50%;
  height: 36px;
  line-height: 36px;
  opacity: 1;
  width: 36px;
}

.ie-home-carousel.owl-carousel .owl-buttons div:hover {
  background: #222;
}

@media (max-width: 1199px) {
  .ie-home-grid {
    gap: 20px 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .ie-home-grid {
    gap: 16px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ie-home-section {
    padding: 16px 10px 8px;
  }

  .ie-home-section-title {
    font-size: 20px;
    line-height: 26px;
  }

  .ie-home-view-all {
    text-align: center;
    width: 100%;
  }

  .ie-home-grid {
    gap: 12px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ie-home-grid .caption h4 {
    font-size: 14px;
    line-height: 18px;
  }

  .ie-home-grid .price {
    font-size: 15px;
  }
}

@media (max-width: 479px) {
  .ie-home-grid {
    gap: 10px 6px;
  }
}
