/* HKG Amazon Creators — styles front. Personnalisez via --hkgac-accent ou en surchargeant les classes .hkgac-* */
.hkgac {
	--hkgac-accent-text: #111;
	--hkgac-border: #e3e6e8;
	--hkgac-muted: #6b7075;
	--hkgac-radius: 10px;
	--hkgac-bg: #fff;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.45;
}
:root { --hkgac-accent: #ff9900; }
.hkgac *, .hkgac *::before, .hkgac *::after { box-sizing: border-box; }
.hkgac a { text-decoration: none; }

/* Boutons */
.hkgac-btn {
	display: inline-block;
	padding: .7em 1.3em;
	border-radius: 999px;
	background: var(--hkgac-accent, #ff9900);
	color: var(--hkgac-accent-text, #111) !important;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	transition: filter .15s, transform .15s;
}
.hkgac-btn:hover, .hkgac-btn:focus { filter: brightness(.93); transform: translateY(-1px); }

/* Prix */
.hkgac-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; }
.hkgac-amount { font-size: 1.3em; font-weight: 700; color: #0f1111; }
.hkgac-listprice { color: var(--hkgac-muted, #6b7075); font-size: .9em; }
.hkgac-saving { background: #cc0c39; color: #fff; border-radius: 4px; padding: 0 .4em; font-size: .8em; font-weight: 700; }
.hkgac-updated { color: var(--hkgac-muted, #6b7075); font-size: .72em; margin-top: .15em; cursor: help; }

/* Communs */
.hkgac-title { margin: 0 0 .35em; font-weight: 600; font-size: 1.05em; line-height: 1.3; }
.hkgac-title a { color: inherit; }
.hkgac-title a:hover { color: var(--hkgac-accent, #ff9900); }
.hkgac-brand { margin: 0 0 .5em; color: var(--hkgac-muted, #6b7075); font-size: .85em; }
.hkgac-desc { margin: 0 0 .8em; }
.hkgac-features { margin: 0 0 .8em; padding-left: 1.2em; font-size: .92em; }
.hkgac-features li { margin: .2em 0; }
.hkgac-img { display: block; text-align: center; }
.hkgac-img img { max-width: 100%; height: auto; max-height: 220px; width: auto; object-fit: contain; margin: 0 auto; display: block; }
.hkgac-noimg { display: block; width: 100%; aspect-ratio: 1; background: #f3f4f5; border-radius: 6px; }
.hkgac-badge {
	position: absolute; top: 12px; left: 12px; z-index: 1;
	background: #232f3e; color: #fff; font-size: .75em; font-weight: 700;
	padding: .25em .7em; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em;
}
.hkgac-disclosure { font-size: .78em; color: var(--hkgac-muted, #6b7075); font-style: italic; margin: .6em 0 1.4em; }
.hkgac-admin-notice { background: #fff8e5; border-left: 4px solid #dba617; padding: .6em .9em; font-size: .9em; }

/* Gabarit : box */
.hkgac-box {
	position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 1.4em;
	background: var(--hkgac-bg, #fff); border: 1px solid var(--hkgac-border, #e3e6e8);
	border-radius: var(--hkgac-radius, 10px); padding: 1.3em; margin: 1.5em 0;
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.hkgac-box.hkgac-noimage { grid-template-columns: 1fr; }
.hkgac-box.hkgac-noimage .hkgac-badge { position: static; display: inline-block; margin-bottom: .5em; }
.hkgac-box-media { display: flex; align-items: center; justify-content: center; }
.hkgac-box-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8em; margin-top: .4em; }
@media (max-width: 600px) {
	.hkgac-box { grid-template-columns: 1fr; }
	.hkgac-box-footer { flex-direction: column; align-items: stretch; }
	.hkgac-box-footer .hkgac-btn { width: 100%; }
}

/* Gabarit : grid */
.hkgac-grid { display: grid; grid-template-columns: repeat(var(--hkgac-cols, 3), minmax(0, 1fr)); gap: 1.2em; margin: 1.5em 0; }
.hkgac-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--hkgac-bg, #fff); border: 1px solid var(--hkgac-border, #e3e6e8);
	border-radius: var(--hkgac-radius, 10px); padding: 1.1em;
}
.hkgac-card .hkgac-img { margin-bottom: .9em; }
.hkgac-card .hkgac-img img { max-height: 180px; }
.hkgac-card .hkgac-title { font-size: .98em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hkgac-card-footer { margin-top: auto; display: flex; flex-direction: column; gap: .6em; }
.hkgac-card-footer .hkgac-btn { width: 100%; }
@media (max-width: 900px) { .hkgac-grid { grid-template-columns: repeat(min(var(--hkgac-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 520px) { .hkgac-grid { grid-template-columns: 1fr; } }

/* Gabarit : list */
.hkgac-list { list-style: none; margin: 1.5em 0; padding: 0; }
.hkgac-row {
	position: relative; display: grid; grid-template-columns: 2em 90px 1fr auto; gap: 1em; align-items: center;
	border: 1px solid var(--hkgac-border, #e3e6e8); border-radius: var(--hkgac-radius, 10px);
	padding: .8em 1em; margin: 0 0 .7em; background: var(--hkgac-bg, #fff);
}
.hkgac-rank { font-size: 1.4em; font-weight: 800; color: var(--hkgac-accent, #ff9900); text-align: center; }
.hkgac-row .hkgac-badge { position: static; display: inline-block; margin-bottom: .3em; }
.hkgac-thumb img { max-height: 80px; }
.hkgac-row-body .hkgac-title { font-size: .98em; }
@media (max-width: 600px) {
	.hkgac-row { grid-template-columns: 1.5em 70px 1fr; }
	.hkgac-row > .hkgac-btn { grid-column: 1 / -1; }
}

/* Gabarit : table */
.hkgac-table-wrap { overflow-x: auto; margin: 1.5em 0; }
.hkgac-table { width: 100%; border-collapse: collapse; background: var(--hkgac-bg, #fff); }
.hkgac-table th, .hkgac-table td { border-bottom: 1px solid var(--hkgac-border, #e3e6e8); padding: .8em; vertical-align: middle; text-align: left; }
.hkgac-table th { background: #f7f8f8; font-size: .85em; text-transform: uppercase; letter-spacing: .03em; }
.hkgac-td-img { width: 100px; }
.hkgac-td-title .hkgac-badge { position: static; display: inline-block; margin: 0 .5em .3em 0; }
.hkgac-td-btn { text-align: right; width: 1%; }
@media (max-width: 600px) {
	.hkgac-table thead { display: none; }
	.hkgac-table tr { display: grid; grid-template-columns: 80px 1fr; border-bottom: 1px solid var(--hkgac-border, #e3e6e8); }
	.hkgac-table td { border: 0; }
	.hkgac-td-img { grid-row: span 3; }
	.hkgac-td-btn { text-align: left; width: auto; }
}

/* Gabarits en ligne */
.hkgac-link { text-decoration: underline !important; }
.hkgac-button-only, .hkgac-image-only { display: inline-block; margin: .3em 0; }
.hkgac-image-only .hkgac-img img { max-height: 300px; }

/* Secours */
.hkgac-is-fallback .hkgac-title { font-weight: 500; }
