/* WordPress-specific additions on top of the original compiled site styles. */

/* Undo WordPress core block-style defaults that the original site does not have */
figure { margin: 0; }

/* Keep the sticky header below the WP admin bar when logged in */
body.admin-bar header.sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.sticky { top: 0; } }

/* Native selects that replace the original custom dropdowns */
select.qit-select {
	-webkit-appearance: none; appearance: none;
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .65rem center;
	background-size: 16px 16px;
}

/* Spam honeypot */
.qit-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Toasts (replaces the original "sonner" notifications) */
.qit-toasts { position: fixed; z-index: 100; bottom: 5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 380px); pointer-events: none; }
@media (min-width: 640px) { .qit-toasts { bottom: 1.5rem; left: auto; right: 1.5rem; transform: none; } }
.qit-toast { pointer-events: auto; background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: .75rem; padding: .9rem 1rem; font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-lift); animation: qitToastIn .25s ease-out; transition: opacity .3s, transform .3s; }
.qit-toast--error { border-left-color: var(--destructive); }
.qit-toast--out { opacity: 0; transform: translateY(8px); }
@keyframes qitToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cart drawer */
.qit-cart { position: fixed; inset: 0; z-index: 90; }
.qit-cart__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .45); animation: qitFade .2s ease-out; }
.qit-cart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 420px); display: flex; flex-direction: column; box-shadow: var(--shadow-lift); animation: qitSlide .25s ease-out; }
@keyframes qitFade { from { opacity: 0; } }
@keyframes qitSlide { from { transform: translateX(100%); } }
[data-qit-cart-open] { position: relative; }
.qit-cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.qit-qty { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; line-height: 1; }
.qit-qty:hover { border-color: var(--primary); color: var(--primary); }

/* Readable defaults for pages/posts you write in the WordPress editor */
.qit-prose { color: var(--foreground); line-height: 1.75; }
:where(.qit-prose) > * + * { margin-top: 1.1em; }
:where(.qit-prose) h2 { font-size: 1.6rem; margin-top: 2.2em; }
:where(.qit-prose) h3 { font-size: 1.25rem; margin-top: 1.8em; }
:where(.qit-prose) p, :where(.qit-prose) li { color: var(--muted-foreground); }
:where(.qit-prose) ul { list-style: disc; padding-left: 1.4em; }
:where(.qit-prose) ol { list-style: decimal; padding-left: 1.4em; }
:where(.qit-prose) li + li { margin-top: .4em; }
:where(.qit-prose) a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:where(.qit-prose) img { border-radius: .75rem; height: auto; }
:where(.qit-prose) blockquote { border-left: 4px solid var(--primary); background: var(--surface); padding: 1rem 1.25rem; border-radius: .5rem; }
.qit-prose .wp-block-button__link { background: var(--primary); color: var(--primary-foreground); border-radius: .5rem; padding: .75rem 1.5rem; font-weight: 700; text-decoration: none; }
.alignwide { max-width: 72rem; } .aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
