/* Alfayomi CRO — front-end. Uses the theme's colour tokens with safe fallbacks. */
.alf-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; padding: 0 !important; margin: -1px !important; }

/* Trust */
.alf-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.alf-trust__item { display: flex; align-items: center; gap: .6rem; font-size: .95rem; line-height: 1.45; color: var(--wp--preset--color--ink, #1f1611); }
.alf-trust__item .alf-ico { flex: 0 0 auto; color: var(--wp--preset--color--accent-dark, #8c4a12); }
.alf-trust__item a { color: inherit; font-weight: 600; }
.alf-trust--list { padding: .9rem 1rem; border: 1px solid var(--wp--preset--color--line, #e7d8c8); border-radius: 14px; background: var(--wp--preset--color--base, #fff); }
.alf-trust--bar { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem 1rem; }
.alf-trust--bar .alf-trust__item { justify-content: center; font-weight: 600; font-size: .9rem; }
@media (max-width: 599px) { .alf-trust--bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .alf-trust--bar .alf-trust__item { justify-content: flex-start; font-size: .82rem; } }
.alf-trust--compact { margin-top: .9rem; gap: .35rem; }
.alf-trust--compact .alf-trust__item { font-size: .85rem; color: var(--wp--preset--color--muted, #6b5a51); }

/* Swatches */
.alf-swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.alf-swatch { min-height: 44px; min-width: 64px; padding: .45rem 1rem; border: 1.5px solid var(--wp--preset--color--line, #e7d8c8); border-radius: 999px; background: var(--wp--preset--color--base, #fff); color: var(--wp--preset--color--espresso, #2e211c); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.alf-swatch:hover { border-color: var(--wp--preset--color--roast, #503d37); }
.alf-swatch.is-selected { background: var(--wp--preset--color--espresso, #2e211c); border-color: var(--wp--preset--color--espresso, #2e211c); color: var(--wp--preset--color--cream, #fbf7f2); }
.alf-swatch.is-disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.alf-swatch:focus-visible { outline: 2px solid var(--wp--preset--color--accent, #ae6019); outline-offset: 2px; }
form.cart.alf-attention table.variations { animation: alf-pulse 1.4s ease; border-radius: 12px; }
@keyframes alf-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(174, 96, 25, 0); } 30% { box-shadow: 0 0 0 6px rgba(174, 96, 25, .45); } }
.alf-price-from { font-size: .8em; font-weight: 500; color: var(--wp--preset--color--muted, #6b5a51); }

/* Sticky ATC — mobile only */
.alf-sticky { display: none; }
@media (max-width: 781px) {
	.alf-sticky { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 90; align-items: center; gap: .75rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--wp--preset--color--base, #fff); border-top: 1px solid var(--wp--preset--color--line, #e7d8c8); box-shadow: 0 -8px 24px rgba(42, 24, 16, .1); transform: translateY(110%); transition: transform .25s ease; }
	.alf-sticky[hidden] { display: none; }
	.alf-sticky.is-visible { transform: translateY(0); }
	.alf-sticky__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
	.alf-sticky__name { font-size: .8rem; color: var(--wp--preset--color--muted, #6b5a51); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.alf-sticky__price { font-weight: 700; color: var(--wp--preset--color--espresso, #2e211c); }
	.alf-sticky__price del { font-weight: 400; opacity: .6; }
	.alf-sticky__btn { flex: 0 0 auto; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--accent, #ae6019); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
	body.alf-sticky-visible { padding-bottom: 76px; }
}

/* WhatsApp floating */
.alf-wa { position: fixed; z-index: 80; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; display: inline-flex; align-items: center; gap: .4rem; height: 52px; padding: 0 14px; border-radius: 999px; background: #1f8f4e; color: #fff !important; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); font-weight: 700; transition: bottom .25s ease, transform .2s ease; }
.alf-wa:hover { transform: translateY(-2px); }
.alf-wa__label { font-size: .9rem; }
@media (max-width: 781px) { .alf-wa { width: 52px; padding: 0; justify-content: center; } .alf-wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } body.alf-sticky-visible .alf-wa { bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* Free shipping bar */
.alf-fsb.is-empty { display: none; }
.alf-fsb { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--wp--preset--color--sand, #f3e8dc); }
.alf-fsb__text { margin: 0 0 .5rem; font-size: .92rem; }
.alf-fsb__done { display: none; font-weight: 700; color: var(--wp--preset--color--success, #2e7d4f); }
.alf-fsb.is-done .alf-fsb__done { display: inline; }
.alf-fsb.is-done .alf-fsb__todo { display: none; }
.alf-fsb__track { height: 8px; border-radius: 99px; background: rgba(42, 24, 16, .1); overflow: hidden; }
.alf-fsb__fill { display: block; height: 100%; border-radius: inherit; background: var(--wp--preset--color--accent, #ae6019); transition: width .35s ease; }
.alf-fsb.is-done .alf-fsb__fill { background: var(--wp--preset--color--success, #2e7d4f); }

/* Reviews */
.alf-reviews__title { text-align: center; margin: 0 0 1.25rem; }
.alf-reviews__grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.alf-review { margin: 0; padding: 1.1rem; border: 1px solid var(--wp--preset--color--line, #e7d8c8); border-radius: 14px; background: var(--wp--preset--color--base, #fff); display: flex; flex-direction: column; gap: .5rem; }
.alf-review__stars { color: var(--wp--preset--color--accent, #ae6019); letter-spacing: 2px; }
.alf-review__text { margin: 0; padding: 0; border: 0; font-size: .95rem; }
.alf-review__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; font-size: .85rem; color: var(--wp--preset--color--muted, #6b5a51); }
.alf-review__verified { color: var(--wp--preset--color--success, #2e7d4f); font-weight: 600; }
.alf-review__product { color: inherit; }

.alf-editor-empty { padding: .75rem 1rem; border: 1px dashed #c3b3a0; border-radius: 8px; font-size: 13px; color: #6b5a51; }

/* Live price x quantity (1.1.5) */
.alf-price-total del { opacity: .55; font-weight: 400; margin-inline-end: .35em; }
.alf-price-total ins { text-decoration: none; }
.alf-price-each { font-size: .6em; font-weight: 400; opacity: .7; white-space: nowrap; }

/* «Added to cart» celebration (1.1.6) */
.alf-added-lock, .alf-added-lock body { overflow: hidden; }
.alf-added { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; }
.alf-added[hidden] { display: none; }
.alf-added__backdrop { position: absolute; inset: 0; background: rgba(30, 20, 15, .55); opacity: 0; transition: opacity .2s ease; }
.alf-added__box { position: relative; width: min(100%, 420px); max-height: calc(100vh - 32px); overflow: auto; background: var(--wp--preset--color--base, #fffaf3); color: var(--wp--preset--color--espresso, #2e211c); border-radius: 24px; padding: 32px 24px 20px; text-align: center; box-shadow: 0 24px 60px rgba(30, 20, 15, .35); transform: translateY(16px) scale(.96); opacity: 0; transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease; outline: none; }
.alf-added.is-open .alf-added__backdrop { opacity: 1; }
.alf-added.is-open .alf-added__box { transform: none; opacity: 1; }
.alf-added__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.alf-added__x { position: absolute; top: 10px; inset-inline-end: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: inherit; opacity: .55; cursor: pointer; border-radius: 50%; }
.alf-added__x:hover, .alf-added__x:focus-visible { opacity: 1; background: rgba(0, 0, 0, .05); }
.alf-added__badge { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--wp--preset--color--accent, #b5651d); box-shadow: 0 0 0 8px color-mix(in srgb, var(--wp--preset--color--accent, #b5651d) 18%, transparent); animation: alf-pop .45s cubic-bezier(.2, .9, .3, 1.4) both .05s; }
@keyframes alf-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.alf-added__title { margin: 0 0 4px; font-size: 1.45rem; font-weight: 800; color: inherit; }
.alf-added__sub { margin: 0 0 18px; opacity: .75; }
.alf-added__item { display: flex; align-items: center; gap: 12px; text-align: start; padding: 10px; border: 1px solid rgba(46, 33, 28, .12); border-radius: 16px; margin-bottom: 18px; background: #fff; }
.alf-added__item[hidden] { display: none; }
.alf-added__img { flex: 0 0 64px; }
.alf-added__img img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; display: block; }
.alf-added__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alf-added__name { font-weight: 700; }
.alf-added__meta, .alf-added__qty { font-size: .875rem; opacity: .75; }
.alf-added__actions { display: grid; gap: 10px; }
.alf-added__btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none !important; transition: background-color .2s ease, color .2s ease, transform .1s ease; }
.alf-added__btn:active { transform: scale(.98); }
.alf-added__btn--primary { background: var(--wp--preset--color--accent, #b5651d); color: #fff !important; }
.alf-added__btn--primary:hover, .alf-added__btn--primary:focus-visible { background: var(--wp--preset--color--accent-dark, #8f4f16); }
.alf-added__btn--ghost { border: 2px solid var(--wp--preset--color--espresso, #2e211c); color: var(--wp--preset--color--espresso, #2e211c) !important; }
.alf-added__btn--ghost:hover, .alf-added__btn--ghost:focus-visible { background: var(--wp--preset--color--espresso, #2e211c); color: var(--wp--preset--color--cream, #f6eee3) !important; }
.alf-added__btn:focus-visible, .alf-added__more:focus-visible { outline: 2px solid var(--wp--preset--color--espresso, #2e211c); outline-offset: 3px; }
.alf-added__more { margin-top: 12px; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font: inherit; opacity: .8; }
.alf-added__more:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .alf-added__box, .alf-added__backdrop, .alf-added__badge { transition: none; animation: none; } }
