/* Lokalne fonty (bez CORS) */
@font-face {
    font-family: "Exo";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/exo-regular.woff2") format("woff2"),
         url("../fonts/exo-regular.woff") format("woff");
}

@font-face {
    font-family: "Exo";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/exo-medium.woff2") format("woff2"),
         url("../fonts/exo-medium.woff") format("woff");
}

@font-face {
    font-family: "Exo";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/exo-medium.woff2") format("woff2"),
         url("../fonts/exo-medium.woff") format("woff");
}

@font-face {
    font-family: "Exo";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/exo-bold.woff2") format("woff2"),
         url("../fonts/exo-bold.woff") format("woff");
}

/* Estetyka kontenera */
.cb-dark {
    background: var(--store-module-bg, #1a0609);
    color: #e7e9ee;
    margin: 0;
    overflow-x: hidden;
    font-family: "Exo", sans-serif;
    font-weight: 500;
}

/* Zapobiega mignieciu nieostylowanych kart na starcie */
.cb-preload #cbToolbar,
.cb-preload #cbGrid,
.cb-preload #cbPager {
    visibility: hidden;
}

.cb-ready #cbToolbar,
.cb-ready #cbGrid,
.cb-ready #cbPager {
    visibility: visible;
}

:root {
    --cb-meta-height: 46px;
    --cb-gallery-panel-collapsed: 64px;
    --cb-gallery-stats-height: 140px;
    --cb-gallery-stats-width: 190px;
    --cb-icon-color: #ffffff;
    --cb-icon-hover: #ff0000;
    --cb-second-color: #ff0000;
    --cb-font-color: #ffffff;
    --cb-font: "Exo", sans-serif;
    --cb-hover-transition: 0.2s ease;
    --cb-card-border-size: 0px;
    --cb-card-border-color: rgba(255, 255, 255, 0.2);
    --cb-card-radius: 12px;
    --cb-photo-radius: 12px;
    --cb-gap: 16px;
    --cb-aspect: 2 / 3;
    --cb-card-meta-bg: #f8f9fa;
    --cb-carousel-cols: 1;
    --cb-carousel-fill: 0.97;
    --cb-gallery-obj-y: 50%;
    --cb-rate-fill: 0%;
}

.cb-dev-locked,
.cb-dev-locked * {
    -webkit-user-select: none;
    user-select: none;
}

.cb-dev-locked input,
.cb-dev-locked textarea,
.cb-dev-locked [contenteditable=""],
.cb-dev-locked [contenteditable="true"],
.cb-dev-locked [contenteditable="plaintext-only"],
.cb-dev-locked .cb-allow-select {
    -webkit-user-select: text;
    user-select: text;
}

.cb-dark .text-secondary {
    color: #9aa4b2 !important;
}

.cb-dark .container-fluid {
    padding: 0;
    margin-top: 12px;
}

body.cb-nav-fixed .container-fluid {
    margin-top: 0;
    padding-top: 0;
}

body.cb-nav-fixed #characterBrowser {
    margin-top: calc(var(--cb-nav-fixed-height, 0px) + 12px);
}

#cbNav {
    padding: 0 16px;
}

#cbNav.cb-nav-fixed {
    position: fixed;
    top: 0;
    left: var(--cb-nav-fixed-left, 0);
    width: var(--cb-nav-fixed-width, 100%);
    z-index: 1050;
    background: var(--store-module-bg, #1a0609);
    box-sizing: border-box;
    padding-top: 12px;
    padding-bottom: 12px;
}

.cb-nav-panels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cb-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cb-nav-row-actions {
    justify-content: flex-end;
}

#cbNav .btn {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.95rem;
}

#cbNav {
    --cb-nav-bg: #3a0b12;
    --cb-nav-bg-hover: #512028;
    --cb-nav-bg-active: #6b2430;
    --cb-nav-text: #cbd1dd;
    --cb-nav-text-hover: #ffffff;
}

#cbNav .btn {
    color: var(--cb-nav-text);
    border-color: var(--cb-nav-bg);
    background: var(--cb-nav-bg);
    transition: color var(--cb-hover-transition), background-color var(--cb-hover-transition), border-color var(--cb-hover-transition);
}

#cbNav .cb-nav-dropdown {
    display: inline-flex;
    align-items: center;
}

#cbNav .cb-nav-hamburger {
    border: 0;
    background: transparent;
    color: var(--cb-nav-text);
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
}

#cbNav .cb-nav-hamburger:hover,
#cbNav .cb-nav-hamburger:focus {
    background: var(--cb-nav-bg-hover);
    color: var(--cb-nav-text-hover);
}

