.bf-popup {
    box-sizing: border-box;
    width: min(38rem, calc(100% - 1.5rem));
    max-height: calc(100% - 1.5rem);
    overflow: auto;
    padding: 0;
    border: 1px solid #655e91;
    border-radius: 1.05rem;
    background: #151c2e;
    color: #f0ecff;
    box-shadow: 0 18px 80px #000c;
}

.bf-popup::backdrop {
    background: #080b17b3;
}

.bf-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
    padding: clamp(1rem, 4vw, 1.6rem);
    background: radial-gradient(ellipse at 82% 0, #554481 0, transparent 67%), #24203a;
    border-bottom: 1px solid #463d5e;
}

.bf-popup-header h2 { margin: 0; font-size: clamp(1.32rem, 5vw, 1.95rem); }
.bf-popup-header p { margin: .25rem 0 0; color: #d9d0ee; }

.bf-popup-close {
    flex: 0 0 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #807397;
    border-radius: 50%;
    background: #161929;
    color: #f0ecff;
    font-size: 1.55rem;
    line-height: 1;
}

.bf-popup-close:focus-visible { outline: 2px solid #c3b7ff; outline-offset: 2px; }
.bf-popup-photos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.65rem 1rem .9rem;
    background: radial-gradient(ellipse at center, #292c56, transparent 66%);
}
.bf-popup-photos img {
    width: min(36%, 8rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border: 3px solid #c3b7ff;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 10px 22px #090e22;
    transform: rotate(-5deg);
}
.bf-popup-photos img + img { transform: translateY(.3rem) rotate(5deg); }
.bf-popup-action { padding: .8rem 1rem 1.35rem; text-align: center; }
.bf-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .9rem 1.5rem;
    padding: clamp(.95rem, 2.5vw, 1.55rem);
    margin-bottom: 1.1rem;
    border: 1px solid #655e91;
    border-left: 4px solid #b4a5ff;
    border-radius: .9rem;
    background: radial-gradient(ellipse at 75% 15%, #3b305c 0, transparent 55%), linear-gradient(115deg,#241c3a,#141827 65%,#223251);
    color: #f0ecff;
}
.bf-banner-copy { display: flex; align-items: center; gap: .8rem 1rem; }
.bf-badge {
    flex: none;
    padding: .55rem .65rem;
    border-radius: .55rem;
    background: #c3b7ff;
    color: #211633;
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1;
}
.bf-banner-title { display: block; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.bf-button.button { background: #c3b7ff; color: #211633; border-color: #c3b7ff; }
.bf-button.button:hover { background: #ded5ff; color: #211633; }
.bf-catalog-hero h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 3rem); }
.bf-catalog-hero p { margin: .25rem 0 0; }
.bf-offer-card h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bf-previous { display: block; margin-top: .4rem; color: var(--muted); }
.bf-previous del { white-space: nowrap; color: var(--ink); font-weight: 650; }
.product-content .bf-sale-price { margin-top: .2rem; color: #d0c5ff; }
.showcase-details { display: block; margin: -.35rem 0 .75rem; color: var(--muted); }
.christmas-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1.4rem;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: clamp(2.7rem,6vw,4rem) clamp(1.1rem,4vw,2.45rem) clamp(1.1rem,3.5vw,2rem);
    border: 1px solid #87643f;
    border-radius: 1rem;
    background: radial-gradient(circle at 88% 12%,#67513666,transparent 48%), linear-gradient(110deg,#132921,#122525 58%,#283447);
    color: #fff6e6;
}
.christmas-copy { z-index: 1; }
.christmas-copy h2 { margin: 0; font-size: clamp(1.65rem,5vw,3rem); line-height: 1.08; color: #fff6e6; }
.christmas-copy p { margin: .55rem 0 0; color: #e4d6bd; }
.christmas-garland {
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    display: flex;
    justify-content: space-around;
    gap: .35rem;
    height: 1.25rem;
    border-bottom: 2px solid #d5b67a;
    border-radius: 0 0 50% 50%;
    transform: rotate(-2deg);
}
.christmas-garland i {
    flex: 0 0 clamp(.72rem,2.7vw,1.5rem);
    height: clamp(.86rem,3.3vw,1.8rem);
    margin-top: .95rem;
    background: linear-gradient(135deg,#edaf98,#a33144);
    clip-path: polygon(0 0,100% 0,50% 100%);
}
.christmas-garland i:nth-child(3n+2) { background: linear-gradient(125deg,#ffe7a8,#ac7540); }
.christmas-garland i:nth-child(3n) { background: linear-gradient(125deg,#b9d6c4,#609683); }
.christmas-garland i:nth-child(1), .christmas-garland i:last-child { margin-top: .38rem; }
.christmas-garland i:nth-child(2), .christmas-garland i:nth-last-child(2) { margin-top: .68rem; }
.christmas-ornaments {
    display: flex;
    flex: none;
    align-items: flex-start;
    gap: clamp(.3rem,1.7vw,1.1rem);
    height: clamp(3rem,8vw,6.6rem);
}
.christmas-ornaments i {
    position: relative;
    display: block;
    width: clamp(1.2rem,4.3vw,3.4rem);
    aspect-ratio: 1;
    margin-top: .8rem;
    border-radius: 50%;
    box-shadow: 0 .6rem 1.35rem #070f18a3;
    background: radial-gradient(circle at 31% 26%,#ffeac1,#c28e49 55%,#694027);
}
.christmas-ornaments i:nth-child(2) {
    width: clamp(1.3rem,4.7vw,3.8rem);
    margin-top: clamp(1.35rem,3vw,2.4rem);
    background: radial-gradient(circle at 32% 29%,#ffcfcd,#c14b60 55%,#722537);
}
.christmas-ornaments i:nth-child(3) {
    width: clamp(1rem,3.4vw,2.8rem);
    margin-top: .25rem;
    background: radial-gradient(circle at 33% 28%,#e1f4ff,#79a4d8 55%,#3d5681);
}
.christmas-ornaments i::before, .christmas-ornaments i::after {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 32%;
    height: .2rem;
    border-radius: .15rem .15rem 0 0;
    background: #d8bb81;
    content: "";
    transform: translateX(-50%);
}
.christmas-ornaments i::after { bottom: calc(100% + .2rem); width: 1px; height: 1.15rem; }
.christmas-ornaments i:nth-child(2)::after { height: 2.2rem; }

@media (prefers-reduced-motion: no-preference) {
    .bf-popup:popover-open { animation: bf-popup-enter 260ms ease-out both; }
    .bf-popup:popover-open::backdrop { animation: bf-backdrop-enter 220ms ease-out both; }
}

@keyframes bf-popup-enter {
    from { opacity: 0; transform: translateY(12px) scale(.975); }
    to { opacity: 1; transform: none; }
}

@keyframes bf-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}
