:root {
    --ctrls-main: #2e023f;
    --ctrls-accent: #6034fc;
    --ctrls-text: #fff;
    --ctrls-card: #111522;
    --ctrls-line: rgba(255, 255, 255, .11);
    --ctrls-line-bright: rgba(255, 255, 255, .24);
    --ctrls-muted: rgba(255, 255, 255, .68);
    --ctrls-dark: #070912;
    --ctrls-glow: 0 0 24px color-mix(in srgb, var(--ctrls-accent), transparent 52%);
    --ctrls-shadow: 0 28px 90px rgba(0, 0, 0, .58);
    --ctrls-bubble-size: 56px;
    --ctrls-panel-width: 390px;
    --ctrls-z: 9999;
    --ctrls-adminbar-offset: 0px;
}

body.admin-bar {
    --ctrls-adminbar-offset: 32px;
}

#ctrls-cart-backdrop,
#ctrls-cart-panel,
#ctrls-cart-bubble,
#ctrls-cart-panel *,
#ctrls-cart-bubble * {
    box-sizing: border-box;
}

/* ========================================================================== */
/* Fondo                                                                      */
/* ========================================================================== */

#ctrls-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: calc(var(--ctrls-z) - 2);
    background:
        radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--ctrls-accent), transparent 76%), transparent 38%),
        radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--ctrls-main), transparent 72%), transparent 42%),
        rgba(2, 4, 12, .72);
    -webkit-backdrop-filter: blur(11px) saturate(125%);
    backdrop-filter: blur(11px) saturate(125%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

#ctrls-cart-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(circle at center, #000, transparent 78%);
    mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

#ctrls-cart-backdrop.ctrls-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    #ctrls-cart-backdrop {
        background: rgba(2, 4, 12, .9);
    }
}

body.ctrls-cart-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* ========================================================================== */
/* Burbuja                                                                    */
/* ========================================================================== */

#ctrls-cart-bubble {
    position: fixed;
    z-index: var(--ctrls-z);
    display: inline-flex;
    width: var(--ctrls-bubble-size);
    height: var(--ctrls-bubble-size);
    min-width: var(--ctrls-bubble-size);
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--ctrls-accent), white 30%);
    border-radius: 18px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--ctrls-main), white 10%), var(--ctrls-main) 48%, color-mix(in srgb, var(--ctrls-main), black 30%));
    color: var(--ctrls-text);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, .42),
        0 0 0 1px rgba(255, 255, 255, .08) inset,
        0 0 28px color-mix(in srgb, var(--ctrls-accent), transparent 55%);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    --ctrls-bubble-base-y: 0px;
    transform: translateY(var(--ctrls-bubble-base-y));
    transition:
        transform .24s cubic-bezier(.2, .8, .2, 1),
        box-shadow .24s ease,
        opacity .24s ease,
        border-radius .24s ease,
        filter .24s ease;
    isolation: isolate;
}

#ctrls-cart-bubble::before {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .14), transparent 42%),
        radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--ctrls-accent), transparent 35%), transparent 58%);
    pointer-events: none;
}

#ctrls-cart-bubble::after {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -2;
    border: 1px solid color-mix(in srgb, var(--ctrls-accent), transparent 25%);
    border-radius: 22px;
    opacity: .5;
    pointer-events: none;
    animation: ctrls-bubble-frame 2.8s ease-in-out infinite;
}

.ctrls-cart-orbit {
    position: absolute;
    inset: -10px;
    z-index: -3;
    border: 1px dashed color-mix(in srgb, var(--ctrls-accent), transparent 35%);
    border-radius: 50%;
    opacity: .55;
    pointer-events: none;
    animation: ctrls-orbit-spin 9s linear infinite;
}

.ctrls-cart-orbit::before,
.ctrls-cart-orbit::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ctrls-accent);
    box-shadow: 0 0 12px var(--ctrls-accent);
}

.ctrls-cart-orbit::before {
    top: 4px;
    left: 50%;
}

.ctrls-cart-orbit::after {
    right: 5px;
    bottom: 9px;
}

