/* Sticky Buy Bar + Hızlı Satın Al. Tema tokenlarını kullanır; yedek değerleri vardır. */
.aln-buy-now {
	display: block; width: 100%; margin-top: .75rem;
	background: transparent; color: var(--wp--preset--color--ink, #17130F);
	border: 1.5px solid var(--wp--preset--color--ink, #17130F); border-radius: 999px;
	padding: .9rem 1.5rem; font: 600 .9rem/1 var(--wp--preset--font-family--body, system-ui);
	letter-spacing: .02em; cursor: pointer; min-height: 48px;
	transition: background .2s, color .2s;
}
.aln-buy-now:hover { background: var(--wp--preset--color--ink, #17130F); color: var(--wp--preset--color--paper, #F6F1E8); }

.aln-sbar {
	position: fixed; z-index: 90; left: 50%; bottom: 1rem;
	width: min(980px, calc(100% - 2rem));
	display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: .75rem 1rem;
	background: #fff; color: var(--wp--preset--color--ink, #17130F);
	padding: .7rem .9rem .7rem 1.25rem; border-radius: 18px;
	box-shadow: 0 18px 50px -12px rgba(23, 19, 15, .35), 0 0 0 1px rgba(23, 19, 15, .08);
	transform: translate(-50%, 140%); opacity: 0;
	transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .3s;
}
.aln-sbar[hidden] { display: none; }
.aln-sbar.is-on { transform: translate(-50%, 0); opacity: 1; }
.aln-sbar__info { display: flex; flex-direction: column; min-width: 0; }
.aln-sbar__name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aln-sbar__price { font-weight: 700; color: var(--wp--preset--color--thread-deep, #D94A00); font-size: .95rem; }
.aln-sbar__price del { opacity: .55; font-weight: 400; margin-right: .35rem; }
.aln-sbar__price ins { text-decoration: none; }
.aln-sbar__qty { display: inline-flex; align-items: center; border: 1px solid rgba(23, 19, 15, .2); border-radius: 10px; overflow: hidden; }
.aln-sbar__qty button { width: 36px; height: 40px; background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: inherit; }
.aln-sbar__qty input { width: 40px; height: 40px; text-align: center; border: 0; font: 600 .95rem/1 inherit; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.aln-sbar__qty input::-webkit-outer-spin-button, .aln-sbar__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.aln-sbar__add, .aln-sbar__buy { min-height: 46px; padding: 0 1.4rem; border-radius: 12px; font: 600 .9rem/1 var(--wp--preset--font-family--body, system-ui); cursor: pointer; white-space: nowrap; }
.aln-sbar__add { background: var(--wp--preset--color--thread, #FF5A00); color: var(--wp--preset--color--ink, #17130F); border: 1.5px solid var(--wp--preset--color--thread, #FF5A00); }
.aln-sbar__add:hover { background: var(--wp--preset--color--thread-deep, #D94A00); border-color: var(--wp--preset--color--thread-deep, #D94A00); color: #fff; }
.aln-sbar__buy { background: #fff; color: var(--wp--preset--color--ink, #17130F); border: 1.5px solid var(--wp--preset--color--ink, #17130F); }
.aln-sbar__buy:hover { background: var(--wp--preset--color--ink, #17130F); color: #fff; }
.aln-sbar__msg { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--wp--preset--color--thread-deep, #D94A00); }
.aln-sbar__msg:empty { display: none; }
.aln-sbar :focus-visible, .aln-buy-now:focus-visible { outline: 2px solid var(--wp--preset--color--ink, #17130F); outline-offset: 2px; }

@media (max-width: 720px) {
	.aln-sbar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 1rem); grid-template-columns: minmax(0, 1fr) auto; padding: .65rem .75rem; gap: .5rem .6rem; }
	.aln-sbar__qty { grid-column: 2; grid-row: 1; }
	.aln-sbar__add { grid-column: 1; }
	.aln-sbar__buy { grid-column: 2; padding: 0 1rem; }
	.aln-sbar__name { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .aln-sbar { transition: none; } }

/* Faz 1.2: şimşek ikonu, varyant satırı, kompakt mobil düzen */
.aln-buy-now::before, .aln-sbar__buy::before {
	content: ""; display: inline-block; width: 13px; height: 13px; margin-right: .5rem; vertical-align: -1px; background: var(--wp--preset--color--thread-deep, #D94A00);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aln-buy-now:hover::before, .aln-sbar__buy:hover::before { background: currentColor; }
.aln-sbar__variant { font-size: .72rem; color: rgba(23, 19, 15, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aln-sbar__variant:empty { display: none; }
.aln-sbar__add:disabled, .aln-sbar__buy:disabled { opacity: .45; cursor: not-allowed; }
.aln-sbar__info { gap: .05rem; }
@media (max-width: 720px) {
	.aln-sbar { left: .5rem; right: .5rem; width: auto; transform: translateY(140%); grid-template-columns: minmax(0, 1fr) auto; padding: .55rem .65rem; gap: .4rem .5rem; border-radius: 16px; }
	.aln-sbar.is-on { transform: none; }
	.aln-sbar__name { font-size: .8rem; }
	.aln-sbar__price { font-size: .9rem; }
	.aln-sbar__qty button { width: 32px; height: 36px; }
	.aln-sbar__qty input { width: 34px; height: 36px; }
	.aln-sbar__add, .aln-sbar__buy { min-height: 42px; font-size: .82rem; padding: 0 .75rem; }
	.aln-sbar__add { grid-column: 1; }
	.aln-sbar__buy { grid-column: 2; }
	.aln-sbar__buy::before { display: none; }
}
