/* ==========================================================
   Mini kosár – horgolt terítő, polaroidok, fonal, árcédula
   ========================================================== */
.offcanvas.k-minicart { width: min(430px, 94vw); padding: 0 0 0 22px; background: transparent; box-shadow: none; overflow: visible; }
.k-minicart .k-mc-inner {
    position: relative; height: 100%; display: flex; flex-direction: column; padding: 22px 24px 20px 22px;
    background-color: #fffaf6;
    /* halvány kötött („V” szemes) minta */
    background-image:
        repeating-linear-gradient(60deg, rgba(248, 121, 108, .045) 0 2px, transparent 2px 12px),
        repeating-linear-gradient(-60deg, rgba(248, 121, 108, .045) 0 2px, transparent 2px 12px);
    box-shadow: -20px 0 50px rgba(74, 63, 60, .18);
}
/* Horgolt csipke szegély a bal oldalon (félkörök, bennük apró lyukkal) */
.k-minicart .k-mc-inner::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -20px; width: 22px;
    background: radial-gradient(circle at 15px 13px, transparent 3px, #fffaf6 3.5px) 0 0 / 22px 26px repeat-y;
    -webkit-mask: radial-gradient(circle at 22px 13px, #000 12px, transparent 12.5px) 0 0 / 22px 26px repeat-y;
            mask: radial-gradient(circle at 22px 13px, #000 12px, transparent 12.5px) 0 0 / 22px 26px repeat-y;
}
.k-minicart .k-mc-inner::after { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; border-left: 2px dashed rgba(248, 121, 108, .35); pointer-events: none; }

.k-mc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px dashed #f3d6cf; }
.k-mc-head .k-script { font-size: 26px; line-height: 1; }
.k-mc-head h2 { font-family: "Marcellus", serif; font-size: 32px; color: #3b302d; margin: 0; display: flex; align-items: center; gap: 10px; }
.k-mc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 15px; background: var(--k-primary); color: #fff; font-family: "Futura", sans-serif; font-size: 15px; font-weight: 800; padding: 0 8px; }
.k-minicart .k-mc-close { position: static; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--k-muted); font-size: 26px; line-height: 1; box-shadow: var(--k-shadow-sm); transition: .3s var(--k-ease); }
.k-minicart .k-mc-close:hover { background: var(--k-primary); color: #fff; transform: rotate(90deg); }

/* Fonal-csík: mennyi hiányzik az ingyenes szállításig */
.k-mc-progress { background: #fff; border-radius: 18px; padding: 12px 16px 14px; margin-bottom: 14px; box-shadow: var(--k-shadow-sm); }
.k-mc-progress p { margin: 0 0 10px; font-size: 14px; }
.k-mc-yarn { position: relative; height: 16px; }
.k-mc-yarn::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 2px dashed #ead6d1; }
.k-mc-yarn-line { position: absolute; left: 0; top: 6px; height: 4px; width: var(--pct); border-radius: 4px; background: repeating-linear-gradient(90deg, var(--k-primary) 0 8px, #f9a197 8px 12px); }
.k-mc-yarn-ball { position: absolute; top: -2px; left: calc(var(--pct) - 10px); width: 20px; height: 20px; border-radius: 50%;
    background: repeating-linear-gradient(35deg, transparent 0 3px, rgba(255, 255, 255, .5) 3px 4px), radial-gradient(circle at 35% 30%, #ffb3a8, #f8796c 70%);
    box-shadow: 0 3px 6px rgba(248, 121, 108, .35); animation: k-spin 4s linear infinite; }
@keyframes k-spin { to { transform: rotate(360deg); } }

/* Polaroid termékek washi-szalaggal */
.k-mc-list { list-style: none; margin: 0 -8px; padding: 12px 12px 4px; flex: 1; overflow-y: auto; overflow-x: hidden; }
.k-mc-item { position: relative; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 6px; padding: 10px 12px 10px 10px; margin: 0 4px 20px; box-shadow: 0 6px 16px rgba(74, 63, 60, .1); transform: rotate(var(--tilt)); transition: transform .3s var(--k-ease); }
.k-mc-item:hover { transform: rotate(0) scale(1.02); }
.offcanvas-open .k-mc-item { animation: k-mc-drop .6s var(--k-ease) both; animation-delay: calc(.15s + var(--i) * .09s); }
@keyframes k-mc-drop { from { opacity: 0; transform: translateY(-28px) rotate(-6deg); } to { opacity: 1; transform: rotate(var(--tilt)); } }
.k-mc-tape { position: absolute; top: -10px; left: 50%; width: 64px; height: 18px; transform: translateX(-50%) rotate(-3deg); background: rgba(114, 164, 153, .38); border-left: 2px dotted rgba(255, 255, 255, .8); border-right: 2px dotted rgba(255, 255, 255, .8); }
.k-mc-item:nth-child(3n+2) .k-mc-tape { background: rgba(248, 121, 108, .32); transform: translateX(-30%) rotate(4deg); }
.k-mc-item:nth-child(3n) .k-mc-tape { background: rgba(247, 220, 122, .55); transform: translateX(-70%) rotate(-6deg); }
.k-mc-photo { flex: 0 0 74px; width: 74px; height: 88px; border-radius: 3px; overflow: hidden; background: var(--k-cream); box-shadow: 0 0 0 5px #fff, 0 0 0 7px #f3ebe7; margin: 4px; }
.k-mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.k-mc-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.k-mc-name { font-family: "Modesty", cursive; font-size: 30px; line-height: 1.05; color: #3b302d; }
.k-mc-name:hover { color: var(--k-primary); }
.k-mc-meta { font-weight: 800; color: #4a3f3c; margin-top: 4px; }
.k-mc-unique { font-size: 12px; color: var(--k-primary); font-weight: 700; }
.k-mc-remove { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #f3d6cf; background: transparent; color: var(--k-muted); font-size: 16px; cursor: pointer; transition: .25s; }
.k-mc-remove:hover { border-style: solid; border-color: var(--k-primary); background: var(--k-primary); color: #fff; transform: rotate(-20deg); }

/* Árcédula madzagon */
.k-mc-foot { padding-top: 22px; border-top: 2px dashed #f3d6cf; text-align: center; }
.k-mc-tag { position: relative; display: inline-block; margin: 4px 0 14px; transform-origin: 50% -18px; }
.offcanvas-open .k-mc-tag { animation: k-mc-swing 2.4s ease-in-out .4s both; }
@keyframes k-mc-swing { 0% { transform: rotate(12deg); } 25% { transform: rotate(-8deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-3deg); } 100% { transform: rotate(-2deg); } }
.k-mc-tag-string { position: absolute; top: -18px; left: 50%; width: 2px; height: 26px; background: #c9a99f; transform: translateX(-50%); z-index: 1; }
.k-mc-tag-card { position: relative; display: flex; flex-direction: column; align-items: center; background: #fdf0d8; padding: 16px 36px 12px; border-radius: 4px 4px 16px 16px; box-shadow: 0 8px 18px rgba(74, 63, 60, .12); clip-path: polygon(20% 0, 80% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); }
.k-mc-tag-card::before { content: ""; position: absolute; top: 7px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #fffaf6; transform: translateX(-50%); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.k-mc-tag-card small { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #a08a6a; margin-top: 6px; font-weight: 800; }
.k-mc-tag-card strong { font-family: "Modesty", cursive; font-size: 42px; font-weight: 400; line-height: 1.1; color: #3b302d; }
.k-mc-ship { font-size: 13px; color: var(--k-muted); margin: 0 0 12px; font-weight: 600; }
.k-mc-checkout { padding: 16px 24px; font-size: 17px; }
.k-mc-checkout span { transition: transform .3s; }
.k-mc-checkout:hover span { transform: translateX(5px); }
.k-mc-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--k-muted); text-decoration: underline wavy #f6b3aa; text-underline-offset: 4px; }
.k-mc-link:hover { color: var(--k-primary); }

/* Üres kosár: rajzolt fonott kosár, begurul a gombolyag */
.k-mc-empty { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; overflow-y: auto; overflow-x: hidden; padding-bottom: 10px; min-width: 0; }
.k-mc-empty h3 { font-family: "Marcellus", serif; font-size: 26px; margin: 10px 0 2px; }
.k-mc-empty p { margin-bottom: 18px; }
.k-mc-basket { position: relative; width: 180px; height: 140px; margin-top: 10px; }
.k-mc-basket svg { width: 100%; height: 100%; overflow: visible; }
.k-mc-basket path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.k-mc-basket .handle { stroke: #c9a27e; stroke-width: 6; }
.k-mc-basket .body { fill: #f3dcc4; stroke: #c9a27e; stroke-width: 4; }
.k-mc-basket .weave { stroke: #d9b894; stroke-width: 3; stroke-dasharray: 7 5; }
.k-mc-basket .rim { stroke: #b88b63; stroke-width: 8; }
.offcanvas-open .k-mc-basket svg { animation: k-mc-wobble 1.2s var(--k-ease) .3s both; transform-origin: 50% 100%; }
@keyframes k-mc-wobble { 0% { transform: scale(.7) rotate(-8deg); opacity: 0; } 50% { transform: scale(1.05) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.k-mc-ball { position: absolute; width: 34px; height: 34px; border-radius: 50%; left: 72px; top: 30px;
    background: repeating-linear-gradient(35deg, transparent 0 4px, rgba(255, 255, 255, .5) 4px 5px), radial-gradient(circle at 35% 30%, #a8d6cb, #72a499 70%);
    box-shadow: 0 4px 8px rgba(114, 164, 153, .4); }
.offcanvas-open .k-mc-ball { animation: k-mc-ballin 1.6s var(--k-ease) .7s both; }
@keyframes k-mc-ballin { 0% { opacity: 0; transform: translate(130px, -60px) rotate(0); } 60% { opacity: 1; transform: translate(0, -18px) rotate(-300deg); } 80% { transform: translate(0, 4px) rotate(-340deg); } 100% { opacity: 1; transform: none; } }
.k-mc-suggest { width: 100%; margin-top: 26px; padding-top: 18px; border-top: 2px dashed #f3d6cf; }
.k-mc-suggest-title { display: block; font-weight: 800; color: var(--k-muted); font-size: 14px; margin-bottom: 14px; }
.k-mc-suggest-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.k-mc-mini { display: flex; flex-direction: column; background: #fff; padding: 6px 6px 8px; border-radius: 4px; box-shadow: 0 6px 14px rgba(74, 63, 60, .1); transform: rotate(var(--tilt)); transition: transform .3s var(--k-ease); color: #3b302d; }
.k-mc-mini:hover { transform: rotate(0) translateY(-4px) scale(1.04); color: var(--k-primary); }
.k-mc-mini img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.k-mc-mini span { font-family: "Modesty", cursive; font-size: 22px; line-height: 1.1; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
    .offcanvas-open .k-mc-item, .offcanvas-open .k-mc-tag, .offcanvas-open .k-mc-basket svg, .offcanvas-open .k-mc-ball, .k-mc-yarn-ball { animation: none !important; }
}
