/* Final Swiper layout layer. Loaded after every legacy stylesheet. */
.swiper:not(.thumbs-swiper) {
  overflow: hidden !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.swiper:not(.thumbs-swiper) > .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
}

.swiper:not(.thumbs-swiper) > .swiper-wrapper > .swiper-slide {
  flex-shrink: 0 !important;
  position: relative;
  display: block;
}

.legacy-product-section,
.my-season-slider-container,
.my-random-slider-container,
.new-catalog__slider-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
/* Catalog subcategory cards: preserve the original compact card design inside Swiper. */
.catalog-page .catalog-page__categories > .swiper-wrapper > .catalog-page__category-slide {
  width: 186px !important;
  min-width: 186px !important;
  max-width: 186px !important;
  height: 64px !important;
  flex: 0 0 186px !important;
}

.catalog-page .catalog-page__categories .catalog-page__category-card {
  display: grid !important;
  width: 186px !important;
  height: 64px !important;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  border: 1px solid #e6e8eb !important;
  border-radius: 13px;
  background: #fff;
  padding: 7px;
  color: #171d27;
  text-decoration: none;
}

.catalog-page .catalog-page__categories .catalog-page__category-card:hover,
.catalog-page .catalog-page__categories .catalog-page__category-card.is-active {
  border-color: #ff4054 !important;
  box-shadow: 0 7px 20px rgba(255, 64, 84, .08);
}

@media (max-width: 700px) {
  .catalog-page .catalog-page__categories > .swiper-wrapper > .catalog-page__category-slide {
    width: 168px !important;
    min-width: 168px !important;
    max-width: 168px !important;
    flex-basis: 168px !important;
  }

  .catalog-page .catalog-page__categories .catalog-page__category-card {
    width: 168px !important;
  }
}
/* Catalog sorting arrow: keep one arrow inside the pill. */
.catalog-page .catalog-page__sort {
  position: relative !important;
  display: block !important;
  width: 176px;
}

.catalog-page .catalog-page__sort select {
  width: 176px;
  min-width: 176px;
  padding-right: 44px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: none !important;
}

.catalog-page .catalog-page__sort > i {
  position: absolute !important;
  top: 50% !important;
  right: 20px !important;
  display: block !important;
  pointer-events: none;
  transform: translateY(-50%) !important;
}
/* Catalog subcategory navigation: match the round brand-slider arrows. */
.catalog-page .catalog-page__categories-wrap {
  position: relative !important;
  overflow: visible !important;
}

