/* ===== Sweets Showcase ===== */
.sweets-showcase {
  --sw-bg: #1f3528; --sw-pattern: #9dc358; --sw-pattern-op: .12;
  --sw-bigword: #ffffff; --sw-bigword-op: 8%; --sw-surface: #ffffff;
  --sw-snake: #9dc358; --sw-snake-dur: 8s;
  --sw-title: #ffffff; --sw-kicker-text: #e6f2d3; --sw-kicker-dot: #9dc358; --sw-subtitle: #cfe0d3;
  --sw-tab-text: #cfe0d3; --sw-tab-active-bg: #9dc358; --sw-tab-active-text: #101e15;
  --sw-item-text: #ffffff; --sw-item-active-bg: #ffffff; --sw-item-active-text: #1f3528; --sw-item-active-price: #284734;
  --sw-progress: #9dc358; --sw-thumb-bg: #ffffff;
  --sw-glow: #9dc358; --sw-ring: #ffffff; --sw-card-bg: #ffffff; --sw-weight-bg: #9dc358; --sw-weight-text: #101e15;
  --sw-glass: #ffffff; --sw-counter: #9dc358; --sw-info-title: #ffffff; --sw-info-desc: #dbe7de; --sw-price: #ffffff; --sw-currency: #e6f2d3;
  --sw-btn-bg: #9dc358; --sw-btn-hover: #b1d173; --sw-btn-text: #101e15;
  --sw-fav-bg: #ffffff; --sw-fav-icon: #284734; --sw-fav-on: #d6336c;
  --sw-toast-bg: #101e15; --sw-toast-text: #ffffff;
  --sw-pt-m: 56px; --sw-pb-m: 56px; --sw-pt-d: 104px; --sw-pb-d: 104px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-num: "Brandon Grotesque", system-ui, sans-serif;
  --pattern-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='72' viewBox='0 0 64 72'%3E%3Cpath fill='%23000' d='M31 10 4 0v5l27 10zM33 10 60 0v5L33 15zM31 28 4 18v5l27 10zM33 28l27-10v5L33 33zM31 46 4 36v5l27 10zM33 46l27-10v5L33 51zM31 64 4 54v5l27 10zM33 64l27-10v5L33 69z'/%3E%3C/svg%3E");
  position: relative; overflow: hidden; color: var(--sw-title);
  background: var(--sw-bg);
  padding-top: clamp(var(--sw-pt-m), 8vw, var(--sw-pt-d));
  padding-bottom: clamp(var(--sw-pb-m), 8vw, var(--sw-pb-d));
}
.sweets-showcase::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--sw-pattern); opacity: var(--sw-pattern-op);
  -webkit-mask: var(--pattern-mask) 0 0 / 64px 72px repeat; mask: var(--pattern-mask) 0 0 / 64px 72px repeat;
}
.sweets-showcase.sw-no-pattern::before { display: none; }
:where(.sweets-showcase) *, :where(.sweets-showcase) *::before, :where(.sweets-showcase) *::after { box-sizing: border-box; }
.sweets-showcase :where(h2, h3, p) { margin: 0; color: inherit; font-family: inherit; letter-spacing: normal; }
.sweets-showcase :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; box-shadow: none; }
.sweets-showcase :where(button):focus { outline: none; }
.sweets-showcase :where(button, a):focus-visible { outline: 2px solid var(--sw-tab-active-bg); outline-offset: 2px; }
.sweets-showcase :where(a), .sweets-showcase :where(a):hover { color: inherit; text-decoration: none; }
.sweets-showcase :where(img) { display: block; max-width: 100%; }
.sweets-showcase .num { font-family: var(--font-num); font-feature-settings: "lnum"; }