#cbNav .cb-nav-hamburger:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(90, 15, 24, 0.35);
    outline: 0;
}

#cbNav .cb-nav-menu {
    background: #1b0508;
    border-color: #3a0b12;
}

#cbNav .cb-nav-menu .dropdown-item {
    color: var(--cb-nav-text);
}

#cbNav .cb-nav-menu .dropdown-item:hover,
#cbNav .cb-nav-menu .dropdown-item:focus {
    background: #2a0a10;
    color: var(--cb-nav-text-hover);
}

#cbNav .btn-outline-primary {
    background: var(--cb-nav-bg);
    border-color: var(--cb-nav-bg);
    color: var(--cb-nav-text);
}

#cbNav .btn-outline-primary:hover,
#cbNav .btn-outline-primary:focus {
    background: var(--cb-nav-bg-hover);
    border-color: var(--cb-nav-bg-hover);
    color: var(--cb-nav-text-hover);
}

#cbNav .btn-primary {
    background: var(--cb-nav-bg-active);
    border-color: #ffffff;
    color: #ffffff;
}

#cbNav .btn-primary:hover,
#cbNav .btn-primary:focus {
    background: var(--cb-nav-bg-active);
    border-color: #ffffff;
    color: #ffffff;
}

#cbNav button[data-view="my"],
#cbNav button[data-view="my"]:hover,
#cbNav button[data-view="my"]:focus,
#cbNav button.btn-primary[data-view="my"],
#cbNav button.btn-primary[data-view="my"]:hover,
#cbNav button.btn-primary[data-view="my"]:focus {
    color: var(--cb-second-color, #ff0000);
    font-weight: 700;
}


#cbNav .btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(90, 15, 24, 0.35);
}

@media (min-width: 768px) {
    .cb-nav-panels {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .cb-nav-row {
        flex-wrap: nowrap;
    }

    .cb-nav-row-actions {
        order: 2;
    }

    .cb-nav-row-main {
        order: 1;
    }
}

#characterBrowser {
    background: #11151c;
    border-radius: 16px;
    font-family: var(--cb-font, "Exo", sans-serif);
    color: var(--cb-font-color, #ffffff);
    min-height: 80vh;
}

.cb-info-banner {
    background: #b21616;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px 16px 0 0;
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-6px);
    opacity: 0;
    transition: max-height 0.25s ease, padding 0.2s ease, transform 0.2s ease-out, opacity 0.2s ease-out;
}

.cb-info-banner.is-visible {
    padding: 14px 22px;
    max-height: 120px;
    transform: translateY(0);
    opacity: 1;
}
.cb-info-banner span {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
}

.cb-info-banner .cb-info-banner-link {
    cursor: pointer;
    text-decoration: none;
}

.cb-info-banner-close {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 4px;
}

.cb-dark .cb-toolbar .form-select {
    background: #0f1319;
    color: #e7e9ee;
    border-color: #2a3340;
}

.cb-dark .pagination .page-link {
    background: #0f1319;
    color: #e7e9ee;
    border-color: #2a3340;
}

.cb-dark .page-item.active .page-link {
    background: #2a3a55;
    border-color: #2a3a55;
}

.cb-dark .modal-content {
    background: #d9d9d9;
    color: #2b2b2b;
    border: 0;
    border-radius: 8px;
}

.cb-dark .modal-header {
    background: var(--cb-modal-header-bg, #452435);
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.cb-dark .modal-header .btn-close {
    filter: invert(1);
}

.cb-dark .modal-body {
    color: #2b2b2b;
    text-align: left;
}

.cb-dark #modalDialog .modal-body {
    text-align: center;
}

.cb-dark .modal-footer {
    background: #d9d9d9;
    border-color: rgba(0, 0, 0, 0.08);
}

.cb-dark .modal .form-label {
    color: #2b2b2b;
}

.cb-dark .modal .form-control {
    background: #ffffff;
    color: #2b2b2b;
    border-color: #cfcfcf;
}

.cb-dark .modal .form-control::placeholder {
    color: #7a7a7a;
}

.cb-dark .modal .form-control:disabled,
.cb-dark .modal .form-control[readonly] {
    background: #d6d6d6;
    color: #6f6f6f;
}

.vsplink {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #0000ff;
}

.vsplink:hover,
.vsplink:focus {
    color: #0000cc;
}

.cb-dark .modal .btn-primary {
    background: #1e7bff;
    border-color: #1e7bff;
}

.cb-dark .modal .btn-outline-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.cb-cart-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1065;
    pointer-events: none;
}