#ctrls-cart-bubble:hover {
    border-radius: 21px;
    filter: brightness(1.08) saturate(1.12);
    transform: translateY(calc(var(--ctrls-bubble-base-y) - 3px)) scale(1.035);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, .48),
        0 0 0 1px rgba(255, 255, 255, .13) inset,
        0 0 38px color-mix(in srgb, var(--ctrls-accent), transparent 34%);
}

#ctrls-cart-bubble:active {
    transform: translateY(var(--ctrls-bubble-base-y)) scale(.95);
}

#ctrls-cart-bubble.ctrls-active {
    border-radius: 50%;
    box-shadow:
        0 16px 42px rgba(0, 0, 0, .46),
        0 0 0 2px color-mix(in srgb, var(--ctrls-accent), transparent 42%),
        0 0 42px color-mix(in srgb, var(--ctrls-accent), transparent 26%);
}

#ctrls-cart-bubble.ctrls-active .ctrls-cart-orbit {
    animation-duration: 2.4s;
    opacity: .9;
}

#ctrls-cart-bubble:focus-visible,
.ctrls-cart-close:focus-visible,
.ctrls-cart-button:focus-visible,
#ctrls-mini-cart a:focus-visible {
    outline: 3px solid var(--ctrls-accent);
    outline: 3px solid color-mix(in srgb, var(--ctrls-accent), white 32%);
    outline-offset: 4px;
}

#ctrls-cart-bubble.ctrls-cart-hidden-empty {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(var(--ctrls-bubble-base-y)) scale(.78);
}

.ctrls-cart-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 43%;
    height: 43%;
    align-items: center;
    justify-content: center;
    line-height: 0;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ctrls-text), transparent 45%));
}

.ctrls-cart-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ctrls-cart-count {
    position: absolute;
    top: -9px;
    right: -9px;
    z-index: 5;
    display: inline-flex;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ctrls-dark);
    border-radius: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ctrls-accent), white 18%), var(--ctrls-accent));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow:
        0 7px 18px rgba(0, 0, 0, .36),
        0 0 18px color-mix(in srgb, var(--ctrls-accent), transparent 36%);
}

.ctrls-cart-count[data-count="0"] {
    display: none;
}

.ctrls-cart-count.ctrls-pulse {
    animation: ctrls-count-pop .42s cubic-bezier(.2, .9, .2, 1.25);
}

/* ========================================================================== */
/* Panel                                                                      */
/* ========================================================================== */

#ctrls-cart-panel {
    position: fixed;
    z-index: calc(var(--ctrls-z) - 1);
    width: min(var(--ctrls-panel-width), calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(84dvh, 700px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ctrls-accent), transparent 54%);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .055), transparent 28%),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ctrls-accent), transparent 78%), transparent 36%),
        linear-gradient(180deg, color-mix(in srgb, var(--ctrls-card), white 2%), color-mix(in srgb, var(--ctrls-card), black 8%));
    color: var(--ctrls-text);
    box-shadow:
        var(--ctrls-shadow),
        0 0 0 1px rgba(255, 255, 255, .045) inset,
        0 0 48px color-mix(in srgb, var(--ctrls-accent), transparent 76%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    backdrop-filter: blur(22px) saturate(125%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    --ctrls-panel-base-y: 0px;
    --ctrls-shift-x: 0px;
    --ctrls-shift-y: 0px;
    transform: translate(var(--ctrls-shift-x), calc(var(--ctrls-panel-base-y) + var(--ctrls-shift-y) + 14px)) scale(.965);
    transform-origin: center;
    transition:
        opacity .28s ease,
        visibility .28s ease,
        transform .32s cubic-bezier(.2, .8, .2, 1);
    isolation: isolate;
}

#ctrls-cart-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    z-index: 4;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ctrls-accent), color-mix(in srgb, var(--ctrls-accent), white 42%), var(--ctrls-accent), transparent);
    box-shadow: 0 0 18px var(--ctrls-accent);
    pointer-events: none;
}

#ctrls-cart-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .22;
    background:
        repeating-linear-gradient(180deg, transparent 0, transparent 5px, rgba(255, 255, 255, .025) 6px),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, .025), transparent);
    animation: ctrls-panel-scan 8s linear infinite;
}

#ctrls-cart-panel > * {
    position: relative;
    z-index: 2;
}

#ctrls-cart-panel.ctrls-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(var(--ctrls-shift-x), calc(var(--ctrls-panel-base-y) + var(--ctrls-shift-y))) scale(1);
}

