/* Trang Ưu đãi & mã giảm giá */
.affp { --affs-accent:#ff5722; --ink:#141414; --muted:#6a6a6a; --line:#ece8e4; --cream:#fff7f1;
	max-width: 1200px; margin: 0 auto; padding: 32px 16px 56px; color: var(--ink); box-sizing: border-box; }
.affp *, .affp *::before, .affp *::after { box-sizing: border-box; }
.affp { width: 100%; min-width: 0; }
.affp-sec, .affp-hero, .affp-cps, .affp-grid, .affp-strip, .affp-chips, .affp-cp, .affp-card, .affp-shop { min-width: 0; max-width: 100%; }
.affp a, .affp a:hover, .affp a:focus, .affp a * { text-decoration: none !important; }
.affp [hidden] { display: none !important; } /* thẻ có display:flex sẽ ghi đè thuộc tính hidden nếu thiếu dòng này */
.affp h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.affp h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.affp-sub { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.affp-kicker { display: inline-block; margin: 0 0 12px; padding: 6px 13px; font-size: 13px; font-weight: 700; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.affp-sec { margin-top: 40px; }
.affp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }

/* Hero */
.affp-hero { text-align: center; padding: 28px 16px 30px; margin: 0 -16px; background: radial-gradient(700px 300px at 85% 0%, #ffe3d3, transparent 70%), radial-gradient(600px 300px at 0% 100%, #e9f6ff, transparent 70%), var(--cream); border-radius: 0 0 28px 28px; }
.affp-hero .affp-sub { max-width: 620px; margin: 0 auto; }
.affp-search { display: flex; align-items: center; max-width: 560px; margin: 22px auto 0; background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); }
.affp-search:focus-within { border-color: var(--affs-accent); box-shadow: 0 4px 0 var(--affs-accent); }
.affp-search svg { flex: none; width: 20px; height: 20px; margin-left: 18px; fill: none; stroke: #8a8a8a; stroke-width: 2.2; stroke-linecap: round; }
.affp .affp-search input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font-size: 16px; }

/* Logo */
.affp-logo, .affp-cp__logo, .affp-shop__logo { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; flex: none; }
.affp-logo img, .affp-cp__logo img, .affp-shop__logo img { width: 100%; height: 100%; object-fit: contain; padding: 10%; display: block; }
.affp-logo { width: 64px; height: 64px; }
.is-ph { font-size: 26px; font-weight: 800; color: var(--affs-accent); background: var(--cream); }

/* Dải logo */
.affp-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(118px, 100%), 1fr)); gap: 12px; }
.affp-strip__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink) !important; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.25; transition: transform .15s, box-shadow .15s, border-color .15s; }
.affp-strip__item:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.affp-strip__item .affp-logo { width: 56px; height: 56px; border: 0; }
.affp--strip { padding: 0; max-width: none; }