.cb-cart-bar-inner {
    background: rgba(20, 22, 30, 0.86);
    border-radius: 18px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.cb-cart-clear-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 0;
    background: #6f737c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cb-cart-clear-icon {
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    mask-image: url("../gfx/icon-delete.svg");
    -webkit-mask-image: url("../gfx/icon-delete.svg");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.cb-cart-checkout-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    color: #ffffff;
    background: #0aa76d;
}

.cb-cart-checkout-btn:hover,
.cb-cart-checkout-btn:focus {
    background: #0fb377;
}

.cb-cart-fly {
    position: fixed;
    z-index: 2000;
    border-radius: 14px;
    pointer-events: none;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.6s ease-in, opacity 0.6s ease-in;
    opacity: 1;
}

.cb-fav-fly {
    position: fixed;
    z-index: 2000;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
    transition: transform 0.6s ease-in, opacity 0.6s ease-in;
    opacity: 1;
}

@media (max-width: 520px) {
    .cb-cart-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cb-cart-checkout-btn {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}

/* Siatka: używamy Bootstrapa row-cols-* + g-3 (odstępy) w JS,
   ale dopieszczamy karty i obrazki. */

.cb-card {
    border-radius: var(--cb-card-radius, 12px);
    overflow: hidden;
    transition: none;
    border: var(--cb-card-border-size, 0) solid var(--cb-card-border-color, transparent);
    background-color: transparent;
}

.cb-card:focus,
.cb-card:focus-visible {
    outline: none;
    box-shadow: none;
}

.cb-thumb-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--cb-photo-radius, 12px);
}

.cb-card-link,
.cb-card-link:hover,
.cb-card-link:focus,
.cb-card-link:active {
    color: inherit;
    text-decoration: none;
}

.cb-thumb-wrap .cb-card-link {
    display: block;
}

.cb-thumb {
    width: 100%;
    display: block;
    object-fit: cover;
    background: transparent;
    /* proporcje ustawiane jako CSS variable z JS */
    aspect-ratio: var(--cb-aspect, 2 / 3);
    border-radius: 0;
    transition: transform 0.35s ease, opacity 0.5s ease;
    transform-origin: 50% 50%;
    opacity: 0;
}

.cb-thumb-loaded {
    opacity: 1;
}

/* Spinner */
.cb-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--cb-second-color, #ff0000);
    border-radius: 50%;
    animation: cb-spin 0.8s linear infinite;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@keyframes cb-spin {
    to { transform: rotate(360deg); }
}

.cb-thumb-wrap-loaded .cb-spinner {
    opacity: 0;
}

.cb-zoom-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    cursor: pointer;
}


.cb-card:hover .cb-zoom-icon,
.cb-card:focus .cb-zoom-icon,
.cb-card:focus-visible .cb-zoom-icon,
.cb-card:focus-within .cb-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.cb-card:hover .cb-thumb {
    transform: scale(1.08);
}


/* Gdyby przeglądarka nie wspierała aspect-ratio (rzadko):
   możesz dodać fallback, ale zwykle niepotrzebne w 2026. */

