.gk-fast-showcase {
    --gk-fast-bg: color-mix(in srgb, var(--gk-primary, #3342fd) 5%, var(--gk-surface, #fff));
    --gk-fast-border: var(--gk-border-color, #e7e9ef);
    --gk-fast-muted: var(--gk-text-muted, #7a7f88);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 16px 24px;
    border-radius: var(--gk-radius-xl, 20px);
    background: var(--gk-surface-soft, var(--gk-surface, #fff));
    background: var(--gk-fast-bg);
    color: var(--gk-text, #111827);
    overflow: hidden;
}


/* Widget-local card motion override: keep hover styling while disabling vertical lift. */
.gk-fast-showcase--no-card-lift {
    --gk-card-hover-lift: 0px !important;
}


.gk-fast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-inline: 8px;
}

.gk-fast-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gk-fast-title {
    margin: 0;
    color: var(--gk-text, #111827);
    font-family: var(--gk-font-heading, inherit);
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: -.03em;
}

.gk-fast-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: min(calc(var(--gk-radius, 8px) * 0.875), 24px);
    background: #f4c900;
    color: #171717;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.gk-fast-view-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: min(calc(var(--gk-radius, 8px) * 1.125), 24px);
    background: var(--gk-surface-soft, var(--gk-surface, #fff));
    color: var(--gk-text, #111827);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}


.gk-fast-view-all__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gk-fast-view-all__icon .gk-fast-icon {
    width: 15px;
    height: 15px;
}
.gk-fast-view-all:link,
.gk-fast-view-all:visited {
    color: var(--gk-text, #111827) !important;
}

.gk-fast-view-all:hover {
    color: var(--gk-primary, #3342fd) !important;
    transform: translateX(-2px);
}

.gk-fast-tabs-wrap {
    margin-bottom: 14px;
    overflow: hidden;
}

.gk-fast-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 0 8px 2px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.gk-fast-tabs::-webkit-scrollbar { display: none; }

.gk-fast-tab {
    appearance: none;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 16px;
    border: 1px solid color-mix(in srgb, var(--gk-text, #111827) 16%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--gk-text, #111827);
    font-family: var(--gk-font-base, inherit);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.gk-fast-tab:hover {
    border-color: color-mix(in srgb, var(--gk-primary, #3342fd) 45%, transparent);
}

.gk-fast-tab.is-active {
    border-color: var(--gk-text, #111827);
    background: var(--gk-surface, #fff);
    color: var(--gk-text, #111827);
}

.gk-fast-panel[hidden] { display: none !important; }
.gk-fast-panel { position: relative; }
.gk-fast-swiper { overflow: visible; }
.gk-fast-swiper .swiper-wrapper { align-items: stretch; }
.gk-fast-swiper .swiper-slide { height: auto; }

.gk-fast-products {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gk-fast-swiper .gk-product-card {
    height: auto;
    /* Swiper owns the inline start/end margin used for spaceBetween. */
    margin-block: 0 !important;
    list-style: none;
}

.gk-fast-swiper .gk-product-card__inner {
    height: 100%;
}

.gk-fast-showcase--hide-discount .gk-product-card__discount {
    display: none !important;
}

.gk-fast-showcase--hide-regular-price .gk-product-card__price-regular {
    display: none !important;
}

.gk-fast-view-slide { height: auto; }
.gk-fast-view-card {
    --gk-fast-stack-duration: 700ms;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 100%;
    padding: 20px 12px;
    box-sizing: border-box;
    border: 1px solid var(--gk-fast-border);
    border-radius: min(calc(var(--gk-radius, 8px) * 2.75), 33px);
    background: var(--gk-surface, #fff);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1), box-shadow 320ms ease, border-color 320ms ease;
    color: var(--gk-text, #111827);
    text-decoration: none;
}

.gk-fast-view-card:link,
.gk-fast-view-card:visited {
    color: var(--gk-text, #111827) !important;
}

.gk-fast-view-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
}


.gk-fast-view-stack {
    position: relative;
    display: block;
    width: 112px;
    height: 96px;
    perspective: 500px;
}

.gk-fast-view-stack__item {
    --gk-fast-stack-x: 0px;
    --gk-fast-stack-y: 0px;
    --gk-fast-stack-r: 0deg;
    --gk-fast-stack-scale: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    padding: 5px;
    border: 1px solid var(--gk-fast-border);
    border-radius: min(calc(var(--gk-radius, 8px) * 2.125), 25.5px);
    background: var(--gk-surface, #fff);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
    overflow: hidden;
    transform: translate(calc(-50% + var(--gk-fast-stack-x)), calc(-50% + var(--gk-fast-stack-y))) rotate(var(--gk-fast-stack-r)) scale(var(--gk-fast-stack-scale));
    transition:
        transform var(--gk-fast-stack-duration, 700ms) cubic-bezier(.22, 1, .36, 1),
        box-shadow 450ms ease,
        border-color 450ms ease;
    transition-delay: calc(var(--gk-fast-stack-index, 0) * 45ms);
    will-change: transform;
}

.gk-fast-view-stack__item:nth-child(1) { --gk-fast-stack-x: -24px; --gk-fast-stack-y: 8px; --gk-fast-stack-r: -8deg; z-index: 1; }
.gk-fast-view-stack__item:nth-child(2) { --gk-fast-stack-x: 24px; --gk-fast-stack-y: 9px; --gk-fast-stack-r: 8deg; z-index: 2; }
.gk-fast-view-stack__item:nth-child(3) { --gk-fast-stack-x: -8px; --gk-fast-stack-y: -13px; --gk-fast-stack-r: -2deg; z-index: 3; }
.gk-fast-view-stack__item:nth-child(4) { --gk-fast-stack-x: 10px; --gk-fast-stack-y: -9px; --gk-fast-stack-r: 3deg; z-index: 4; }

.gk-fast-view-stack__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: min(calc(var(--gk-radius, 8px) * 1.5), 24px);
    transform-origin: center;
    animation: gk-fast-stack-image-float 5.4s ease-in-out infinite;
    animation-delay: calc(var(--gk-fast-stack-index, 0) * -.7s);
}

.gk-fast-view-stack__item.is-placeholder {
    background: var(--gk-surface-soft, var(--gk-surface, #fff));
}

@keyframes gk-fast-stack-image-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.025); }
}

.gk-fast-view-label {
    font-size: 13px;
    font-weight: 700;
}

.gk-fast-view-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gk-fast-border);
    color: var(--gk-text, #111827);
}

.gk-fast-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gk-fast-nav {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 1px solid var(--gk-fast-border);
    border-radius: 50%;
    background: var(--gk-surface, #fff);
    color: var(--gk-text, #111827);
    box-shadow: 0 4px 16px rgba(17, 24, 39, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.gk-fast-nav--next { left: 8px; }
.gk-fast-nav--prev { right: 8px; }
.gk-fast-nav .gk-fast-icon { width: 20px; height: 20px; }
.gk-fast-nav.swiper-button-disabled { opacity: 0; pointer-events: none; }

@media (hover: hover) and (pointer: fine) {
    .gk-fast-nav:hover { transform: scale(1.05); }
    .gk-fast-view-card:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--gk-primary, #3342fd) 22%, var(--gk-fast-border));
        box-shadow: 0 18px 40px rgba(15, 23, 42, .09);
    }
    .gk-fast-view-card:hover .gk-fast-view-stack__item:nth-child(1) {
        --gk-fast-stack-x: -34px;
        --gk-fast-stack-y: 11px;
        --gk-fast-stack-r: -12deg;
        --gk-fast-stack-scale: 1.035;
    }
    .gk-fast-view-card:hover .gk-fast-view-stack__item:nth-child(2) {
        --gk-fast-stack-x: 34px;
        --gk-fast-stack-y: 12px;
        --gk-fast-stack-r: 12deg;
        --gk-fast-stack-scale: 1.035;
    }
    .gk-fast-view-card:hover .gk-fast-view-stack__item:nth-child(3) {
        --gk-fast-stack-x: -12px;
        --gk-fast-stack-y: -20px;
        --gk-fast-stack-r: -5deg;
        --gk-fast-stack-scale: 1.055;
    }
    .gk-fast-view-card:hover .gk-fast-view-stack__item:nth-child(4) {
        --gk-fast-stack-x: 14px;
        --gk-fast-stack-y: -17px;
        --gk-fast-stack-r: 6deg;
        --gk-fast-stack-scale: 1.055;
    }
}

@media (max-width: 767px) {
    .gk-fast-showcase {
        padding: 16px 10px 18px;
        border-radius: var(--gk-radius-lg, 16px);
    }
    .gk-fast-header {
        margin-bottom: 14px;
        padding-inline: 4px;
    }
    .gk-fast-heading { gap: 6px; }
    .gk-fast-title { font-size: 19px; }
    .gk-fast-badge { min-height: 23px; padding-inline: 7px; font-size: 10px; }
    .gk-fast-view-all { min-height: 30px; padding: 5px 9px; font-size: 11px; }
    .gk-fast-tabs { padding-inline: 4px; }
    .gk-fast-tab { min-height: 32px; padding: 5px 13px; font-size: 12px; }
    .gk-fast-nav[data-mobile-hidden="1"],
    .gk-fast-swiper[data-nav-mobile="0"] .gk-fast-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gk-fast-nav,
    .gk-fast-view-all,
    .gk-fast-view-card { transition: none !important; }
    .gk-fast-view-stack__item { transition: none !important; }
    .gk-fast-view-stack__image { animation: none !important; }
}

.gk-fast-empty-slide { width: 100% !important; }
.gk-fast-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 24px;
    border: 1px dashed var(--gk-fast-border);
    border-radius: var(--gk-radius-lg, 12px);
    background: color-mix(in srgb, var(--gk-surface, #fff) 82%, transparent);
    color: var(--gk-fast-muted);
    font-size: 13px;
    text-align: center;
}

/* Mobile compositor guard — moving a Swiper wrapper while every stacked image has
 * its own infinite transform animation causes continuous raster/composite work. */
@media (max-width: 1024px), (pointer: coarse) {
    .gk-fast-view-stack__item {
        will-change: auto !important;
    }
    .gk-fast-view-stack__image {
        animation: none !important;
    }
}
