/* SWL slide-out cart and the shared "elegant" buttons. Loaded on every page when the slide-out cart is on. */
:root {
	--swl-ink: #23214F; --swl-navy: #2D2B7C; --swl-muted: #6B6890; --swl-line: #ECE7F1; --swl-bg: #FBF8F5;
	--swl-pink: #F284B0; --swl-amber: #F4AF4C; --swl-teal: #2BB3B1; --swl-plum: #5B3E96;
	--swl-g-brand: linear-gradient(110deg, #F284B0 0%, #F59E8C 48%, #F4AF4C 100%);
	--swl-g-navy: linear-gradient(120deg, #2D2B7C 0%, #5B3E96 100%);
	--swl-g-glow: radial-gradient(55% 70% at 8% 0%, rgba(242,132,176,.16), transparent 70%), radial-gradient(45% 65% at 100% 10%, rgba(244,175,76,.16), transparent 70%), radial-gradient(40% 60% at 60% 100%, rgba(43,179,177,.10), transparent 70%);
	--swl-shadow: 0 18px 50px rgba(45,43,124,.09);
	--swl-ease: cubic-bezier(.22,.8,.2,1);
}
.swl-cta { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; font: 700 15px/1.1 Inter, system-ui, sans-serif; text-decoration: none !important; cursor: pointer; transition: transform .25s var(--swl-ease), box-shadow .25s, filter .25s; white-space: nowrap; }
.swl-cta:hover { transform: translateY(-2px); }
.swl-cta-brand { background: var(--swl-g-brand); color: #23214F !important; box-shadow: 0 12px 26px rgba(242,132,176,.32); }
.swl-cta-navy { background: var(--swl-g-navy); color: #fff !important; box-shadow: 0 12px 26px rgba(45,43,124,.25); }
.swl-cta-ghost { background: #fff; color: var(--swl-navy) !important; box-shadow: inset 0 0 0 1.5px var(--swl-line); }
.swl-cta-lg { min-height: 56px; font-size: 16px; padding: 0 28px; }

html.swl-locked, html.swl-locked body { overflow: hidden; }
.swl-scrim { position: fixed; inset: 0; z-index: 99990; background: rgba(35,33,79,.38); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s; }
.swl-scrim.is-on { opacity: 1; }
.swl-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 99991; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--swl-bg); color: var(--swl-ink); font-family: Inter, system-ui, sans-serif; box-shadow: -24px 0 70px rgba(35,33,79,.22); transform: translateX(104%); transition: transform .55s var(--swl-ease); visibility: hidden; }
.swl-drawer.is-on { transform: none; visibility: visible; }
.swl-drawer *, .swl-drawer *::before, .swl-drawer *::after { box-sizing: border-box; }
.admin-bar .swl-drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .swl-drawer { top: 46px; } }
.swl-drawer::before { content: ''; position: absolute; inset: 0 0 auto; height: 180px; background: var(--swl-g-glow); pointer-events: none; }
.swl-drawer-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; }
.swl-drawer-head h2 { margin: 0; font: 600 24px/1.1 Fraunces, Georgia, serif; color: var(--swl-ink); }
.swl-dr-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--swl-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(35,33,79,.08); transition: transform .3s var(--swl-ease); }
.swl-dr-x:hover { transform: rotate(90deg); }
.swl-drawer-body { position: relative; flex: 1; overflow: auto; padding: 4px 22px 18px; }
.swl-drawer-in { display: flex; flex-direction: column; gap: 14px; }
.swl-dr-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; font-size: 13px; color: var(--swl-muted); box-shadow: inset 0 0 0 1px var(--swl-line); }
.swl-dr-dot { width: 8px; height: 8px; border-radius: 50%; background: #2BB3B1; box-shadow: 0 0 0 0 rgba(43,179,177,.5); animation: swl-dr-pulse 2s infinite; flex: none; }
@keyframes swl-dr-pulse { 70% { box-shadow: 0 0 0 9px rgba(43,179,177,0); } 100% { box-shadow: 0 0 0 0 rgba(43,179,177,0); } }
.swl-dr-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.swl-dr-line, .swl-dr-s { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--swl-shadow); animation: swl-dr-in .5s var(--swl-ease) both; }
.swl-dr-line.is-busy { opacity: .4; }
@keyframes swl-dr-in { from { opacity: 0; transform: translateX(24px); } }
.swl-dr-img { display: block; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: #F4EEF7; }
.swl-dr-img img { width: 100%; height: 100%; object-fit: cover; }
.swl-dr-img span { display: grid; place-items: center; height: 100%; color: var(--swl-pink); }
.swl-dr-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.swl-dr-txt a { color: var(--swl-ink); font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swl-dr-price { font-size: 14px; color: var(--swl-navy); font-weight: 600; }
.swl-dr-price del { color: #736F96; font-weight: 400; margin-right: 4px; }
.swl-dr-price ins { text-decoration: none; }
.swl-dr-txt dl { margin: 0; font-size: 12px; color: var(--swl-muted); }
.swl-dr-rm { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #F6F2F8; color: var(--swl-muted); display: grid; place-items: center; cursor: pointer; }
.swl-dr-rm:hover { background: #FDE8EF; color: #B3305F; }
.swl-dr-sug { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.swl-dr-sug-h { font: 700 11px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--swl-plum); }
.swl-dr-s { grid-template-columns: 56px 1fr auto; box-shadow: inset 0 0 0 1px var(--swl-line); }
.swl-dr-s .swl-dr-img { width: 56px; height: 56px; border-radius: 12px; }
.swl-dr-add { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--swl-g-navy); color: #fff !important; font: 600 20px/1 Inter, sans-serif; text-decoration: none; transition: transform .25s var(--swl-ease); }
.swl-dr-add:hover { transform: scale(1.1); }
.swl-dr-add.is-busy { opacity: .5; animation: swl-spin 1s linear infinite; }
@keyframes swl-spin { to { transform: rotate(360deg); } }
.swl-drawer-foot { position: relative; padding: 16px 22px 22px; background: #fff; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(35,33,79,.08); display: flex; flex-direction: column; gap: 10px; }
.swl-dr-save { padding: 8px 12px; border-radius: 12px; background: #EAF8F2; color: #1F7A55; font-size: 13px; font-weight: 600; text-align: center; }
.swl-dr-total { display: flex; justify-content: space-between; align-items: baseline; }
.swl-dr-total span { font-weight: 600; color: var(--swl-muted); }
.swl-dr-total b { font: 800 24px Inter, sans-serif; color: var(--swl-ink); }
.swl-dr-go { width: 100%; }
.swl-dr-cart { text-align: center; font-size: 14px; font-weight: 600; color: var(--swl-navy); }
.swl-dr-pays { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.swl-dr-pays span { padding: 3px 9px; border-radius: 7px; background: #F6F2F8; color: var(--swl-navy); font: 700 11px Inter, sans-serif; }
.swl-dr-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 50px 10px; }
.swl-dr-empty-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--swl-pink); box-shadow: var(--swl-shadow); }
.swl-dr-empty b { font: 600 20px Fraunces, Georgia, serif; }
.swl-dr-empty p { margin: 0 0 8px; color: var(--swl-muted); }
.swl-toast { position: fixed; left: 50%; top: 18px; z-index: 99995; transform: translate(-50%, -150%); padding: 12px 20px; border-radius: 999px; background: var(--swl-g-navy); color: #fff; font: 600 14px Inter, sans-serif; box-shadow: 0 14px 34px rgba(35,33,79,.3); transition: transform .5s var(--swl-ease); pointer-events: none; }
.swl-toast::before { content: '✓  '; color: #FFD38A; }
.swl-toast.is-on { transform: translate(-50%, 0); }
.swl-fly { position: fixed; z-index: 99996; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--swl-g-brand); box-shadow: 0 6px 16px rgba(242,132,176,.5); transition: transform .65s cubic-bezier(.5,-0.3,.6,1), opacity .65s; pointer-events: none; }
.swl-bump { animation: swl-bump .5s var(--swl-ease); }
@keyframes swl-bump { 40% { transform: scale(1.25); } }
.is-busy { pointer-events: none; }
a.is-busy, button.is-busy { opacity: .7; }
@media (max-width: 520px) {
	.swl-drawer { width: 100vw; top: auto; height: 92vh; border-radius: 26px 26px 0 0; transform: translateY(104%); }
	.swl-drawer.is-on { transform: none; }
	.swl-drawer-head::before { content: ''; position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: #DCD5E6; }
}
@media (prefers-reduced-motion: reduce) { .swl-drawer, .swl-scrim, .swl-toast { transition: none; } .swl-dr-line, .swl-dr-s { animation: none; } }
