:root {
    --mban-shadow: 0 7px 18px rgba(15, 23, 42, .18);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.single-product div.product,
.single-product div.product .woocommerce-product-gallery {
    position: relative;
}

.mban-badges {
    position: absolute;
    top: 12px;
    z-index: 18;
    display: flex;
    max-width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    pointer-events: none;
}

.mban-position-left { left: 12px; }
.mban-position-right { right: 12px; align-items: flex-end; }
.mban-fallback-host { display: none !important; }

.mban-badge {
    --mban-bg: #155eef;
    --mban-color: #fff;
    --mban-accent: #8cc8ff;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    min-height: 32px;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 7px 13px;
    color: var(--mban-color) !important;
    background: var(--mban-bg);
    border: 1px solid rgba(255, 255, 255, .24);
    border-color: color-mix(in srgb, var(--mban-accent) 68%, transparent);
    box-shadow: var(--mban-shadow);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .01em;
    text-transform: none;
    transform-origin: center;
}

.mban-badge b {
    position: relative;
    z-index: 2;
    overflow: hidden;
    color: inherit !important;
    font: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mban-icon {
    position: relative;
    z-index: 2;
    display: inline-grid;
    width: 17px;
    min-width: 17px;
    height: 17px;
    place-items: center;
    color: inherit;
    font-size: 16px;
    font-style: normal;
    line-height: 1;
}

.mban-icon:empty { display: none; }
.mban-icon svg { display: block; width: 100%; height: 100%; fill: currentColor; }

.mban-shape-pill { border-radius: 999px; }
.mban-shape-flag {
    padding-right: 22px;
    border-radius: 5px 1px 1px 5px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}
.mban-position-right .mban-shape-flag {
    padding-right: 13px;
    padding-left: 22px;
    border-radius: 1px 5px 5px 1px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
}
.mban-shape-ribbon {
    padding: 8px 17px;
    border-radius: 4px;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}
.mban-shape-burst {
    width: 76px;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 11px 7px;
    border: 0;
    border-radius: 0;
    text-align: center;
    clip-path: polygon(50% 0,61% 10%,75% 5%,82% 18%,95% 25%,90% 39%,100% 50%,90% 61%,95% 75%,82% 82%,75% 95%,61% 90%,50% 100%,39% 90%,25% 95%,18% 82%,5% 75%,10% 61%,0 50%,10% 39%,5% 25%,18% 18%,25% 5%,39% 10%);
}
.mban-shape-burst b { max-width: 62px; white-space: normal; }

.mban-animation-shine::after {
    position: absolute;
    z-index: 1;
    top: -60%;
    left: -45%;
    width: 30%;
    height: 220%;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mban-accent) 70%, white), transparent);
    content: "";
    opacity: .62;
    transform: rotate(18deg);
    animation: mban-shine 3.4s ease-in-out infinite;
}
.mban-animation-pulse { animation: mban-pulse 2.3s ease-in-out infinite; }
.mban-animation-float { animation: mban-float 2.8s ease-in-out infinite; }

@keyframes mban-shine { 0%, 55% { left: -45%; } 82%, 100% { left: 125%; } }
@keyframes mban-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes mban-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.single-product .woocommerce-product-gallery .mban-badge {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .mban-badges { top: 8px; max-width: calc(100% - 16px); gap: 5px; }
    .mban-position-left { left: 8px; }
    .mban-position-right { right: 8px; }
    .mban-badge,
    .single-product .woocommerce-product-gallery .mban-badge {
        min-height: 28px;
        padding: 6px 10px;
        font-size: 11px;
    }
    .mban-shape-burst { width: 64px; min-height: 64px; padding: 9px 6px; }
    .mban-icon { width: 15px; min-width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .mban-badge, .mban-badge::after { animation: none !important; }
}

