/* ============================================================
   FEATURED PRODUCTS - Section 3 - U Tẻn
   ============================================================ */

.uten-products-section {
    background: #eef5ee;
    padding: 80px 24px 70px;
    position: relative;
}

/* ── HEADER ── */
.uten-products-header {
    text-align: center;
    margin-bottom: 50px;
}

.uten-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--uten-primary, #287b38);
    background: #eaf5ea;
    border: 1px solid #d4e8d4;
    padding: 6px 16px 6px 13px;
    border-radius: 50px;
    margin-bottom: 14px;
    line-height: 1;
}

/* Icon lá trà SVG trước chữ (thay cho emoji) */
.uten-section-badge::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background-color: var(--uten-secondary, #f28200);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") no-repeat center / contain;
}

.uten-section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.uten-section-subtitle {
    font-size: 16px;
    color: #777;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── GRID ── */
.uten-products-grid {
    display: grid;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.uten-products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.uten-products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.uten-products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ── THẺ SẢN PHẨM ── */
.uten-product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid #d4e8d4;
    box-shadow: 0 4px 16px rgba(40, 123, 56, 0.10);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    position: relative;
    opacity: 0;
}
.uten-product-card.is-visible {
    animation: fadeInUpSmooth 2s ease-out forwards;
}

.uten-product-card:nth-child(1) { animation-delay: 0.1s; }
.uten-product-card:nth-child(2) { animation-delay: 0.3s; }
.uten-product-card:nth-child(3) { animation-delay: 0.5s; }
.uten-product-card:nth-child(4) { animation-delay: 0.7s; }
.uten-product-card:nth-child(5) { animation-delay: 0.9s; }
.uten-product-card:nth-child(6) { animation-delay: 1.1s; }
.uten-product-card:nth-child(7) { animation-delay: 1.3s; }
.uten-product-card:nth-child(8) { animation-delay: 1.5s; }

.uten-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(40,123,56,.18);
    border-color: var(--uten-primary, #287b38);
}

/* ── ẢNH SẢN PHẨM ── */
.uten-product-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 100% !important; /* Khung vuông 1:1 hoàn hảo */
    background: #f0faf3;
    overflow: hidden;
}

.uten-product-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform .45s ease;
}

.uten-product-card:hover .uten-product-img {
    transform: scale(1.07);
}

.uten-product-img-placeholder {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: #f0faf3;
}

/* Nút Add tròn góc phải của ảnh */
.uten-add-btn {
    position: absolute;
    bottom: -16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--uten-secondary, #f28200);
    color: #fff !important;
    font-size: 22px;
    font-weight: 300;
    line-height: 34px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(242,130,0,.4);
    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 4;
    display: block;
}

.uten-add-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 18px rgba(242,130,0,.55);
}

/* Đảm bảo img-wrap có position: relative để nút Add hiển đúng */
.uten-product-img-wrap {
    overflow: visible !important; /* cho phép Add button lồi ra ngoài nếu có */
}

.uten-product-img-wrap > img,
.uten-product-img-wrap > .uten-product-img-placeholder,
.uten-product-overlay {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}
.uten-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--uten-secondary, #f28200);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
    text-transform: uppercase;
}


/* ── THÔNG TIN ── */
.uten-product-body {
    padding: 18px 18px 16px;
}

.uten-product-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.uten-product-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color .2s ease;
}

.uten-product-name a:hover {
    color: var(--uten-primary, #287b38);
}

.uten-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.uten-product-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--uten-secondary, #f28200);
}

/* Mô tả ngắn */
.uten-product-short-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #888;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── NÚT LIÊN HỆ ── */
.uten-product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.uten-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.uten-act-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Nút gọi điện (icon only) */
.uten-act-phone {
    background: #fff3e0;
    color: #e65100 !important;
    border: 1.5px solid #ffcc80;
    padding: 7px 10px;
    flex-shrink: 0;
}

/* Nút Zalo */
.uten-act-zalo {
    background: #e3f2fd;
    color: #0068ff !important;
    border: 1.5px solid #90caf9;
    flex: 1;
    justify-content: center;
}