.sweets-showcase .sw-container { width: 100%; max-width: 1905px; margin-inline: auto; padding-inline: var(--mx-content-padding, 16px); }
.sweets-showcase.sw-full .sw-container { max-width: none; }
.sweets-showcase .sw-bigword { position: absolute; bottom: -.18em; inset-inline-end: -.02em; font-size: clamp(7rem, 22vw, 19rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.08); -webkit-text-stroke-color: color-mix(in srgb, var(--sw-bigword) var(--sw-bigword-op), transparent); pointer-events: none; user-select: none; white-space: nowrap; }
.sweets-showcase .sw-bigword-snake { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sweets-showcase .sw-bigword-snake text { font: inherit; letter-spacing: inherit; fill: none; stroke: var(--sw-snake); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--sw-snake-len, 120px) var(--sw-snake-gap, 1200px); animation: swSnake var(--sw-snake-dur, 8s) linear infinite; }
.sweets-showcase .sw-snake-glow .sw-bigword-snake { filter: drop-shadow(0 0 6px var(--sw-snake)); }
.sweets-showcase.sw-offscreen .sw-bigword-snake text { animation-play-state: paused; }

.sweets-showcase .sw-grid { position: relative; display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "list"; }
@media (min-width: 960px) { .sweets-showcase .sw-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "head stage" "list stage"; align-items: start; } }

.sweets-showcase .sw-head { grid-area: head; }
.sweets-showcase .sw-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--sw-kicker-text); background: rgba(255,255,255,.1); background: color-mix(in srgb, var(--sw-surface) 10%, transparent); border-radius: 999px; padding: .35rem .9rem; }
.sweets-showcase .sw-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sw-kicker-dot); }
.sweets-showcase .sw-head h2 { font-size: clamp(18, 2vw, 20px); font-weight: 500; line-height: 1.15; margin: .8rem 0 .7rem; color: var(--sw-title); }
.sweets-showcase .sw-head p { color: var(--sw-subtitle); font-size: 1.05rem; line-height: 1.6; max-width: 30rem; margin-bottom: 1.4rem; }

.sweets-showcase .sw-tabs { display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; border-radius: 999px; background: rgba(255,255,255,.08); background: color-mix(in srgb, var(--sw-surface) 8%, transparent); }
.sweets-showcase .sw-tabs button { padding: .5rem 1.05rem; border-radius: 999px; font-weight: 600; color: var(--sw-tab-text); transition: background .25s ease, color .25s ease; }
.sweets-showcase .sw-tabs button:hover { color: var(--sw-title); }
.sweets-showcase .sw-tabs button.on { background: var(--sw-tab-active-bg); color: var(--sw-tab-active-text); }

.sweets-showcase .sw-list { grid-area: list; display: grid; gap: .6rem; align-self: start; }
.sweets-showcase .sw-item { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: .9rem; padding: .65rem .8rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); border-color: color-mix(in srgb, var(--sw-surface) 10%, transparent); background: rgba(255,255,255,.03); background: color-mix(in srgb, var(--sw-surface) 3%, transparent); color: var(--sw-item-text); text-align: start; transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease); animation: swCardIn .45s var(--ease) both; }
.sweets-showcase .sw-item:hover { background: rgba(255,255,255,.08); background: color-mix(in srgb, var(--sw-surface) 8%, transparent); transform: translateX(-4px); }
.sweets-showcase[dir="ltr"] .sw-item:hover { transform: translateX(4px); }
.sweets-showcase .sw-item.on { background: var(--sw-item-active-bg); color: var(--sw-item-active-text); border-color: var(--sw-item-active-bg); }
.sweets-showcase .sw-item .n { flex: 0 0 auto; width: 1.7rem; font-family: var(--font-num); font-weight: 900; font-size: .9rem; opacity: .45; }
.sweets-showcase .sw-item img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: var(--sw-thumb-bg); object-fit: contain; padding: 4px; }
.sweets-showcase .sw-txt { flex: 1; min-width: 0; }
.sweets-showcase .sw-item strong { display: block; font-size: .98rem; font-weight: 700; line-height: 1.35; }
.sweets-showcase .sw-item .sw-txt small { font-size: .82rem; opacity: .7; }
.sweets-showcase .sw-item .bar { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; width: 0; background: var(--sw-progress); }
.sweets-showcase .sw-item.on .bar { animation: swBarFill var(--dur, 5s) linear forwards; }
.sweets-showcase.sw-no-autoplay .sw-item.on .bar { animation: none; width: 0; }

