/*
Theme Name:   Alkokreator
Theme URI:    https://Alkokreator.pl
Author:       Alkokreator.pl
Author URI:   https://Alkokreator.pl
Description:  Dedykowany motyw dla serwisu Alkokreator – Konfigurator Piw. Zaprojektowany do współpracy z wtyczką alkokreator.
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  Alkokreator
Tags:         custom-menu, featured-images, full-width-template
*/

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Zmienne CSS ────────────────────────────────────────────────────────────── */
:root {
    --bm-color-bg:        #F4F3EF;
    --bm-color-surface:   #FFFFFF;
    --bm-color-dark:      #202020;
    --bm-color-mid:       #3D3D3D;
    --bm-color-muted:     #7F7E7E;
    --bm-color-border:    #D6D6D6;
    --bm-color-accent:    #D4A843;

    --bm-font-body:       'Catamaran', sans-serif;
    --bm-font-heading:    'Barlow Condensed', sans-serif;

    --bm-radius:          8px;
    --bm-container:       1340px;
    --bm-header-h:        88px;
    --bm-transition:      0.2s ease;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bm-color-bg);
    color: var(--bm-color-dark);
    font-family: var(--bm-font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--bm-color-dark);
    text-decoration: none;
    transition: color var(--bm-transition);
}

a:hover {
    color: var(--bm-color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Kontener ───────────────────────────────────────────────────────────────── */
.bm-container {
    width: 100%;
    max-width: var(--bm-container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ── Kotwice sekcji (scroll z menu górnego) ───────────────────────────────────── */
#oferta,
#proces,
#doswiadczenie {
    scroll-margin-top: var(--bm-header-h);
}

/* ── Nawigacja główna ───────────────────────────────────────────────────────── */
.bm-main-nav {
    display: flex;
    width: 100%;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--bm-color-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bm-main-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
    position: relative;
    z-index: 99;
}

.bm-main-nav__brand {
    color: #fff;
    font-family: var(--bm-font-heading);
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    text-decoration: none;
}

.bm-main-nav__brand:hover {
    color: #fff;
}

.bm-main-nav__logo {
    height: 40px;
    width: auto;
    display: block;
}

.bm-main-nav__right {
    display: flex;
    align-items: center;
    gap: 56px;
}

.bm-main-nav__links {
    display: flex;
    align-items: center;
    gap: 56px;
}

.bm-main-nav__link {
    color: #fff;
    font-family: var(--bm-font-heading);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.32px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity var(--bm-transition);
}

.bm-main-nav__link:hover {
    color: #fff;
    opacity: 0.75;
}

.bm-main-nav__btn {
    display: flex;
    height: 40px;
    padding: 10px 40px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    border: 1px solid #fff;
    color: #fff;
    font-family: var(--bm-font-heading);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: 0.48px;
    text-decoration: none;
    transition: background var(--bm-transition), color var(--bm-transition);
    white-space: nowrap;
}

.bm-main-nav__btn:hover {
    background: #fff;
    color: var(--bm-color-dark);
}

.bm-main-nav__icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bm-main-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: opacity var(--bm-transition);
}

.bm-main-nav__icon:hover {
    opacity: 0.75;
}

.bm-user-avatar {
    border-radius: 50%;
    background: var(--bm-color-dark);
    color: #fff;
    border: 1.5px solid #fff;
    font-family: 'Catamaran', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    box-sizing: border-box;
}

.bm-user-avatar:hover {
    border-color: #5695C9;
    color: #5695C9;
}

/* ── Hamburger toggle ────────────────────────────────────────────────────────── */
.bm-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity var(--bm-transition);
}
.bm-nav-toggle:hover { opacity: 0.75; }
.bm-nav-toggle__close { display: none; }
.bm-nav-toggle[aria-expanded="true"] .bm-nav-toggle__open  { display: none; }
.bm-nav-toggle[aria-expanded="true"] .bm-nav-toggle__close { display: block; }

/* ── Mobile nav drawer ───────────────────────────────────────────────────────── */
.bm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bm-color-dark);
    z-index: 98;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.bm-nav.is-open {
    pointer-events: auto;
    opacity: 1;
}
.bm-nav__inner {
    width: 100%;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.bm-nav__link {
    color: #fff;
    font-family: var(--bm-font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.56px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 28px 0;
    width: 100%;
    text-align: center;
    transition: opacity var(--bm-transition);
}
.bm-nav__link:hover { opacity: 0.6; }
.bm-nav__cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 56px;
    margin-top: 76px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-family: var(--bm-font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.51px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--bm-transition), color var(--bm-transition);
}
.bm-nav__cta:hover {
    background: #fff;
    color: var(--bm-color-dark);
}

/* ── Treść główna ───────────────────────────────────────────────────────────── */
.bm-site-main {
    flex: 1;
    /* padding-block: 40px; */
    padding: 0;
}

/* Strony bez paddingu (np. fullwidth) */
.bm-site-main--flush {
    padding-block: 0;
}

/* ── Stopka ─────────────────────────────────────────────────────────────────── */
.bm-site-footer {
    background: var(--bm-color-dark);
    color: rgba(255,255,255,.65);
    font-size: 14px;
    padding-block: 32px;
    margin-top: auto;
}

.bm-site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bm-site-footer a {
    color: rgba(255,255,255,.65);
}

.bm-site-footer a:hover {
    color: #fff;
}

.bm-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
}

