.tmp_shortcode_section { 
 
}

.tmp_shortcode_section > h2 { 
 width:100%;
 text-align:center;
 font-size: clamp(1.5rem, 3vw, 2rem);
 text-transform: uppercase;
 font-weight: 600;
 
}
.tmp_category_ul_products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%; 
  margin: 20px 0 20px 0 !important; 
  padding: 20px 0;
  list-style: none;
}

.tmp_category_ul_products > li {
    background: #fff;
    border: 1px solid #F2F2F2;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmp_category_ul_products > li:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* ── Картка товару ─────────────────────────────────────── */

.tmp_category_ul_products .tmp-product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    float: none;
}

.tmp-product-item > label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #DC1212;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    z-index: 5;
    border-radius: 3px;
}

/* ── Зображення ────────────────────────────────────────── */

.tmp-img-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.tmp-img-wrapper a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.tmp-img-responsive {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tmp-img-wrapper:hover .tmp-img-responsive {
    transform: scale(1.05);
}

/* ── Назва товару ──────────────────────────────────────── */

.tmp-product-title {
    display: block;
    height: 44px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #333;
    line-height: 1.2;
    overflow: hidden;
    position: relative;
}

.tmp-product-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

/* ── Футер картки ──────────────────────────────────────── */

.tmp-footer-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 50px;
}

.tmp-price-box {
    display: flex;
    flex-direction: column;
}

.tmp-price-box .tmp-product-price {
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

.tmp-product-price.red_price {
    color: red;
}

.tmp-price-box strike {
    color: #848484;
    font-size: 13px;
    margin-bottom: 2px;
}

/* ── Кнопка «Купити» ───────────────────────────────────── */

.tmp-product-buy {
    height: 35px;
    line-height: 33px;
    padding: 0 15px;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.tmp-product-buy:hover {
    background: #000;
    color: #fff;
}

/* ── Адаптив ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .tmp_category_ul_products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tmp-product-title {
        height: 50px;
    }

    .tmp-footer-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .tmp-price-box {
        width: 100%;
    }

    .tmp-price-box .tmp-product-price {
        font-size: 15px;
    }

    .tmp-product-buy {
        width: 100%;
        padding: 0 8px;
        font-size: 11px;
        text-align: center;
    }
}
