.pc-carousel {
  --pc-carousel-bg: var(--pc-primary-soft);
  --pc-carousel-accent: var(--pc-primary);
  --pc-carousel-accent-strong: var(--pc-primary-vivid);
  --pc-carousel-hover: var(--pc-carousel-accent);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pc-title-gap);
  width: 100%;
  margin: 0 auto 70px;
  padding: 22px;
  max-width: 1400px;
  background: var(--pc-carousel-bg);
  border-radius: 26px;
}

.pc-carousel--orange {
  --pc-carousel-bg: var(--pc-accent-soft);
  --pc-carousel-accent: var(--pc-accent);
  --pc-carousel-accent-strong: var(--pc-accent);
}

.pc-carousel--blue {
  --pc-carousel-bg: var(--pc-secondary-soft);
  --pc-carousel-accent: var(--pc-secondary);
  --pc-carousel-accent-strong: var(--pc-secondary-dark);
  --pc-carousel-hover: var(--pc-secondary-dark);
}

.pc-carousel__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.pc-carousel__aside {
  flex: 0 0 230px;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.pc-carousel__mascot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
}
.pc-carousel__aside-title {
  margin: 0;
  font-size: var(--pc-title-size);
  font-weight: 700;
  color: var(--pc-carousel-accent-strong);
}
.pc-carousel__aside-btn {
  gap: 6px;
  padding: 0 18px;
  background: var(--pc-surface);
  color: var(--pc-carousel-accent-strong);
  border: 1.5px solid var(--pc-carousel-accent);
}
.pc-carousel__aside-btn:hover {
  background: var(--pc-carousel-hover);
  border-color: var(--pc-carousel-hover);
  color: var(--pc-surface);
}
.pc-carousel__aside-btn .pc-icon {
  width: 16px;
  height: 16px;
}

.pc-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 0 20px;
}
.pc-carousel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--pc-title-size);
  font-weight: 700;
  color: var(--pc-carousel-accent-strong);
}
.pc-carousel__icon {
  display: flex;
}
.pc-carousel__icon .pc-icon {
  width: 22px;
  height: 22px;
}
.pc-carousel__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-carousel-accent-strong);
  text-decoration: none;
}
.pc-carousel__link .pc-icon {
  width: 14px;
  height: 14px;
}

.pc-carousel__viewport {
  flex: 1 1 auto;
  min-width: 0;
}
.pc-carousel .pc-slider {
  padding: 4px 0 6px;
}
.pc-carousel .pc-slider__slide {
  height: auto;
}

.pc-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 6px;
}
.pc-carousel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  background: var(--pc-surface);
  border: none;
  border-radius: 50%;
  color: var(--pc-carousel-accent-strong);
  cursor: pointer;
  box-shadow: 0 2px 8px #22222226;
  transition: background-color 0.25s ease, color 0.25s ease,
    opacity 0.25s ease, box-shadow 0.25s ease;
}
.pc-carousel__nav:hover:not(:disabled) {
  background: var(--pc-carousel-hover);
  color: var(--pc-surface);
  box-shadow: 0 4px 12px #2222222e;
}
.pc-carousel__nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.pc-carousel__nav .pc-icon {
  width: 18px;
  height: 18px;
}

.pc-carousel__nav:focus-visible,
.pc-carousel__aside-btn:focus-visible,
.pc-carousel__link:focus-visible,
.pc-carousel .pc-slider__dot:focus-visible {
  outline: 2px solid var(--pc-carousel-accent-strong);
  outline-offset: 2px;
}

.pc-carousel__dots {
  min-height: 8px;
}
.pc-carousel .pc-slider__dot {
  background: var(--pc-carousel-accent-strong);
  opacity: 0.5;
}
.pc-carousel .pc-slider__dot.is-active {
  opacity: 1;
}
.pc-carousel--orange .pc-slider__dot.is-active {
  filter: brightness(0.88);
}

.pc-carousel .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--pc-surface);
  border-radius: 20px;
  transition: background-color 0.3s ease;
}
.pc-carousel .product-card:hover {
  background: var(--pc-bg-soft);
}

