/* Product image sizing — matches Floda template (270×270 cards, 600×600 details) */

.banner-wide-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
}

.banner-sidebar-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.banner-item .banner-thumb {
    aspect-ratio: 570 / 300;
    overflow: hidden;
}

.banner-item .banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-wide-link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

/* Hero slider — custom crossfade */

.slider-area {
    position: relative;
    overflow: hidden;
}

.hero-slider-custom {
    position: relative;
    overflow: hidden;
}

.hero-slider-custom > .hero-single-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.hero-slider-custom > .hero-single-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.hero-slider-item_3--img {
    position: relative;
    overflow: hidden;
}

/* גובה באנר ראשי */
.hero-slider-item_3 {
    height: 570px;
}

@media only screen and (min-width: 1200px) and (max-width: 1599.98px),
only screen and (min-width: 992px) and (max-width: 1199.98px) {
    .hero-slider-item_3 {
        height: 402px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    .hero-slider-item_3 {
        height: 250px;
    }
}

@media only screen and (max-width: 767.98px) {
    .hero-slider-item_3 {
        height: 170px;
    }
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.boutique-hero--focal-start .hero-slide-bg,
.cls-hero-banner--focal-start .hero-slide-bg {
    object-position: left center;
}

.boutique-hero--focal-end .hero-slide-bg,
.cls-hero-banner--focal-end .hero-slide-bg {
    object-position: right center;
}

.hero-slide-content {
    position: relative;
    z-index: 1;
}

.hero-slider-item_3--image-only .hero-slide-bg,
.hero-slide-image-link .hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-image-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.hero-slider-item_3--image-only::before,
.hero-slider-item_3--image-only .hero-slide-content::before {
    display: none !important;
    content: none !important;
}

.hero-slider-custom .hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-slider-custom:hover .hero-nav {
    opacity: 1;
}

.hero-slider-custom .hero-nav-prev {
    left: 15px;
}

.hero-slider-custom .hero-nav-next {
    right: 15px;
}

.hero-single-slide.is-active .hero-slider-content.slide-1 h1,
.hero-single-slide.is-active .hero-slider-content.slide-2 h1 {
    animation: slideInUp 0.8s linear alternate;
}

.hero-single-slide.is-active .hero-slider-content.slide-1 h2,
.hero-single-slide.is-active .hero-slider-content.slide-2 h2 {
    animation: slideInUp 0.8s linear alternate;
}

.hero-single-slide.is-active .hero-slider-content.slide-1 span,
.hero-single-slide.is-active .hero-slider-content.slide-2 span {
    animation: slideInUp 0.5s linear alternate;
}

.hero-single-slide.is-active .hero-slider-content.slide-1 a,
.hero-single-slide.is-active .hero-slider-content.slide-2 a {
    animation: slideInUp 1s linear alternate;
}

@media only screen and (max-width: 991.98px) {
    .hero-slider-custom .hero-nav {
        display: none;
    }
}

.product-thumb {
    position: relative;
}

.product-thumb__inner {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

.product-thumb img.pri-img,
.product-thumb img.sec-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hover swap only when admin uploaded a hover image */
.product-thumb:not(.has-hover-img) .sec-img {
    display: none;
}

.product-item:hover .product-thumb:not(.has-hover-img) .pri-img,
.product-list-item:hover .product-thumb:not(.has-hover-img) .pri-img {
    opacity: 1;
    visibility: visible;
}

.product-list-item .product-thumb {
    flex: 0 0 270px;
    max-width: 270px;
    aspect-ratio: 1 / 1;
}

.pro-large-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

.pro-large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cart-table .pro-thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-table .pro-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media only screen and (max-width: 767.98px) {
    .product-list-item .product-thumb {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