.cb-meta {
    padding: 8px 12px;
    height: var(--cb-meta-height, 46px);
    display: flex;
    align-items: center;
    background: var(--cb-card-meta-bg, #f8f9fa);
    color: var(--cb-font-color, #ffffff);
}

.cb-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.cb-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.cb-title {
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-fav-hit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.cb-fav-hit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.cb-right {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
    white-space: nowrap;
}

.cb-right-empty {
    display: none;
}

.cb-price {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cb-second-color, #ff0000);
}


.cb-icon {
    display: inline-block;
    background-color: var(--cb-icon-color, var(--cb-font-color, #ffffff));
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    pointer-events: auto;
    transition: background-color var(--cb-hover-transition);
}

.cb-fav-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-block;
    background-color: var(--cb-icon-color, var(--cb-font-color, #ffffff));
    mask-image: url("../gfx/icon-favorites.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("../gfx/icon-favorites.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cb-cart-icon {
    width: 24px;
    height: 24px;
    mask-image: url("../gfx/icon-cart.svg");
    -webkit-mask-image: url("../gfx/icon-cart.svg");
}

.cb-right {
    cursor: pointer;
}

.cb-gallery-panel-price {
    cursor: pointer;
}

.cb-fav-hit:hover .cb-fav-icon,
.cb-fav-hit:focus-visible .cb-fav-icon {
    transform: scale(1.05);
    background-color: var(--cb-second-color, var(--cb-icon-hover, #ff0000));
}

.cb-card.cb-is-fav .cb-fav-icon {
    background-color: var(--cb-second-color, #ff0000);
    mask-image: url("../gfx/icon-favorites-on.svg");
    -webkit-mask-image: url("../gfx/icon-favorites-on.svg");
}

/* =========================
   Galeria
   ========================= */

.cb-gallery {
    padding: 16px;
}

.cb-gallery .cb-price {
    font-size: 1.3125rem;
}

.cb-gallery .cb-cart-icon {
    width: 36px;
    height: 36px;
}

.cb-gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 500px) {
    .cb-gallery-overlay {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        --cb-gallery-panel-collapsed: 114px;
    }

    .cb-gallery-frame {
        height: calc(100vh - 16px - var(--cb-gallery-panel-collapsed, 64px));
        border-radius: 0;
    }

    .cb-gallery-panel {
        margin: 0;
    }

    .cb-gallery .cb-price {
        font-size: 1.05rem;
    }
}

.cb-gallery-back {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 7;
    border: 0;
    background: transparent;
    color: var(--cb-font-color, #ffffff);
    width: auto;
    height: auto;
    border-radius: 0;
    font-size: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cb-gallery-back img {
    display: block;
}

.cb-gallery-body {
    display: block;
}

.cb-gallery-frame {
    position: relative;
    width: 100%;
    height: calc(100vh - 32px - var(--cb-gallery-panel-collapsed, 64px));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cb-photo-radius, 12px);
    overflow: hidden;
}

.cb-gallery-frame.cb-gallery-frame-top {
    align-items: flex-start;
}

.cb-gallery-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center var(--cb-gallery-obj-y, 50%);
    filter: blur(20px) brightness(0.7);
    transform: scale(1.1);
    opacity: 1;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.cb-gallery-main {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: 50% var(--cb-gallery-obj-y, 50%);
    border-radius: 0;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.cb-gallery-main.is-entering {
    animation: cb-gallery-fade-in 0.35s ease both;
}

.cb-gallery-main.is-entering-delayed {
    opacity: 0;
    animation: cb-gallery-fade-in 0.3s ease both;
    animation-delay: 0.28s;
}

.cb-gallery-transition-out {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, var(--cb-gallery-shift-y, 0px), 0);
}

.cb-gallery-transition-out-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: 50% var(--cb-gallery-obj-y, 50%);
    border-radius: 0;
    display: block;
}

.cb-gallery-transition-out-img.is-leaving-left {
    animation: cb-gallery-slide-out-left 0.5s ease both;
}

.cb-gallery-transition-out-img.is-leaving-right {
    animation: cb-gallery-slide-out-right 0.5s ease both;
}

.cb-gallery-top-left {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}

.cb-gallery-message {
    position: absolute;
    left: 50%;
    bottom: calc(16px + var(--cb-gallery-stats-height, 140px) + 16px);
    transform: translateX(-50%);
    max-width: min(720px, 92vw);
    padding: 6px 14px;
    border-radius: 5px;
    background: #b21616;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    z-index: 7;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.cb-gallery-info-wrap {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: 16px;
    z-index: 6;
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: nowrap;
}

.cb-gallery-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    background: rgba(12, 15, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    height: var(--cb-gallery-stats-height, 140px);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-auto-rows: min-content;
    align-content: center;
    column-gap: 8px;
}

.cb-gallery-info-stats {
    display: none;
    margin-top: 6px;
    color: #cfd6e2;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cb-gallery-info-stats-inner {
    display: inline-block;
    padding-right: 16px;
    will-change: transform;
}

.cb-gallery-info-stats-text {
    display: inline-block;
}

.cb-gallery-info-stats.is-switching {
    opacity: 0;
    transform: translateY(-6px);
}

.cb-gallery-info-stats.is-scrolling .cb-gallery-info-stats-inner {
    animation: cb-inline-scroll var(--cb-inline-scroll-duration, 8s) linear infinite;
}

.cb-gallery-hide-stats .cb-gallery-info-stats {
    display: block;
}

.cb-gallery-info-stats[aria-hidden="true"] {
    display: none;
}

@keyframes cb-inline-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--cb-inline-scroll-distance, 0px))); }
}

.cb-gallery-hide-stats .cb-gallery-stats-wrap {
    display: none;
}

.cb-gallery-hide-stats .cb-gallery-info {
    flex: 1 1 100%;
    width: 100%;
}

.cb-gallery-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.2;
}

.cb-gallery-age {
    color: #cfd6e2;
    font-weight: 400;
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.2;
}

.cb-gallery-lead {
    color: var(--cb-second-color, #ff0000);
    font-size: 1.1rem;
    margin-top: 6px;
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    .cb-gallery-name {
        font-size: calc(1.8rem * 0.85);
    }

    .cb-gallery-age {
        font-size: calc(1.25rem * 0.85);
    }

    .cb-gallery-lead {
        font-size: calc(1.1rem * 0.85);
    }
}

.cb-gallery-right {
    position: absolute;
    right: 20px;
    top: 56px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    z-index: 6;
    pointer-events: none;
}

.cb-gallery-chili {
    position: absolute;
    left: 16px;
    bottom: calc(16px + var(--cb-gallery-stats-height, 140px) + 10px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    display: none;
    width: min(22vw, 200px);
}

.cb-gallery-chili-icon {
    width: 70%;
    height: auto;
    display: block;
}

.cb-gallery-rate {
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    display: none;
    width: auto;
    max-width: min(18vw, 130px);
    text-align: center;
    margin-top: 10px;
}

.cb-gallery-rate-inner {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.cb-gallery-rate-back {
    display: block;
    max-width: 100%;
    height: auto;
}

.cb-gallery-rate-fill {
    position: absolute;
    inset: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--cb-rate-fill, 0%)) 0 0);
}

.cb-gallery-rate-star {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cb-gallery-flags {
    position: absolute;
    right: 16px;
    bottom: calc(16px + var(--cb-gallery-stats-height, 140px) + 10px);
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    display: none;
    width: min(18vw, 130px);
}

.cb-gallery-flags-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cb-gallery-flags img {
    display: block;
    width: 100%;
    height: auto;
}

.cb-gallery-stats-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
}

.cb-gallery-stats-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.cb-gallery-stats {
    position: relative;
    z-index: 2;
    width: var(--cb-gallery-stats-width, 190px);
    height: var(--cb-gallery-stats-height, 140px);
    padding: 10px 12px;
    background: rgba(12, 15, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    overflow: hidden;
}

.cb-gallery-stats-inner {
    position: absolute;
    inset: 18px 26px;
    pointer-events: none;
}

.cb-gallery-stats-inner * {
    pointer-events: none;
}

.cb-gallery-silhouette {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 80%;
    width: 135px;
    transform: translateX(-50%);
    display: block;
    object-fit: contain;
    opacity: 0.95;
}
/* Precyzyjne pozycje względem sylwetki */
.cb-stat-bust { left: -14px; top: 8px; }
.cb-stat-waist { left: -14px; top: 36px; }
.cb-stat-hips { left: -14px; top: 64px; }
.cb-stat-cup { left: 43px; top: 18px; font-size: 0.85rem; }
.cb-stat-height { right: -6px; top: 2px; }
.cb-stat-weight { right: -14px; bottom: 7px; }

.cb-gallery-stats .cb-stat {
    position: absolute;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}



.cb-gallery-loader {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cb-gallery-loader::after {
    content: "";
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation: cb-spin 0.9s linear infinite;
}

.cb-gallery.is-loading .cb-gallery-loader {
    opacity: 1;
}

.cb-gallery.is-loading .cb-gallery-main {
    opacity: 0;
}

.cb-gallery.is-loading .cb-gallery-bg {
    opacity: 0.4;
}

@keyframes cb-spin {
    to { transform: rotate(360deg); }
}

@keyframes cb-gallery-slide-out-left {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-120%); opacity: 0; }
}

@keyframes cb-gallery-slide-out-right {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

@keyframes cb-gallery-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cb-gallery-nav {
    position: absolute;
    top: var(--cb-gallery-nav-top, 50%);
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    width: 64px;
    height: 64px;
    border-radius: 0;
    padding: var(--cb-gallery-nav-hit-y, 20vh) 0;
    box-sizing: content-box;
    display: grid;
    place-items: center;
    z-index: 6;
}

.cb-gallery-prev {
    left: 12px;
    padding-right: var(--cb-gallery-nav-hit, 20vw);
}

.cb-gallery-next {
    right: 12px;
    padding-left: var(--cb-gallery-nav-hit, 20vw);
}

.cb-gallery-nav img {
    width: clamp(52px, 11vw, 84px);
    height: clamp(52px, 11vw, 84px);
    display: block;
    opacity: 0.6;
}

.cb-gallery-panel {
    margin: 0 -16px 0;
    padding: 10px 16px 18px;
    background: rgba(12, 15, 20, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    min-height: var(--cb-gallery-panel-collapsed, 64px);
    --cb-gallery-panel-button-height: 40px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    z-index: 6;
}

.cb-gallery-panel-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.cb-gallery-panel-toggle {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #ffffff;
    border-radius: 999px;
    height: var(--cb-gallery-panel-button-height, 40px);
    padding: 0 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cb-gallery-panel-play {
    width: 44px;
    height: 44px;
    justify-self: start;
    align-self: center;
    margin-left: 6px;
    border: 0;
    padding: 0;
    background-color: transparent;
    background-image: url("../gfx/play.png");
    background-repeat: no-repeat;
    background-size: 44px auto;
    background-position: 0 0;
}

.cb-gallery-panel-price {
    height: var(--cb-gallery-panel-button-height, 40px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 8px;
    padding-right: 16px;
    flex-wrap: nowrap;
}

.cb-gallery-panel-price .cb-price {
    text-align: right;
    max-width: 120px;
    white-space: normal;
}

.cb-gallery-panel-price .cb-cart-icon {
    flex: 0 0 auto;
}

.cb-gallery-panel-download {
    justify-self: start;
    align-self: center;
    width: auto;
    white-space: nowrap;
    margin-left: 6px;
}

.cb-gallery-panel-content {
    max-width: 100%;
    margin: 12px auto 0;
    width: 100%;
    color: #e7e9ee;
    font-size: 1rem;
    line-height: 1.55;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.2s ease;
}

.cb-gallery-panel.is-expanded .cb-gallery-panel-content {
    opacity: 1;
}

.cb-gallery-panel-content p {
    margin: 0 0 10px 0;
}

.cb-gallery-panel-content p:last-child {
    margin-bottom: 0;
}

.cb-gallery-panel-comments {
    padding: 6px 0;
    min-height: 200px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    background: rgba(12, 6, 9, 0.6);
}

#disqus_thread,
#disqus_thread iframe {
    width: 100% !important;
    min-width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}


.cb-card:focus .cb-right,
.cb-card:focus-visible .cb-right,
.cb-card:focus-within .cb-right {
    opacity: 1;
    transform: translateX(0);
}

.cb-card.cb-in-cart .cb-right {
    opacity: 1;
    transform: translateX(0);
    transition: none;
}

.cb-card.cb-in-cart .cb-cart-icon {
    background-color: var(--cb-second-color, #ff0000);
    mask-image: url("../gfx/icon-delete.svg");
    -webkit-mask-image: url("../gfx/icon-delete.svg");
}

.cb-gallery.cb-in-cart .cb-cart-icon {
    background-color: var(--cb-second-color, #ff0000);
    mask-image: url("../gfx/icon-delete.svg");
    -webkit-mask-image: url("../gfx/icon-delete.svg");
}

.cb-icon:hover {
    background-color: var(--cb-second-color, var(--cb-icon-hover, #ff0000));
}

/* Nawigacja: ikona zamiast tekstu na wąskim pionowym ekranie */
.cb-nav-icon {
    display: none;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

#cbNav.cb-nav-compact .cb-nav-text {
    display: none;
}

#cbNav.cb-nav-compact .cb-nav-icon {
    display: inline-block;
}

#cbNav.cb-nav-compact .btn {
    font-size: 0.85rem;
}

#cbNav.cb-nav-compact .cb-nav-mail {
    margin-left: 4px;
}

/* Ikona koszyka zawsze biała */
#cbNav img[src$="icon-cart.svg"] {
    filter: brightness(0) invert(1);
}

#cbNav img[src$="icon-search.svg"] {
    filter: brightness(0) invert(1);
}

#cbNav button[data-view="login"],
#cbNav button[data-view="fav"],
#cbNav button[data-view="cart"],
#cbNav button[data-view="search"] {
    position: relative;
}

#cbNav .cb-nav-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--cb-second-color, #ff0000);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
    #cbNav button[data-view="login"] img[src$="login.svg"],
    #cbNav button[data-view="login"] img[src$="logout.svg"],
    #cbNav button[data-view="fav"] img[src$="icon-favorites.svg"],
    #cbNav button[data-view="cart"] img[src$="icon-cart.svg"],
    #cbNav button[data-view="search"] img[src$="icon-search.svg"] {
        display: none;
    }

    #cbNav button[data-view="login"]::before,
    #cbNav button[data-view="fav"]::before,
    #cbNav button[data-view="cart"]::before,
    #cbNav button[data-view="search"]::before {
        content: "";
        width: 24px;
        height: 24px;
        display: block;
        background-color: var(--cb-font-color, #ffffff);
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: 24px 24px;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: 24px 24px;
        transition: background-color var(--cb-hover-transition);
    }

    #cbNav button[data-view="cart"]::before {
        mask-image: url("../gfx/icon-cart.svg");
        -webkit-mask-image: url("../gfx/icon-cart.svg");
    }

    #cbNav button[data-view="login"]::before {
        mask-image: url("../gfx/login.svg");
        -webkit-mask-image: url("../gfx/login.svg");
    }

    #cbNav button[data-view="login"][data-logged-in="1"]::before {
        mask-image: url("../gfx/logout.svg");
        -webkit-mask-image: url("../gfx/logout.svg");
    }

    #cbNav button[data-view="fav"]::before {
        mask-image: url("../gfx/icon-favorites.svg");
        -webkit-mask-image: url("../gfx/icon-favorites.svg");
    }

    #cbNav button[data-view="search"]::before {
        mask-image: url("../gfx/icon-search.svg");
        -webkit-mask-image: url("../gfx/icon-search.svg");
    }

    #cbNav button[data-view="login"]:hover::before,
    #cbNav button[data-view="login"]:focus-visible::before,
    #cbNav button[data-view="fav"]:hover::before,
    #cbNav button[data-view="fav"]:focus-visible::before,
    #cbNav button[data-view="cart"]:hover::before,
    #cbNav button[data-view="cart"]:focus-visible::before,
    #cbNav button[data-view="search"]:hover::before,
    #cbNav button[data-view="search"]:focus-visible::before {
        background-color: var(--cb-second-color, #ff0000);
    }
}

