/* Storefront product cards */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.product-card {
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: #fff;
    box-shadow: none !important;
    transition: transform 0.22s ease;
}

.product-card:hover,
.product-card.active {
    border: 0 !important;
    box-shadow: none !important;
    transform: translateY(-2px);
}

.product-card .product-thumb {
    aspect-ratio: 2 / 3;
    border-radius: 0;
    overflow: hidden;
    background: #edf0f3;
    position: relative;
}

@keyframes storefront-media-loading {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -180% 0;
    }
}

.product-card .product-thumb::before,
.banner-category-card__media::before,
.storefront-mega-product__media::before,
.storefront-mobile-product__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, #eceff2 0%, #f6f7f8 42%, #e5e8eb 72%);
    background-size: 220% 100%;
    animation: storefront-media-loading 1.35s ease-in-out infinite;
}

.product-card .product-thumb a,
.product-card .product-thumb__link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

.product-card .product-thumb__image,
.product-card .product-thumb__image--secondary {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card .product-thumb__image img,
.product-card .product-thumb__image--primary img,
.product-card .product-thumb__image--secondary img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.product-card .product-thumb__image img.lazyload[data-src],
.banner-category-card__image.lazyload[data-src],
.storefront-mega-product__image.lazyload[data-src],
.storefront-mobile-product__image.lazyload[data-src] {
    opacity: 0;
}

.product-card .product-thumb__image img.lazyload.is-loaded,
.banner-category-card__image--primary.lazyload.is-loaded,
.storefront-mega-product__image--primary.lazyload.is-loaded,
.storefront-mobile-product__image--primary.lazyload.is-loaded {
    opacity: 1;
}

.product-card .product-thumb__image img.lazyload.is-error,
.banner-category-card__image.lazyload.is-error,
.storefront-mega-product__image.lazyload.is-error,
.storefront-mobile-product__image.lazyload.is-error {
    opacity: 0;
}

.product-card:hover .product-thumb__image--primary img.lazyload.is-loaded,
.banner-category-card:hover .banner-category-card__image--primary.lazyload.is-loaded,
.storefront-mega-product:hover .storefront-mega-product__media.has-secondary .storefront-mega-product__image--primary.lazyload.is-loaded,
.storefront-mobile-product:hover .storefront-mobile-product__media.has-secondary .storefront-mobile-product__image--primary.lazyload.is-loaded {
    opacity: 0;
}

.product-card:hover .product-thumb__image--secondary img.lazyload.is-loaded,
.banner-category-card:hover .banner-category-card__image--secondary.lazyload.is-loaded,
.storefront-mega-product:hover .storefront-mega-product__media.has-secondary .storefront-mega-product__image--secondary.lazyload.is-loaded,
.storefront-mobile-product:hover .storefront-mobile-product__media.has-secondary .storefront-mobile-product__image--secondary.lazyload.is-loaded {
    opacity: 1;
}

.product-card:hover .product-thumb__image img {
    transform: none;
}

.product-card .product-card-buttons {
    top: 12px;
    right: 12px;
}

.product-card .product-content {
    margin-top: 0;
    padding-top: 0.7rem;
}

.product-card .product-content .product-before-content {
    background: transparent;
}

.product-card .product-content .title {
    margin-bottom: 0.2rem;
    color: #111111;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.28;
}

.product-card .product-content .title a {
    -webkit-line-clamp: 2;
}

.product-card__meta {
    display: block;
    margin-bottom: 0.14rem;
    color: #666666;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-card .single_content,
.product-card .ratings-area,
.product-card .add-to-cart-btn {
    display: none !important;
}

.product-card .single_content__info {
    display: block;
}

.product-card .product-content .price,
.product-card .product-content .price span,
.product-card .product-content .price ins {
    color: #111111;
    font-size: 1.04rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: normal;
    overflow: visible;
}

.product-card .product-content .price del {
    display: inline;
    margin-right: 0.35rem;
    color: #8e8e8e;
    font-size: 0.82em;
    font-weight: 500;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
}

.product-card .product-content .price ins {
    color: #ca241c;
    margin-left: 0;
}

.product-card__badge {
    position: absolute;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 4px 8px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

.product-card__badge--discount {
    left: 12px;
    bottom: 12px;
    background: #ca241c;
}

.product-card__badge--sold-out {
    top: 12px;
    right: 12px;
    background: #707784;
}

.recently-viewed-section .product-card,
.storefront-latest-products .product-card,
.product-wrapper .product-card,
.wishlist-row .product-card {
    border: 0 !important;
    box-shadow: none !important;
}

.list-view-active .product-card {
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: 5px;
    transform: none;
}

.list-view-active .product-card .product-thumb {
    aspect-ratio: auto;
    background: transparent;
    border-radius: 5px;
}

.list-view-active .product-card .product-thumb img {
    object-fit: contain;
    object-position: center top;
}

.list-view-active .product-card .product-content {
    padding-top: 0;
}

.list-view-active .product-card .ratings-area,
.list-view-active .product-card .single_content {
    display: block !important;
}

.homepage-tiktok-feed {
    position: relative;
    z-index: 0;
    padding: 48px 0 96px;
    background: #ffffff;
}

.footer-area {
    position: relative;
    z-index: 2;
}

.homepage-tiktok-feed .banner-category-showcase__head {
    justify-content: center;
    text-align: center;
}

.homepage-tiktok-feed__embed {
    width: 100%;
    min-height: 520px;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.homepage-tiktok-feed__embed .tiktok-embed {
    width: 100%;
    max-width: 100% !important;
    min-height: 520px;
    margin: 0 !important;
    transform-origin: top center;
}

.homepage-tiktok-feed__embed iframe {
    width: 100% !important;
    max-width: 100% !important;
}

@media (min-width: 992px) {
    .homepage-tiktok-feed__embed {
        min-height: 620px;
    }

    .homepage-tiktok-feed__embed .tiktok-embed {
        transform: scale(1.18);
    }
}

@media (min-width: 1200px) {
    .homepage-tiktok-feed__embed {
        min-height: 700px;
    }

    .homepage-tiktok-feed__embed .tiktok-embed {
        transform: scale(1.35);
    }
}

@media (max-width: 991px) {
    html,
    body {
        background: #232323 !important;
        padding-bottom: 0 !important;
    }

    main {
        background: #ffffff !important;
    }

    .footer-area {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .homepage-tiktok-feed {
        padding: 34px 0 48px;
    }

    .homepage-tiktok-feed .banner-category-showcase__head {
        align-items: center;
    }

    .homepage-tiktok-feed__embed {
        min-height: 480px;
        display: block;
        overflow: visible;
    }

    .homepage-tiktok-feed__embed .tiktok-embed {
        min-height: 480px;
        transform: none;
    }

    .product-card .product-thumb {
        aspect-ratio: 2 / 3;
    }

    .product-card .product-content {
        padding-top: 0.65rem;
    }

    .product-card .product-content .title {
        font-size: 0.98rem;
    }

    .product-card__meta {
        font-size: 0.7rem;
    }

    .product-card .product-content .price,
    .product-card .product-content .price span,
    .product-card .product-content .price ins {
        font-size: 0.96rem;
    }

    .product-card__badge {
        min-height: 20px;
        padding: 4px 7px;
        font-size: 0.62rem;
    }

    .product-card__badge--discount {
        left: 10px;
        bottom: 10px;
    }

    .product-card__badge--sold-out {
        top: 10px;
        right: 10px;
    }
}

/* Floating action button spacing */
.scrollToTop {
    right: 18px;
    bottom: 188px;
    z-index: 1000;
}

@media (min-width: 992px) {
    .scrollToTop {
        right: 20px;
        bottom: 188px;
    }
}

.grecaptcha-badge {
    bottom: 96px !important;
    z-index: 9998 !important;
}

#whatsapp-chat-button {
    z-index: 100001 !important;
}

@media (max-width: 575px) {
    .grecaptcha-badge {
        bottom: 84px !important;
    }
}

body.scroll-hide-sm #whatsapp-chat-button,
body.storefront-search-open #whatsapp-chat-button,
body.product-guide-open #whatsapp-chat-button,
body.scroll-hide-sm .grecaptcha-badge,
body.storefront-search-open .grecaptcha-badge,
body.product-guide-open .grecaptcha-badge,
body.scroll-hide-sm #tawkchat-container,
body.storefront-search-open #tawkchat-container,
body.product-guide-open #tawkchat-container,
body.scroll-hide-sm #tawkchat-minified-container,
body.storefront-search-open #tawkchat-minified-container,
body.product-guide-open #tawkchat-minified-container,
body.scroll-hide-sm .tawk-min-container,
body.storefront-search-open .tawk-min-container,
body.product-guide-open .tawk-min-container,
body.scroll-hide-sm iframe[title*="reCAPTCHA"],
body.storefront-search-open iframe[title*="reCAPTCHA"],
body.product-guide-open iframe[title*="reCAPTCHA"],
body.scroll-hide-sm iframe[title*="recaptcha"],
body.storefront-search-open iframe[title*="recaptcha"],
body.product-guide-open iframe[title*="recaptcha"],
body.scroll-hide-sm iframe[title*="chat widget"],
body.storefront-search-open iframe[title*="chat widget"],
body.product-guide-open iframe[title*="chat widget"],
body.scroll-hide-sm iframe[title*="Chat widget"],
body.storefront-search-open iframe[title*="Chat widget"],
body.product-guide-open iframe[title*="Chat widget"],
body.scroll-hide-sm iframe[title*="Tawk"],
body.storefront-search-open iframe[title*="Tawk"],
body.product-guide-open iframe[title*="Tawk"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
