/* Shared product row carousels: similars, bought-together, recently viewed */

.item-page-product-carousel {    padding: 40px 0 30px;
}

.item-page-product-carousel .similars_container {    width: 100%;
    padding: 0 44px;
    box-sizing: border-box;
}

.item-page-product-carousel .similars_header {    margin-bottom: 28px;
}

.item-page-product-carousel .similars_title {    margin: 0;
}

.item-page-product-carousel .similars_scroll__wrap {    position: relative;
}

.item-page-product-carousel .similars_track {    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 6px 0 17px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 60, 58, 0.35) transparent;
    cursor: grab;
    user-select: none;
}

.item-page-product-carousel .similars_track.is-dragging {    cursor: grabbing;
    scroll-behavior: auto;
}

.item-page-product-carousel .similars_track.is-dragging .similars_card {    pointer-events: none;
}

.item-page-product-carousel .similars_track::after {    content: '';
    flex: 0 0 12%;
}

.item-page-product-carousel .similars_track::-webkit-scrollbar {    height: 6px;
}
.item-page-product-carousel .similars_track::-webkit-scrollbar-track {    background: transparent;
}
.item-page-product-carousel .similars_track::-webkit-scrollbar-thumb {    background: rgba(61, 60, 58, 0.28);
    border-radius: 3px;
}
.item-page-product-carousel .similars_track::-webkit-scrollbar-thumb:hover {    background: rgba(61, 60, 58, 0.55);
}

.item-page-product-carousel .similars_scroll__fade {    position: absolute;
    top: 0;
    right: 0;
    width: 84px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.85) 60%,
      rgba(255, 255, 255, 1) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.item-page-product-carousel .similars_scroll__wrap.has-overflow .similars_scroll__fade {    opacity: 1;
}

.item-page-product-carousel .similars_scroll__wrap.is-at-end .similars_scroll__fade {    opacity: 0;
}

.item-page-product-carousel .similars_card.product_card-prof {    flex: 0 0 245px;
    width: 245px;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #3d3c3a;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    transition:
      transform 0.28s ease,
      box-shadow 0.28s ease,
      border-color 0.28s ease;
    animation: .4s ease-in-out both similars_fade_in;
    overflow: hidden;
}

.item-page-product-carousel .similars_card.product_card-prof:hover,
.item-page-product-carousel .similars_card.product_card-prof:focus-visible {    transform: translateY(-3px);
    border-color: #1e1b15;
    box-shadow: 0 13px 24px -13px rgba(30, 27, 21, 0.45);
}

.item-page-product-carousel .similars_card .prod_card_link {    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    overflow: hidden;
}