#cbNav img {
    width: 24px;
    height: 24px;
}

#cbNav .cb-nav-mail {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 14px;
}

#cbNav .cb-nav-mail img {
    width: auto;
    height: auto;
}

#cbNav .btn-icon-ghost {
    border: 0;
    background: transparent;
    padding: 0 6px;
    transition: color var(--cb-hover-transition), background-color var(--cb-hover-transition);
}

#cbNav .btn-icon-ghost:hover,
#cbNav .btn-icon-ghost:focus {
    background: rgba(255, 255, 255, 0.08);
}

#cbNav button[data-view="search"]:hover,
#cbNav button[data-view="search"]:focus {
    background: transparent;
}

/* Toolbar */
.cb-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cb-toolbar .cb-left,
.cb-toolbar .cb-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 1;
    transform: none;
}

.cb-toolbar .cb-reset-filters {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
}

.cb-toolbar .cb-reset-filters img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.cb-toolbar .cb-reset-filters.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.cb-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cb-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #5b2a2a;
    background: rgba(40, 16, 16, 0.85);
    color: #f2f2f2;
    font-size: 0.85rem;
}

.cb-filter-chip-remove {
    border: 0;
    background: transparent;
    color: #f2f2f2;
    padding: 0;
    line-height: 1;
}

.cb-filter-chip-action {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    justify-content: center;
    cursor: pointer;
}

