/* ============================================
   KOVA — Homepage (Zalando Pattern)
   Collection block = hero image + product carousel
   ============================================ */

/* ---------- Collection Block (Zalando's dominant pattern) ---------- */
.z-collection {
  margin-bottom: 4px;
}

.z-collection__hero {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.96;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

@media (min-width: 768px) {
  .z-collection__hero { aspect-ratio: 16 / 7; }
}

.z-collection__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.z-collection__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.z-collection__hero-content {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 2;
}

@media (min-width: 768px) {
  .z-collection__hero-content { bottom: 32px; left: 32px; }
}

.z-collection__hero-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.z-collection__hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .z-collection__hero-title { font-size: 32px; }
}

.z-collection__hero-cta {
  display: inline-block;
  padding: 10px 24px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.z-collection__hero-cta:hover { opacity: 0.9; }

.z-collection__products {
  padding: 12px 0 8px;
  overflow: hidden;
}

/* ---------- Horizontal Carousel (Zalando scroll pattern) ---------- */
.z-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
}

.z-carousel::-webkit-scrollbar { display: none; }

.z-carousel .product-card {
  flex: 0 0 44%;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .z-carousel .product-card { flex: 0 0 32%; }
}

@media (min-width: 1024px) {
  .z-carousel .product-card { flex: 0 0 22%; }
  .z-carousel { gap: 12px; }
}

/* ---------- Section (carousels between collection blocks) ---------- */
.z-section {
  padding: 20px 0 16px;
}

.z-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

.z-section__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.z-section__link {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Product Card (compact Zalando style) ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 179 / 258;
  overflow: hidden;
  background: #F5F5F5;
  margin-bottom: 6px;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.product-card__image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-card__image--hover { opacity: 1; }
.product-card:hover .product-card__image--main { opacity: 0; }

.product-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}