.pc-carousel .off-product-discount {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px 3px 8px;
  background: var(--pc-primary);
  color: var(--pc-surface);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.pc-carousel .off-product-discount svg {
  width: 12px;
  height: 12px;
}

.pc-carousel .product-card-images {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 1 / 1;
}
.pc-carousel .product-card-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease, opacity 0.4s ease;
}
.pc-carousel .product-card-images .product-image-2 {
  opacity: 0;
}
.pc-carousel .product-card:hover .product-image-1 {
  transform: scale(1.1);
}
.pc-carousel .product-card:hover .product-image-2 {
  opacity: 1;
  transform: scale(1.1);
}

.pc-carousel .card-lower {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px 13px;
  flex: 1;
}
.pc-carousel .card-title {
  margin: 0;
  font-family: "Pofak", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--pc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-carousel .card-title a {
  color: inherit;
  text-decoration: none;
}
.pc-carousel .card-category-div {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pc-text-muted);
  transition: transform 0.3s, opacity 0.3s;
}
.pc-carousel .card-category-div svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.pc-carousel .card-category-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-carousel .product-card:hover .card-category-div {
  opacity: 0;
  transform: translateY(-15px);
}

.pc-carousel .product-cart-price {
  display: flex;
  direction: ltr;
  flex-direction: column;
  margin-top: auto;
  padding-top: 17px;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pc-carousel .product-card:hover .product-cart-price {
  transform: translateY(-47px);
}
.pc-carousel .product-cart-price ins {
  text-decoration: none;
}
.pc-carousel .product-cart-price del {
  display: block;
  font-size: 12.5px;
  color: var(--pc-text-disabled);
  line-height: 1.25;
}
.pc-carousel .product-cart-price bdi {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--pc-text);
  line-height: 1.25;
}
.pc-carousel .product-cart-price .woocommerce-Price-currencySymbol {
  font-size: 12.5px;
}

.pc-carousel .add-to-card-cart {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 13px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  background: var(--pc-surface);
  color: var(--pc-primary);
  border: 1.5px solid var(--pc-primary);
  border-radius: 13px;
  font-family: "Pofak", sans-serif;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(18px);
  cursor: pointer;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.2s, color 0.2s;
}
.pc-carousel .add-to-card-cart svg {
  width: 14px;
  height: 14px;
}
.pc-carousel .add-to-card-cart:hover {
  background: var(--pc-primary);
  color: var(--pc-surface);
}
.pc-carousel .product-card:hover .add-to-card-cart {
  opacity: 1;
  transform: translateY(0);
}

.pc-carousel .product-card.out-of-stock .product-card-images img {
  filter: grayscale(100%);
}
.pc-carousel .out-of-stock-text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-text-disabled);
}
.pc-carousel .product-card.out-of-stock .add-to-card-cart {
  display: none !important;
}
.pc-carousel .product-card.out-of-stock:hover .product-cart-price,
.pc-carousel .product-card.out-of-stock:hover .card-category-div {
  transform: none;
  opacity: 1;
}

@media (min-width: 901px) {
  .pc-carousel--has-aside .pc-carousel__head {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .pc-carousel--has-aside .pc-carousel__link {
    display: none;
  }
}

@media (max-width: 900px) {
  .pc-carousel {
    padding: 16px 12px 16px 0;
    border-radius: 20px;
    margin-bottom: 45px;
  }
  .pc-carousel__nav {
    display: none;
  }
  .pc-carousel__controls {
    justify-content: center;
  }
  .pc-carousel__aside {
    display: none;
  }
  .pc-carousel__viewport {
    padding-right: 12px;
  }
  .pc-carousel__body {
    gap: 0;
  }
  .pc-carousel .product-cart-price {
    padding-top: 10px;
  }
  .pc-carousel .product-card:hover .product-cart-price,
  .pc-carousel .product-card:hover .card-category-div {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-carousel .product-card-images img,
  .pc-carousel .product-cart-price,
  .pc-carousel .add-to-card-cart,
  .pc-carousel__nav {
    transition: none;
  }
}

@media (max-width: 640px) {
  .pc-carousel .add-to-card-cart {
    display: none;
  }
}
