/* Tải Miễn Phí – TonySQuang */
.tsfd-box { --tsfd-green: #1fbf6a; margin: 18px 0; padding: 18px 20px; border-radius: 14px; background: #15181d; color: #e8eaed; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); border-top: 4px solid var(--tsfd-green); box-sizing: border-box; }
.tsfd-box *, .tsfd-more * { box-sizing: border-box; }
.tsfd-box__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.tsfd-free { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--tsfd-green, #1fbf6a); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; }
.tsfd-meta { font-size: 14px; color: #b9bec6; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tsfd-meta b { color: #fff; }
.tsfd-files { display: flex; flex-direction: column; gap: 10px; }
.tsfd-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 22px; border-radius: 12px; background: linear-gradient(135deg, #22c55e, #15924d); color: #fff !important; font-size: 17px; font-weight: 800; letter-spacing: .04em; text-decoration: none !important; box-shadow: 0 6px 18px rgba(34, 197, 94, .35); transition: transform .15s, filter .15s, box-shadow .15s; line-height: 1.25; }
.tsfd-btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 10px 24px rgba(34, 197, 94, .45); }
.tsfd-btn span { display: flex; flex-direction: column; align-items: flex-start; }
.tsfd-btn small { font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: .85; }
.tsfd-note { margin: 8px 0 0; font-size: 13px; color: #b9bec6; }

.tsfd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
@media (max-width: 520px) { .tsfd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tsfd-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 6px; border-radius: 10px; background: rgba(255, 255, 255, .05); text-align: center; }
.tsfd-stat b { font-size: 21px; font-weight: 800; color: #fff; line-height: 1.1; }
.tsfd-stat b i { font-style: normal; font-size: 13px; color: #9aa0a8; font-weight: 600; }
.tsfd-stat > span { font-size: 12px; color: #9aa0a8; }

.tsfd-stars { position: relative; display: inline-block; white-space: nowrap; font-size: 14px; line-height: 1; letter-spacing: 1px; vertical-align: -1px; font-family: Arial, "Segoe UI Symbol", sans-serif; }
.tsfd-stars::before { content: "★★★★★"; color: rgba(255, 255, 255, .2); }
.tsfd-stars > span { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; white-space: nowrap; }
.tsfd-stars > span::before { content: "★★★★★"; color: #ffc107; }

.tsfd-breakdown { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.tsfd-bar { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 8px; font-size: 12.5px; color: #c9ccd1; }
.tsfd-bar__track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tsfd-bar__track span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #ffc107, #ff9800); }
.tsfd-bar__num { text-align: right; }
.tsfd-review-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #7dd3a8 !important; text-decoration: none !important; font-weight: 600; }

/* Huy hiệu trên danh sách sản phẩm */
li.product, li.wc-block-product, .products .product { position: relative; }
.tsfd-loop-badge { position: absolute; top: 8px; right: 8px; z-index: 9; display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border-radius: 6px; background: #15181d; color: #fff; font-size: 11px; line-height: 1.3; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); pointer-events: none; }
.tsfd-loop-badge b { color: #4ade80; letter-spacing: .06em; }
.tsfd-loop-badge span { padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); }

/* Xem thêm sản phẩm miễn phí */
.tsfd-more { clear: both; margin: 32px auto; }
.tsfd-more.alignwide { max-width: min(1200px, 100%); }
.tsfd-more__title { margin: 0 0 16px !important; font-size: 1.5em; }
.tsfd-grid { display: grid; grid-template-columns: repeat(var(--tsfd-cols, 4), minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .tsfd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tsfd-grid { gap: 10px; } }
.tsfd-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #15181d; color: #e8eaed !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.tsfd-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.tsfd-card__img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #23262d; }
.tsfd-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform .35s; }
.tsfd-card:hover .tsfd-card__img img { transform: scale(1.05); }
.tsfd-free--corner { position: absolute; top: 8px; left: 8px; }
.tsfd-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.tsfd-card__body strong { font-size: 15px; line-height: 1.35; color: #fff; }
.tsfd-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: #9aa0a8; }
.tsfd-card__cta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: #4ade80; }