.ctrls-cart-head {
    display: flex;
    min-height: 78px;
    padding: 15px 15px 14px 19px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--ctrls-line);
    background:
        linear-gradient(105deg, color-mix(in srgb, var(--ctrls-main), black 12%), color-mix(in srgb, var(--ctrls-main), transparent 18%)),
        var(--ctrls-main);
}

.ctrls-cart-head::after {
    content: "";
    position: absolute;
    right: 64px;
    bottom: 0;
    left: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--ctrls-accent), transparent 72%);
    box-shadow: 0 0 10px color-mix(in srgb, var(--ctrls-accent), transparent 20%);
}

.ctrls-cart-heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.ctrls-cart-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: color-mix(in srgb, var(--ctrls-text), transparent 32%);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.ctrls-cart-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4dff9a;
    box-shadow: 0 0 10px #4dff9a;
    animation: ctrls-status-pulse 1.8s ease-in-out infinite;
}

.ctrls-cart-head strong {
    overflow: hidden;
    color: var(--ctrls-text);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.02em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ctrls-cart-close {
    position: relative;
    display: inline-flex;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ctrls-accent), transparent 52%);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
    color: var(--ctrls-text);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ctrls-cart-close::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--ctrls-accent), transparent 38%), transparent 68%);
    opacity: 0;
    transition: opacity .2s ease;
}

.ctrls-cart-close:hover {
    border-color: var(--ctrls-accent);
    background: color-mix(in srgb, var(--ctrls-accent), transparent 72%);
    box-shadow: 0 0 22px color-mix(in srgb, var(--ctrls-accent), transparent 55%);
    transform: rotate(90deg) scale(1.04);
}

.ctrls-cart-close:hover::before {
    opacity: 1;
}

.ctrls-cart-close svg {
    position: relative;
    z-index: 2;
    width: 18px;
    height: 18px;
}

.ctrls-cart-close path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.ctrls-cart-body {
    max-height: calc(min(84dvh, 700px) - 150px);
    padding: 11px 12px 12px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ctrls-accent) transparent;
}

.ctrls-cart-body::-webkit-scrollbar {
    width: 8px;
}

.ctrls-cart-body::-webkit-scrollbar-track {
    background: transparent;
}

.ctrls-cart-body::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(var(--ctrls-accent), color-mix(in srgb, var(--ctrls-accent), white 24%));
    background-clip: content-box;
}

.ctrls-cart-footer {
    display: flex;
    padding: 12px;
    gap: 10px;
    border-top: 1px solid var(--ctrls-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .14)),
        color-mix(in srgb, var(--ctrls-card), black 4%);
}

.ctrls-cart-button {
    position: relative;
    display: inline-flex;
    min-height: 45px;
    flex: 1;
    padding: 11px 13px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ctrls-accent), transparent 30%);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
    color: var(--ctrls-text) !important;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .01em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform .2s ease, filter .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ctrls-cart-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -55%;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .27), transparent);
    transform: skewX(-20deg);
    transition: left .45s ease;
}

.ctrls-cart-button:hover {
    border-color: var(--ctrls-accent);
    color: var(--ctrls-text) !important;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .26), 0 0 18px color-mix(in srgb, var(--ctrls-accent), transparent 68%);
}

.ctrls-cart-button:hover::before {
    left: 120%;
}

.ctrls-cart-button-primary {
    border-color: color-mix(in srgb, var(--ctrls-accent), white 18%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--ctrls-accent), white 12%), var(--ctrls-accent) 55%, color-mix(in srgb, var(--ctrls-accent), black 18%));
    box-shadow: 0 0 22px color-mix(in srgb, var(--ctrls-accent), transparent 70%);
}

/* ========================================================================== */
/* Mini carrito WooCommerce                                                   */
/* ========================================================================== */

#ctrls-mini-cart,
#ctrls-mini-cart * {
    box-sizing: border-box;
}

#ctrls-mini-cart ul,
#ctrls-mini-cart .woocommerce-mini-cart {
    margin: 0;
    padding: 0;
    list-style: none;
}

#ctrls-mini-cart .woocommerce-mini-cart__buttons {
    display: none !important;
}