/* ── Przyciski ──────────────────────────────────────────────────────────────── */
.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: var(--bm-radius);
    border: none;
    font-family: var(--bm-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--bm-transition), background var(--bm-transition);
    white-space: nowrap;
}

.bm-btn--primary {
    background: var(--bm-color-dark);
    color: #fff;
}

.bm-btn--primary:hover {
    opacity: .82;
    color: #fff;
}

.bm-btn--ghost {
    background: transparent;
    color: var(--bm-color-dark);
    border: 1.5px solid var(--bm-color-border);
}

.bm-btn--ghost:hover {
    border-color: var(--bm-color-dark);
    color: var(--bm-color-dark);
}

.bm-btn--sm {
    height: 32px;
    padding: 0 14px;
    font-size: 14px;
}

/* ── Strona treści (page/post) ──────────────────────────────────────────────── */
.bm-entry {
    background: var(--bm-color-surface);
    border-radius: var(--bm-radius);
    padding: 40px 48px;
    max-width: 860px;
    margin-inline: auto;
}

.bm-entry__title {
    font-family: var(--bm-font-heading);
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--bm-color-dark);
}

.bm-entry__content {
    line-height: 1.65;
    color: var(--bm-color-mid);
}

.bm-entry__content h2,
.bm-entry__content h3,
.bm-entry__content h4 {
    font-family: var(--bm-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bm-color-dark);
    margin: 28px 0 12px;
}

.bm-entry__content h2 { font-size: 28px; }
.bm-entry__content h3 { font-size: 22px; }
.bm-entry__content h4 { font-size: 18px; }

.bm-entry__content p  { margin-bottom: 16px; }
.bm-entry__content ul,
.bm-entry__content ol { margin: 0 0 16px 24px; }

/* ── Strona frontowa – Hero ──────────────────────────────────────────────────── */
.bm-front-hero {
    position: relative;
    overflow: hidden;
    height: 890px;
    align-self: stretch;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.00) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.35) 100%),
        url('assets/images/hero.webp') lightgray 0px -2.059px / 100% 107.878% no-repeat;
    display: flex;
    align-items: center;
    /* background-position-y: -300px; */
}

.bm-front-hero__inner {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

.bm-front-hero__content {
    display: flex;
    width: 662px;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
}

.bm-front-hero__text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

.bm-front-hero__headline {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 72px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    color: #FFF;
    margin: 0;
}

.bm-front-hero__headline strong {
    color: #5695C9;
    font-weight: 700;
}

.bm-front-hero__desc {
    color: #FFF;
    font-family: "Catamaran", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.32px;
}

.bm-front-hero__cta {
    display: flex;
    width: 261px;
    height: 56px;
    padding: 20px 102px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background: #5695C9;
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.32px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.bm-front-hero__cta:hover {
    opacity: 0.88;
    color: #FFF;
}

.bm-front-hero__ticker {
    position: absolute;
    bottom: 140px;
    left: -6%;
    width: 112%;
    display: inline-flex;
    transform: rotate(-6.166deg);
    padding: 6.818px 0 10.438px 82.126px;
    justify-content: flex-start;
    align-items: center;
    background: #FFF;
    overflow: hidden;
}

.bm-front-hero__ticker-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: bm-ticker-scroll var(--bm-ticker-duration, 30s) linear infinite;
    will-change: transform;
}

.bm-front-hero__ticker-item {
    flex-shrink: 0;
    color: #1B1B1B;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.48px;
    text-transform: uppercase;
}

@keyframes bm-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.bm-front-hero__sub {
    font-size: 17px;
    color: var(--bm-color-muted);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 32px;
}

.bm-front-configurator {
    padding-block: 48px;
}

/* ── Sekcja Features (Twoje piwo, Twoje zasady) ──────────────────────────────── */
.bm-features {
    background: #FFF;
}

.bm-features__container {
    display: flex;
    padding: 96px 24px;
    max-width: 1240px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-inline: auto;
}

.bm-features__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    align-self: stretch;
}

.bm-features__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 80px;
    align-self: stretch;
}

.bm-features__header {
    width: 100%;
    text-align: center;
}

.bm-features__heading {
    color: #1B1B1B;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.bm-features__subtext {
    color: #5C5C5C;
    font-family: "Catamaran", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.32px;
}

.bm-features__cards {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    gap: 40px;
}

