/* Temply mini cart (Hark 2026-10-08) */
.tmc { --ink: #04222A; --ink2: #0E2A30; --text: #1E3A40; --muted: #5B6B6E; --coral: #FF6B56; --coral-ink: #C9402F; --bg: #FFF5EF; --bg2: #FDEBE2; --teal: #138A85;
  --grad: linear-gradient(100deg, #F0558A 0%, #F86A63 52%, #FB7B32 100%); --display: 'Dosis', 'Varela Round', system-ui, sans-serif; --sans: 'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  position: fixed; inset: 0; z-index: 100000; pointer-events: none; font: 400 15px/1.5 var(--sans); color: var(--text); -webkit-font-smoothing: antialiased; }
.tmc *, .tmc *::before, .tmc *::after { box-sizing: border-box; }
.tmc a { color: inherit; text-decoration: none; }
.tmc button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: inherit; min-height: 0; width: auto; line-height: inherit; border-radius: 0; }
.tmc svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.tmc-lock, html.tmc-lock body { overflow: hidden; }
html.tmc-open .t5-toast, html.tmc-open .temply-atc-toast, html.tmc-open .ds-toast, html.tmc-open .tp5-toast { opacity: 0 !important; pointer-events: none !important; }

.tmc__veil { position: absolute; inset: 0; background: rgba(4, 34, 42, .38); -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2); opacity: 0; transition: opacity .45s var(--ease); }
.tmc__panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100vw - 20px)); display: flex; flex-direction: column; border-radius: 30px; background: #FFF9F5; box-shadow: -30px 0 80px -30px rgba(4, 34, 42, .55); overflow: hidden; transform: translateX(calc(100% + 30px)) rotate(2deg); transform-origin: 100% 50%; transition: transform .6s var(--spring); }
.tmc.is-open { pointer-events: auto; }
.tmc.is-open .tmc__veil { opacity: 1; }
.tmc.is-open .tmc__panel { transform: none; }

/* header */
.tmc__head { position: relative; isolation: isolate; overflow: hidden; padding: 22px 22px 18px; background: linear-gradient(135deg, #FFE1D3 0%, #FFEFE6 45%, #FFDDE6 100%); }
.tmc__head::before, .tmc__head::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(28px); animation: tmcFloat 9s ease-in-out infinite; }
.tmc__head::before { width: 200px; height: 200px; right: -50px; top: -90px; background: radial-gradient(circle, rgba(240, 85, 138, .55), transparent 70%); }
.tmc__head::after { width: 170px; height: 170px; left: -60px; bottom: -110px; background: radial-gradient(circle, rgba(251, 123, 50, .5), transparent 70%); animation-delay: -4s; }
@keyframes tmcFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18px, 12px) scale(1.1); } }
.tmc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tmc__title { display: flex; align-items: center; gap: 12px; margin: 0; font: 800 26px/1 var(--display); color: var(--ink); }
.tmc__count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--grad); color: #fff; font: 800 15px/1 var(--display); box-shadow: 0 8px 18px -8px rgba(240, 85, 110, .9); }
.tmc__count.is-pop { animation: tmcPop .6s var(--spring); }
@keyframes tmcPop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }
.tmc__x { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--ink); transition: transform .5s var(--spring), background-color .3s, color .3s; }
.tmc__x svg { width: 20px; height: 20px; }
.tmc__x:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.tmc__sub { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.tmc__perk { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .78); font-size: 13.5px; color: var(--ink); }
.tmc__perk svg { flex: none; width: 20px; height: 20px; color: var(--teal); }
.tmc__perk b { font-weight: 700; }