#ctrls-mini-cart .woocommerce-mini-cart-item {
    position: relative;
    display: grid;
    min-height: 96px;
    margin: 0 0 9px;
    padding: 10px 39px 10px 10px;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 44%),
        rgba(255, 255, 255, .024);
    color: var(--ctrls-text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

#ctrls-mini-cart .woocommerce-mini-cart-item::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 2px;
    border-radius: 99px;
    background: var(--ctrls-accent);
    box-shadow: 0 0 12px var(--ctrls-accent);
    opacity: .65;
}

#ctrls-mini-cart .woocommerce-mini-cart-item:hover {
    border-color: color-mix(in srgb, var(--ctrls-accent), transparent 52%);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--ctrls-accent), transparent 88%), transparent 50%),
        rgba(255, 255, 255, .035);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2), 0 0 22px color-mix(in srgb, var(--ctrls-accent), transparent 82%);
    transform: translateY(-1px);
}

#ctrls-mini-cart .woocommerce-mini-cart-item > a:not(.remove):not(.remove_from_cart_button) {
    display: grid;
    min-width: 0;
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--ctrls-text) !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none !important;
}

#ctrls-mini-cart .woocommerce-mini-cart-item a img {
    display: block;
    width: 70px;
    height: 70px;
    margin: 0;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 13px;
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

#ctrls-mini-cart .woocommerce-mini-cart-item .quantity,
#ctrls-mini-cart .woocommerce-mini-cart-item .variation {
    grid-column: 2;
    margin: 2px 0 0;
    color: var(--ctrls-muted);
    font-size: 12px;
    line-height: 1.35;
}

#ctrls-mini-cart .woocommerce-mini-cart-item .quantity .amount {
    color: color-mix(in srgb, var(--ctrls-text), var(--ctrls-accent) 18%);
    font-weight: 800;
}

#ctrls-mini-cart .woocommerce-mini-cart-item .variation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 6px;
}

#ctrls-mini-cart .woocommerce-mini-cart-item .variation dt,
#ctrls-mini-cart .woocommerce-mini-cart-item .variation dd,
#ctrls-mini-cart .woocommerce-mini-cart-item .variation p {
    margin: 0;
    padding: 0;
}

#ctrls-mini-cart .woocommerce-mini-cart-item a.remove,
#ctrls-mini-cart .woocommerce-mini-cart-item a.remove_from_cart_button {
    position: absolute;
    top: 10px;
    right: 9px;
    z-index: 3;
    display: inline-flex !important;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    background: rgba(255, 255, 255, .055) !important;
    color: var(--ctrls-text) !important;
    font-size: 18px;
    line-height: 1;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#ctrls-mini-cart .woocommerce-mini-cart-item a.remove:hover,
#ctrls-mini-cart .woocommerce-mini-cart-item a.remove_from_cart_button:hover {
    border-color: #ff4d75;
    background: rgba(255, 77, 117, .18) !important;
    color: #ff8ca6 !important;
    box-shadow: 0 0 16px rgba(255, 77, 117, .28);
    transform: scale(1.06);
}

#ctrls-mini-cart .woocommerce-mini-cart__total {
    position: relative;
    display: flex;
    margin: 6px 0 0;
    padding: 16px 10px 8px;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--ctrls-line);
    color: var(--ctrls-text);
    font-size: 14px;
}

#ctrls-mini-cart .woocommerce-mini-cart__total::before {
    content: "TOTAL //";
    position: absolute;
    top: 4px;
    left: 10px;
    color: var(--ctrls-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
}

#ctrls-mini-cart .woocommerce-mini-cart__total strong {
    font-weight: 850;
}

#ctrls-mini-cart .woocommerce-mini-cart__total .amount {
    color: color-mix(in srgb, var(--ctrls-accent), white 35%);
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 0 12px color-mix(in srgb, var(--ctrls-accent), transparent 58%);
}

#ctrls-mini-cart .woocommerce-mini-cart__empty-message {
    position: relative;
    margin: 0;
    padding: 68px 22px 42px;
    color: var(--ctrls-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

#ctrls-mini-cart .woocommerce-mini-cart__empty-message::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 50%;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ctrls-accent);
    border-radius: 11px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--ctrls-accent), transparent 72%), transparent),
        rgba(255, 255, 255, .03);
    box-shadow: 0 0 20px color-mix(in srgb, var(--ctrls-accent), transparent 62%);
    transform: translateX(-50%) rotate(45deg);
}