.bm-features__card {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.bm-features__card-icon {
    display: flex;
    width: 56px;
    height: 56px;
    justify-content: center;
    align-items: center;
    background: #5695C9;
    border-radius: 50%;
    flex-shrink: 0;
}

.bm-features__card-title,
.bm-features__card-title p {
    color: #1B1B1B;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    margin: 0;
}

.bm-features__card-title strong,
.bm-features__card-title p strong {
    color: #5695C9;
    font-weight: 700;
}

.bm-features__card-body {
    color: #5C5C5C;
    font-family: "Catamaran", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.32px;
}

.bm-features__cta {
    display: flex;
    height: 48px;
    padding: 10px 50px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background: #5695C9;
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: 0.48px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.bm-features__cta:hover {
    opacity: 0.88;
    color: #FFF;
}

/* ── Panel użytkownika ──────────────────────────────────────────────────────── */
.bm-user-page {
    max-width: 960px;
    margin-inline: auto;
}

/* ── 404 ────────────────────────────────────────────────────────────────────── */
.bm-404 {
    text-align: center;
    padding-block: 80px;
}

.bm-404__code {
    font-family: var(--bm-font-heading);
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: var(--bm-color-border);
    letter-spacing: 4px;
}

.bm-404__msg {
    font-size: 22px;
    color: var(--bm-color-muted);
    margin-bottom: 32px;
}

/* ── Sekcja Statystyki ───────────────────────────────────────────────────────── */
.bm-stats {
    width: 100%;
    padding: 96px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bm-stats__bottles {
    position: absolute;
    left: 36%;
    bottom: -110px;
    transform: translateX(-50%) rotate(9.731deg);
    transform-origin: bottom center;
    display: inline-flex;
    align-items: flex-end;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.bm-stats__bottle {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    margin-left: -20px;
}

.bm-stats__bottle:first-child {
    margin-left: 0;
}

.bm-stats__bottle--big {
    width: 212px;
    height: 465px;
}

.bm-stats__bottle--small {
    width: 212px;
    height: 365px;
}

.bm-stats__bottle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.15;
    display: block;
}

.bm-stats__inner {
    position: relative;
    z-index: 1;
}

.bm-stats__inner {
    display: inline-grid;
    grid-template-columns: repeat(3, 218px);
    grid-template-rows: auto auto auto auto;
    column-gap: 128px;
    row-gap: 16px;
}

.bm-stats__item {
    display: contents;
}

.bm-stats__item:nth-child(1) .bm-stats__above  { grid-column: 1; grid-row: 1; }
.bm-stats__item:nth-child(1) .bm-stats__number { grid-column: 1; grid-row: 2; }
.bm-stats__item:nth-child(1) .bm-stats__below  { grid-column: 1; grid-row: 3; }
.bm-stats__item:nth-child(1) .bm-stats__below2 { grid-column: 1; grid-row: 4; }
.bm-stats__item:nth-child(2) .bm-stats__above  { grid-column: 2; grid-row: 1; }
.bm-stats__item:nth-child(2) .bm-stats__number { grid-column: 2; grid-row: 2; }
.bm-stats__item:nth-child(2) .bm-stats__below  { grid-column: 2; grid-row: 3; }
.bm-stats__item:nth-child(2) .bm-stats__below2 { grid-column: 2; grid-row: 4; }
.bm-stats__item:nth-child(3) .bm-stats__above  { grid-column: 3; grid-row: 1; }
.bm-stats__item:nth-child(3) .bm-stats__number { grid-column: 3; grid-row: 2; }
.bm-stats__item:nth-child(3) .bm-stats__below  { grid-column: 3; grid-row: 3; }
.bm-stats__item:nth-child(3) .bm-stats__below2 { grid-column: 3; grid-row: 4; }

.bm-stats__above {
    color: #1B1B1B;
    text-align: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: block;
    min-height: 21px;
    align-self: end;
}

.bm-stats__number {
    color: #5695C9;
    text-align: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    display: block;
    min-height: 59px;
}

.bm-stats__below {
    color: #5C5C5C;
    text-align: center;
    font-family: "Catamaran", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.32px;
}

.bm-stats__below2 {
    color: #5C5C5C;
    text-align: center;
    font-family: "Catamaran", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.32px;
}

.bm-stats__below2:empty {
    display: none;
}

/* ── Sekcja O Brokreacji ─────────────────────────────────────────────────────── */
.bm-about {
    width: 100%;
    background: #000;
    padding: 104px 0;
}

.bm-about__inner {
    display: flex;
    align-items: center;
    gap: 125px;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

.bm-about__content {
    display: flex;
    width: 505px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.bm-about__label {
    color: #5695C9;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: 0.48px;
    text-transform: uppercase;
}

.bm-about__heading,
.bm-about__heading p {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    margin: 0;
}

.bm-about__heading strong,
.bm-about__heading p strong {
    color: #5695C9;
    font-weight: 700;
}

.bm-about__body {
    color: #F0F0F0;
    font-family: "Catamaran", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bm-about__body p {
    margin: 0;
}

.bm-about__cta {
    display: flex;
    height: 48px;
    padding: 10px 50px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background: #5695C9;
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: 0.48px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.bm-about__cta:hover {
    opacity: 0.88;
    color: #FFF;
}

.bm-about__image-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.bm-about__image-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.bm-about__sygnet {
    height: 70px !important;
    width: 30px !important;
}

.bm-about__sygnet {
    position: absolute;
    top: -94px;
    left: -26px;
    width: 73px;
    height: 202px;
    z-index: 2;
}

.bm-about__image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    background: #2a2a2a;
}

/* ── Sekcja galerii z karuzelą ──────────────────────────────────────────────── */
.bm-gallery-section {
    overflow: hidden;
    background: #1B1B1B;
    padding-block: 60px;
}

.bm-gallery-carousel {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    overflow: hidden;
}

.bm-gallery-carousel.is-dragging {
    cursor: grabbing;
}

.bm-gallery-carousel__track {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    will-change: transform;
    white-space: nowrap;
}

.bm-gallery-carousel__frame {
    display: flex;
    width: 368px;
    height: 368px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 4px;
    background: #535353;
    overflow: hidden;
}

.bm-gallery-carousel__frame--empty {
    padding: 61px 60px;
}

.bm-gallery-carousel__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* ── Sekcja kontakt CTA ─────────────────────────────────────────────────────── */
.bm-contact-cta {
    display: flex;
    width: 100%;
    padding: 96px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background-color: lightgray;
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.bm-contact-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    align-self: stretch;
    max-width: 1066px;
    margin-inline: auto;
}

.bm-contact-cta__text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: stretch;
}

.bm-contact-cta__heading {
    color: var(--White, #FFF);
    text-align: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 56px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    margin: 0;
}

.bm-contact-cta__body {
    color: var(--White, #FFF);
    text-align: center;
    font-family: Catamaran, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.32px;
    max-width: 503px;
}

.bm-contact-cta__body p {
    margin: 0;
}

.bm-contact-cta__body p + p {
    margin-top: 1em;
}

.bm-contact-cta__btn {
    display: flex;
    height: 48px;
    padding: 10px 50px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background: var(--Orange, #5695C9);
    color: var(--White, #FFF);
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.56px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

/* ── Stopka ─────────────────────────────────────────────────────────────────── */
.bm-site-footer {
    background: var(--Black, #000);
}

.bm-site-footer__inner {
    display: flex;
    flex-direction: column;
    max-width: 1240px;
    margin-inline: auto;
    padding: 60px 24px;
}

/* Górna sekcja */
.bm-site-footer__top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 36px;
    width: 100%;
}

/* Kolumna 1 – logo + social */
.bm-site-footer__col--brand {
    display: flex;
    flex-direction: column;
}

.bm-site-footer__logo {
    color: var(--White, #FFF);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 60px;
}

.bm-site-footer__logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.bm-site-footer__socials {
    display: inline-flex;
    height: 30px;
    align-items: center;
    gap: 12px;
}

.bm-site-footer__social-icon {
    display: flex;
    padding: 3px;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    background: var(--Orange, #5695C9);
    line-height: 0;
    text-decoration: none;
}

/* Kolumna 2 – dane kontaktowe */
.bm-site-footer__col--contact {
    display: flex;
    width: 227px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.bm-site-footer__col--contact p {
    margin: 0;
    color: var(--White, #FFF);
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 125%;
    text-align: left;
}

/* Kolumny 3 i 4 – linki */
.bm-site-footer__col--links {
    display: flex;
    width: 227px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
}

.bm-site-footer__col--links a {
    color: var(--White, #FFF);
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 125%;
    text-decoration: none;
}

.bm-site-footer__col--links a:hover {
    color: var(--Orange, #5695C9);
}

/* Dolna sekcja */
.bm-site-footer__bottom {
    border-top: 1px solid #3F3F3F;
    padding: 24px 0;
    width: 100%;
}

.bm-site-footer__copy {
    margin: 0;
    color: #989797;
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 125%;
}

.bm-site-footer__korg {
    color: #989797;
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    text-decoration: none;
}

.bm-site-footer__korg:hover {
    color: #fff;
}

/* ── Responsywność ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bm-front-hero__inner {
        padding: 16px 24px;
    }

    .bm-main-nav__links {
        display: none;
    }

    .bm-main-nav__btn {
        display: none;
    }

    .bm-nav-toggle {
        display: flex;
    }

    .bm-nav {
        display: flex;
    }

    .bm-entry {
        padding: 24px 20px;
    }

    /* Siatka .bm-stats__inner ma stałą szerokość (3 × 218px + 2 × 128px = 910px)
       i na szerokościach tabletowych nie mieści się w viewporcie — .bm-stats
       ma overflow:hidden, więc skrajne statystyki są ucinane. Układ kolumnowy
       (jak na mobile) rozwiązuje to zamiast sztywnej siatki. */
    .bm-stats {
        padding: 48px 20px;
    }

    .bm-stats__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 100%;
    }

    .bm-stats__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .bm-stats__above {
        text-align: center;
        align-self: center;
    }

    .bm-stats__item:nth-child(1) .bm-stats__above,
    .bm-stats__item:nth-child(1) .bm-stats__number,
    .bm-stats__item:nth-child(1) .bm-stats__below,
    .bm-stats__item:nth-child(1) .bm-stats__below2,
    .bm-stats__item:nth-child(2) .bm-stats__above,
    .bm-stats__item:nth-child(2) .bm-stats__number,
    .bm-stats__item:nth-child(2) .bm-stats__below,
    .bm-stats__item:nth-child(2) .bm-stats__below2,
    .bm-stats__item:nth-child(3) .bm-stats__above,
    .bm-stats__item:nth-child(3) .bm-stats__number,
    .bm-stats__item:nth-child(3) .bm-stats__below,
    .bm-stats__item:nth-child(3) .bm-stats__below2 {
        grid-column: unset;
        grid-row: unset;
    }
}

@media (max-width: 600px) {
    .bm-main-nav__right {
        gap: 20px;
    }
    .bm-site-footer {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .bm-site-main {
        padding-block: 24px;
    }

    .bm-site-main--flush {
        padding-block: 0;
        margin-top: -40px;
    }

    .bm-front-hero {
        padding-block: 32px 28px;
    }

    .bm-front-hero {
        background-size: cover;
        background-position: center;
    }

    .bm-front-hero__content {
        width: 100%;
    }

    .bm-front-hero__headline {
        font-size: 56px;
        letter-spacing: 1.12px;
    }

    .bm-front-hero__ticker {
        bottom: 90px;
    }

    .bm-features__container {
        padding: 48px 20px;
    }

    .bm-features__cards {
        flex-direction: column;
    }

    .bm-features__card {
        align-items: center;
        text-align: center;
    }

    .bm-features__card-title,
    .bm-features__card-title p {
        text-align: center;
    }

    .bm-features__card-body {
        text-align: center;
    }

    .bm-about {
        padding: 48px 0;
    }

    .bm-about__inner {
        flex-direction: column;
        gap: 40px;
        padding-inline: 20px;
    }

    .bm-about__content {
        width: 100%;
    }

    .bm-about__image-wrap {
        width: 100%;
    }

    .bm-about__sygnet {
        top: -28px;
        left: -12px;
        width: 40px;
        height: auto;
    }

    .bm-site-footer__inner {
        padding: 48px 20px;
    }

    .bm-site-footer__top {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        padding-bottom: 36px;
    }

    .bm-site-footer__col--brand {
        align-items: center;
    }

    .bm-site-footer__logo {
        margin-bottom: 24px;
    }

    .bm-site-footer__col--contact {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .bm-site-footer__col--contact p {
        text-align: center;
        max-width: 200px;
    }

    .bm-site-footer__col--links {
        width: 100%;
        align-items: center;
    }

    .bm-site-footer__copy {
        text-align: center;
    }

    .bm-contact-cta {
        padding-inline: 20px;
    }
}

/* ── Popup weryfikacji wieku ──────────────────────────────────────────────── */
html.bm-age-gate-locked body {
    overflow: hidden;
}

.bm-age-gate-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

html.bm-age-gate-locked .bm-age-gate-wrap,
.bm-age-gate-wrap.is-visible {
    display: flex;
}

.bm-age-gate-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.60) 100%), url('assets/images/background.png') lightgray 50% / cover no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

html.bm-age-gate-locked .bm-age-gate-wrap .bm-age-gate-overlay,
.bm-age-gate-wrap.is-open .bm-age-gate-overlay {
    opacity: 1;
}

.bm-age-gate-wrap.is-milk .bm-age-gate-overlay {
    background: #fff;
}

.bm-age-gate,
.bm-milk-gate {
    position: relative;
    z-index: 1;
    justify-content: center;
    width: 100%;
    max-width: 1024px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 24px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.bm-age-gate {
    display: flex;
}

.bm-milk-gate {
    display: none;
}

html.bm-age-gate-locked .bm-age-gate-wrap .bm-age-gate,
.bm-age-gate-wrap.is-open .bm-age-gate {
    opacity: 1;
    transform: translateY(0);
}

.bm-age-gate-wrap.is-milk .bm-age-gate {
    display: none;
}

.bm-age-gate-wrap.is-milk .bm-milk-gate {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.bm-age-gate__inner,
.bm-milk-gate__inner {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 77px;
}

.bm-age-gate__heading,
.bm-milk-gate__heading {
    margin: 0;
    color: var(--White, #FFF);
    text-align: center;
    font-family: var(--bm-font-heading);
    font-size: 123px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 2.46px;
    text-transform: uppercase;
}

.bm-milk-gate__heading {
    color: var(--Almost-black, #1B1B1B);
    font-size: clamp(32px, 8vh, 64px);
}

.bm-milk-gate__image {
    width: clamp(120px, 24vh, 220px);
    height: clamp(120px, 24vh, 220px);
    object-fit: cover;
}

.bm-milk-gate__inner {
    gap: clamp(16px, 4vh, 40px);
}

.bm-age-gate__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.bm-age-gate__btn {
    display: flex;
    height: 56px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 4px;
    border: none;
    font-family: var(--bm-font-body);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.bm-age-gate__btn--primary {
    padding: 20px 50px;
    background: var(--Orange, #5695C9);
}

.bm-age-gate__btn--primary:hover {
    opacity: 0.85;
}

.bm-age-gate__btn--secondary {
    padding: 20px 102px;
    background: var(--Almost-black, #1B1B1B);
}

.bm-age-gate__btn--secondary:hover {
    opacity: 0.85;
}

@media (max-width: 680px) {
    .bm-age-gate__heading,
    .bm-milk-gate__heading {
        font-size: 48px;
        letter-spacing: 1px;
    }

    .bm-age-gate__inner,
    .bm-milk-gate__inner {
        gap: 32px;
    }

    .bm-age-gate__btn--primary,
    .bm-age-gate__btn--secondary {
        padding: 16px 24px;
        white-space: normal;
    }

    .bm-milk-gate__image {
        width: 140px;
        height: 140px;
    }
}

/* ── Popup kontaktowy ───────────────────────────────────────────────────────── */
.bm-contact-modal-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.bm-contact-modal-wrap.is-visible {
    display: flex;
}

/* Overlay */
.bm-contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bm-contact-modal-wrap.is-open .bm-contact-modal-overlay {
    opacity: 0.5;
}

/* Okno dialogowe */
.bm-contact-modal {
    position: relative;
    z-index: 1;
    display: flex;
    width: 610px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.bm-contact-modal-wrap.is-open .bm-contact-modal {
    opacity: 1;
    transform: translateY(0);
}

/* Przycisk zamknięcia */
.bm-contact-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    width: 32px;
    height: 32px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.bm-contact-modal__close:hover {
    background: #F3F3F3;
}

/* Wewnętrzny kontener */
.bm-contact-modal__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    align-self: stretch;
}

/* Nagłówek */
.bm-contact-modal__heading {
    color: #1B1B1B;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.64px;
    text-transform: uppercase;
}

/* Sekcja formularza */
.bm-contact-modal__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
}

.bm-contact-modal__form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-self: stretch;
}

/* Górna sekcja */
.bm-contact-modal__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

/* Kontener 1 */
.bm-contact-modal__container-1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

.bm-contact-modal__row {
    display: flex;
    align-items: center;
    gap: 20px;
    align-self: stretch;
}

.bm-contact-modal__field {
    display: flex;
    width: 215px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.bm-contact-modal__label {
    color: #1B1B1B;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.bm-contact-modal__input {
    display: flex;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    width: 100%;
    border-radius: 4px;
    background: #F3F3F3;
    border: 1.5px solid transparent;
    color: #1B1B1B;
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 125%;
    outline: none;
    transition: border-color 0.2s ease;
}

.bm-contact-modal__input:focus {
    border-color: #5695C9;
}

.bm-contact-modal__input.is-error {
    border-color: #d9534f;
    background: #fff5f5;
}

/* Kontener 2 */
.bm-contact-modal__container-2 {
    display: flex;
    height: 132px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
}

.bm-contact-modal__textarea {
    padding: 12px;
    flex: 1 0 0;
    align-self: stretch;
    width: 100%;
    border-radius: 4px;
    background: #F3F3F3;
    border: 1.5px solid transparent;
    color: #1B1B1B;
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 125%;
    outline: none;
    resize: none;
    transition: border-color 0.2s ease;
}

.bm-contact-modal__textarea:focus {
    border-color: #5695C9;
}

.bm-contact-modal__textarea.is-error {
    border-color: #d9534f;
    background: #fff5f5;
}

/* Checkbox */
.bm-contact-modal__consent {
    display: flex;
    align-items: center;
    gap: 9px;
    align-self: stretch;
}

.bm-contact-modal__checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 4px;
    background: #F3F3F3;
    border: 1.5px solid #D6D6D6;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.bm-contact-modal__checkbox:checked {
    background: #5695C9;
    border-color: #5695C9;
}

.bm-contact-modal__checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -65%) rotate(-45deg);
}

.bm-contact-modal__checkbox.is-error {
    border-color: #d9534f;
}

.bm-contact-modal__consent-label {
    color: #1B1B1B;
    font-family: Catamaran, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}

/* Dolna sekcja – submit */
.bm-contact-modal__bottom {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bm-contact-modal__submit {
    display: flex;
    height: 48px;
    padding: 10px 50px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    width: 100%;
    border-radius: 4px;
    background: #5695C9;
    color: #fff;
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.56px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.bm-contact-modal__submit:hover:not(:disabled) {
    background: #e86a10;
}

.bm-contact-modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.bm-contact-modal__submit-label {
    transition: opacity 0.15s ease;
}

.bm-contact-modal__submit.is-loading .bm-contact-modal__submit-label {
    opacity: 0;
}

/* Spinner */
.bm-contact-modal__submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bm-spin 0.7s linear infinite;
    position: absolute;
}

.bm-contact-modal__submit.is-loading .bm-contact-modal__submit-spinner {
    display: block;
}

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

.bm-contact-modal__error {
    color: #d9534f;
    font-family: Catamaran, sans-serif;
    font-size: 13px;
    font-weight: 500;
    min-height: 0;
    transition: opacity 0.2s ease;
}

/* Ekran sukcesu */
.bm-contact-modal__success {
    display: none;
}

.bm-contact-modal__success.is-shown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 24px 0 8px;
    align-self: stretch;
    animation: bm-fade-up 0.4s ease both;
}

.bm-contact-modal__success-icon {
    width: 64px;
    height: 64px;
    background: #5695C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bm-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.bm-contact-modal__success-heading {
    color: #1B1B1B;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.52px;
}

.bm-contact-modal__success-text {
    color: #3D3D3D;
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

@keyframes bm-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bm-pop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Responsywność */
@media (max-width: 680px) {
    .bm-contact-modal {
        padding: 40px 32px;
    }

    .bm-contact-modal__row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .bm-contact-modal__field {
        width: 100%;
    }
}

/* ── Przycisk koszyka – badge licznika ───────────────────────────────────────── */
.bm-cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bm-cart-btn__badge {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    background: #e86d17;
    color: #fff;
    font-family: var(--bm-font-body);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
}

.bm-cart-btn.is-bumping svg {
    animation: bm-cart-bump 0.4s ease;
}

.bm-cart-btn.is-bumping .bm-cart-btn__badge {
    animation: bm-cart-badge-pop 0.4s ease;
}

@keyframes bm-cart-bump {
    0%   { transform: rotate(0) translateY(0); }
    25%  { transform: rotate(-12deg) translateY(-2px); }
    50%  { transform: rotate(10deg) translateY(0); }
    75%  { transform: rotate(-6deg); }
    100% { transform: rotate(0); }
}

@keyframes bm-cart-badge-pop {
    0%   { transform: scale(0.4); }
    60%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ── Drawer koszyka ──────────────────────────────────────────────────────────── */
.bm-cart-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
}

.bm-cart-wrap.is-visible {
    display: block;
}

.bm-cart-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.bm-cart-wrap.is-open .bm-cart-overlay {
    opacity: 0.5;
}

.bm-cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow: hidden;
}

.bm-cart-wrap.is-open .bm-cart-drawer {
    transform: translateX(0);
}

.bm-cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--bm-color-border);
    flex-shrink: 0;
}

.bm-cart-drawer__title {
    font-family: var(--bm-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-color-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bm-cart-drawer__close {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.bm-cart-drawer__close:hover {
    background: #F3F3F3;
}

.bm-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
}

/* Pusty koszyk */
.bm-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    gap: 12px;
}

.bm-cart-empty__icon {
    margin-bottom: 8px;
    opacity: 0.35;
}

.bm-cart-empty__heading {
    font-family: var(--bm-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-color-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.bm-cart-empty__text {
    font-size: 14px;
    color: var(--bm-color-muted);
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

.bm-cart-empty__cta {
    margin-top: 8px;
    display: inline-flex;
    text-decoration: none;
}

.bm-cart-empty[hidden] { display: none !important; }

/* Lista pozycji koszyka — spójna z kartami podsumowania kroku 3 konfiguratora */
.bm-cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-cart-items[hidden] { display: none !important; }

.bm-cart-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--bm-color-border);
    background: #FDFDFD;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.bm-cart-line:hover {
    border-color: var(--bm-color-dark);
}

.bm-cart-line__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 4px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bm-cart-line__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.bm-cart-line__info {
    flex: 1;
    min-width: 0;
}

.bm-cart-line__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bm-cart-line__title {
    font-family: var(--bm-font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--bm-color-dark);
}

.bm-cart-line__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--bm-color-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.bm-cart-line__remove:hover {
    background: #F3F3F3;
    color: var(--bm-color-dark);
}

.bm-cart-line__meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--bm-color-muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-cart-line__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.bm-cart-line__qty {
    font-size: 12px;
    font-weight: 500;
    color: var(--bm-color-mid);
}

.bm-cart-line__price {
    font-family: var(--bm-font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--bm-color-dark);
    white-space: nowrap;
}

.bm-cart-line__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.bm-cart-line__stepper {
    display: flex;
    align-items: center;
    gap: 0;
    height: 26px;
    border: 1px solid var(--bm-color-border);
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
}

.bm-cart-line__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    background: none;
    border: none;
    color: var(--bm-color-mid);
    cursor: pointer;
    flex-shrink: 0;
}

.bm-cart-line__step:hover:not(:disabled) {
    color: var(--bm-color-dark);
}

.bm-cart-line__step:disabled {
    color: #D9D9D9;
    cursor: not-allowed;
}

.bm-cart-line__step-input {
    all: unset;
    width: 28px;
    height: 26px;
    border-left: 1px solid var(--bm-color-border);
    border-right: 1px solid var(--bm-color-border);
    text-align: center;
    font-family: var(--bm-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--bm-color-dark);
    -moz-appearance: textfield;
}

.bm-cart-line__step-input::-webkit-inner-spin-button,
.bm-cart-line__step-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bm-cart-line__edit {
    display: inline-flex;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid var(--bm-color-border);
    background: #fff;
    color: var(--bm-color-mid);
    font-family: var(--bm-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bm-cart-line__edit:hover {
    background: var(--bm-color-dark);
    color: #fff;
    border-color: var(--bm-color-dark);
}

.bm-cart-line__edit.is-active {
    background: var(--bm-color-dark);
    color: #fff;
    border-color: var(--bm-color-dark);
}

/* Stopka drawera (podsumowanie + kasa) */
.bm-cart-drawer__footer {
    padding: 20px 28px;
    border-top: 1px solid var(--bm-color-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}
.bm-cart-drawer__footer[hidden] { display: none !important; }

.bm-cart-drawer__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bm-cart-drawer__summary-label {
    font-size: 14px;
    color: var(--bm-color-muted);
    font-weight: 500;
}

.bm-cart-drawer__summary-total {
    font-family: var(--bm-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-color-dark);
}

.bm-cart-drawer__checkout {
    display: flex;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

/* ── Modal logowania / rejestracji ───────────────────────────────────────────── */
.bm-user-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bm-auth-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.bm-auth-wrap.is-visible {
    display: flex;
}

.bm-auth-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.bm-auth-wrap.is-open .bm-auth-overlay {
    opacity: 0.5;
}

.bm-auth-modal {
    position: relative;
    z-index: 1;
    width: 460px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 48px 48px;
    background: #fff;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.bm-auth-wrap.is-open .bm-auth-modal {
    opacity: 1;
    transform: translateY(0);
}

.bm-auth-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.bm-auth-modal__close:hover {
    background: #F3F3F3;
}

/* Zakładki */
.bm-auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--bm-color-border);
    margin-bottom: 28px;
}

.bm-auth-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 12px;
    margin-right: 28px;
    font-family: var(--bm-font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bm-color-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.bm-auth-tab.is-active {
    color: var(--bm-color-dark);
    border-bottom-color: var(--bm-color-dark);
}

.bm-auth-tab:hover:not(.is-active) {
    color: var(--bm-color-mid);
}

/* Nagłówek */
.bm-auth-modal__heading {
    font-family: var(--bm-font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--bm-color-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

/* Formularz */
.bm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bm-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bm-auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bm-color-mid);
    letter-spacing: 0.02em;
}

.bm-auth-input {
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--bm-color-border);
    border-radius: 6px;
    font-family: var(--bm-font-body);
    font-size: 15px;
    color: var(--bm-color-dark);
    background: #fff;
    transition: border-color 0.2s ease;
    outline: none;
}

.bm-auth-input:focus {
    border-color: var(--bm-color-dark);
}

.bm-auth-input.is-error {
    border-color: #D93025;
}

.bm-auth-error {
    font-size: 13px;
    color: #D93025;
    min-height: 18px;
    margin: 0;
}

/* Przycisk submit ze spinnerem */
.bm-auth-submit {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    position: relative;
}

.bm-auth-submit__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bm-auth-spin 0.7s linear infinite;
}

.bm-auth-submit.is-loading .bm-auth-submit__label {
    opacity: 0;
}

.bm-auth-submit.is-loading .bm-auth-submit__spinner {
    display: block;
    position: absolute;
}

@keyframes bm-auth-spin {
    to { transform: rotate(360deg); }
}

/* Ekran sukcesu rejestracji */
.bm-auth-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px;
    gap: 12px;
}
.bm-auth-success[hidden] { display: none !important; }

.bm-auth-success__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E8F5E9;
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bm-auth-success__heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1B1B1B;
}

.bm-auth-success__text {
    margin: 0;
    font-size: 14px;
    color: #6B6B6B;
}

@media (max-width: 520px) {
    .bm-auth-modal {
        padding: 36px 24px 40px;
    }
}

/* Podekrany bez zakładek (reset hasła / ustawienie nowego hasła) */
.bm-auth-wrap.is-subview .bm-auth-tabs {
    display: none;
}

.bm-auth-panel__desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--bm-color-muted);
    line-height: 1.5;
}

.bm-auth-hint {
    margin: -6px 0 0;
    text-align: center;
}

.bm-auth-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--bm-color-mid);
    text-decoration: underline;
    cursor: pointer;
}

.bm-auth-link:hover {
    color: var(--bm-color-accent);
}

/* Toast: potwierdzenie aktywacji konta */
.bm-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    padding: 14px 18px;
    background: #fff;
    border-radius: var(--bm-radius);
    border-left: 4px solid #2E7D32;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    font-size: 14px;
    color: var(--bm-color-dark);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
}

.bm-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bm-toast__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E8F5E9;
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-toast--error {
    border-left-color: #D93025;
}

.bm-toast--error .bm-toast__icon {
    background: #FDECEA;
    color: #D93025;
}

@media (max-width: 520px) {
    .bm-toast {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* Powiększona i wyśrodkowana butelka w konfiguratorze */
