/* IndustryWala homepage visual system */
.iw-home {
  --iw-ink: #202124;
  --iw-muted: #6b7280;
  --iw-line: #e5e7eb;
  --iw-surface: #ffffff;
  --iw-soft: #f6f7f8;
  --iw-yellow: #ffc400;
  --iw-yellow-deep: #dfad00;
  overflow: hidden;
  background: var(--iw-soft);
  color: var(--iw-ink);
}

.iw-home > :not(.service-section) {
  position: relative;
}

.iw-home .my-60,
.iw-home .mt-60 {
  margin-top: 28px !important;
}

.iw-home .my-60,
.iw-home .mb-60 {
  margin-bottom: 28px !important;
}

.iw-home .section-header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.iw-home .section-header .title {
  position: relative;
  margin: 0;
  padding-left: 17px;
  color: var(--iw-ink);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.iw-home .section-header .title::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 5px;
  border-radius: 99px;
  background: var(--iw-yellow);
  content: "";
}

.iw-section-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  color: var(--iw-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.iw-section-link i { transition: transform .2s ease; }
.iw-section-link:hover { color: var(--iw-yellow-deep); }
.iw-section-link:hover i { transform: translateX(4px); }

/* Hero */
.iw-home .banner-container { padding-top: 14px; }

.iw-home .hero-section {
  margin-top: 0;
  gap: 18px;
  margin-bottom: 0 !important;
  padding: 14px;
  border: 1px solid var(--iw-line);
  border-radius: 20px;
  background: var(--iw-surface);
  box-shadow: 0 14px 45px rgba(31, 35, 41, .07);
}

.iw-home .left-site-category,
.iw-home .hero-slider,
.iw-home .hero-banner,
.iw-home .slider-wrapper,
.iw-home .banner-slider,
.iw-home .banner-slider img {
  border-radius: 14px;
}

.iw-home .left-site-category {
  overflow: hidden;
  border-color: var(--iw-line);
  background: #fff;
}

.iw-home .left-site-category .category-title {
  border: 0;
  background: var(--iw-ink);
  color: #fff;
}

.iw-home .left-site-category .category-title i { color: var(--iw-yellow); }
.iw-home .left-site-category li a { transition: background .2s ease, color .2s ease, padding .2s ease; }
.iw-home .left-site-category li a:hover { padding-left: 5px; background: #fff9e5; color: #8f6d00; }

.iw-home .featured-category-slider {
  padding: 8px;
  border: 1px solid var(--iw-line);
  border-radius: 14px;
  background: #fff;
}

.iw-home .featured-category-slider .banner-categories {
  min-height: 124px;
  padding: 12px 8px !important;
  border: 0;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}

.iw-home .featured-category-slider .banner-categories:hover {
  background: #fff9e5;
  transform: translateY(-2px);
}

.iw-home .featured-category-slider .banner-categories img {
  height: 76px;
  object-fit: contain;
}

.iw-home .featured-category-slider .banner-categories .title {
  margin-top: 7px;
  color: #35383d;
  font-weight: 600;
}

/* Consistent section surfaces */
.iw-home .featured-categories .container,
.iw-home .iw-product-section .container,
.iw-home .recently-viewed-section .container,
.iw-home .best-selling-section .container,
.iw-home .iw-brands-section .container,
.iw-home .flash-sell-section .container {
  padding: 28px;
  border: 1px solid var(--iw-line);
  border-radius: 20px;
  background: var(--iw-surface);
  box-shadow: 0 12px 36px rgba(31, 35, 41, .045);
}

/* Promo banners */
.iw-home .iw-promo-section .row { --bs-gutter-x: 18px; --bs-gutter-y: 18px; }
.iw-home .iw-promo-section .overlay-effects {
  overflow: hidden;
  border-radius: 16px !important;
  box-shadow: 0 9px 28px rgba(31, 35, 41, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.iw-home .iw-promo-section .overlay-effects:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 34px rgba(31, 35, 41, .13);
}

/* Category cards */
.iw-home .category-card-wrapper {
  gap: 14px;
}

.iw-home .category-card-wrapper .small-card-item {
  padding: 22px 12px;
  border: 1px solid var(--iw-line);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.iw-home .category-card-wrapper .small-card-item:hover {
  border-color: #f0c846;
  box-shadow: 0 10px 25px rgba(31, 35, 41, .08);
  transform: translateY(-4px);
}

.iw-home .category-card-wrapper .small-card-item img {
  width: 76px !important;
  max-width: 76px;
  height: 76px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 50%;
  background: var(--iw-soft);
  object-fit: contain;
}

.iw-home .category-card-wrapper .title { color: #374151; font-weight: 600; }

/* Products */
.iw-home .product-wrapper { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.iw-home .top-selling-products { gap: 16px; }
.iw-home .product-card {
  height: 100%;
  border-color: var(--iw-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 35, 41, .035);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.iw-home .product-card:hover {
  border-color: #e5bc31;
  box-shadow: 0 14px 30px rgba(31, 35, 41, .09);
  transform: translateY(-4px);
}
.iw-home .product-card .product-thumb {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #f5f6f7;
}
.iw-home .product-card .product-thumb img { transition: transform .35s ease; }
.iw-home .product-card:hover .product-thumb img { transform: scale(1.035); }
.iw-home .product-card .product-content { padding: 17px; }
.iw-home .product-card .title {
  min-height: 2.8em;
  color: #25272b;
  font-weight: 650;
  line-height: 1.4;
}
.iw-home .product-card .add-to-cart-btn { border-radius: 10px; }

/* Brands */
.iw-home .iw-brands-section .small-card { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.iw-home .iw-brands-section .small-card-item {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 16px;
  border-color: var(--iw-line);
  border-radius: 13px;
  transition: border-color .2s ease, transform .2s ease;
}
.iw-home .iw-brands-section .small-card-item:hover { border-color: #e6bd32; transform: translateY(-3px); }

.iw-home .iw-promo-dots { display: none; }
.iw-home .iw-promo-clone { display: none; }

/* Trust / service strip */
.iw-home .service-section {
  margin-top: 28px;
  padding: 42px 0 !important;
  background: var(--iw-ink);
}
.iw-home .services-wrapper { gap: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; }
.iw-home .services-card {
  min-height: 112px;
  padding: 22px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: transparent;
}
.iw-home .services-card:last-child { border-right: 0; }
.iw-home .services-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 13px;
  background: var(--iw-yellow);
}
.iw-home .services-card__icon img { max-width: 34px; max-height: 34px; }
.iw-home .services-card__text { margin: 0; color: #fff; font-size: 1rem; font-weight: 650; }
.iw-home .services-card .sub-title { color: rgba(255,255,255,.62); font-size: .825rem; }

@media (max-width: 1399px) {
  .iw-home .product-wrapper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
  .iw-home .category-card-wrapper { grid-template-columns: repeat(4, 1fr); }
  .iw-home .iw-brands-section .small-card { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
  .iw-home .banner-container { padding-top: 20px; }
  .iw-home .hero-section { padding: 10px; border-radius: 16px; }
  .iw-home .product-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .iw-home .top-selling-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iw-home .services-wrapper { grid-template-columns: repeat(2, 1fr); }
  .iw-home .services-card:nth-child(2n) { border-right: 0; }
  .iw-home .services-card:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 767px) {
  .iw-home .my-60, .iw-home .mt-60 { margin-top: 22px !important; }
  .iw-home .my-60, .iw-home .mb-60 { margin-bottom: 22px !important; }
  .iw-home .featured-categories .container,
  .iw-home .iw-product-section .container,
  .iw-home .recently-viewed-section .container,
  .iw-home .best-selling-section .container,
  .iw-home .iw-brands-section .container,
  .iw-home .flash-sell-section .container { padding: 20px 14px; border-radius: 16px; }
  .iw-home .section-header { margin-bottom: 17px; }
  .iw-home .section-header .title { font-size: 1.15rem; }
  .iw-home .category-card-wrapper { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .iw-home .iw-brands-section .small-card { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  /* Promo banners become a swipe carousel on phones (see promo_banner.blade.php). */
  .iw-home .iw-promo-carousel .iw-promo-track {
    flex-wrap: nowrap;
    justify-content: flex-start !important; /* beats Bootstrap's .justify-content-center, which hides the left overflow */
    gap: 12px;
    margin: 0;
    padding: 4px 7% 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 7%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .iw-home .iw-promo-carousel .iw-promo-track::-webkit-scrollbar { display: none; }
  .iw-home .iw-promo-carousel .iw-promo-track > [class*="col-"] {
    flex: 0 0 86%;
    width: 86%;
    max-width: 86%;
    margin: 0;
    padding: 0;
    scroll-snap-align: center;
  }
  .iw-home .iw-promo-carousel .overlay-effects:hover { transform: none; }
  .iw-home .iw-promo-carousel .iw-promo-clone { display: block; }
  .iw-home .iw-promo-section:not(.iw-promo-carousel) .col-4,
  .iw-home .iw-promo-section:not(.iw-promo-carousel) .col-6 { width: 100%; }
  .iw-home .iw-promo-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
  .iw-home .iw-promo-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
    background: #d1d5db; transition: width .25s ease, background .25s ease;
  }
  .iw-home .iw-promo-dots button.active { width: 22px; background: var(--iw-yellow-deep); }
}

@media (max-width: 575px) {
  .iw-home .banner-container { padding-top: 8px; }
  .iw-home .hero-section { padding: 8px; border: 0; box-shadow: 0 8px 26px rgba(31,35,41,.06); }
  .iw-home .slider-wrapper { height: 180px; }
  .iw-home .banner-slider,
  .iw-home .banner-slider .slide-item,
  .iw-home .banner-slider .owl-stage-outer,
  .iw-home .banner-slider .owl-stage,
  .iw-home .banner-slider .owl-item,
  .iw-home .banner-slider .owl-item a { height: 180px !important; }
  .iw-home .section-header { align-items: flex-end; }
  .iw-home .iw-section-link { font-size: .78rem; }
  .iw-home .featured-category-slider { padding: 6px; border-radius: 12px; }
  .iw-home .featured-category-slider .banner-categories { min-height: 104px; padding: 8px 5px !important; }
  .iw-home .featured-category-slider .banner-categories img { height: 60px; }
  .iw-home .product-wrapper,
  .iw-home .top-selling-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .iw-home .category-card-wrapper { grid-template-columns: repeat(2, 1fr); }
  .iw-home .category-card-wrapper .small-card-item { padding: 17px 8px; }
  .iw-home .iw-brands-section .small-card { grid-template-columns: repeat(2, 1fr); }
  .iw-home .service-section { padding: 28px 0 !important; }
  .iw-home .services-wrapper { grid-template-columns: repeat(2, 1fr); }
  .iw-home .services-card { min-height: 0; padding: 16px 10px; justify-content: flex-start; }
  .iw-home .services-card:nth-child(2n) { border-right: 0; }
  .iw-home .services-card:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .iw-home .services-card__icon { width: 44px; height: 44px; flex-basis: 44px; }
  .iw-home .services-card__text { font-size: .9rem; }
  .iw-home .services-card .sub-title { font-size: .75rem; }
}
