/*
 * Ganjeh Kala Banner Carousel
 * Dedicated styles for the hero/banner widget. Loaded after home.css so the
 * widget is insulated from generic product/category carousel rules.
 */
.gk-banner-carousel {
    --gk-banner-height: 440px;
    --gk-banner-radius: 24px;
    --gk-banner-accent: var(--gk-primary, #e11d48);
    --gk-banner-overlay: #0f172a;
    --gk-banner-overlay-strength: .68;
    --gk-banner-nav-size: 46px;
    --gk-banner-nav-bg: rgba(255, 255, 255, .9);
    --gk-banner-nav-color: #111827;
    --gk-banner-pagination-active: #fff;
    --gk-banner-pagination-inactive: rgba(255, 255, 255, .5);
    position: relative;
    width: 100%;
    min-width: 0;
    height: var(--gk-banner-height);
    overflow: hidden;
    border-radius: var(--gk-banner-radius);
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

.gk-banner-carousel,
.gk-banner-carousel * {
    box-sizing: border-box;
}

.gk-banner-carousel > .swiper-wrapper {
    height: 100%;
    align-items: stretch;
}

.gk-banner-carousel .gk-banner-slide {
    position: relative;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.gk-banner-carousel .gk-banner-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: inherit;
    background: var(--gk-surface, #f3f4f6);
    color: inherit;
    text-decoration: none;
    outline: 0;
}

.gk-banner-carousel .gk-banner-card:focus-visible {
    box-shadow: inset 0 0 0 3px var(--gk-banner-accent);
}

.gk-banner-carousel .gk-banner-picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.gk-banner-carousel .gk-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
    transform: scale(1.001);
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.gk-banner-carousel .gk-banner-image-pos-center-start .gk-banner-image { object-position: left center; }
.gk-banner-carousel .gk-banner-image-pos-center-end .gk-banner-image { object-position: right center; }
.gk-banner-carousel .gk-banner-image-pos-top-center .gk-banner-image { object-position: center top; }
.gk-banner-carousel .gk-banner-image-pos-bottom-center .gk-banner-image { object-position: center bottom; }

[dir="rtl"].gk-banner-carousel .gk-banner-image-pos-center-start .gk-banner-image { object-position: right center; }
[dir="rtl"].gk-banner-carousel .gk-banner-image-pos-center-end .gk-banner-image { object-position: left center; }

.gk-banner-carousel--modern .gk-banner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, var(--gk-banner-overlay) 0%, transparent 78%);
    opacity: var(--gk-banner-overlay-strength);
}

[dir="rtl"].gk-banner-carousel--modern .gk-banner-card::before {
    background: linear-gradient(270deg, var(--gk-banner-overlay) 0%, transparent 78%);
}

@supports (background: color-mix(in srgb, #000 50%, transparent)) {
    .gk-banner-carousel--modern .gk-banner-card::before {
        background: linear-gradient(
            90deg,
            var(--gk-banner-overlay) 0%,
            color-mix(in srgb, var(--gk-banner-overlay) 58%, transparent) 42%,
            transparent 76%
        );
    }

    [dir="rtl"].gk-banner-carousel--modern .gk-banner-card::before {
        background: linear-gradient(
            270deg,
            var(--gk-banner-overlay) 0%,
            color-mix(in srgb, var(--gk-banner-overlay) 58%, transparent) 42%,
            transparent 76%
        );
    }
}

.gk-banner-carousel--modern .gk-banner-slide::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset-block-start: -110px;
    inset-inline-end: -90px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gk-banner-accent) 0%, transparent 70%);
    opacity: .2;
    filter: blur(8px);
    pointer-events: none;
}

.gk-banner-carousel .gk-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(24px, 4.5vw, 72px);
    pointer-events: none;
}

.gk-banner-carousel .gk-banner-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: min(100%, 560px);
    max-width: 560px;
    min-width: 0;
    text-align: start;
}

.gk-banner-carousel .gk-banner-eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gk-banner-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.gk-banner-carousel .gk-banner-title {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(27px, 3.2vw, 52px);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 4px 22px rgba(0, 0, 0, .2);
}

.gk-banner-carousel .gk-banner-description {
    max-width: 48ch;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 500;
    line-height: 1.85;
}

.gk-banner-carousel .gk-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 4px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    transition: transform .22s ease, box-shadow .22s ease;
}

.gk-banner-carousel .gk-banner-cta-arrow {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    transform: rotate(45deg);
}