.catalog-page .catalog-page__categories-arrow {
  position: absolute !important;
  top: 32px !important;
  z-index: 6 !important;
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(15, 20, 28, .18) !important;
  color: #151922 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

.catalog-page .catalog-page__categories-arrow.is-left { left: -16px !important; }
.catalog-page .catalog-page__categories-arrow.is-right { right: -16px !important; }
.catalog-page .catalog-page__categories-arrow:hover { color: #ff4054 !important; }


/* Final catalog card layer. Loaded after legacy product-card rules. */
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.catalog-page .catalog-page__product {
  height: auto !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__media {
  width: calc(100% - 24px) !important;
  height: auto !important;
  min-height: 190px !important;
  aspect-ratio: 1 / .92 !important;
  margin: 12px 12px 0 !important;
  padding: 6px !important;
  overflow: hidden !important;
  border-radius: 15px !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__body {
  display: flex !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  padding: 18px 15px 15px !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__purchase {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 9px !important;
  padding-top: 0 !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__price-row {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__price,
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__old-price,
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__availability,
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__cart {
  grid-column: auto !important;
  grid-row: auto !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__title {
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 2px !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__cart {
  align-self: center !important;
  margin-left: 0 !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__wishlist-action .kraski-wishlist-link {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  place-items: center !important;
  border: 1px solid #e2e6eb !important;
  border-radius: 14px !important;
  background: #f5f6f8 !important;
  box-shadow: none !important;
  color: #101722 !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__wishlist-action .kraski-wishlist-link:hover,
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__wishlist-action .kraski-wishlist-link.is-active {
  border-color: #ffd0d5 !important;
  background: #fff0f1 !important;
  color: #ff4054 !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__wishlist-action .kwi-heart {
  font-size: 18px !important;
}

.catalog-page .product-cart-compact {
  display: inline-flex !important;
  width: auto !important;
  min-width: 132px !important;
  height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #101722 !important;
  padding: 0 16px !important;
  box-shadow: 0 7px 16px rgba(16, 23, 34, .16) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.catalog-page .product-cart-compact:hover:not(:disabled) {
  background: #ff4054 !important;
}

.catalog-page .product-cart-compact:disabled {
  background: #e3e6eb !important;
  color: #8b929d !important;
  box-shadow: none !important;
  cursor: default !important;
  transform: none !important;
}

.catalog-page .sk-product-card--catalog .sk-product-card__cart .product-quantity--compact,
.catalog-page .product-quantity--compact {
  display: grid !important;
  width: 110px !important;
  min-width: 110px !important;
  height: 48px !important;
  grid-template-columns: 35px 40px 35px !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 1px solid #101722 !important;
  border-radius: 14px !important;
  background: #101722 !important;
  box-shadow: 0 7px 16px rgba(16, 23, 34, .16) !important;
}

.catalog-page .product-quantity--compact .btn_plus,
.catalog-page .product-quantity--compact .qty-input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}

.catalog-page .product-quantity--compact .btn_plus:hover {
  background: rgba(255, 255, 255, .1) !important;
}

@media (max-width: 700px) {
  .catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__media {
    min-height: 155px !important;
  }

  .catalog-page .product-cart-compact {
    width: auto !important;
    min-width: 118px !important;
    height: 41px !important;
    padding: 0 11px !important;
    font-size: 10px !important;
  }

  .catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__wishlist-action .kraski-wishlist-link {
    width: 41px !important;
    min-width: 41px !important;
    height: 41px !important;
  }

  .catalog-page .sk-product-card--catalog .sk-product-card__cart .product-quantity--compact,
  .catalog-page .product-quantity--compact {
    width: 101px !important;
    min-width: 101px !important;
    height: 41px !important;
    grid-template-columns: 32px 37px 32px !important;
  }

  .catalog-page .product-quantity--compact .btn_plus,
  .catalog-page .product-quantity--compact .qty-input {
    height: 39px !important;
  }
}
/* Product detail compact quantity control */
.single-buy-box #product_add_cart .atc-btn,
.single-buy-box #product_add_cart .product-quantity {
  min-height: 48px !important;
  border: 1px solid #101722 !important;
  border-radius: 14px !important;
  background: #101722 !important;
  box-shadow: 0 7px 16px rgba(16, 23, 34, .16) !important;
}

.single-buy-box #product_add_cart .product-quantity {
  display: grid !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 48px !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  align-items: center !important;
  overflow: hidden !important;
}

.single-buy-box #product_add_cart .product-quantity .btn_plus,
.single-buy-box #product_add_cart .product-quantity .qty-input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.single-buy-box #product_add_cart .product-quantity .btn_plus:hover:not(:disabled) {
  background: rgba(255, 255, 255, .1) !important;
}

.single-buy-box #product_add_cart .product-quantity .btn_plus:disabled {
  color: rgba(255, 255, 255, .38) !important;
}

/* Full-width purchase control in catalog grid cards. */
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__purchase {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__price-row,
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__price {
  width: 100% !important;
  text-align: left !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__cart {
  width: 100% !important;
  margin-top: 16px !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .product-cart-compact,
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .product-quantity--compact,
.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .sk-product-card__cart .product-quantity--compact {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.catalog-page .sk-product-card--catalog:not(.sk-product-card--catalog-list) .product-quantity--compact {
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
}

/* Reuse the final catalog card layer in the seasonal products carousel only. */
.legacy-product-section.catalog-card-scope.catalog-page {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

.catalog-card-scope .swiper-slide {
  display: flex !important;
  height: auto !important;
}

.catalog-card-scope .sk-product-card--catalog {
  width: 100% !important;
}