.item-page-product-carousel .similars_card .prod_card_media {    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.item-page-product-carousel .similars_card .prod_card-img {    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.item-page-product-carousel .similars_card:hover .prod_card_media:not(.prod_card_media--hover_preview) .prod_card-img {    transform: scale(1.04);
}

.item-page-product-carousel .similars_card .prod_card_media--hover_preview .prod_card_img_stack {    position: absolute;
    inset: 0;
}

.item-page-product-carousel .similars_card .prod_card_media--hover_preview .prod_card-img {    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
      opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.item-page-product-carousel .similars_card .prod_card_info__wrap {    background: #efefef;
    position: relative;
    box-sizing: border-box;
    padding: 11px 0 40px 7px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.item-page-product-carousel .similars_card .prod_card-rating-slot {    flex-shrink: 0;
    min-height: 26px;
}

.item-page-product-carousel .similars_card .prod_card-name {    margin: 0;
    margin-top: 7px;
    padding-right: 7px;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.25;
}

.item-page-product-carousel .similars_card .prod_card-rating {    margin: 4px 0 2px;
    padding-right: 7px;
    gap: 4px 6px;
}

.item-page-product-carousel .similars_card .prod_card-rating .rating_svg {    width: 10px;
    height: 10px;
}

.item-page-product-carousel .similars_card .prod_card-info {    position: absolute;
    left: 7px;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 0;
    height: auto;
}

.item-page-product-carousel .similars_card .prod_card-compare {    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #3d3c3a;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.item-page-product-carousel .similars_card .prod_card-compare:hover {    border-color: #ffd10a;
}

.item-page-product-carousel .similars_card .prod_card-compare--active {    background: #ffd10a;
    border-color: #ffd10a;
}

.item-page-product-carousel .similars_card .prod_card-compare__svg {    display: block;
    width: 14px;
    height: 14px;
    color: #242321;
}

.item-page-product-carousel .similars_card .prod_card-compare--active .prod_card-compare__svg {    color: #000;
}

@keyframes similars_compare_added_flash {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.item-page-product-carousel .similars_card .prod_card-compare.prod_card-compare--added-flash {    animation: similars_compare_added_flash 0.55s ease;
}

.item-page-product-carousel .similars_card .prod_card-info-wrapper {    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.item-page-product-carousel .similars_card .prod_card-btn.similars_card-cart {    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: none;
    background: #ffd10a;
    color: #1e1b15;
    cursor: pointer;
    overflow: hidden;
    transition:
      background-color 0.2s ease,
      transform 0.15s ease,
      color 0.2s ease;
}

.item-page-product-carousel .similars_card .prod_card-btn.similars_card-cart:hover {    background: #ffde44;
}

.item-page-product-carousel .similars_card .prod_card-btn.similars_card-cart:active {    transform: scale(0.92);
}

.item-page-product-carousel .similars_card-cart-icon,
.item-page-product-carousel .similars_card-cart-check {    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.item-page-product-carousel .similars_card-cart-check {    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(-12deg);
    pointer-events: none;
}

.item-page-product-carousel .similars_card-cart.is-loading .similars_card-cart-icon {    animation: similars_cart_pulse 0.6s ease infinite;
}

.item-page-product-carousel .similars_card-cart.is-added {    background: #1e1b15!important;
    color: #ffd10a;
    animation: similars_btn_success_pop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.item-page-product-carousel .similars_card-cart.is-added .similars_card-cart-icon {    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(8deg);
    transition: opacity 0.18s ease, transform 0.26s ease;
}

.item-page-product-carousel .similars_card-cart.is-added .similars_card-cart-check {    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    transition: none;
    animation: similars_check_reveal 0.48s cubic-bezier(0.34, 1.45, 0.64, 1) 0.05s both;
}

.item-page-product-carousel .similars_card-cart.is-added .similars_card-cart-check polyline {    stroke: #ffd10a;
    vector-effect: non-scaling-stroke;
}

@keyframes similars_cart_pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes similars_btn_success_pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.12); }
    65% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

@keyframes similars_check_reveal {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.25) rotate(-18deg);
    }
    55% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.12) rotate(4deg);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .item-page-product-carousel .similars_card-cart.is-added {
      animation: none;
    }
    .item-page-product-carousel .similars_card-cart.is-added .similars_card-cart-check {
      animation: none;
      transition: opacity 0.2s ease;
    }
    .item-page-product-carousel .similars_card-cart-icon,
    .item-page-product-carousel .similars_card-cart-check {
      transition: opacity 0.15s ease;
    }
    .item-page-product-carousel .similars_card-cart.is-added .similars_card-cart-check {
      transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes similars_fade_in {
    0% { opacity: 0; transform: translateY(7px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1392px) {
    .item-page-product-carousel .similars_card.product_card-prof {
      flex: 0 0 224px;
      width: 224px;
    }
}

@media (max-width: 1115px) {
    .item-page-product-carousel .similars_card.product_card-prof {
      flex: 0 0 203px;
      width: 203px;
    }
}

@media (max-width: 992px) {
    .item-page-product-carousel .similars_container {
      padding: 0 24px;
    }
    .item-page-product-carousel .similars_track {
      padding: 6px 0 14px;
      gap: 11px;
    }
    .item-page-product-carousel .similars_card.product_card-prof {
      flex: 0 0 189px;
      width: 189px;
    }
    .item-page-product-carousel .similars_card .prod_card_info__wrap {
      padding-bottom: 38px;
    }
    .item-page-product-carousel .similars_card .prod_card-compare {
      width: 26px;
      height: 26px;
    }
    .item-page-product-carousel .similars_card .prod_card-compare__svg {
      width: 12px;
      height: 12px;
    }
    .item-page-product-carousel .similars_card .prod_card-btn.similars_card-cart {
      width: 30px;
      height: 30px;
      flex: 0 0 30px;
    }
    .item-page-product-carousel .similars_scroll__fade {
      width: 56px;
    }
}

@media (max-width: 600px) {
    .item-page-product-carousel {
      padding: 30px 0 20px;
    }
    .item-page-product-carousel .similars_card.product_card-prof {
      flex: 0 0 161px;
      width: 161px;
    }
    .item-page-product-carousel .similars_card .prod_card_info__wrap {
      padding-bottom: 36px;
    }
    .item-page-product-carousel .similars_card .prod_card-compare {
      width: 24px;
      height: 24px;
    }
    .item-page-product-carousel .similars_card .prod_card-compare__svg {
      width: 11px;
      height: 11px;
    }
    .item-page-product-carousel .similars_card .prod_card-btn.similars_card-cart {
      width: 28px;
      height: 28px;
      flex: 0 0 28px;
    }
}

