/* HNNP product card type 1 — child-theme owned. */

.electron-loop-product.type-1 {
    height: 100%;
    align-self: stretch;
}

.electron-products.products {
    align-items: stretch;
}

.electron-wc-swipper-wrapper .swiper-wrapper,
.electron-swiper-wrapper {
    align-items: stretch;
}

.electron-wc-swipper-wrapper .swiper-slide,
.swiper-slide.product_item {
    height: auto;
}

.electron-loop-product.type-1 .hnnp-product-card.product-inner {
    display: flex !important;
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex-direction: column;
    grid-template-rows: none !important;
    overflow: visible;
    border-radius: inherit;
    background: #fff;
}

.electron-loop-product.type-1 .hnnp-product-card__media.thumb-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 1 / 1;
}

.electron-loop-product.type-1 .hnnp-product-card__media .product-thumb {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.electron-loop-product.type-1 .hnnp-product-card__media .product-thumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto;
    object-fit: contain !important;
    transform: scale(0.9);
    transition: transform 180ms ease;
}

.electron-loop-product.type-1:hover .hnnp-product-card__media .product-thumb img {
    transform: scale(0.94);
}

.electron-loop-product.type-1 .hnnp-product-card__details.details-wrapper,
.swiper-slide.product_item .electron-loop-product.type-1 .hnnp-product-card__details.details-wrapper,
.electron-wc-swipper-wrapper .swiper-slide .electron-loop-product.type-1 .hnnp-product-card__details.details-wrapper {
    display: flex !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 0 auto;
    flex-direction: column;
    padding: 8px 10px 4px !important;
    overflow: visible !important;
    border-top: 0;
}

.electron-loop-product.type-1 .hnnp-product-card__details-inner.details-inner,
.swiper-slide.product_item .electron-loop-product.type-1 .hnnp-product-card__details-inner.details-inner,
.electron-wc-swipper-wrapper .swiper-slide .electron-loop-product.type-1 .hnnp-product-card__details-inner.details-inner {
    display: flex !important;
    width: 100%;
    height: auto !important;
    min-height: 0;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 0 !important;
    overflow: visible !important;
    grid-template-rows: none !important;
    row-gap: 0 !important;
}

