/*
 * KLO STORE — Hero Slider natural auto-height
 * The active banner controls the slider height using its native aspect ratio.
 * Rules are scoped to the hero only so homepage product Swiper cards are unchanged.
 */

.hero-slider-container,
.hero-slider-container.hero-slider,
.hero-slider-container .hero-slider-frame,
.hero-slider-container .hero-track,
.hero-slider-container .hero-slide,
.hero-slider-container .hero-slide > a,
.hero-slider-container .hero-slide > div {
    width: 100% !important;
    height: auto !important;
    min-height: initial !important;
    max-height: none !important;
    box-sizing: border-box;
}

.hero-slider-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.hero-slider-container .hero-slider-frame {
    position: relative;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 16px;
    box-shadow: none !important;
}

.hero-slider-container .hero-track {
    position: relative !important;
    inset: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.hero-slider-container .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 16px;
    box-shadow: none !important;
}

.hero-slider-container .hero-slide.is-active {
    position: relative !important;
    inset: auto !important;
    display: block;
}

.hero-slider-container .hero-slide > a,
.hero-slider-container .hero-slide > div {
    position: static !important;
    inset: auto !important;
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

/* Display the complete banner at its natural responsive height. */
.hero-slider-container.hero-slider img,
.hero-slider-container .hero-banner-image,
.hero-slider-container .hero-slide img {
    width: 100% !important;
    height: auto !important;
    min-height: initial !important;
    max-height: none !important;
    display: block;
    object-fit: unset !important;
    object-position: center;
    aspect-ratio: auto !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-slider-container .hero-slider-controls {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .hero-slider-container {
        margin-bottom: 1.5rem;
    }

    .hero-slider-container .hero-slider-frame,
    .hero-slider-container .hero-slide,
    .hero-slider-container .hero-banner-image {
        border-radius: 14px;
    }
}

/* KLO CATEGORY DRAWER START */
.category-drawer-trigger,
.header-account-button,
.header-cart-button {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    color: #f8fafc;
    padding: .68rem .9rem;
    font-size: .875rem;
    font-weight: 800;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.category-drawer-trigger:hover,
.header-account-button:hover,
.header-cart-button:hover {
    transform: translateY(-1px);
    border-color: rgba(129, 140, 248, .48);
    background: rgba(99, 102, 241, .12);
    box-shadow: 0 10px 25px rgba(2, 6, 23, .22);
}

.category-drawer-trigger:focus-visible,
.header-account-button:focus-visible,
.header-cart-button:focus-visible,
.category-drawer-close:focus-visible,
.category-drawer-link:focus-visible,
.category-drawer-sublink:focus-visible {
    outline: 2px solid rgba(129, 140, 248, .9);
    outline-offset: 3px;
}

.header-cart-button {
    width: 44px;
    padding: .65rem;
}

.drawer-backdrop,
.category-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(2, 6, 23, .58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
}

.side-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    width: 300px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, .1);
    background: rgba(15, 20, 32, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: -24px 0 70px rgba(0, 0, 0, .5);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    will-change: transform;
}

body.category-drawer-open {
    overflow: hidden;
    overscroll-behavior: contain;
}

.drawer-backdrop.active,
.category-drawer-backdrop.active,
body.category-drawer-open .drawer-backdrop,
body.category-drawer-open .category-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.side-menu-drawer.active,
body.category-drawer-open .side-menu-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.category-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 1.25rem;
}

.category-drawer-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    background: rgba(255, 255, 255, .05);
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

.category-drawer-close:hover {
    transform: rotate(5deg);
    background: rgba(248, 113, 113, .12);
    color: #fecaca;
}

.category-drawer-navigation {
    display: grid;
    flex: 1;
    align-content: start;
    gap: .55rem;
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(129, 140, 248, .45) transparent;
}

.category-drawer-link {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: .85rem;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: .72rem .8rem;
    color: #e2e8f0;
    cursor: pointer;
    list-style: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}

.category-drawer-group > summary::-webkit-details-marker {
    display: none;
}

.category-drawer-link:hover,
.category-drawer-link.is-active,
.category-drawer-group[open] > .category-drawer-link {
    transform: translateX(-3px);
    border-color: rgba(129, 140, 248, .3);
    background: linear-gradient(135deg, rgba(99, 102, 241, .15), rgba(168, 85, 247, .075));
    color: #fff;
}

.category-drawer-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(129, 140, 248, .24);
    border-radius: 13px;
    background: rgba(99, 102, 241, .11);
    font-size: 1.15rem;
}

.category-drawer-link strong {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-drawer-link small {
    display: block;
    margin-top: .18rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
}

.category-drawer-chevron {
    width: 18px;
    flex: 0 0 auto;
    color: #64748b;
    transition: transform .25s ease;
}

.category-drawer-group[open] .category-drawer-chevron {
    transform: rotate(180deg);
}

.category-drawer-submenu {
    display: grid;
    gap: .35rem;
    margin: .35rem 1.1rem .2rem 0;
    padding: .35rem .75rem .45rem 0;
    border-right: 1px solid rgba(129, 140, 248, .22);
}

.category-drawer-sublink {
    display: flex;
    align-items: center;
    gap: .55rem;
    border-radius: 11px;
    padding: .62rem .72rem;
    color: #94a3b8;
    font-size: .82rem;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.category-drawer-sublink:hover,
.category-drawer-sublink.is-active {
    transform: translateX(-2px);
    background: rgba(255, 255, 255, .055);
    color: #c7d2fe;
}

.category-drawer-sublink small {
    margin-inline-start: auto;
    color: #64748b;
}

.category-drawer-empty {
    border: 1px dashed rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 1.25rem;
    color: #64748b;
    text-align: center;
}

.category-drawer-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
}

.category-drawer-support {
    display: flex;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, .2);
    border-radius: 13px;
    background: rgba(16, 185, 129, .08);
    padding: .75rem 1rem;
    color: #a7f3d0;
    font-size: .82rem;
    font-weight: 900;
    transition: border-color .2s ease, background .2s ease;
}

.category-drawer-support:hover {
    border-color: rgba(16, 185, 129, .42);
    background: rgba(16, 185, 129, .13);
}

@media (max-width: 639px) {
    .category-drawer-trigger {
        min-height: 42px;
        padding: .6rem .72rem;
    }

    .category-drawer-trigger span {
        display: none;
    }

    .side-menu-drawer {
        width: 300px;
        max-width: 92vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .side-menu-drawer,
    .category-drawer-backdrop,
    .category-drawer-link,
    .category-drawer-close {
        transition: none !important;
    }
}
/* KLO CATEGORY DRAWER END */



/* KLO product-card image performance and no-crop fix.
 * The 1:1 wrapper prevents layout shifts while object-fit: contain keeps the
 * complete digital-product artwork visible on every card. */
.product-card .product-image-container,
.product-card .product-card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.02) !important;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.product-card .product-image-container img,
.product-card .product-card-image-wrapper img,
.product-card img.product-card-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img,
.product-card:hover .product-card-image-wrapper img {
    transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
    .product-card .product-image-container img,
    .product-card .product-card-image-wrapper img {
        transition: none;
    }
}