.cb-filter-chip-action img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
    transform: scale(1.3);
    transform-origin: center;
}

.cb-filter-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1055;
}

.cb-filter-modal.is-open {
    display: block;
}

.cb-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cb-filter-dialog {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 10vh auto 0;
    padding: 24px;
    border-radius: 18px;
    background: rgba(30, 20, 25, 0.7);
    backdrop-filter: blur(6px);
    color: #e7e9ee;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .cb-filter-dialog {
        margin: 8vh 12px 0;
        padding: 18px;
    }
}

.cb-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.cb-filter-close {
    border: 0;
    background: transparent;
    color: #e7e9ee;
    font-size: 1.1rem;
    line-height: 1;
}

.cb-filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
}

.cb-filter-search img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.cb-filter-search input {
    background: transparent;
    border: 0;
    outline: none;
    color: #f2f2f2;
    width: 100%;
}

.cb-filter-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px 22px;
}

.cb-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cb-filter-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.cb-filter-item .form-check-input {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.cb-filter-item .form-check-input:checked {
    background-color: #b02b2b;
    border-color: #b02b2b;
}

.cb-toolbar .form-select {
    min-width: 160px;
}

.cb-toolbar .cb-search-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
}

.cb-toolbar .cb-search-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.cb-sort {
    margin-left: auto;
}