/* Nút Messenger */
.uten-act-fb {
    background: #e8eaf6;
    color: #3d5afe !important;
    border: 1.5px solid #9fa8da;
    flex: 1;
    justify-content: center;
}

/* ── NÚT XEM THÊM ── */
.uten-products-footer {
    text-align: center;
    margin-top: 48px;
}

.uten-view-all-btn {
    display: inline-block;
    padding: 14px 38px;
    border: 2px solid var(--uten-primary, #287b38);
    border-radius: 50px;
    color: var(--uten-primary, #287b38) !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .3s ease, color .3s ease, transform .25s ease;
}

.uten-view-all-btn:hover {
    background: var(--uten-primary, #287b38);
    color: #fff !important;
    transform: translateY(-3px);
}

/* ── ANIMATION ── */
.uten-reveal {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.uten-reveal.in-view, .uten-reveal.is-visible { opacity: 1; transform: translateY(0); }

.uten-reveal-card {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s ease var(--delay, 0s),
                transform 1.2s cubic-bezier(.22,1,.36,1) var(--delay, 0s);
}
.uten-reveal-card.in-view, .uten-reveal-card.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeInUpSmooth {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .uten-products-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .uten-products-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .uten-products-section { padding: 56px 16px 48px; }
    .uten-products-grid.cols-4,
    .uten-products-grid.cols-3,
    .uten-products-grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 14px; }
    .uten-product-body { padding: 14px; }
}

/* ── YITH WISHLIST BUTTON OVERRIDE ── */
.uten-product-price-row .yith-wcwl-add-to-wishlist,
.uten-product-price-row .yith-add-to-wishlist-button-block {
    margin: 0 !important;
    display: flex !important;
    align-items: center;
}

/* Ẩn toàn bộ nội dung mặc định (chữ, icon, svg) bên trong nút */
.uten-product-price-row .yith-wcwl-add-to-wishlist a span,
.uten-product-price-row .yith-wcwl-add-to-wishlist a i,
.uten-product-price-row .yith-wcwl-add-to-wishlist a img,
.uten-product-price-row .yith-wcwl-add-to-wishlist a svg,
.uten-product-price-row .yith-add-to-wishlist-button-block button span,
.uten-product-price-row .yith-add-to-wishlist-button-block button svg,
.uten-product-price-row .yith-add-to-wishlist-button-block a span,
.uten-product-price-row .yith-add-to-wishlist-button-block a svg {
    display: none !important;
}

/* Thiết lập nút trong suốt */
.uten-product-price-row .yith-wcwl-add-to-wishlist a,
.uten-product-price-row .yith-add-to-wishlist-button-block button,
.uten-product-price-row .yith-add-to-wishlist-button-block a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: none !important;
    color: #a0a0a0 !important;
    text-decoration: none !important;
    transition: color .2s ease, transform .2s ease !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Icon trái tim custom (mặc định) */
.uten-product-price-row .yith-wcwl-add-to-wishlist a::before,
.uten-product-price-row .yith-add-to-wishlist-button-block button::before,
.uten-product-price-row .yith-add-to-wishlist-button-block a::before {
    content: '♡' !important;
    font-size: 24px !important;
    line-height: 1 !important;
    display: block !important;
    font-weight: 300 !important;
}

/* Đã thêm vào wishlist → tim đỏ */
.uten-product-price-row .yith-wcwl-wishlistaddedbrowse a::before,
.uten-product-price-row .yith-wcwl-wishlistexistsbrowse a::before,
.uten-product-price-row .yith-add-to-wishlist-button-block [data-fragment-ref="added"] button::before,
.uten-product-price-row .yith-add-to-wishlist-button-block [data-fragment-ref="added"] a::before,
.uten-product-price-row .yith-add-to-wishlist-button-block.yith-wcwl-added button::before,
.uten-product-price-row .yith-add-to-wishlist-button-block.yith-wcwl-added a::before {
    content: '♥' !important;
    color: #e53935 !important;
}

/* Hover */
.uten-product-price-row .yith-wcwl-add-to-wishlist a:hover,
.uten-product-price-row .yith-add-to-wishlist-button-block button:hover,
.uten-product-price-row .yith-add-to-wishlist-button-block a:hover {
    color: #e53935 !important;
    transform: scale(1.15) !important;
}


