/* Cartiqo Theme | Author: Igor Klenovsky */
/* Bundle: home.css */

/* ---- Home storefront ---- */
.cartiqo-home {
  padding-bottom: 64px;
}

.cartiqo-home__main > .cartiqo-hero,
#common-home #content > .cartiqo-hero {
  margin: 30px 0 34px;
  max-width: none;
  width: auto;
}

.cartiqo-hero {
  animation: none;
  background: transparent;
  color: var(--cartiqo-ink);
  overflow: visible;
  position: relative;
}

.cartiqo-hero__stage {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 0;
  padding-bottom: 0;
  padding-top: 0;
}

.cartiqo-hero__visual {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  box-shadow: none;
  height: 386px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.cartiqo-hero__swiper,
.cartiqo-hero__swiper .swiper-wrapper,
.cartiqo-hero__slide {
  height: 100%;
  min-height: 0;
}

.cartiqo-hero__link {
  display: block;
  height: 100%;
}

.cartiqo-hero__img {
  display: block;
  height: 100%;
  object-fit: cover;
  padding: 0;
  width: 100%;
}

.cartiqo-hero__caption {
  background: rgba(20, 20, 20, .78);
  border-radius: 6px;
  bottom: 28px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  left: 50%;
  padding: 8px 14px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.cartiqo-hero__pager {
  bottom: 14px !important;
  left: 0;
  position: absolute !important;
  right: 0;
  text-align: center;
  z-index: 3;
}

.cartiqo-hero__pager .swiper-pagination-bullet {
  background: #cfcfcf;
  border-radius: 3px;
  height: 4px;
  opacity: 1;
  width: 24px;
}

.cartiqo-hero__pager .swiper-pagination-bullet-active {
  background: var(--cartiqo-accent);
}

.cartiqo-hero__arrow {
  align-items: center;
  background: #f1f1f1;
  border: 0;
  border-radius: 50%;
  color: var(--cartiqo-accent);
  display: flex;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  z-index: 4;
}

.cartiqo-hero__arrow--prev { left: 16px; }
.cartiqo-hero__arrow--next { right: 16px; }

.cartiqo-hero__promos {
  display: grid;
  gap: 24px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.cartiqo-hero__promo {
  border-radius: 16px;
  display: block;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.cartiqo-hero__promo::after {
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .58));
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cartiqo-hero__promo img {
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  width: 100%;
}

.cartiqo-hero__promo:hover img { transform: scale(1.025); }

.cartiqo-hero__promo span {
  bottom: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  left: 18px;
  line-height: 1.3;
  position: absolute;
  right: 18px;
  z-index: 2;
}

.cartiqo-section {
  margin-bottom: 56px;
}

.cartiqo-collection-tabs {
  align-items: center;
  background: #efefef;
  border-radius: 14px;
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  min-height: 58px;
  padding: 7px 10px;
}

.cartiqo-collection-tabs a,
.cartiqo-collection-tabs span {
  border-radius: 12px;
  color: #444;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 16px;
}

.cartiqo-collection-tabs .is-active {
  background: #e5e5e5;
  color: var(--cartiqo-accent);
}

.cartiqo-collection-products {
  min-height: 320px;
  transition: opacity .18s ease;
}

.cartiqo-collection-products.is-loading {
  opacity: .45;
  pointer-events: none;
}

.cartiqo-collection-empty {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  color: var(--cartiqo-muted);
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
}

#common-home .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1399px) {
  .cartiqo-hero__stage { grid-template-columns: minmax(0, 1fr) 280px; }
  .cartiqo-hero__visual { height: 340px; }
}

@media (max-width: 1199px) {
  .cartiqo-hero__stage { grid-template-columns: minmax(0, 1fr) 240px; }
  #common-home .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .cartiqo-hero__stage { grid-template-columns: minmax(0, 1fr) 210px; }
  .cartiqo-hero__visual { height: 300px; }
  #common-home .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .cartiqo-home__main > .cartiqo-hero,
  #common-home #content > .cartiqo-hero { margin: 18px 0 24px; }

  .cartiqo-hero__stage { grid-template-columns: 1fr; }
  .cartiqo-hero__visual { height: 220px; }
  .cartiqo-hero__promos {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 108px;
  }
  .cartiqo-hero__arrow { height: 38px; width: 38px; }
  .cartiqo-hero__promo span { bottom: 10px; font-size: 11px; left: 10px; right: 10px; }

  .cartiqo-collection-tabs {
    margin-bottom: 16px;
    min-height: 52px;
    overflow-x: auto;
    padding: 6px;
  }
  .cartiqo-collection-tabs a,
  .cartiqo-collection-tabs span { font-size: 13px; white-space: nowrap; }
  #common-home .product-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