[dir="rtl"].gk-banner-carousel .gk-banner-cta-arrow {
    transform: rotate(-135deg);
}

.gk-banner-carousel .gk-banner-copy-theme-dark .gk-banner-card::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .62) 46%, transparent 78%);
    opacity: 1;
}

[dir="rtl"].gk-banner-carousel .gk-banner-copy-theme-dark .gk-banner-card::before {
    background: linear-gradient(270deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .62) 46%, transparent 78%);
    opacity: 1;
}

.gk-banner-carousel .gk-banner-copy-theme-dark .gk-banner-title {
    color: #111827;
    text-shadow: none;
}

.gk-banner-carousel .gk-banner-copy-theme-dark .gk-banner-description {
    color: rgba(17, 24, 39, .82);
}

.gk-banner-carousel .gk-banner-copy-theme-dark .gk-banner-cta {
    background: #111827;
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .gk-banner-carousel .gk-banner-card:hover .gk-banner-image {
        transform: scale(1.025);
    }

    .gk-banner-carousel .gk-banner-card:hover .gk-banner-cta {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
    }
}

/* Controls */
.gk-banner-carousel .gk-banner-nav {
    --gk-banner-nav-size: 46px;
    position: absolute;
    z-index: 5;
    inset-block-start: 50%;
    width: var(--gk-banner-nav-size);
    height: var(--gk-banner-nav-size);
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 50%;
    background: var(--gk-banner-nav-bg);
    color: var(--gk-banner-nav-color);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}

.gk-banner-carousel .gk-banner-prev { inset-inline-start: 16px; }
.gk-banner-carousel .gk-banner-next { inset-inline-end: 16px; }

.gk-banner-carousel .gk-banner-nav::before {
    content: "";
    width: 10px;
    height: 10px;
    border-block-start: 2px solid currentColor;
    border-inline-start: 2px solid currentColor;
}

.gk-banner-carousel .gk-banner-prev::before { transform: rotate(-45deg); }
.gk-banner-carousel .gk-banner-next::before { transform: rotate(135deg); }
[dir="rtl"].gk-banner-carousel .gk-banner-prev::before { transform: rotate(135deg); }
[dir="rtl"].gk-banner-carousel .gk-banner-next::before { transform: rotate(-45deg); }

.gk-banner-carousel .gk-banner-nav:focus-visible,
.gk-banner-carousel .gk-banner-autoplay-toggle:focus-visible,
.gk-banner-carousel .swiper-pagination-bullet:focus-visible {
    outline: 3px solid var(--gk-banner-accent);
    outline-offset: 3px;
}

.gk-banner-carousel .gk-banner-nav.swiper-button-disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .gk-banner-carousel .gk-banner-nav:not(.swiper-button-disabled):hover {
        transform: translateY(-50%) scale(1.06);
    }
}

.gk-banner-carousel .gk-banner-status {
    position: absolute;
    z-index: 5;
    inset-inline-start: 50%;
    inset-block-end: 14px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    max-width: calc(100% - 32px);
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(15, 23, 42, .28);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[dir="rtl"].gk-banner-carousel .gk-banner-status {
    transform: translateX(50%);
}

.gk-banner-carousel .gk-banner-pagination.swiper-pagination {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: none;
}

.gk-banner-carousel .gk-banner-pagination .swiper-pagination-bullet {
    display: block;
    width: 7px;
    height: 7px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: var(--gk-banner-pagination-inactive);
    opacity: 1;
    transition: width .22s ease, background-color .22s ease;
}

.gk-banner-carousel .gk-banner-pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: var(--gk-banner-pagination-active);
}

.gk-banner-carousel .gk-banner-autoplay-toggle {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
}

.gk-banner-carousel .gk-banner-autoplay-toggle > span,
.gk-banner-carousel .gk-banner-autoplay-toggle > span::before,
.gk-banner-carousel .gk-banner-autoplay-toggle > span::after {
    position: absolute;
    content: "";
    display: block;
}

.gk-banner-carousel .gk-banner-autoplay-toggle > span {
    inset: 0;
}

.gk-banner-carousel .gk-banner-autoplay-toggle > span::before,
.gk-banner-carousel .gk-banner-autoplay-toggle > span::after {
    inset-block-start: 7px;
    width: 2px;
    height: 10px;
    border-radius: 2px;
    background: currentColor;
}

.gk-banner-carousel .gk-banner-autoplay-toggle > span::before { inset-inline-start: 8px; }
.gk-banner-carousel .gk-banner-autoplay-toggle > span::after { inset-inline-end: 8px; }

