/* eSIM v2 - lưới sản phẩm (Trang chủ, trang tất cả sản phẩm, danh mục, sản phẩm liên quan). Chỉ áp dụng khi <body> có class "esim-v2-grid". */
.esim-v2-grid{--ink:#0f2a2e;--line:#d9e3e0;--tint:#e4f1ee;--mute:#4b6368}

/* Thẻ sản phẩm */
.esim-v2-grid .product-small.box{padding:12px;background:#fff;border:1px solid var(--line);border-radius:24px;transition:box-shadow .2s}
.esim-v2-grid .product-small.box:hover{box-shadow:0 8px 24px rgba(15,42,46,.12)}

/* Ảnh đại diện: khung vuông 1:1, hiện đủ ảnh, bo tròn */
.esim-v2-grid .product-small .box-image{position:relative;aspect-ratio:1/1!important;height:auto!important;border-radius:16px;overflow:hidden}
.esim-v2-grid .product-small .box-image>div:not(.out-of-stock-label):not(.image-tools):not(.badge-container):not(.callout),
.esim-v2-grid .product-small .box-image a,
.esim-v2-grid .product-small .box-image .image-cover{position:static!important;padding-top:0!important;height:auto!important}
.esim-v2-grid .product-small .box-image img{position:absolute!important;top:0;left:0;width:100%!important;height:100%!important;max-width:none;object-fit:cover}

/* Nhãn hết hàng: viên thuốc ở góc, không che ảnh */
.esim-v2-grid .product-small .out-of-stock-label{top:12px!important;left:12px!important;right:auto!important;width:auto!important;margin:0!important;padding:6px 12px!important;transform:none!important;border-radius:999px;background:var(--ink)!important;color:#fff!important;font-size:12px;font-weight:700;letter-spacing:.04em}

/* Thông tin dưới ảnh */
.esim-v2-grid .product-small .box-text{padding:14px 4px 4px;text-align:left}
.esim-v2-grid .product-small .title-wrapper,.esim-v2-grid .product-small .price-wrapper,.esim-v2-grid .product-small .star-rating-wrapper{text-align:left}
.esim-v2-grid .product-small .box-text .name.product-title{margin:0}
.esim-v2-grid .product-small .box-text .name a{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.9em;font-size:clamp(14px,1.3vw,17px);font-weight:700;line-height:1.3;text-transform:none;letter-spacing:0;color:var(--ink)}
.esim-v2-grid .product-small .star-rating{margin:6px 0 0;font-size:13px}
.esim-v2-grid .product-small .price-wrapper{margin-top:8px}
.esim-v2-grid .product-small .price-wrapper .price,.esim-v2-grid .product-small .price-wrapper .amount{font-size:clamp(17px,1.6vw,21px);font-weight:800;color:var(--ink)}

/* Nút Select options */
.esim-v2-grid .product-small .add-to-cart-button{margin:0}
.esim-v2-grid .product-small .add-to-cart-button .button{display:flex!important;align-items:center;justify-content:center;width:100%;height:44px;min-height:0;margin:12px 0 0!important;padding:0;border:0!important;border-radius:999px!important;background:var(--ink)!important;color:#fff!important;font-size:14px;font-weight:700;letter-spacing:0;text-transform:none;box-shadow:none}
.esim-v2-grid .product-small .add-to-cart-button .button:hover{background:#16444a!important}

@media (max-width:549px){
.esim-v2-grid .product-small.box{padding:8px;border-radius:18px}
.esim-v2-grid .product-small .box-image{border-radius:12px}
.esim-v2-grid .product-small .box-text{padding:10px 2px 2px}
.esim-v2-grid .product-small .box-text .name a{font-size:14px}
.esim-v2-grid .product-small .price-wrapper .price,.esim-v2-grid .product-small .price-wrapper .amount{font-size:16px}
.esim-v2-grid .product-small .add-to-cart-button .button{height:40px;font-size:13px}
}
