/* FALLENS product carousels — homepage Novinky + PDP related / also-purchased.
   Shared so page-scoped homepage.css is not required on product detail.
*/

.fd-home-product-panel {
  display: flex;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.fd-home-product-panel:only-child {
  grid-column: 1 / -1;
}

.fd-home-product-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  margin-bottom: 14px;
}

.fd-home-product-panel__title {
  margin: 0;
  color: var(--fd-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fd-home-product-panel__navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.fd-home-product-panel__arrow {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface);
  color: var(--fd-text-soft);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.fd-home-product-panel__arrow:hover,
.fd-home-product-panel__arrow:focus-visible {
  border-color: var(--fd-border-strong);
  background: var(--fd-accent-soft);
  color: var(--fd-accent-2);
}

.fd-home-product-panel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.fd-home-product-panel__arrow[hidden] {
  display: none;
}

.fd-home-product-panel__viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 4px 0 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  container-type: inline-size;
}

.fd-home-product-panel__viewport::-webkit-scrollbar {
  display: none;
}

.fd-home-product-panel__track {
  --fd-home-product-columns: 4;
  --fd-home-product-gap: 10px;
  --fd-home-product-item-width: auto;
  display: flex;
  gap: var(--fd-home-product-gap);
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
}

.fd-home-product-panel__track > .item-box {
  float: none;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  flex: 0 0 var(--fd-home-product-item-width, calc((100cqi - (var(--fd-home-product-columns) - 1) * var(--fd-home-product-gap)) / var(--fd-home-product-columns)));
  width: var(--fd-home-product-item-width, auto);
  min-width: 0;
  max-width: var(--fd-home-product-item-width, none);
  margin: 0 !important;
  border: 0;
  transform: none;
}

.fd-home-product-panel__track > .item-box > .product-item,
.fd-home-product-panel__track > .item-box > .fd-product-card {
  flex: 1 1 auto;
  width: 100%;
}

.fd-home-product-panel__track > .item-box:hover,
.fd-home-product-panel__track > .item-box .product-item:hover {
  transform: none !important;
  box-shadow: none !important;
}

.fd-home-product-panel--expanded .fd-home-product-panel__viewport {
  overflow: visible;
}

.fd-home-product-panel--expanded .fd-home-product-panel__track {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(var(--fd-home-product-columns), minmax(0, 1fr));
}

.fd-home-product-panel--expanded .fd-home-product-panel__track > .item-box {
  flex: none;
  width: auto;
  max-width: none;
}

.fd-home-product-panel__expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: transparent;
  color: var(--fd-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.fd-home-product-panel__expand[hidden] {
  display: none;
}

.fd-home-product-panel__expand:hover,
.fd-home-product-panel__expand:focus-visible {
  border-color: var(--fd-accent);
  background: var(--fd-accent-soft);
  color: var(--fd-accent-2);
}

.fd-home-product-panel__expand span:last-child {
  transition: transform 160ms ease;
}

.fd-home-product-panel__expand[aria-expanded="true"] span:last-child {
  transform: rotate(180deg);
}

/* Compact variant of the shared nopCommerce product card. */
/* BlackShop legacy resets — stejne jako catalog.css, jinak NO IMAGE / title / details roztahuji karty nerovnomerne. */
.fd-home-product-panel .item-box .picture,
.fd-home-product-panel .fd-product-card__media {
  margin: 0 !important;
  padding: 0 !important;
}

.fd-home-product-panel .item-box .picture a::before,
.fd-home-product-panel .fd-product-card__media a::before {
  display: none !important;
  content: none !important;
  padding-top: 0 !important;
}

.fd-home-product-panel .item-box .details,
.fd-home-product-panel .fd-product-card__body.details {
  padding: 10px !important;
}

.fd-home-product-panel .item-box .product-title,
.fd-home-product-panel .fd-product-card__title.product-title {
  margin: 0 0 6px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.fd-home-product-panel .fd-group-price-ratingstar {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.fd-home-product-panel .fd-product-card,
.fd-home-product-panel .fd-product-card--home {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-lg);
  background: var(--fd-bg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.fd-home-product-panel .fd-product-card:hover,
.fd-home-product-panel .fd-product-card--home:hover {
  border-color: var(--fd-accent);
  box-shadow: 0 0 28px var(--fd-accent-glow);
  transform: translateY(-2px);
}

.fd-home-product-panel .item-box:hover .picture img,
.fd-home-product-panel .item-box:hover .fd-product-card__media img,
.fd-home-product-panel .product-item:hover .picture img,
.fd-home-product-panel .product-item:hover .fd-product-card__media img {
  transform: scale(1.04);
}

.fd-home-product-panel .fd-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  background: radial-gradient(circle at 50% 58%, var(--fd-accent-soft), transparent 62%);
}

.fd-home-product-panel .fd-product-card__media > a,
.fd-home-product-panel .fd-product-card__media .fd-product-card__image-link,
.fd-home-product-panel .fd-product-card__media .swiper,
.fd-home-product-panel .fd-product-card__media .swiper-wrapper,
.fd-home-product-panel .fd-product-card__media .swiper-slide {
  display: flex;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.fd-home-product-panel .fd-product-card__media img {
  display: block;
  position: static;
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 86%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.fd-home-product-panel .fd-product-card__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.fd-home-product-panel .fd-product-card__title {
  flex: 0 0 auto;
  height: calc(13px * 1.3 * 3);
  min-height: calc(13px * 1.3 * 3);
  max-height: calc(13px * 1.3 * 3);
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.fd-home-product-panel .item-box .product-title a,
.fd-home-product-panel .fd-product-card__title a {
  display: -webkit-box;
  height: 100%;
  color: var(--fd-text);
  overflow: hidden;
  font-size: inherit !important;
  line-height: inherit !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  word-break: break-word;
}

.fd-home-product-panel .fd-product-card__subtitle,
.fd-home-product-panel .fd-product-card__meta,
.fd-home-product-panel .tax-shipping-info,
.fd-home-product-panel .base-price-pangv {
  display: none;
}

.fd-home-product-panel .fd-product-card__body .add-info {
  margin: 0;
}

.fd-home-product-panel .fd-product-card__footer {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 6px;
  margin-top: auto;
  min-height: 88px;
}

.fd-home-product-panel .fd-product-card--home .fd-product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  /* Same slot as a sale price + old price, so Novinky match Nejprodavanejsi. */
  min-height: calc(13px * 1.1 + 9px * 1.1 + 2px);
}

.fd-home-product-panel .fd-product-card--home .fd-product-card__stock-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 18px;
}

.fd-home-product-panel .fd-product-card--home .fd-product-card__subtitle,
.fd-home-product-panel .fd-product-card--home .fd-product-card__meta,
.fd-home-product-panel .fd-product-card--home .tax-shipping-info,
.fd-home-product-panel .fd-product-card--home .base-price-pangv {
  display: none;
}

/* Home cards: denser type only — colors/icons from global .fd-product-card__stock */
.fd-home-product-panel .fd-product-card__stock {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

.fd-home-product-panel .fd-product-card__stock-icon {
  display: inline-block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 0;
}

.fd-home-product-panel .fd-product-card__stock-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.fd-home-product-panel .fd-product-card__price-row,
.fd-home-product-panel .fd-product-card__price-row .prices {
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: visible;
}

.fd-home-product-panel .fd-product-card__price-row .prices {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.fd-home-product-panel .fd-product-card__price-row .actual-price,
.fd-home-product-panel .fd-product-card__price-row .prices .price.actual-price {
  color: var(--fd-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.fd-home-product-panel .fd-product-card__price-row .old-price {
  font-size: 9px;
  line-height: 1.1;
}

.fd-home-product-panel .fd-product-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  min-height: 32px;
}

.fd-home-product-panel .fd-product-card__cart {
  min-width: 0;
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid var(--fd-accent);
  border-radius: var(--fd-radius-sm);
  background: transparent;
  color: var(--fd-accent-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fd-home-product-panel .fd-product-card__cart--icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.fd-home-product-panel a.fd-product-card__cart {
  text-decoration: none;
  box-sizing: border-box;
}

.fd-home-product-panel .fd-product-card__cart--rent {
  flex: 0 0 auto;
}

.fd-home-product-panel .fd-product-card__cart:hover {
  background: var(--fd-accent-soft);
}

.fd-home-product-panel .fd-product-card__wishlist,
.fd-home-product-panel .fd-product-card__compare {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface);
  color: var(--fd-muted);
}

.fd-home-product-panel .fd-product-card__wishlist:hover,
.fd-home-product-panel .fd-product-card__compare:hover {
  border-color: var(--fd-border-strong);
  color: var(--fd-text-soft);
  background: var(--fd-accent-soft);
}

.fd-home-product-panel .fd-product-card__wishlist.is-in-wishlist,
.fd-home-product-panel .add-to-wishlist-button.is-in-wishlist {
  border-color: rgba(255, 71, 87, 0.7);
  background: rgba(255, 71, 87, 0.16);
  color: #ff4757;
}

.fd-home-product-panel .fd-product-card__wishlist.is-in-wishlist .linearicons-heart {
  color: #ff4757;
}

.fd-home-product-panel .fd-product-card__wishlist.is-in-wishlist .linearicons-heart::before {
  color: #ff4757;
  text-shadow: 0 0 8px rgba(255, 71, 87, 0.55);
}

.fd-home-product-panel .fd-product-card__wishlist.is-in-wishlist:hover .linearicons-heart::before {
  color: #ff6b7a;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.65);
}