.gk-banner-carousel .gk-banner-autoplay-toggle.is-paused > span::before {
    inset-block-start: 6px;
    inset-inline-start: 9px;
    width: 0;
    height: 0;
    border-block-start: 6px solid transparent;
    border-block-end: 6px solid transparent;
    border-inline-start: 9px solid currentColor;
    border-radius: 0;
    background: transparent;
}

.gk-banner-carousel .gk-banner-autoplay-toggle.is-paused > span::after {
    display: none;
}

/* A single valid slide must look complete even when JavaScript is unavailable. */
.gk-banner-carousel--static > .swiper-wrapper {
    transform: none !important;
}

.gk-banner-carousel--static .gk-banner-slide {
    width: 100% !important;
}

.gk-banner-carousel--static .gk-banner-nav,
.gk-banner-carousel--static .gk-banner-status {
    display: none !important;
}

/* Keep the widget usable before Swiper initializes; prevents a blank hero. */
.gk-banner-carousel:not(.swiper-initialized):not(.gk-banner-carousel--static) > .swiper-wrapper {
    display: flex;
    overflow: hidden;
}

.gk-banner-carousel:not(.swiper-initialized):not(.gk-banner-carousel--static) .gk-banner-slide {
    flex: 0 0 100%;
    width: 100%;
}

