/* «Чёрная пятница» — the decorations of the theme (Настройки сайта → «Темы» → «Украшения»): black gifts with red ribbons,
   percent badges, price tags and ribbons, in our pink and the accent red. Only added over the usual look: nothing of it
   when the theme is off. */
:root {
    --bf-black: #111;
    --bf-red: #ED383E;
    --bf-pink: #FFB8B8;
    --bf-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 22C27 9 13 7 14 16c1 6 11 6 18 6zM32 22c5-13 19-15 18-6-1 6-11 6-18 6z' fill='%23ED383E'/%3E%3Crect x='6' y='22' width='52' height='13' rx='2' fill='%23111'/%3E%3Crect x='10' y='35' width='44' height='25' rx='2' fill='%23222'/%3E%3Crect x='28' y='22' width='8' height='38' fill='%23ED383E'/%3E%3Crect x='10' y='35' width='44' height='3' fill='%23000' opacity='.35'/%3E%3C/svg%3E");
    --bf-pct: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='%23111'/%3E%3Ccircle cx='32' cy='32' r='26' fill='none' stroke='%23ED383E' stroke-width='2' stroke-dasharray='4 3'/%3E%3Ccircle cx='23' cy='23' r='6' fill='none' stroke='%23FFB8B8' stroke-width='4'/%3E%3Ccircle cx='41' cy='41' r='6' fill='none' stroke='%23FFB8B8' stroke-width='4'/%3E%3Cpath d='M43 19L21 45' stroke='%23FFB8B8' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
    --bf-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M60 4C56 2 50 4 46 12' stroke='%23ED383E' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M5 35L31 9h24v24L29 59z' fill='%23111'/%3E%3Ccircle cx='45' cy='19' r='4.5' fill='%23FFB8B8'/%3E%3Ctext x='29' y='42' font-family='Arial' font-weight='700' font-size='15' fill='%23FFB8B8' text-anchor='middle' transform='rotate(-45 29 37)'%3E%25%3C/text%3E%3C/svg%3E");
    /* the ribbon of the footer: gift · percent · tag on black */
    --bf-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 30'%3E%3Crect width='132' height='30' fill='%23111'/%3E%3Cpath d='M0 3h132M0 27h132' stroke='%23ED383E' stroke-width='2' stroke-dasharray='6 4'/%3E%3Cg transform='translate(10 7)'%3E%3Crect x='1' y='5' width='14' height='4' fill='%23FFB8B8'/%3E%3Crect x='2' y='9' width='12' height='7' fill='%23FFB8B8'/%3E%3Crect x='7' y='5' width='2' height='11' fill='%23ED383E'/%3E%3Cpath d='M8 5C6 1 2 1 3 4M8 5c2-4 6-4 5-1' stroke='%23ED383E' stroke-width='1.6' fill='none'/%3E%3C/g%3E%3Ctext x='58' y='20' font-family='Arial' font-weight='700' font-size='14' fill='%23FFB8B8' text-anchor='middle'%3E%25%3C/text%3E%3Cg transform='translate(96 8)'%3E%3Cpath d='M1 8L8 1h8v8l-7 7z' fill='%23ED383E'/%3E%3Ccircle cx='12' cy='5' r='1.6' fill='%23111'/%3E%3C/g%3E%3C/svg%3E");
}

/* the strip above the menu: a gift and a percent at its sides, a red stitched edge */
.theme-strip { border-bottom: 2px dashed var(--bf-red); padding-top: 9px; padding-bottom: 9px; }
.theme-strip::before, .theme-strip::after { content: ""; display: inline-block; width: 20px; height: 20px; vertical-align: -5px; background: center / contain no-repeat; }
.theme-strip::before { background-image: var(--bf-gift); margin-right: 10px; }
.theme-strip::after { background-image: var(--bf-pct); margin-left: 10px; }

/* a black ribbon with a red stitch under the header */
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: var(--bf-black); border-bottom: 2px solid var(--bf-red); pointer-events: none; }

/* a gift beside the logo */
.header-logo { position: relative; }
.header-logo::after { content: ""; position: absolute; right: -24px; bottom: 0; width: 26px; height: 26px; background: var(--bf-gift) center / contain no-repeat; transform: rotate(12deg); pointer-events: none; }

/* the sale sticker — a black price tag with a hole and a red edge */
.sticker { clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); padding: 3px 7px 3px 13px; border-right: 3px solid var(--bf-red); }
.sticker::before { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--bf-pink); }

/* a «BLACK FRIDAY» ribbon across the corner of a sale photo: in the catalogue — bottom right, on the product — top left */
.card-photo[data-sale]::after, .gallery-main[data-sale]::after {
    content: "BLACK FRIDAY"; position: absolute; z-index: 3; width: 150px; text-align: center; pointer-events: none;
    background: var(--bf-black); color: var(--bf-pink); font: 800 10px/1 Manrope, Arial, sans-serif; letter-spacing: .12em; padding: 5px 0;
    border-top: 2px solid var(--bf-red); border-bottom: 2px solid var(--bf-red); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.card-photo[data-sale]::after { right: -42px; bottom: 20px; transform: rotate(-45deg); }
.gallery-main[data-sale]::after { left: -38px; top: 24px; transform: rotate(-45deg); width: 160px; font-size: 11px; }

/* headings — with a gift (not the product's name) */
h1:not(.p-title)::after { content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .35em; vertical-align: -.06em; background: var(--bf-gift) center / contain no-repeat; }

/* Муся holds a gift */
.musya-fab-wrap { position: relative; }
.musya-fab-wrap::after { content: ""; position: absolute; left: -8px; top: 38px; width: 28px; height: 28px; background: var(--bf-gift) center / contain no-repeat; transform: rotate(-14deg); pointer-events: none; }

/* the footer opens with a ribbon of gifts, percents and tags */
.footer { position: relative; border-top: 0; padding-top: 70px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: var(--bf-band) repeat-x left center / auto 30px; }

/* big screens: a pile of gifts and a tag in the bottom left corner, beside the page */
@media (min-width: 1500px) {
    body.theme-on::after {
        content: ""; position: fixed; left: 14px; bottom: 14px; width: 120px; height: 110px; z-index: 5; pointer-events: none;
        background: var(--bf-gift) 0 100% / 70px no-repeat, var(--bf-gift) 52px 100% / 54px no-repeat, var(--bf-gift) 18px 34px / 50px no-repeat, var(--bf-tag) 76px 8px / 40px no-repeat;
    }
}

/* phones: smaller ribbons */
@media (max-width: 600px) {
    .card-photo[data-sale]::after { width: 120px; right: -36px; bottom: 14px; font-size: 8px; padding: 4px 0; }
    .gallery-main[data-sale]::after { width: 130px; left: -34px; top: 18px; font-size: 9px; }
    .header-logo::after { width: 20px; height: 20px; right: -18px; }
}
