/* BEGIN HACADO PRODUCT UI — file do Hacado quản lý, đừng sửa tay. Mẫu: jersey_green */
/* Lưới: ép số cột + khoảng cách theo thiết bị (đè lưới Flatsome), áp cả preview lẫn web thật. */
body.hpui-jersey_green .products, body.hpui-jersey_green .row:not(.slider):has(> .product-small.col) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px !important; margin: 0 !important; }
body.hpui-jersey_green .products > .col, body.hpui-jersey_green .products > .product-small.col, body.hpui-jersey_green .row:not(.slider):has(> .product-small.col) > .product-small.col { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body.hpui-jersey_green .products .col-inner, body.hpui-jersey_green .row:not(.slider):has(> .product-small.col) .col-inner { padding: 0 !important; }
/* Thẻ: nền trắng, bo góc lớn, viền nhạt + bóng mềm */
body.hpui-jersey_green .product-small .box, body.hpui-jersey_green .product-small.box { height: 100%; overflow: hidden; border: 1px solid #eef0f2; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(17,24,39,.06); transition: transform .2s, box-shadow .2s; }
body.hpui-jersey_green .product-small .box:hover, body.hpui-jersey_green .product-small.box:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(17,24,39,.12); }
/* Ảnh 1:1 có inset trắng + bo góc; badge -20% đỏ bo tròn góc trên-trái */
body.hpui-jersey_green .product-small .box-image { position: relative; margin: 10px 10px 0; overflow: hidden; border-radius: 14px; background: #f3f4f6; }
body.hpui-jersey_green .product-small .box-image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
body.hpui-jersey_green .product-small .hpui-badge { position: absolute; top: 10px; left: 10px; z-index: 3; background: var(--hcd-color-sale, #dc2626); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; padding: 6px 12px; border-radius: 10px; }
/* Nội dung */
body.hpui-jersey_green .product-small .box-text { container-type: inline-size; display: flex; min-height: 200px; flex-direction: column; padding: 12px 14px 14px; text-align: left; background: #fff; }
body.hpui-jersey_green .product-small .category, body.hpui-jersey_green .product-small .star-rating, body.hpui-jersey_green .product-small .box-text > .price { display: none; }
/* Ẩn badge sale mặc định của theme (mẫu dùng badge -% riêng) */
body.hpui-jersey_green .product-small .badge-container { display: none !important; }
/* Flatsome bọc loop trong .title-wrapper/.price-wrapper (price-wrapper bị căn giữa ~29px) -> reset sát lề trái, full width */
body.hpui-jersey_green .product-small .title-wrapper, body.hpui-jersey_green .product-small .price-wrapper { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; text-align: left !important; }
/* 2 nhãn FREE (trang trí, viền xanh lá, bo tròn), chia đôi */
body.hpui-jersey_green .product-small .hpui-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
body.hpui-jersey_green .product-small .hpui-perk { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--hcd-color-primary, #16a34a); border-radius: 999px; color: var(--hcd-color-primary, #16a34a); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
body.hpui-jersey_green .product-small .hpui-perk-ic { flex: 0 0 auto; width: 15px; height: 15px; }
/* Tên 2 dòng, đậm */
body.hpui-jersey_green .product-small .product-title, body.hpui-jersey_green .product-small .name { height: 40px; min-height: 40px; max-height: 40px; margin: 0 0 8px; color: var(--hcd-color-text, #111827); font-size: var(--hcd-fs-md, 15px); font-weight: 800; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
body.hpui-jersey_green .product-small .product-title a, body.hpui-jersey_green .product-small .name a { display: -webkit-box; overflow: hidden; color: inherit; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Giá: giá gốc gạch (xám) trái + giá sale (xanh lá, to, đậm) phải */
body.hpui-jersey_green .product-small .hpui-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-weight: 800; }
body.hpui-jersey_green .product-small .hpui-price del, body.hpui-jersey_green .product-small .hpui-price del .woocommerce-Price-amount { order: 1; color: #9ca3af; font-size: var(--hcd-fs-sm, 14px); font-weight: 500; text-decoration: line-through; }
body.hpui-jersey_green .product-small .hpui-price ins, body.hpui-jersey_green .product-small .hpui-price ins .woocommerce-Price-amount { order: 2; color: var(--hcd-color-primary, #16a34a); font-size: var(--hcd-fs-xl, 22px); font-weight: 800; text-decoration: none; }
body.hpui-jersey_green .product-small .hpui-price > .woocommerce-Price-amount { color: var(--hcd-color-primary, #16a34a); font-size: var(--hcd-fs-xl, 22px); font-weight: 800; }
/* Footer: Đã bán (trái) | MUA NGAY (nút xanh đặc bo tròn, phải) */
body.hpui-jersey_green .product-small .hpui-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: var(--hcd-color-muted, #6b7280); font-size: 13px; font-weight: 600; }
body.hpui-jersey_green .product-small .hpui-sold { display: inline-flex; min-width: 0; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.hpui-jersey_green .product-small .hpui-buy { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 8px 20px; border: 0; border-radius: 12px; background: var(--hcd-color-primary, #16a34a); color: #fff; font-size: var(--hcd-fs-md, 15px); font-weight: 800; line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
body.hpui-jersey_green .product-small .hpui-buy:hover { background: var(--hcd-color-primary-hover, #15803d); color: #fff; box-shadow: 0 6px 16px rgba(22,163,74,.35); }
/* Thẻ hẹp (carousel/related): perks 1 cột + footer xếp dọc để nút không bị cắt */
@container (max-width: 220px) {
  body.hpui-jersey_green .product-small .hpui-perks { grid-template-columns: 1fr; }
  body.hpui-jersey_green .product-small .hpui-card-footer { flex-direction: column; align-items: stretch; gap: 8px; }
  body.hpui-jersey_green .product-small .hpui-buy { width: 100%; }
}
/* Số cột theo thiết bị: tablet 3, mobile 2; khoảng cách 10px / 10px / 7px */
@media (max-width: 849px) {
  body.hpui-jersey_green .products, body.hpui-jersey_green .row:not(.slider):has(> .product-small.col) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
}
@media (max-width: 549px) {
  body.hpui-jersey_green .products, body.hpui-jersey_green .row:not(.slider):has(> .product-small.col) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px !important; }
  body.hpui-jersey_green .product-small .box-text { min-height: 190px; padding: 10px 12px 12px; }
  body.hpui-jersey_green .product-small .product-title, body.hpui-jersey_green .product-small .name { height: 38px; min-height: 38px; max-height: 38px; font-size: 14px; line-height: 19px; }
  body.hpui-jersey_green .product-small .hpui-price ins, body.hpui-jersey_green .product-small .hpui-price ins .woocommerce-Price-amount, body.hpui-jersey_green .product-small .hpui-price > .woocommerce-Price-amount { font-size: 19px; }
  body.hpui-jersey_green .product-small .hpui-perk { font-size: 11px; padding: 6px; }
  body.hpui-jersey_green .product-small .hpui-buy { padding: 8px 14px; font-size: 14px; }
}
/* END HACADO PRODUCT UI */