@media (max-width: 767px) {
    .gk-banner-carousel {
        --gk-banner-height: 290px;
        --gk-banner-radius: 18px;
    }

    .gk-banner-carousel .gk-banner-content {
        align-items: flex-end;
        padding: 22px;
    }

    .gk-banner-carousel .gk-banner-copy {
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .gk-banner-carousel .gk-banner-eyebrow {
        min-height: 26px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .gk-banner-carousel .gk-banner-title {
        font-size: clamp(23px, 7vw, 32px);
        line-height: 1.22;
        letter-spacing: -.025em;
    }

    .gk-banner-carousel .gk-banner-description {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 13px;
        line-height: 1.7;
    }

    .gk-banner-carousel .gk-banner-cta {
        min-height: 38px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .gk-banner-carousel--hide-mobile-nav .gk-banner-nav {
        display: none !important;
    }

    .gk-banner-carousel--hide-mobile-description .gk-banner-description {
        display: none;
    }

    .gk-banner-carousel .gk-banner-nav {
        --gk-banner-nav-size: 38px;
    }

    .gk-banner-carousel .gk-banner-prev { inset-inline-start: 10px; }
    .gk-banner-carousel .gk-banner-next { inset-inline-end: 10px; }

    .gk-banner-carousel .gk-banner-status {
        inset-block-end: 10px;
        min-height: 30px;
        padding: 5px 8px;
    }

    .gk-banner-carousel--mobile-peek {
        border-radius: 0;
    }

    .gk-banner-carousel--mobile-peek .gk-banner-slide {
        width: calc(100% - 34px) !important;
    }

    .gk-banner-carousel--mobile-peek .gk-banner-card {
        border-radius: var(--gk-banner-radius);
    }

    .gk-banner-carousel .gk-banner-mobile-pos-center-start .gk-banner-image { object-position: left center; }
    .gk-banner-carousel .gk-banner-mobile-pos-center-end .gk-banner-image { object-position: right center; }
    .gk-banner-carousel .gk-banner-mobile-pos-top-center .gk-banner-image { object-position: center top; }
    .gk-banner-carousel .gk-banner-mobile-pos-bottom-center .gk-banner-image { object-position: center bottom; }

    [dir="rtl"].gk-banner-carousel .gk-banner-mobile-pos-center-start .gk-banner-image { object-position: right center; }
    [dir="rtl"].gk-banner-carousel .gk-banner-mobile-pos-center-end .gk-banner-image { object-position: left center; }
}

@media (prefers-reduced-motion: reduce) {
    .gk-banner-carousel .gk-banner-autoplay-toggle {
        display: none;
    }

    .gk-banner-carousel .gk-banner-image,
    .gk-banner-carousel .gk-banner-cta,
    .gk-banner-carousel .gk-banner-nav,
    .gk-banner-carousel .swiper-pagination-bullet {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Last-resort native horizontal scrolling when the Swiper library is unavailable. */
.gk-banner-carousel--runtime-fallback > .swiper-wrapper {
    display: flex !important;
    width: 100% !important;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    transform: none !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gk-banner-carousel--runtime-fallback .gk-banner-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    scroll-snap-align: start;
}

.gk-banner-carousel--runtime-fallback .gk-banner-nav,
.gk-banner-carousel--runtime-fallback .gk-banner-status {
    display: none !important;
}

@media (max-width: 767px) {
    .gk-banner-carousel--runtime-fallback.gk-banner-carousel--mobile-peek .gk-banner-slide {
        flex-basis: calc(100% - 34px) !important;
        width: calc(100% - 34px) !important;
    }
}

/* Swiper-native runtime states (v1.9.36). */
.gk-banner-carousel {
    --gk-banner-autoplay-progress: 0;
    --gk-banner-autoplay-remaining: 1;
}

.gk-banner-carousel.gk-banner-carousel--loading {
    cursor: progress;
}

.gk-banner-carousel.gk-banner-carousel--ready {
    cursor: auto;
}

.gk-banner-carousel.gk-banner-carousel--dragging,
.gk-banner-carousel.gk-banner-carousel--dragging .gk-banner-card {
    cursor: grabbing !important;
}

.gk-banner-carousel .swiper-slide:not(.swiper-slide-active) .gk-banner-card {
    pointer-events: none;
}

.gk-banner-carousel .swiper-lazy-preloader {
    z-index: 4;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    margin-left: -17px;
    border-width: 3px;
    border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .28) rgba(255, 255, 255, .28);
}

.gk-banner-carousel--effect-creative {
    perspective: 1200px;
}

.gk-banner-carousel--effect-creative .gk-banner-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gk-banner-carousel--locked .gk-banner-nav,
.gk-banner-carousel--locked .gk-banner-status,
.gk-banner-carousel .swiper-button-lock {
    display: none !important;
}

.gk-banner-carousel .gk-banner-autoplay-progress {
    position: relative;
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
}

.gk-banner-carousel .gk-banner-autoplay-progress > span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gk-banner-pagination-active);
    transform: scaleX(var(--gk-banner-autoplay-progress));
    transform-origin: left center;
    will-change: transform;
}

[dir="rtl"].gk-banner-carousel .gk-banner-autoplay-progress > span {
    transform-origin: right center;
}

.gk-banner-carousel--pagination-fraction .gk-banner-pagination.swiper-pagination {
    min-width: 54px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

.gk-banner-carousel--pagination-fraction .swiper-pagination-current {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.gk-banner-carousel--pagination-progressbar .gk-banner-pagination.swiper-pagination {
    position: relative;
    width: clamp(72px, 9vw, 124px);
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gk-banner-pagination-inactive);
}

.gk-banner-carousel--pagination-progressbar .gk-banner-pagination .swiper-pagination-progressbar-fill {
    border-radius: inherit;
    background: var(--gk-banner-pagination-active);
}

.gk-banner-carousel--pagination-bullets .gk-banner-pagination.swiper-pagination-bullets-dynamic {
    overflow: hidden;
    padding: 2px 0;
}

.gk-banner-carousel--pagination-bullets .gk-banner-pagination .swiper-pagination-bullet {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.gk-banner-carousel--pagination-bullets .gk-banner-pagination .swiper-pagination-bullet-active-main {
    opacity: 1;
}

.gk-banner-carousel--modern:not(.gk-banner-carousel--parallax) .gk-banner-copy > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .48s ease, transform .58s cubic-bezier(.2, .72, .2, 1);
}

.gk-banner-carousel--modern:not(.gk-banner-carousel--parallax) .swiper-slide-active .gk-banner-copy > * {
    opacity: 1;
    transform: translateY(0);
}

.gk-banner-carousel--modern:not(.gk-banner-carousel--parallax) .swiper-slide-active .gk-banner-copy > :nth-child(2) {
    transition-delay: .06s;
}

.gk-banner-carousel--modern:not(.gk-banner-carousel--parallax) .swiper-slide-active .gk-banner-copy > :nth-child(3) {
    transition-delay: .12s;
}

.gk-banner-carousel--modern:not(.gk-banner-carousel--parallax) .swiper-slide-active .gk-banner-copy > :nth-child(4) {
    transition-delay: .18s;
}

@media (max-width: 767px) {
    .gk-banner-carousel .gk-banner-autoplay-progress {
        flex-basis: 34px;
        width: 34px;
    }

    .gk-banner-carousel--pagination-progressbar .gk-banner-pagination.swiper-pagination {
        width: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-banner-carousel .gk-banner-autoplay-progress {
        display: none;
    }

    .gk-banner-carousel--modern:not(.gk-banner-carousel--parallax) .gk-banner-copy > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
