/* content-product.css */
.jn-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*border: 1px solid #eaeaea;*/
    border-radius: 5px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 100%;
}

.jn-product-image {
    display: block;
    margin-bottom: 15px;
    text-align: center;
    flex: 0 0 auto;
}

.jn-product-image img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
}

.jn-product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.jn-product-name {
    display: block;
    font-size: 15px;
    color: #333 !important;
    text-decoration: none !important;
    margin-bottom: 10px;
    min-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jn-product-name:hover {
    color: #0066cc;
}

.jn-price-cart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.jn-price-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jn-new-price {
    font-size: 16px;
    font-weight: bold;
    color: black;
}

.jn-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.jn-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Прозрачный фон */
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jn-cart-button:hover .jn-cart-icon-path {
    stroke: black; 
}

.jn-cart-button:hover {
    background: #f5f5f5; /* Лёгкий серый фон при наведении (опционально) */
    transform: scale(1.1);
}

.jn-cart-button svg {
    width: 18px;
    height: 18px;
}

.jn-cart-button.loading::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.jn-cart-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jn-cart-notice.show {
    opacity: 1;
}




@media (max-width: 767px) {
    .jn-product-name {
        font-size: 14px;
        min-height: 42px;
    }

    .jn-product-image img {
        height: 150px;
    }

    .jn-product-card {
        height: 275px;
    }

    .jn-cart-notice {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }

      .jn-cart-button svg {
        width: 16px;
        height: 16px;
    }

    .jn-old-price {
        display: none;
    }
  
    .jn-new-price, .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px;
    }

      .jn-cart-button svg {
        width: 13px;
        height: 13px;
    }

    .br_alabel span {
        font-size: 10px !important;
    }

    .products .br_alabel_template_type_css [class*="-label"] {
        height: 15px !important;
        width: 65px !important;
        margin-top: 3px !important;
    }

}

.added_to_cart {
    display: none !important;
}

.add_to_cart_button {
    margin: 0 !important;
}

.woocommerce-page ul.products li.product:hover {
    border: 1px solid #eaeaea;
}