.electron-loop-product.type-1 .hnnp-product-card__name.product-name,
.swiper-slide.product_item .electron-loop-product.type-1 .hnnp-product-card__name.product-name,
.electron-wc-swipper-wrapper .swiper-slide .electron-loop-product.type-1 .hnnp-product-card__name.product-name {
    display: block;
    width: 100%;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.electron-loop-product.type-1 .hnnp-product-card__name > a,
.swiper-slide.product_item .electron-loop-product.type-1 .hnnp-product-card__name > a,
.electron-wc-swipper-wrapper .swiper-slide .electron-loop-product.type-1 .hnnp-product-card__name > a {
    display: -webkit-box !important;
    height: 38px !important;
    max-height: 38px !important;
    overflow: hidden !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 19px !important;
    text-decoration: none !important;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.electron-loop-product.type-1 .hnnp-product-card__price {
    display: flex !important;
    width: 100%;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 7px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
}

.electron-loop-product.type-1 .hnnp-product-card__sale-price,
.electron-loop-product.type-1 .hnnp-product-card__current-price,
.electron-loop-product.type-1 .hnnp-product-card__contact-price,
.electron-loop-product.type-1 .hnnp-product-card__sale-price .woocommerce-Price-amount,
.electron-loop-product.type-1 .hnnp-product-card__current-price .woocommerce-Price-amount {
    color: #2b5acd !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
}

.electron-loop-product.type-1 .hnnp-product-card__regular-price,
.electron-loop-product.type-1 .hnnp-product-card__regular-price .woocommerce-Price-amount {
    min-width: 0;
    overflow: hidden;
    color: #9ca3af !important;
    font-size: 10.5px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    text-decoration: line-through !important;
    text-overflow: ellipsis;
}

.electron-loop-product.type-1 .hnnp-product-card__current-price del {
    margin-left: 5px;
    color: #9ca3af !important;
    font-size: 10.5px;
}

.electron-loop-product.type-1 .hnnp-product-card__current-price ins {
    text-decoration: none;
}

.electron-loop-product.type-1 .hnnp-product-card__gifts {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-rows: none;
    gap: 4px;
    margin: 0;
    overflow: hidden;
}

.electron-loop-product.type-1 .hnnp-product-card__gift {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 22px;
    max-height: 34px;
    align-items: center;
    margin: 0;
    padding: 3px 6px;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: #f2f2f3;
    color: #202632 !important;
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    text-decoration: none !important;
}

.electron-loop-product.type-1 .hnnp-product-card__gift > span {
    display: -webkit-box;
    width: 100%;
    max-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.electron-loop-product.type-1 .hnnp-product-card__gifts:empty {
    display: none;
}

.electron-loop-product.type-1 a.hnnp-product-card__gift:hover,
.electron-loop-product.type-1 a.hnnp-product-card__gift:focus-visible {
    background: #e9eefc;
    color: #1e64d4 !important;
    outline: none;
}

.electron-loop-product.type-1 .hnnp-product-card__footer {
    display: flex;
    width: 100%;
    height: 38px;
    min-height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 4px 10px 8px;
}

.electron-loop-product.type-1 .hnnp-product-card__rating {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 3px;
    color: #252b36;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.electron-loop-product.type-1 .hnnp-product-card__rating svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: #ffc400;
}

.electron-loop-product.type-1 .hnnp-product-card__wishlist {
    display: flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.electron-loop-product.type-1 .hnnp-product-card__wishlist .electron-product-button,
.electron-loop-product.type-1 .hnnp-product-card__wishlist .electron-wishlist-btn {
    display: flex;
    position: relative;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1e64d4 !important;
    cursor: pointer;
}

.electron-loop-product.type-1 .hnnp-product-card__wishlist .electron-svg-icon,
.electron-loop-product.type-1 .hnnp-product-card__wishlist svg {
    display: block;
    width: 21px !important;
    height: 21px !important;
    fill: #1e64d4 !important;
    color: #1e64d4 !important;
}

.electron-loop-product.type-1 .hnnp-product-card__wishlist .electron-product-button:hover svg,
.electron-loop-product.type-1 .hnnp-product-card__wishlist .electron-product-button:focus-visible svg,
.electron-loop-product.type-1 .hnnp-product-card__wishlist .electron-product-button.added svg {
    fill: #1e64d4 !important;
}

.electron-loop-product.type-1 .hnnp-product-card__wishlist .electron-hint {
    display: none !important;
}

@media (max-width: 767px) {
    .electron-loop-product.type-1 .hnnp-product-card__media.thumb-wrapper {
        border-radius: 10px 10px 0 0;
        padding: 6px;
    }

    .electron-loop-product.type-1 .hnnp-product-card__details.details-wrapper,
    .swiper-slide.product_item .electron-loop-product.type-1 .hnnp-product-card__details.details-wrapper,
    .electron-wc-swipper-wrapper .swiper-slide .electron-loop-product.type-1 .hnnp-product-card__details.details-wrapper {
        padding: 7px 8px 3px !important;
    }

    .electron-loop-product.type-1 .hnnp-product-card__price {
        gap: 4px;
    }

    .electron-loop-product.type-1 .hnnp-product-card__sale-price,
    .electron-loop-product.type-1 .hnnp-product-card__current-price,
    .electron-loop-product.type-1 .hnnp-product-card__contact-price,
    .electron-loop-product.type-1 .hnnp-product-card__sale-price .woocommerce-Price-amount,
    .electron-loop-product.type-1 .hnnp-product-card__current-price .woocommerce-Price-amount {
        font-size: 13px !important;
    }

    .electron-loop-product.type-1 .hnnp-product-card__regular-price,
    .electron-loop-product.type-1 .hnnp-product-card__regular-price .woocommerce-Price-amount {
        font-size: 9.5px !important;
    }

    .electron-loop-product.type-1 .hnnp-product-card__gift {
        padding-inline: 5px;
        font-size: 9.5px;
        line-height: 13px;
    }

    .electron-loop-product.type-1 .hnnp-product-card__footer {
        padding: 4px 8px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .electron-loop-product.type-1 .hnnp-product-card__media .product-thumb img {
        transition: none;
    }
}