.cb-sort-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
}

.cb-sort-btn.dropdown-toggle::after {
    display: none;
}

.cb-sort-icons {
    display: inline-flex;
    flex-direction: row;
    gap: 4px;
    line-height: 1;
}

.cb-sort-icons img {
    width: 14px;
    height: 14px;
    display: block;
}

.cb-sort .dropdown-menu {
    background: #1b0508;
    border-color: #3a0b12;
    min-width: 220px;
}

.cb-sort .dropdown-item {
    color: #e7e9ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cb-sort .dropdown-item:hover,
.cb-sort .dropdown-item:focus {
    background: #2a0a10;
    color: #ffffff;
}

.cb-sort .dropdown-item.active {
    background: #3b0f18;
    color: #ffffff;
}

.cb-sort-dir-icon {
    width: 16px;
    height: 16px;
    display: none;
}

.cb-sort .dropdown-item.active .cb-sort-dir-icon {
    display: inline-block;
}

/* Pager */
.cb-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cb-pager .pagination {
    margin-bottom: 0;
}

/* =========================
   Tryb karuzel (Netflix-like)
   ========================= */

.cb-section {
    margin-top: 10px;
}

.cb-section-title {
    font-weight: 400;
    font-size: 1.45rem;
    margin: 0 0 8px 0;
}

.cb-carousel {
    position: relative;
}

.cb-carousel-track {
    display: flex;
    gap: var(--cb-gap, 16px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cb-carousel-track::-webkit-scrollbar {
    display: none;
}

.cb-carousel-track::-webkit-scrollbar-thumb {
    background: transparent;
}

.cb-carousel-item {
    flex: 0 0 auto;
    /*
      Szerokość elementu zależna od szerokości kontenera (jak w siatce),
      z lekkim "peek" kolejnego elementu (var --cb-carousel-fill < 1).

      cols = --cb-carousel-cols
      gap  = --cb-gap
    */
    width: calc(
      ((100% - ((var(--cb-carousel-cols, 1) - 1) * var(--cb-gap, 16px))) / var(--cb-carousel-cols, 1))
      * var(--cb-carousel-fill, 0.97)
    );
    scroll-snap-align: start;
}

.cb-carousel-nav {
    position: absolute;
    top: calc(50% - (var(--cb-meta-height, 46px) / 2));
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: transparent;
    width: 50px;
    height: 50px;
    border-radius: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    font-size: 0;
    line-height: 1;
    background-color: var(--cb-font-color, var(--cb-carousel-nav-color, #ffffff));
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 50px 50px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 50px 50px;
    transition: background-color var(--cb-hover-transition);
}

.cb-carousel-prev {
    left: 2px;
    mask-image: url("../gfx/icon-prev.svg");
    -webkit-mask-image: url("../gfx/icon-prev.svg");
}

.cb-carousel-next {
    right: 2px;
    mask-image: url("../gfx/icon-next.svg");
    -webkit-mask-image: url("../gfx/icon-next.svg");
}

.cb-carousel-hidden {
    display: none;
}

.cb-carousel-nav:hover,
.cb-carousel-nav:focus-visible {
    background-color: var(--cb-second-color, #ff0000);
}

/* W trybie karuzel karty mają identyczny wygląd jak w siatce. */

.transfer-modal .modal-header {
    background: var(--cb-modal-header-bg, #452435);
    color: #ffffff;
    border-bottom: 0;
}

.transfer-modal .modal-title {
    font-weight: 600;
}

.transfer-modal .btn-close {
    filter: invert(1);
}

.transfer-body {
    background: #d8d8d8;
    color: #1f1f1f;
}

.transfer-lead {
    font-weight: 600;
    margin-bottom: 12px;
}

.transfer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transfer-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.transfer-row .clip-icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
}

.transfer-text {
    display: inline;
}

.transfer-label {
    font-weight: 700;
    margin-right: 6px;
}

.transfer-footer {
    background: #d8d8d8;
    border-top: 1px solid #c6c6c6;
    justify-content: center;
}


.transfer-footer .btn-primary {
    min-width: 64px;
    padding: 6px 18px;
    font-weight: 600;
    color: #ffffff;
    background: #1e7bff;
    border-color: #1e7bff;
}


#wintoast {
    background: #2b2b2b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#wintoast .toast-body {
    color: #ffffff;
}

#spinner-shop {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    margin-left: -32px;
    margin-top: -32px;
    border-radius: 50%;
    z-index: 2000;
    background: rgba(122, 31, 43, 0.08);
    animation: rotate 1s linear infinite;
    pointer-events: none;
}

#spinner-shop::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 5px solid rgba(255, 61, 0, 0.75);
    box-sizing: border-box;
    animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
}

#spinner-shop::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
    animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes prixClipFix {
    0% { clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); }
    25% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); }
    50% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); }
    75% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); }
    100% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); }
}

/* Marquee banner */
body.has-marquee {
    padding-bottom: var(--marquee-height, 0px);
}

.marquee-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    padding: 10px 16px;
    background: var(--store-module-bg, #1a0609);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.marquee-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.marquee-content {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    height: 34px;
}

#marqueeText {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    transform: translateY(100%);
    will-change: transform;
}

#marqueeText.centered-text {
    left: 50%;
}

.marquee-close {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 6px;
}

@keyframes introAnimShort {
    from { transform: translate(-50%, 100%); }
    to { transform: translate(-50%, 0); }
}

@keyframes introAnimLong {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes marqueeAnimSingle {
    from { transform: translateX(0); }
    to { transform: translateX(var(--shift, 0px)); }
}