.sweets-showcase .sw-price { display: inline-flex; align-items: baseline; gap: .3rem; line-height: 1; white-space: nowrap; }
.sweets-showcase .sw-price .amt { display: inline-flex; align-items: baseline; font-family: var(--font-num); }
.sweets-showcase .sw-price b { font-weight: 500; letter-spacing: -.01em; }
.sweets-showcase .sw-price i { font-style: normal; font-weight: 500; opacity: .75; }
.sweets-showcase .sw-price small { font-weight: 500; }
.sweets-showcase .sw-price.sm b { font-size: 13px; }
.sweets-showcase .sw-price.sm i, .sweets-showcase .sw-price.sm small { font-size: 12px; }
.sweets-showcase .sw-item .sw-price { color: inherit; }
.sweets-showcase .sw-item .sw-price small { color: inherit; opacity: .6; }
.sweets-showcase .sw-item.on .sw-price { color: var(--sw-item-active-price); }
.sweets-showcase .sw-price.lg b { font-size: 2rem; color: var(--sw-price); }
.sweets-showcase .sw-price.lg i { font-size: 1rem; color: var(--sw-price); }
.sweets-showcase .sw-price.lg small { font-size: .85rem; color: var(--sw-currency); }

.sweets-showcase .sw-stage { grid-area: stage; position: relative; display: flex; flex-direction: column; }
.sweets-showcase .sw-visual { position: relative; height: 440px; display: grid; place-items: center; }
.sweets-showcase .sw-glow { position: absolute; width: 440px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(157,195,88,.45), rgba(157,195,88,0) 68%); background: radial-gradient(circle, color-mix(in srgb, var(--sw-glow) 45%, transparent), color-mix(in srgb, var(--sw-glow) 0%, transparent) 68%); animation: swBreathe 6s ease-in-out infinite; }
.sweets-showcase .sw-ring { position: absolute; width: 400px; max-width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.22); border-color: color-mix(in srgb, var(--sw-ring) 22%, transparent); animation: swRot 50s linear infinite; }
.sweets-showcase .sw-card { position: relative; width: 300px; max-width: 70%; aspect-ratio: 1; background: var(--sw-card-bg); border-radius: 36px; display: grid; place-items: center; box-shadow: 0 50px 80px -30px rgba(0,0,0,.6); transform: rotate(-4deg); }
.sweets-showcase[dir="ltr"] .sw-card { transform: rotate(4deg); }
.sweets-showcase .sw-card img { width: 100%; height: 100%; object-fit: contain; padding: 9%; }
.sweets-showcase .sw-card img:not([src]), .sweets-showcase .sw-card img[src=""] { visibility: hidden; }
.sweets-showcase .sw-card.swap { animation: swSwapIn .7s var(--ease); }
.sweets-showcase .sw-weight { position: absolute; top: 9%; inset-inline-start: 8%; background: var(--sw-weight-bg); color: var(--sw-weight-text); font-weight: 900; font-size: 1.1rem; padding: .5rem 1.05rem; border-radius: 999px; transform: rotate(-8deg); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.sweets-showcase .sw-weight:empty { display: none; }

.sweets-showcase .sw-info { position: relative; z-index: 2; margin: -28px 6% 0; background: rgba(255,255,255,.1); background: color-mix(in srgb, var(--sw-glass) 10%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.18); border-color: color-mix(in srgb, var(--sw-glass) 18%, transparent); border-radius: 24px; padding: 1.15rem 1.3rem; display: grid; gap: .35rem; }
.sweets-showcase .sw-count { font-family: var(--font-num); font-weight: 700; font-size: .85rem; color: var(--sw-counter); letter-spacing: .08em; direction: ltr; justify-self: start; }
.sweets-showcase .sw-info h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--sw-info-title); }
.sweets-showcase .sw-info p { color: var(--sw-info-desc); font-size: .95rem; line-height: 1.6; }
.sweets-showcase .sw-info p:empty { display: none; }
.sweets-showcase .sw-info.swap h3, .sweets-showcase .sw-info.swap p { animation: swCardIn .5s var(--ease) both; }
.sweets-showcase .sw-actions { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.sweets-showcase .sw-actions .sw-price { margin-inline-end: auto; }

.sweets-showcase .sw-btn { display: inline-flex; align-items: center; justify-content: center;width: 100%; gap: .55rem; min-height: 42px; padding: 0 1.1rem; border-radius: 999px; font-weight: 700; font-size: .92rem; white-space: nowrap; background: var(--sw-btn-bg); color: var(--sw-btn-text); transition: transform .25s var(--ease), background .25s ease; }
.sweets-showcase .sw-btn:hover { background: var(--sw-btn-hover); color: var(--sw-btn-text); transform: translateY(-2px); }
.sweets-showcase .sw-btn:active { transform: scale(.98); }
.sweets-showcase .sw-btn svg { width: 16px; height: 16px; }
.sweets-showcase[dir="ltr"] .sw-btn svg { transform: scaleX(-1); }

.sweets-showcase .sw-fav { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--sw-fav-bg); color: var(--sw-fav-icon); display: grid; place-items: center; transition: transform .2s ease, color .2s ease; }
.sweets-showcase .sw-fav svg { width: 20px; height: 20px; fill: transparent; transition: fill .2s ease; }
.sweets-showcase .sw-fav:hover { transform: scale(1.1); }
.sweets-showcase .sw-fav.on { color: var(--sw-fav-on); }
.sweets-showcase .sw-fav.on svg { fill: currentColor; }
.sweets-showcase .sw-fav.pop { animation: swPop .4s var(--ease); }