.product-card__wishlist {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist svg { width: 16px; height: 16px; stroke-width: 1.5; }

.product-card__info {
  display: flex;
  flex-direction: column;
  padding: 0 2px;
}

.product-card__brand {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__name {
  font-size: 11px;
  font-weight: 400;
  color: #666;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.product-card__price-current {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
}

.product-card__price-current--sale { color: #1a1a1a; }

.product-card__price-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.product-card__discount {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #E53935;
  padding: 1px 4px;
  border-radius: 2px;
}

.product-card__rating-mini { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.product-card__stars-mini { font-size: 10px; color: #F5A623; }
.product-card__review-count { font-size: 9px; color: #999; }

.product-card__colors {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.product-card__color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

/* ---------- Promises Strip ---------- */
.z-promises {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 8px 0;
  flex-wrap: wrap;
}

.z-promises__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.z-promises__item svg { flex-shrink: 0; color: #1a1a1a; }

.z-promises__item span {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ---------- Newsletter ---------- */
.z-newsletter {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 16px;
  text-align: center;
}

.z-newsletter__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.z-newsletter__desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}

.z-newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .z-newsletter__form { flex-direction: column; }
}

.z-newsletter__input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  background: #333;
  border: 1px solid #444;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.z-newsletter__input::placeholder { color: #888; }
.z-newsletter__input:focus { border-color: #888; }

.z-newsletter__btn {
  height: 44px;
  padding: 0 20px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.z-newsletter__btn:hover { opacity: 0.85; }

/* ---------- Legacy compat (carousel track for recently viewed) ---------- */
.product-carousel { position: relative; }
.product-carousel__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.product-carousel__track-wrapper { position: relative; overflow: hidden; }
.product-carousel__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
}
.product-carousel__track::-webkit-scrollbar { display: none; }
.product-carousel__track .product-card {
  flex: 0 0 44%;
  scroll-snap-align: start;
}
@media (min-width: 640px) { .product-carousel__track .product-card { flex: 0 0 32%; } }
@media (min-width: 1024px) { .product-carousel__track .product-card { flex: 0 0 22%; } }

/* ============================================
   Bastelbena-style Homepage Layout (bh-*)
   ============================================ */

/* ---------- Hero ---------- */
.bh-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
}
@media (min-width: 1024px) { .bh-hero { height: 85vh; min-height: 600px; } }

.bh-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bh-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.bh-hero__content {
  position: absolute;
  bottom: 48px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
  max-width: 520px;
}
@media (min-width: 1024px) {
  .bh-hero__content { bottom: 80px; left: 64px; }
}

.bh-hero__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.bh-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
@media (min-width: 768px) { .bh-hero__title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .bh-hero__title { font-size: 4.5rem; } }

.bh-hero__desc {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 400px;
}

.bh-hero__cta {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: opacity 0.2s;
}
.bh-hero__cta:hover { opacity: 0.88; }

/* ---------- Section (generic) — LBO style ---------- */
.bh-section {
  padding: 24px 12px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (min-width: 768px) { .bh-section { padding: 32px 16px; } }
@media (min-width: 1024px) { .bh-section { padding: 40px 24px; } }

.bh-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  gap: 6px;
}
@media (min-width: 768px) { .bh-section__header { margin-bottom: 24px; gap: 8px; } }

.bh-section__eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
@media (min-width: 768px) { .bh-section__eyebrow { font-size: 11px; } }

.bh-section__title {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.2px;
  font-family: Georgia, 'Times New Roman', serif;
}
@media (min-width: 768px) { .bh-section__title { font-size: 26px; } }
@media (min-width: 1024px) { .bh-section__title { font-size: 30px; } }

.bh-section__link {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ---------- Grid 4 cards (Top Categories, Top Trends) — LBO style ---------- */
.bh-grid4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (min-width: 768px) {
  .bh-grid4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

.bh-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.bh-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 6px;
}

.bh-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bh-card:hover .bh-card__img {
  transform: scale(1.02);
}

.bh-card__info {
  padding: 0;
  text-align: center;
}

.bh-card__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.2px;
}

.bh-card__count { display: none; }

/* ---------- Editorial Grid (1 large + 2 small) ---------- */
.bh-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .bh-editorial {
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
  }
}

.bh-editorial__large,
.bh-editorial__small {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.bh-editorial__large {
  aspect-ratio: 4 / 5;
}

.bh-editorial__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 768px) { .bh-editorial__stack { gap: 16px; } }

.bh-editorial__small {
  aspect-ratio: 4 / 3;
}
@media (min-width: 768px) {
  .bh-editorial__small { aspect-ratio: auto; }
}

.bh-editorial__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bh-editorial__large:hover .bh-editorial__img,
.bh-editorial__small:hover .bh-editorial__img {
  transform: scale(1.03);
}

.bh-editorial__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.bh-editorial__content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  z-index: 2;
}
@media (min-width: 768px) {
  .bh-editorial__content { bottom: 28px; left: 28px; right: 28px; }
}

.bh-editorial__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.bh-editorial__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
@media (min-width: 768px) { .bh-editorial__title { font-size: 28px; } }

.bh-editorial__large .bh-editorial__title {
  font-size: 28px;
}
@media (min-width: 768px) { .bh-editorial__large .bh-editorial__title { font-size: 36px; } }

.bh-editorial__cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1.5px solid #fff;
  padding-bottom: 1px;
}

/* ---------- Full width banner (sale, collection) ---------- */
.bh-banner {
  position: relative;
  width: 100%;
  margin: 40px 0;
}

.bh-banner__link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
@media (max-width: 768px) {
  .bh-banner__link { aspect-ratio: 1.2 / 1; }
}

.bh-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.bh-banner__link:hover .bh-banner__img { transform: scale(1.02); }

.bh-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.bh-banner__content {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  left: 24px;
  right: 24px;
  max-width: 500px;
  z-index: 2;
}
@media (min-width: 768px) { .bh-banner__content { left: 64px; } }

.bh-banner__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.bh-banner__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
@media (min-width: 768px) { .bh-banner__title { font-size: 3rem; } }
@media (min-width: 1024px) { .bh-banner__title { font-size: 3.5rem; } }

.bh-banner__cta {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