/* Chips lọc */
.affp-chips { contain: inline-size; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.affp-chips::-webkit-scrollbar { display: none; }
.affp .affp-chips button { flex: none; padding: 8px 14px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; line-height: 1.2; }
.affp .affp-chips button small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.affp .affp-chips button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.affp .affp-chips button.is-on small { color: rgba(255,255,255,.7); }

/* Thẻ thương hiệu */
.affp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.affp-card { display: flex; flex-direction: column; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: transform .15s, box-shadow .15s; }
.affp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.affp-card__top { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; color: var(--ink) !important; }
.affp-card__top .affp-logo { grid-row: 1 / 3; }
.affp-card__name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; align-self: end; }
.affp-card__cat { font-size: 12.5px; color: var(--muted); align-self: start; }
.affp-card__blurb { flex: 1; margin: 12px 0; font-size: 14px; line-height: 1.5; color: #4a4a4a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.affp-card__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.affp-card__foot .affp-btn { margin-left: auto; }
.affp-pill { padding: 3px 9px; font-size: 12px; font-weight: 700; background: #fff1e8; color: #b33d10; border-radius: 999px; }
.affp-pill--hot { background: #fff8c5; color: #6b5300; }

/* Nút */
.affp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; font-size: 14px; font-weight: 700; color: #fff !important; background: var(--affs-accent); border: 0; border-radius: 12px; cursor: pointer; white-space: nowrap; transition: filter .15s; }
.affp-btn:hover { filter: brightness(1.08); }
.affp-btn--ghost { color: var(--ink) !important; background: #fff; border: 1.5px solid var(--ink); }
.affp-btn--ghost:hover { background: var(--ink); color: #fff !important; filter: none; }
.affp-btn--big { padding: 15px 26px; font-size: 16px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }

/* Mã giảm giá */
.affp-cps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.affp-cp { position: relative; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.affp-cp.is-hot { border-color: #ffc9b3; }
.affp-cp__left { position: relative; flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; background: var(--cream); border-right: 2px dashed #f0d6c8; }
.affp-cp__left::before, .affp-cp__left::after { content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.affp-cp__left::before { top: -10px; } .affp-cp__left::after { bottom: -10px; }
.affp-cp__logo { width: 52px; height: 52px; border-radius: 12px; }
.affp-cp__badge { font-size: 15px; font-weight: 800; color: var(--affs-accent); text-align: center; line-height: 1.2; }
.affp-cp__body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.affp-cp__shop { font-size: 12.5px; font-weight: 700; color: var(--muted) !important; text-transform: uppercase; letter-spacing: .03em; }
.affp-cp__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.affp-cp__meta { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.affp-cp__exp.is-soon { color: #c0392b; font-weight: 700; }
.affp-cp__act { margin-top: auto; padding-top: 8px; }
.affp .affp-code { display: flex; width: 100%; padding: 0; margin: 0; border: 1.5px dashed var(--affs-accent); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; font: inherit; }
.affp-code__txt { flex: 1 0 auto; padding: 9px 10px; font-family: Menlo, Consolas, monospace; font-size: 14px; font-weight: 700; letter-spacing: .03em; color: var(--ink); text-align: left; white-space: nowrap; }
.affp-code__btn { flex: 0 1 auto; padding: 9px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--affs-accent); color: #fff; font-size: 13px; font-weight: 700; }
.affp-code.is-copied .affp-code__btn { background: #0a7a3d; }

/* Trang thương hiệu */
.affp-crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.affp-crumb a { color: var(--muted) !important; }
.affp-crumb a:hover { color: var(--affs-accent) !important; }
.affp-shop { display: flex; align-items: center; gap: 22px; padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 22px; }
.affp-shop__logo { width: 104px; height: 104px; border-radius: 22px; }
.affp-shop__info { flex: 1; min-width: 0; }
.affp-shop__info h1 { font-size: clamp(24px, 3.6vw, 34px); }
.affp-shop__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.affp-shop__meta span { padding: 4px 10px; font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.affp-terms { margin-top: 24px; padding: 14px 18px; background: #faf8f6; border-radius: 14px; font-size: 14.5px; line-height: 1.6; }
.affp-terms summary { cursor: pointer; font-weight: 700; }
.affp-terms > div { margin-top: 10px; }

.affp-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed #ddd; border-radius: 16px; }
.affp-empty b { color: var(--ink); }
.affp-none { text-align: center; color: var(--muted); padding: 24px; }
.affp-disc { margin: 36px auto 0; max-width: 640px; text-align: center; font-size: 12.5px; color: #9a9a9a; }
.affp .affs-cbstrip { margin-top: 18px; }

@media (max-width: 720px) {
	.affp-shop { flex-direction: column; text-align: center; padding: 20px 16px; }
	.affp-shop__meta { justify-content: center; }
	.affp-btn--big { width: 100%; }
	.affp-cps { grid-template-columns: minmax(0, 1fr); }
	.affp-cp__left { width: 94px; }
	.affp-grid { grid-template-columns: minmax(0, 1fr); }
	.affp-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

.affp-vbanner { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; font-size: 15px; font-weight: 600; color: #fff !important; background: linear-gradient(90deg, #ee4d2d, #111 85%); border-radius: 999px; box-shadow: 0 4px 14px rgba(238,77,45,.25); }
.affp-vbanner em { font-style: normal; font-weight: 800; }
