/* =========================================================
   Next Digi Store - Home AJAX Product Cards
   This file is intentionally separate from home.css so the
   card UI cannot be lost because of an older cached home.css.
   ========================================================= */

#ui-product-container.nds-ajax-products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#ui-product-container .nds-load-card {
    position: relative !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e6ebf2 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .06) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

#ui-product-container .nds-load-card:hover {
    transform: translateY(-6px) !important;
    border-color: #cfe0ff !important;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .12) !important;
}

#ui-product-container .nds-load-card-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    color: #0f172a !important;
    text-decoration: none !important;
    background: transparent !important;
}

#ui-product-container .nds-load-media {
    position: relative !important;
    height: 250px !important;
    margin: 10px 10px 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 13px !important;
    background: #f4f7fb !important;
}

#ui-product-container .nds-load-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform .35s ease !important;
}

#ui-product-container .nds-load-card:hover .nds-load-image {
    transform: scale(1.025) !important;
}

#ui-product-container .nds-load-type {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 4 !important;
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, .95) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #2563eb !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .09) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

#ui-product-container .nds-load-hover {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 16px !important;
    margin: 0 !important;
    background: linear-gradient(to top, rgba(15, 23, 42, .48), transparent 45%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .25s ease !important;
}

#ui-product-container .nds-load-hover span {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .97) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .2) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    transform: translateY(8px) !important;
    transition: transform .25s ease !important;
}

#ui-product-container .nds-load-card:hover .nds-load-hover {
    opacity: 1 !important;
}

#ui-product-container .nds-load-card:hover .nds-load-hover span {
    transform: translateY(0) !important;
}

#ui-product-container .nds-load-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #2563eb !important;
}

#ui-product-container .nds-load-placeholder span {
    width: 54px !important;
    height: 54px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

#ui-product-container .nds-load-placeholder small {
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

#ui-product-container .nds-load-body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 18px !important;
    margin: 0 !important;
    background: #fff !important;
}

#ui-product-container .nds-load-topline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 11px !important;
    padding: 0 !important;
}

#ui-product-container .nds-load-category {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: .025em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#ui-product-container .nds-load-price {
    flex: 0 0 auto !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 11px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #0f172a !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .13) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

#ui-product-container .nds-load-title {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
    letter-spacing: -.02em !important;
    font-weight: 800 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

#ui-product-container .nds-load-description {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

#ui-product-container .nds-load-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: auto 0 0 !important;
    padding: 17px 0 0 !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

#ui-product-container .nds-load-arrow {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1 !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease !important;
}

#ui-product-container .nds-load-card:hover .nds-load-arrow {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #fff !important;
}

@media (max-width: 980px) {
    #ui-product-container.nds-ajax-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #ui-product-container .nds-load-media {
        height: 235px !important;
    }
}

@media (max-width: 620px) {
    #ui-product-container.nds-ajax-products {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    #ui-product-container .nds-load-media {
        height: 230px !important;
        margin: 8px 8px 0 !important;
    }

    #ui-product-container .nds-load-body {
        padding: 16px !important;
    }

    #ui-product-container .nds-load-title {
        font-size: 16px !important;
    }

    #ui-product-container .nds-load-hover {
        display: none !important;
    }
}