/* Fashion Affiliate — frontend styles
   Accent color is injected via --fa-accent from settings. */
:root { --fa-accent: #c2185b; --fa-star: #f5a623; --fa-star-empty: #dcdcdc; }

.fa-wrap { margin: 1.4em 0; font-family: inherit; }
.fa-wrap *, .fa-wrap *::before, .fa-wrap *::after { box-sizing: border-box; }

/* Suppress third-party "Pin it"/Pinterest buttons injected onto our images. */
.fa-wrap span.pinit, .fa-wrap .pinit-button, .fa-wrap .pin-it-button,
.fa-wrap [class*="pinit"]:not(img):not(svg):not(path),
.fa-wrap [class*="pin-it"]:not(img):not(svg):not(path),
.fa-wrap [class*="PinItButton"] { display: none !important; }

/* ---------- Buttons ---------- */
.fa-btn {
	display: inline-block;
	background: var(--fa-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	padding: 10px 18px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
	box-shadow: 0 3px 12px rgba(0,0,0,.12);
	text-align: center;
}
.fa-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.fa-btn:active { transform: translateY(0); }
.fa-btn-inline { font-size: 13px; padding: 8px 16px; }
.fa-btn-block { display: block; width: 100%; margin-top: 10px; }

/* ---------- Single box (compact) ---------- */
.fa-box {
	position: relative;
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 4px 16px rgba(20,20,40,.05);
}
.fa-box-vertical { flex-direction: column; text-align: center; max-width: 260px; }
.fa-box-vertical .fa-box-footer { justify-content: center; flex-direction: column; gap: 10px; }
.fa-box-image { flex: 0 0 130px; display: flex; align-items: center; justify-content: center; }
.fa-box-vertical .fa-box-image { flex: none; }
.fa-box-image img { max-width: 100%; max-height: 150px; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.fa-box-vertical .fa-box-image img { max-height: 200px; }
.fa-box-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fa-brand { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 3px; }
.fa-title { font-size: 16px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
.fa-title a { color: inherit; text-decoration: none; }
.fa-title a:hover { color: var(--fa-accent); }
.fa-features { margin: 4px 0 10px; padding: 0; list-style: none; }
.fa-features li { position: relative; padding-left: 18px; margin: 3px 0; font-size: 13px; color: #444; line-height: 1.4; }
.fa-features li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--fa-accent); }
.fa-box-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }

/* ---------- Price ---------- */
.fa-price { font-size: 20px; font-weight: 800; color: #1a1a1a; }
.fa-list-price { font-size: 14px; color: #999; text-decoration: line-through; font-weight: 500; }

/* ---------- Badge ---------- */
.fa-badge {
	position: absolute; top: -9px; left: 14px;
	background: var(--fa-accent); color: #fff;
	font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0,0,0,.15);
}
.fa-badge-inline { position: static; display: inline-block; margin-bottom: 6px; }

/* ---------- Stars (SVG, font-independent) ---------- */
.fa-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.fa-box-vertical .fa-rating, .fa-group-item .fa-rating { justify-content: center; }
.fa-stars { display: inline-flex; align-items: center; font-size: 16px; line-height: 1; gap: 1px; }
.fa-star { display: inline-block; width: 1em; height: 1em; }
.fa-review-count { font-size: 12px; color: #777; }

/* ---------- List ---------- */
.fa-list { display: flex; flex-direction: column; gap: 12px; }
.fa-list-item {
	display: flex; align-items: center; gap: 16px;
	background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 12px 14px;
	box-shadow: 0 3px 12px rgba(20,20,40,.05);
}
.fa-list-num {
	flex: 0 0 32px; height: 32px; width: 32px; border-radius: 50%;
	background: var(--fa-accent); color: #fff; font-weight: 800; font-size: 15px;
	display: flex; align-items: center; justify-content: center;
}
.fa-list-image { flex: 0 0 72px; text-align: center; }
.fa-list-image img { max-width: 72px; max-height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.fa-list-body { flex: 1; min-width: 0; }
.fa-list-body .fa-title { font-size: 15px; margin-bottom: 3px; }
.fa-list-cta { flex: 0 0 auto; }

/* ---------- Product group ---------- */
.fa-group { background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 18px; box-shadow: 0 4px 18px rgba(20,20,40,.05); }
.fa-group-title { font-size: 17px; font-weight: 800; margin: 0 0 14px; text-align: center; letter-spacing: .01em; }
.fa-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.fa-group-grid.fa-cols-1 { grid-template-columns: 1fr; }
.fa-group-grid.fa-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fa-group-grid.fa-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fa-group-grid.fa-cols-4 { grid-template-columns: repeat(4, 1fr); }
.fa-group-grid.fa-cols-5 { grid-template-columns: repeat(5, 1fr); }
.fa-group-grid.fa-cols-6 { grid-template-columns: repeat(6, 1fr); }
.fa-group-item { position: relative; display: flex; flex-direction: column; text-align: center; align-items: center; border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px; background: #fff; }
.fa-group-image { margin-bottom: 8px; }
.fa-group-image img { max-width: 100%; max-height: 140px; object-fit: contain; mix-blend-mode: multiply; }
.fa-group-item .fa-title { font-size: 14px; margin: 2px 0 6px; }
.fa-group-item .fa-price { font-size: 17px; }

/* ---------- Comparison table ---------- */
.fa-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fa-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 480px; background: #fff; }
.fa-table th, .fa-table td { padding: 12px; text-align: center; border-bottom: 1px solid #efefef; vertical-align: middle; }
.fa-table thead th { border-bottom: 2px solid #efefef; background: #fafafa; }
.fa-table-image img { max-height: 110px; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fa-table-title { font-weight: 700; font-size: 13px; margin-top: 6px; line-height: 1.3; }
.fa-table .fa-rating { justify-content: center; }
.fa-col-highlight { background: color-mix(in srgb, var(--fa-accent) 7%, #fff); position: relative; }
.fa-table thead .fa-col-highlight { background: color-mix(in srgb, var(--fa-accent) 12%, #fff); }

/* ---------- Disclosure / misc ---------- */
.fa-disclosure { font-size: 12px; color: #999; margin: 8px 2px 0; font-style: italic; }
.fa-noimg { width: 100%; height: 120px; background: #f3f3f3; border-radius: 8px; }
.fa-notfound { background: #fff3cd; border: 1px solid #ffe69c; color: #664d03; padding: 10px 14px; border-radius: 8px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.fa-box { flex-direction: column; gap: 14px; }
	.fa-box-image { flex: none; }
	.fa-box-footer { flex-direction: column; align-items: stretch; }
	.fa-box-footer .fa-btn { width: 100%; }
	.fa-list-item { flex-wrap: wrap; }
	.fa-list-cta { width: 100%; }
	.fa-list-cta .fa-btn { width: 100%; }
	.fa-group-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