#ctrls-mini-cart .woocommerce-mini-cart__empty-message::after {
    content: "+";
    position: absolute;
    top: 29px;
    left: 50%;
    color: var(--ctrls-text);
    font-size: 22px;
    font-weight: 300;
    transform: translateX(-50%);
}

#ctrls-cart-panel.ctrls-cart-is-empty .ctrls-cart-footer {
    display: none;
}

/* ========================================================================== */
/* Animaciones                                                                */
/* ========================================================================== */

@keyframes ctrls-bubble-frame {
    0%, 100% { opacity: .3; transform: scale(.97); }
    50% { opacity: .75; transform: scale(1.04); }
}

@keyframes ctrls-orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes ctrls-count-pop {
    0% { transform: scale(.65) rotate(-8deg); }
    60% { transform: scale(1.28) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes ctrls-status-pulse {
    0%, 100% { opacity: .55; transform: scale(.85); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes ctrls-panel-scan {
    0% { transform: translateY(-12%); }
    100% { transform: translateY(12%); }
}

/* ========================================================================== */
/* Responsive                                                                 */
/* ========================================================================== */

@media (max-width: 782px) {
    body.admin-bar {
        --ctrls-adminbar-offset: 46px;
    }
}

@media (max-width: 767px) {
    :root {
        --ctrls-bubble-size: min(var(--ctrls-bubble-size), 58px);
    }

    #ctrls-cart-panel {
        border-radius: 22px;
    }

    .ctrls-cart-head {
        min-height: 74px;
    }

    .ctrls-cart-body {
        max-height: calc(min(78dvh, 680px) - 146px);
        padding: 10px;
    }

    .ctrls-cart-footer {
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .ctrls-cart-button {
        min-height: 44px;
        font-size: 12px;
    }

    #ctrls-mini-cart .woocommerce-mini-cart-item {
        min-height: 91px;
        grid-template-columns: 64px minmax(0, 1fr);
    }

    #ctrls-mini-cart .woocommerce-mini-cart-item > a:not(.remove):not(.remove_from_cart_button) {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    #ctrls-mini-cart .woocommerce-mini-cart-item a img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 420px) {
    .ctrls-cart-kicker {
        font-size: 8px;
        letter-spacing: .1em;
    }

    .ctrls-cart-head strong {
        font-size: 16px;
    }

    .ctrls-cart-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ctrls-cart-backdrop,
    #ctrls-cart-panel,
    #ctrls-cart-bubble,
    #ctrls-cart-panel::after,
    #ctrls-cart-bubble::after,
    .ctrls-cart-orbit,
    .ctrls-cart-kicker i,
    .ctrls-cart-close,
    .ctrls-cart-button,
    .ctrls-cart-count {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================================================== */
/* Aislamiento v2.2: evita mezcla con fragmentos o estilos antiguos            */
/* ========================================================================== */

#ctrls-cart-panel.ctrls-cart-future,
#ctrls-cart-bubble.ctrls-cart-future,
#ctrls-cart-backdrop.ctrls-cart-future {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#ctrls-mini-cart {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#ctrls-mini-cart > .ctrls-cart-fragment {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Un fragmento legado nunca debe dibujarse encima del fragmento actual.
   El JavaScript lo convierte inmediatamente al formato nuevo si la página
   completa venía desde una caché antigua. */
#ctrls-mini-cart > .widget_shopping_cart_content {
    display: none !important;
}

#ctrls-cart-panel.ctrls-cart-future .woocommerce-mini-cart,
#ctrls-cart-panel.ctrls-cart-future .woocommerce-mini-cart-item,
#ctrls-cart-panel.ctrls-cart-future .woocommerce-mini-cart__total,
#ctrls-cart-panel.ctrls-cart-future .woocommerce-mini-cart__empty-message {
    float: none !important;
    clear: both !important;
}

#ctrls-cart-panel.ctrls-cart-future .woocommerce-mini-cart::before,
#ctrls-cart-panel.ctrls-cart-future .woocommerce-mini-cart::after {
    display: none !important;
    content: none !important;
}
