.woozy-offers { --woozy-offers-accent: #242424; margin-block: 1.5rem; width: 100%; min-width: 0; }
.woozy-offers h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 1rem; }
.woozy-offers .woozy-offers-list { display: grid; list-style: none; padding: 0; margin: 0; gap: .75rem; }
.woozy-offers .woozy-offers-item { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem; margin: 0; border: 1px solid #d5d5d5; border-radius: 8px; list-style: none; }
.woozy-offers-merchant, .woozy-offers-amount { flex: 1 1 130px; min-width: 0; overflow-wrap: anywhere; }
.woozy-offers-detail { display: block; font-size: .82rem; line-height: 1.5; opacity: .8; margin-top: .2rem; }
.woozy-offers-merchant:has(.woozy-offers-logo) { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: .6rem; align-items: center; }
.woozy-offers-merchant .woozy-offers-logo { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.woozy-offers .woozy-offers-button { display: inline-block; padding: .75rem 1rem; border-radius: 5px; background: var(--woozy-offers-accent); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; text-align: center; }
.woozy-offers .woozy-offers-button:hover { filter: brightness(1.2); color: #fff; }
.woozy-offers .woozy-offers-button:focus-visible { outline: 3px solid #1674c3; outline-offset: 3px; }
.woozy-offers-unavailable { font-size: .85rem; }
.woozy-offers .woozy-offers-disclosure { font-size: .8rem; line-height: 1.6; margin: .8rem 0 0; }
@media (max-width: 480px) { .woozy-offers .woozy-offers-button, .woozy-offers-unavailable { flex: 1 1 100%; } }

/* Carte d'un produit dans un article : [woozy_product]. Le bouton est l'élément le plus visible du bloc. */
.woozy-product-card { --woozy-offers-accent: #e8590c; position: relative; display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-block: 1.25rem 1.5rem; padding: 1.25rem; border: 2px solid color-mix(in srgb, var(--woozy-offers-accent) 35%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--woozy-offers-accent) 4%, transparent); }
.woozy-product-card:not(:has(.woozy-product-card__media)) { grid-template-columns: minmax(0, 1fr); }
.woozy-product-card__media { display: block; aspect-ratio: 1; border-radius: 10px; background: #fff; overflow: hidden; }
.woozy-product-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.woozy-product-card__body { display: grid; gap: .55rem; min-width: 0; }
.woozy-product-card__body > p { margin: 0; }
.woozy-product-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.woozy-product-card__rank { padding: .2rem .6rem; border-radius: 999px; background: #1d1d1d; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.woozy-product-card__badge, .woozy-products__badge { padding: .2rem .6rem; border-radius: 999px; background: var(--woozy-offers-accent); color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.woozy-product-card__name { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.woozy-product-card__name a { color: inherit; text-decoration: none; }
.woozy-product-card__name a:hover { text-decoration: underline; }
.woozy-product-card__price span { font-size: .85rem; opacity: .75; }
.woozy-product-card__price strong { font-size: 1.35rem; }
.woozy-product-card__merchants { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; }
.woozy-product-card__merchants img { width: 24px; height: 24px; margin: 0; border-radius: 5px; object-fit: contain; background: #fff; }
.woozy-product-card__merchants a { color: inherit; }
.woozy-product-card .woozy-product-card__button, .woozy-products .woozy-products__button { display: inline-flex; justify-content: center; align-items: center; padding: .85rem 1.3rem; border-radius: 8px; background: var(--woozy-offers-accent); color: #fff; font-weight: 700; text-decoration: none; text-align: center; box-shadow: 0 3px 0 color-mix(in srgb, var(--woozy-offers-accent) 70%, #000); transition: transform .15s ease, filter .15s ease; }
.woozy-product-card .woozy-product-card__button { justify-self: start; font-size: 1.02rem; }
.woozy-product-card .woozy-product-card__button:hover, .woozy-products .woozy-products__button:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.woozy-product-card .woozy-product-card__button:focus-visible, .woozy-products .woozy-products__button:focus-visible, .woozy-sticky-bar__link:focus-visible { outline: 3px solid #1674c3; outline-offset: 3px; }
@media (max-width: 560px) {
	.woozy-product-card { grid-template-columns: minmax(0, 1fr); }
	.woozy-product-card__media { max-width: 160px; justify-self: center; width: 100%; }
	.woozy-product-card .woozy-product-card__button { justify-self: stretch; }
}

.woozy-product-card__button > span, .woozy-products__button > span { margin-left: .35em; }

/* Tableau récapitulatif : [woozy_products]. */
.woozy-products { --woozy-offers-accent: #e8590c; margin-block: 1.5rem; border: 1px solid #d5d5d5; border-radius: 14px; overflow: hidden; }
.woozy-products .woozy-products__title { margin: 0; padding: .8rem 1rem; background: #1d1d1d; color: #fff; font-weight: 700; }
.woozy-products .woozy-products__list { list-style: none; margin: 0; padding: 0; }
.woozy-products .woozy-products__item { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: .9rem; align-items: center; margin: 0; padding: .75rem 1rem; border-top: 1px solid #e5e5e5; list-style: none; }
.woozy-products .woozy-products__item:first-child { border-top: 0; background: color-mix(in srgb, var(--woozy-offers-accent) 6%, transparent); }
.woozy-products__rank { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #1d1d1d; color: #fff; font-weight: 700; }
.woozy-products__item:first-child .woozy-products__rank { background: var(--woozy-offers-accent); }
.woozy-products__thumb { width: 64px; height: 64px; margin: 0; border-radius: 8px; object-fit: contain; background: #fff; }
.woozy-products__main { display: grid; gap: .25rem; justify-items: start; min-width: 0; }
.woozy-products .woozy-products__name { color: inherit; font-weight: 700; line-height: 1.3; text-decoration: none; }
.woozy-products .woozy-products__name:hover { text-decoration: underline; }
.woozy-products__price { font-weight: 700; white-space: nowrap; }
.woozy-products .woozy-products__button { padding: .65rem 1rem; font-size: .9rem; white-space: nowrap; }
@media (max-width: 640px) {
	.woozy-products .woozy-products__item { grid-template-columns: auto auto minmax(0, 1fr); }
	.woozy-products__price { grid-column: 3; }
	.woozy-products .woozy-products__button { grid-column: 1 / -1; }
}

/* Barre sticky, réglée dans Woozy → Product Offers. */
.woozy-sticky-bar { --woozy-offers-accent: #e8590c; position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; padding: .6rem max(1rem, env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: #fff; color: #1d1d1d; box-shadow: 0 -4px 18px rgba(0, 0, 0, .14); transform: translateY(110%); transition: transform .25s ease; }
.woozy-sticky-bar.is-visible { transform: none; }
.woozy-sticky-bar__link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1200px; margin: 0 auto; color: inherit; text-decoration: none; }
.woozy-sticky-bar__left { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.woozy-sticky-bar__thumb { flex: none; width: 48px; height: 48px; margin: 0; border-radius: 8px; object-fit: cover; background: #f3f3f3; }
.woozy-sticky-bar__name { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 600; line-height: 1.3; }
.woozy-sticky-bar__button { flex: none; padding: .75rem 1.2rem; border-radius: 8px; background: var(--woozy-offers-accent); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.woozy-sticky-bar__button.is-animated { animation: woozy-sticky-nudge 5s ease-in-out 2s infinite; }
@keyframes woozy-sticky-nudge {
	0%, 86%, 100% { transform: none; }
	88% { transform: translateX(-3px) rotate(-1.5deg); }
	90% { transform: translateX(3px) rotate(1.5deg); }
	92% { transform: translateX(-2px) rotate(-1deg); }
	94% { transform: translateX(2px) rotate(1deg); }
}
body.woozy-sticky-bar-on { padding-bottom: var(--woozy-sticky-bar-height, 0px); }
@media (max-width: 480px) {
	.woozy-sticky-bar__thumb { width: 40px; height: 40px; }
	.woozy-sticky-bar__name { font-size: .85rem; }
	.woozy-sticky-bar__button { padding: .65rem .8rem; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
	.woozy-sticky-bar { transition: none; }
	.woozy-sticky-bar__button.is-animated { animation: none; }
	.woozy-product-card .woozy-product-card__button, .woozy-products .woozy-products__button { transition: none; }
}