.sweets-showcase .sw-toast { position: fixed; bottom: 24px; left: 50%; z-index: 1060; transform: translate(-50%, 120px); background: var(--sw-toast-bg); color: var(--sw-toast-text); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); transition: transform .4s var(--ease); display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.sweets-showcase .sw-toast.show { transform: translate(-50%, 0); }

.sweets-showcase.is-loading .sw-stage, .sweets-showcase.is-loading .sw-list { visibility: hidden; }

.sweets-showcase .sw-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.sweets-showcase .sw-reveal.in { opacity: 1; transform: none; }

@keyframes swCardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes swBarFill { to { width: 100%; } }
@keyframes swBreathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes swRot { to { transform: rotate(360deg); } }
@keyframes swSwapIn { from { opacity: 0; transform: rotate(-14deg) scale(.82) translateY(24px); } }
@keyframes swPop { 40% { transform: scale(1.3); } }
@keyframes swSnake { from { stroke-dashoffset: 0; } to { stroke-dashoffset: calc(-1 * var(--sw-snake-period, 1320px)); } }

@media (max-width: 640px) {
  .sweets-showcase .sw-visual { height: 330px; }
  .sweets-showcase .sw-card { width: 220px; border-radius: 28px; }
  .sweets-showcase .sw-info { margin: -20px 0 0; padding: 1rem; }
  .sweets-showcase .sw-info h3 { font-size: 1.1rem; }
  .sweets-showcase .sw-weight { top: 4%; inset-inline-start: 2%; font-size: .95rem; }
  .sweets-showcase .sw-fav { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .sweets-showcase *, .sweets-showcase *::before, .sweets-showcase *::after { animation: none !important; transition: none !important; }
  .sweets-showcase .sw-reveal { opacity: 1; transform: none; }
  .sweets-showcase .sw-bigword-snake { display: none; }
}