/* body */
.tmc__body { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; scrollbar-width: thin; scrollbar-color: #F1D3C6 transparent; }
.tmc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tmc__item { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 14px 30px -20px rgba(170, 92, 60, .45); opacity: 0; transform: translateX(40px); transition: transform .5s var(--spring), opacity .4s, box-shadow .3s; }
.tmc.is-open .tmc__item { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .06s); }
.tmc__item.is-new { animation: tmcNew 1.4s var(--ease); }
@keyframes tmcNew { 0%, 30% { box-shadow: 0 0 0 3px rgba(255, 107, 86, .55), 0 14px 30px -20px rgba(170, 92, 60, .45); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 86, 0), 0 14px 30px -20px rgba(170, 92, 60, .45); } }
.tmc__item.is-out { opacity: 0 !important; transform: translateX(60px) scale(.92) !important; transition: transform .35s var(--ease), opacity .3s !important; }
.tmc__item.is-busy { opacity: .55 !important; }
.tmc__img { display: block; width: 78px; height: 78px; border-radius: 16px; overflow: hidden; background: var(--bg); }
.tmc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tmc__item:hover .tmc__img img { transform: scale(1.08); }
.tmc__info { display: flex; flex-direction: column; min-width: 0; padding-right: 30px; }
.tmc__name { font: 700 16px/1.25 var(--display); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tmc__name:hover { color: var(--coral-ink); }
.tmc__meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tmc__meta svg { width: 14px; height: 14px; color: var(--teal); }
.tmc__bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.tmc__qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg); }
.tmc__qty button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); transition: background-color .25s, color .25s, transform .3s var(--spring); }
.tmc__qty button svg { width: 14px; height: 14px; stroke-width: 2.6; }
.tmc__qty button:hover:not(:disabled) { background: var(--ink); color: #fff; transform: scale(1.08); }
.tmc__qty button:disabled { opacity: .35; cursor: default; }
.tmc__qty span { min-width: 22px; text-align: center; font: 800 14px/1 var(--display); color: var(--ink); }
.tmc__price { font: 800 17px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.tmc__price del { margin-right: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.tmc__rm { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); transition: background-color .25s, color .25s, transform .4s var(--spring); }
.tmc__rm svg { width: 15px; height: 15px; }
.tmc__rm:hover { background: #FDE3DE; color: #D23B2C; transform: rotate(90deg); }

/* empty */
.tmc__empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 12px 10px; }
.tmc__bag { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 36px; background: linear-gradient(135deg, #FFE1D3, #FFDDE6); color: var(--coral-ink); animation: tmcBob 3.2s ease-in-out infinite; }
.tmc__bag svg { width: 48px; height: 48px; stroke-width: 1.6; }
.tmc__bag::after { content: ''; position: absolute; bottom: -18px; width: 70%; height: 10px; border-radius: 50%; background: rgba(4, 34, 42, .1); filter: blur(4px); animation: tmcShadow 3.2s ease-in-out infinite; }
@keyframes tmcBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes tmcShadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .6; } }
.tmc__empty h3 { margin: 30px 0 0; font: 800 24px/1.1 var(--display); color: var(--ink); }
.tmc__empty p { margin: 8px 0 0; max-width: 30ch; color: var(--muted); }
.tmc__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.tmc__chips a { padding: 9px 15px; border-radius: 999px; background: #fff; box-shadow: 0 10px 22px -16px rgba(170, 92, 60, .6); font: 800 12.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); transition: transform .35s var(--spring), background-color .3s, color .3s; }
.tmc__chips a:hover { transform: translateY(-3px); background: var(--ink); color: #fff; }
.tmc__skel { height: 98px; border-radius: 22px; background: linear-gradient(90deg, #fff 0%, #FFF1EA 40%, #fff 80%) 0 0 / 200% 100%; animation: tmcSk 1.2s linear infinite; }
@keyframes tmcSk { to { background-position: -200% 0; } }
.tmc__err { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: #FDE7E3; color: #9B2C1E; font-size: 13.5px; }

/* footer */
.tmc__foot { padding: 16px 18px 18px; border-top: 1px solid #F6E3D9; background: #fff; }
.tmc__line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.tmc__line + .tmc__line { margin-top: 6px; }
.tmc__line--tot { margin-top: 10px !important; font: 800 22px/1 var(--display); color: var(--ink); }
.tmc__line--tot b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.tmc__line--save { color: var(--teal); font-weight: 600; }
.tmc__cta { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 14px; border-radius: 14px; background: var(--grad); color: #fff !important; font: 800 16px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 16px 30px -14px rgba(240, 85, 110, .85); transition: transform .45s var(--spring), box-shadow .3s; }
.tmc__cta svg { width: 18px; height: 18px; transition: transform .4s var(--spring); }
.tmc__cta::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: tmcShine 3.2s ease-in-out infinite; }
@keyframes tmcShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.tmc__cta:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(240, 85, 110, .95); }
.tmc__cta:hover svg { transform: translateX(4px); }
.tmc__alt { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font: 800 12.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.tmc__alt a, .tmc__alt button { color: var(--ink); padding: 6px 0; }
.tmc__alt a:hover, .tmc__alt button:hover { color: var(--coral-ink); }
.tmc__pay { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.tmc__pay svg { width: 14px; height: 14px; }

/* flying dot + confetti */
.tmc-fly { position: fixed; z-index: 100001; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--grad, linear-gradient(100deg, #F0558A, #FB7B32)); box-shadow: 0 6px 16px rgba(240, 85, 110, .6); pointer-events: none; }
.tmc-bit { position: absolute; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; }
.t5-cartbtn.tmc-jiggle, .tmc-jiggle { animation: tmcJig .7s var(--spring, cubic-bezier(.34, 1.56, .64, 1)); }
@keyframes tmcJig { 0% { transform: none; } 30% { transform: scale(1.25) rotate(-12deg); } 60% { transform: scale(.95) rotate(8deg); } 100% { transform: none; } }

@media (max-width: 520px) {
  .tmc__panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 88vh; border-radius: 28px; transform: translateY(calc(100% + 30px)); transform-origin: 50% 100%; }
  .tmc__panel::before { content: ''; position: absolute; z-index: 3; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(4, 34, 42, .18); }
  .tmc__head { padding-top: 24px; }
  .tmc__title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .tmc__panel, .tmc__item, .tmc__veil { transition-duration: .01s !important; }
  .tmc__head::before, .tmc__head::after, .tmc__bag, .tmc__cta::after { animation: none !important; }
}
.tmc, .tmc * { font-family: var(--sans) !important; }
.tmc .tmc__title, .tmc .tmc__count, .tmc .tmc__name, .tmc .tmc__qty span, .tmc .tmc__price, .tmc .tmc__price *, .tmc .tmc__empty h3, .tmc .tmc__chips a, .tmc .tmc__line--tot, .tmc .tmc__line--tot *, .tmc .tmc__cta, .tmc .tmc__alt a, .tmc .tmc__alt button { font-family: var(--display) !important; }
.tmc .tmc__title, .tmc .tmc__empty h3 { letter-spacing: 0 !important; text-transform: none !important; }
