/* ==========================================================================
   Loot Audio — Single Promotion Page Styles (promo-single.css)
   Supports Dark Mode (default) and Light Mode (html.light-theme-active)
   ========================================================================== */

/* Page Container */
.promo-page-container {
    --promo-page-pad-x: 20px;
    max-width: 1550px;
    width: 100%;
    margin: 0 auto;
    padding: 110px var(--promo-page-pad-x) 0;
    box-sizing: border-box;
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.promo-banner-single {
    position: relative;
    min-height: 250px;
    width: 100%;
    max-width: 1550px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    overflow: hidden;
}

.promo-banner-single::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.08) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.promo-banner-left h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0 0 10px 0;
    font-weight: 800;
    text-transform: uppercase;
}

.promo-timer-container {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.promo-timer .label {
    display: block;
    font-size: 0.9rem;
    color: #eee;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.promo-timer .countdown {
    font-size: 2.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Back Nav & Two-Column Layout
   ========================================================================== */
.promo-back-nav {
    text-align: right;
    margin: 20px 0;
}

.promo-back-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: color 0.2s;
}

.promo-back-nav a:hover {
    color: #fff;
}

.promo-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* ==========================================================================
   Sidebar Filters (Desktop)
   ========================================================================== */
.promo-sidebar {
    width: 268px;
    flex-shrink: 0;
    background: #161616;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    box-sizing: border-box;
}

/* Mobile-only trigger & mobile search hidden on desktop */
.mobile-filter-toggle,
.promo-search-mobile,
.mobile-drawer-header,
.mobile-drawer-footer {
    display: none;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 12px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.filter-section-header h4 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #ccc;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-reset-link {
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    text-decoration: underline;
    transition: color 0.15s;
}

.filter-reset-link:hover {
    color: #e63946;
}

.filter-hint {
    font-size: 0.78rem;
    color: #7d8590;
    margin: -4px 0 10px 0;
    line-height: 1.35;
}

/* Additive Category Filter Buttons */
.filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 13px;
    margin-bottom: 8px;
    background: #202020;
    border: 1px solid #333;
    color: #ccc;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.filter-btn:last-of-type {
    margin-bottom: 0;
}

.filter-btn-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.filter-btn-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #555;
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.filter-btn-check svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.15s ease;
}

.filter-btn-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #777;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.filter-btn.active {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.filter-btn.active .filter-btn-check {
    background: #fff;
    border-color: #fff;
    color: #e63946;
}

.filter-btn.active .filter-btn-check svg {
    opacity: 1;
    transform: scale(1);
}

.filter-btn.active .filter-btn-count {
    color: rgba(255, 255, 255, 0.85);
}

.filter-btn.active:hover {
    background: #f04451;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 4px 12px rgba(230, 57, 70, 0.35);
}

.filter-btn:hover:not(.active) {
    background: #2b2b2b;
    border-color: #4a4a4a;
    color: #fff;
}

.filter-btn:active {
    transform: translateY(1px);
}

.filter-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
    border-color: #333 !important;
}

/* Kontakt Player Only Toggle */
.kp-filter-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #2e2e2e;
}

.kp-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
}

.kp-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.kp-toggle-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.kp-toggle-check svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.15s ease;
}

.kp-toggle-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    font-weight: 700;
    flex-shrink: 0;
}

.kp-toggle-count,
#kp-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.kp-toggle-btn:hover:not(.active) {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.48);
    color: #fff;
}

.kp-toggle-btn.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
}

.kp-toggle-btn.active .kp-toggle-check,
.kp-toggle-btn.active .filter-btn-check {
    background: #fff;
    border-color: #fff;
    color: #0284c7;
}

.kp-toggle-btn.active .kp-toggle-check svg,
.kp-toggle-btn.active .filter-btn-check svg {
    opacity: 1;
    transform: scale(1);
}

.kp-toggle-btn.active .kp-toggle-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.kp-toggle-btn.active .kp-toggle-count,
.kp-toggle-btn.active #kp-count {
    color: rgba(255, 255, 255, 0.9);
}

.kp-toggle-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

/* Discount % Filter Chips */
.discount-chips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.discount-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    white-space: nowrap;
    background: #202020;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.discount-chip:hover:not(.active) {
    background: #2b2b2b;
    border-color: #4a4a4a;
    color: #fff;
}

.discount-chip.active {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.discount-chip-count {
    font-size: 0.73rem;
    font-weight: 600;
    color: #7d8590;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.discount-chip.active .discount-chip-count {
    color: rgba(255, 255, 255, 0.88);
}

.discount-chip.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

/* Price Range Slider, Budget Presets & Min/Max Inputs */
.mock-slider {
    width: calc(100% - 20px);
    height: 6px;
    background: #333;
    border-radius: 999px;
    position: relative;
    margin: 18px auto 14px;
    touch-action: none;
    cursor: pointer;
}

.mock-slider-fill {
    position: absolute;
    left: 0%;
    width: 100%;
    height: 100%;
    background: #e63946;
    border-radius: 999px;
}

.mock-slider-handle {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #e63946;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    cursor: grab;
    transform: translateX(-50%);
    touch-action: none;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.mock-slider-handle:hover,
.mock-slider-handle:active {
    transform: translateX(-50%) scale(1.12);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.22), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.mock-slider-handle:active {
    cursor: grabbing;
}

.mock-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.price-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
}

.price-preset-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 8px;
    background: #202020;
    border: 1px solid #333;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.price-preset-btn:hover:not(.active) {
    background: #2b2b2b;
    border-color: #4a4a4a;
    color: #fff;
}

.price-preset-btn.active {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.price-preset-btn.disabled,
.price-preset-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.price-inputs-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.price-input-group {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.price-input-prefix {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #7d8590;
    font-size: 0.82rem;
    font-weight: 600;
    pointer-events: none;
}

.price-inputs-sep {
    color: #64748b;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.price-num-input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 8px 7px 22px;
    background: #111;
    border: 1px solid #383838;
    border-radius: 6px;
    color: #f1f5f9;
    font-size: 0.85rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    outline: none;
    transition: border-color 0.15s ease;
    -moz-appearance: textfield;
}

.price-num-input::-webkit-outer-spin-button,
.price-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-num-input::placeholder {
    color: #64748b;
}

.price-num-input:focus {
    border-color: #e63946;
}

/* Developer Search Box & Labels List */
.label-search-wrap {
    position: relative;
    margin-top: 8px;
    margin-bottom: 8px;
}

.label-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 32px 9px 11px;
    background: #111;
    border: 1px solid #383838;
    border-radius: 6px;
    color: #eee;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.label-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.label-search-input::placeholder {
    color: #6f7680;
}

.label-search-input:focus {
    border-color: #e63946;
}

.label-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888;
    font-size: 16px;
    line-height: 1;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.label-search-clear.visible {
    display: flex;
}

.label-search-clear:hover {
    color: #fff;
}

.label-search-empty {
    display: none;
    padding: 14px 12px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.labels-list {
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 0;
}

.labels-list::-webkit-scrollbar {
    width: 8px;
}

.labels-list::-webkit-scrollbar-track {
    background: #111;
}

.labels-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.label-checkbox-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.label-checkbox-wrapper.search-hidden {
    display: none !important;
}

.label-checkbox-wrapper:hover {
    background: #222;
}

.label-checkbox {
    margin: 0 10px 0 0;
    accent-color: #e63946;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.label-text {
    color: #ddd;
    flex-grow: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label-count {
    color: #777;
    font-size: 0.8rem;
    margin-left: 8px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.label-checkbox-wrapper.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.filter-select {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    box-sizing: border-box;
}

.filter-select:focus {
    outline: none;
    border-color: #666;
}

/* ==========================================================================
   Main Content, Inline Search, Sorting Bar & Active Filter Chips
   ========================================================================== */
.promo-main {
    flex-grow: 1;
    min-width: 0;
}

.sorting-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: #1a1a1a;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    gap: 14px;
    border: 1px solid #2a2a2a;
}

.sorting-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Inline Deal Search (shared by desktop .sorting-bar and mobile .promo-search-mobile) */
.promo-search-wrap {
    position: relative;
    flex: 1 1 240px;
    max-width: 380px;
    min-width: 180px;
}

.promo-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #7d8590;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-search-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.promo-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 32px 9px 34px;
    background: #111;
    border: 1px solid #383838;
    border-radius: 6px;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.promo-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.promo-search-input::placeholder {
    color: #6f7680;
}

.promo-search-input:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.promo-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888;
    font-size: 17px;
    line-height: 1;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.promo-search-clear.visible {
    display: flex;
}

.promo-search-clear:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sort-label {
    color: #94a3b8;
    font-size: 0.88rem;
    white-space: nowrap;
}

.sort-select {
    background: #111;
    border: 1px solid #444;
    color: #eee;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #e63946;
}

/* Active Filter Chips Bar */
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 16px 0;
}

.active-filters-bar:empty,
.active-filters-bar.is-empty {
    display: none;
    margin: 0;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 11px;
    border-radius: 999px;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.4);
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    max-width: 100%;
}

.active-filter-chip:hover {
    background: rgba(230, 57, 70, 0.28);
    border-color: #e63946;
}

.active-filter-chip-label {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-filter-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.active-filter-chip:hover .active-filter-chip-x {
    background: #e63946;
}

.active-filters-clear {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.active-filters-clear:hover {
    color: #e63946;
}

/* ==========================================================================
   Products Grid, List Mode, Loader Overlay & Load More
   ========================================================================== */
.promo-products-wrapper {
    position: relative;
    min-height: 400px;
    width: 100%;
}

.promo-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.promo-products-grid.list_mode,
.promo-products-grid:has(table.list_view) {
    display: block !important;
    width: 100% !important;
}

.promo-products-grid table.list_view {
    width: 100% !important;
}

.promo-empty-state {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
}

.promo-loading-state .promo-product-card {
    opacity: 0.2;
    transform: scale(0.98);
}

.promo-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 150px;
    background: rgba(21, 21, 21, 0.4);
    backdrop-filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.promo-products-wrapper.is-loading .promo-loading-overlay {
    display: flex;
    opacity: 1;
}

.promo-products-wrapper.is-loading #main-products-grid {
    opacity: 0.35;
    pointer-events: none;
}

.load-more-container {
    text-align: center;
    margin-top: 36px;
}

.load-more-progress {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0 0 12px 0;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.load-more-btn {
    background: #e63946;
    border: 2px solid #e63946;
    color: #fff;
    padding: 14px 45px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    background: #f04451;
    border-color: #f04451;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

.load-more-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
    .promo-banner-left h1 {
        font-size: 2.4rem;
    }
}

/* Tablet & Mobile Sticky Filter Trigger + Full-Screen Drawer */
@media (max-width: 900px) {
    .promo-layout {
        flex-direction: column;
        gap: 12px;
    }

    /* Seamless sticky bar — matches .bg__ebony (#313745) edge-to-edge with zero box or darker rectangle */
    .promo-sidebar {
        width: calc(100% + (var(--promo-page-pad-x, 20px) * 2));
        position: sticky;
        top: var(--promo-mob-header-h, 60px);
        z-index: 20;
        padding: 6px var(--promo-page-pad-x, 20px) 8px;
        background: #313745;
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin: 0 0 0 calc(-1 * var(--promo-page-pad-x, 20px));
        box-sizing: border-box;
    }

    .promo-sidebar.expanded {
        z-index: 10000001 !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Single-line, zero-wrapping Filters & Sort trigger button */
    .mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.06);
        color: #f1f5f9;
        border: 1px solid rgba(255, 255, 255, 0.14);
        padding: 10px 12px;
        font-weight: 700;
        border-radius: 9px;
        cursor: pointer;
        font-size: 0.86rem;
        line-height: 1.2;
        white-space: nowrap;
        transition: background 0.18s ease, border-color 0.18s ease;
    }

    .mobile-filter-toggle:hover,
    .mobile-filter-toggle:active {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.24);
    }

    .mobile-filter-toggle > span,
    .mobile-filter-toggle-left,
    .mobile-filter-toggle-right {
        display: inline-flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        white-space: nowrap;
        min-width: 0;
    }

    .mobile-filter-toggle-right {
        flex-shrink: 0;
    }

    .mobile-filter-toggle svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .mobile-filter-toggle-label {
        white-space: nowrap;
        flex-shrink: 0;
    }

    #mobile-active-filter-pill,
    .mobile-active-filter-pill {
        display: none;
        font-size: 0.72rem;
        line-height: 1.2;
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        padding: 2px 7px;
        border-radius: 999px;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
    }

    #mobile-filter-count,
    .mobile-filter-count {
        font-size: 0.76rem;
        line-height: 1.2;
        background: #e63946;
        color: #fff;
        padding: 2px 8px;
        border-radius: 999px;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
        font-variant-numeric: tabular-nums;
    }

    #mobile-filter-arrow,
    .mobile-filter-arrow {
        font-size: 0.72rem;
        opacity: 0.8;
        line-height: 1;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    /* Compact Mobile Search Bar right under Filters & Sort */
    .promo-search-mobile {
        display: block;
        margin-top: 8px;
        width: 100%;
    }

    .promo-search-mobile .promo-search-wrap {
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .promo-search-mobile .promo-search-input {
        font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
        padding: 9px 34px 9px 34px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.13);
    }

    .promo-search-mobile .promo-search-input:focus {
        background: rgba(15, 23, 42, 0.65);
        border-color: #e63946;
    }

    /* Full-Screen 100dvh Mobile Drawer */
    .promo-sidebar-inner {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 10000001;
        background: #141414;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        box-sizing: border-box;
    }

    .promo-sidebar.expanded .promo-sidebar-inner {
        display: flex;
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
        background: #1b1b1b;
        border-bottom: 1px solid #2c2c2c;
    }

    .mobile-drawer-title {
        margin: 0;
        font-size: 1.08rem;
        font-weight: 700;
        color: #fff;
    }

    .mobile-drawer-header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-drawer-reset {
        background: transparent;
        border: 1px solid #444;
        color: #ccc;
        font-size: 0.82rem;
        font-weight: 600;
        padding: 6px 11px;
        border-radius: 6px;
        cursor: pointer;
    }

    .mobile-drawer-close-x {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid #3a3a3a;
        background: #252525;
        color: #fff;
        font-size: 22px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    .promo-sidebar-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 18px 16px 28px;
        box-sizing: border-box;
    }

    /* Single native scroll container on mobile/iOS — NO nested scroll trap */
    .labels-list {
        max-height: none;
        overflow: visible;
        padding: 4px 0;
    }

    .label-checkbox-wrapper {
        padding: 11px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .label-checkbox-wrapper:last-child {
        border-bottom: none;
    }

    .label-checkbox {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    .label-text {
        font-size: 0.96rem;
    }

    .label-search-input,
    .filter-select,
    .price-num-input {
        font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
    }

    .label-search-input {
        padding: 11px 36px 11px 12px;
    }

    .price-num-input {
        padding: 9px 10px 9px 24px;
    }

    .mock-slider-handle {
        width: 24px;
        height: 24px;
        top: -9px;
    }

    .mobile-drawer-footer {
        display: flex;
        flex-shrink: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: #1b1b1b;
        border-top: 1px solid #2c2c2c;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
    }

    .mobile-filter-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0 !important;
        padding: 14px 18px;
        background: #e63946 !important;
        border: 1px solid #e63946 !important;
        color: #fff !important;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 8px;
        text-align: center;
    }

    .sorting-bar {
        display: none !important;
    }

    .mobile-only-sort {
        display: block !important;
    }

    .active-filters-bar {
        margin: 0 0 12px 0;
    }

    .promo-products-grid {
        padding-top: 2px;
    }
}

html.promo-drawer-open,
body.promo-drawer-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

/* Mobile Full-Bleed Compact Hero Banner (<= 768px) */
@media (max-width: 768px) {
    .promo-page-container {
        --promo-page-pad-x: 16px;
        padding: var(--promo-mob-header-h, 64px) var(--promo-page-pad-x) 0 !important;
    }

    .promo-banner-single {
        width: calc(100% + (var(--promo-page-pad-x, 16px) * 2));
        max-width: none;
        margin: 0 0 10px calc(-1 * var(--promo-page-pad-x, 16px));
        min-height: 145px;
        padding: 1.05rem 1.2rem;
        border-radius: 0;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }

    .promo-banner-single::before {
        border-radius: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.78) 100%);
    }

    .promo-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .promo-banner-left h1 {
        font-size: 1.45rem;
        line-height: 1.12;
        margin: 0 0 4px 0;
    }

    .promo-timer-container {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        gap: 2px;
    }

    .promo-timer .label {
        font-size: 0.72rem;
        letter-spacing: 0.6px;
        margin-bottom: 2px;
    }

    .promo-timer .countdown {
        font-size: 1.25rem;
        line-height: 1.15;
    }

    .promo-back-nav {
        margin: 8px 0 10px;
    }

    .promo-back-nav a {
        font-size: 0.85rem;
    }
}

/* Extra-small screens (iPhone SE / 360px) */
@media (max-width: 380px) {
    .mobile-filter-toggle {
        padding: 9px 10px;
        font-size: 0.82rem;
        gap: 5px;
    }

    .mobile-filter-toggle > span,
    .mobile-filter-toggle-left,
    .mobile-filter-toggle-right {
        gap: 5px;
    }

    #mobile-active-filter-pill,
    .mobile-active-filter-pill {
        padding: 2px 6px;
        font-size: 0.7rem;
    }

    #mobile-filter-count,
    .mobile-filter-count {
        padding: 2px 7px;
        font-size: 0.73rem;
    }
}

/* Responsive Product Grid Columns */
@media (min-width: 1660px) {
    .promo-products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1280px) and (max-width: 1659px) {
    .promo-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px;
    }
}

@media (min-width: 641px) and (max-width: 1279px) {
    .promo-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .promo-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .promo-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* ==========================================================================
   Light Mode Overrides (html.light-theme-active)
   ========================================================================== */
html.light-theme-active body,
html.light-theme-active body.bg__ebony,
html.light-theme-active main {
    background: #f8fafc !important;
    color: #0f172a !important;
}

html.light-theme-active .promo-back-nav a {
    color: #64748b !important;
}

html.light-theme-active .promo-back-nav a:hover {
    color: #0f172a !important;
}

/* Sidebar Filters */
html.light-theme-active .promo-sidebar {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme-active .filter-section h4 {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

html.light-theme-active .filter-section-header {
    border-bottom-color: #e2e8f0 !important;
}

html.light-theme-active .filter-reset-link {
    color: #64748b !important;
}

html.light-theme-active .filter-reset-link:hover {
    color: #e63946 !important;
}

html.light-theme-active .filter-hint {
    color: #64748b !important;
}

/* Category Buttons */
html.light-theme-active .filter-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

html.light-theme-active .filter-btn-check {
    border-color: #94a3b8 !important;
    background: #ffffff !important;
}

html.light-theme-active .filter-btn-count {
    color: #64748b !important;
}

html.light-theme-active .filter-btn:hover:not(.active) {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

html.light-theme-active .filter-btn.active {
    background: #e63946 !important;
    border-color: #e63946 !important;
    color: #ffffff !important;
}

html.light-theme-active .filter-btn.active .filter-btn-check {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #e63946 !important;
}

html.light-theme-active .filter-btn.active .filter-btn-count {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Kontakt Player Toggle (Light Mode) */
html.light-theme-active .kp-filter-wrap {
    border-top-color: #e2e8f0 !important;
}

html.light-theme-active .kp-toggle-btn {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0c4a6e !important;
}

html.light-theme-active .kp-toggle-check {
    background: #ffffff !important;
    border-color: #0284c7 !important;
}

html.light-theme-active .kp-toggle-badge {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

html.light-theme-active .kp-toggle-count,
html.light-theme-active #kp-count {
    color: #0369a1 !important;
}

html.light-theme-active .kp-toggle-btn:hover:not(.active) {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
}

html.light-theme-active .kp-toggle-btn.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

html.light-theme-active .kp-toggle-btn.active .kp-toggle-check,
html.light-theme-active .kp-toggle-btn.active .filter-btn-check {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #0284c7 !important;
}

html.light-theme-active .kp-toggle-btn.active .kp-toggle-badge {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

html.light-theme-active .kp-toggle-btn.active .kp-toggle-count,
html.light-theme-active .kp-toggle-btn.active #kp-count {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Discount % Chips (Light Mode) */
html.light-theme-active .discount-chip {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html.light-theme-active .discount-chip-count {
    color: #64748b !important;
}

html.light-theme-active .discount-chip:hover:not(.active) {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html.light-theme-active .discount-chip.active {
    background: #e63946 !important;
    border-color: #e63946 !important;
    color: #ffffff !important;
}

html.light-theme-active .discount-chip.active .discount-chip-count {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Price Slider, Presets & Min/Max Inputs (Light Mode) */
html.light-theme-active .mock-slider {
    background: #cbd5e1 !important;
}

html.light-theme-active .mock-slider-fill {
    background: #e63946 !important;
}

html.light-theme-active .mock-slider-handle {
    background: #e63946 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
}

html.light-theme-active .mock-slider-labels,
html.light-theme-active #price-min-label,
html.light-theme-active #price-max-label,
html.light-theme-active .filter-section p,
html.light-theme-active .price-val {
    color: #475569 !important;
}

html.light-theme-active .price-preset-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html.light-theme-active .price-preset-btn:hover:not(.active) {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html.light-theme-active .price-preset-btn.active {
    background: #e63946 !important;
    border-color: #e63946 !important;
    color: #ffffff !important;
}

html.light-theme-active .price-num-input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light-theme-active .price-num-input:focus {
    border-color: #e63946 !important;
}

html.light-theme-active .price-input-prefix,
html.light-theme-active .price-inputs-sep {
    color: #64748b !important;
}

/* Developer Search & List (Light Mode) */
html.light-theme-active .label-search-input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light-theme-active .label-search-input::placeholder {
    color: #94a3b8 !important;
}

html.light-theme-active .label-search-clear {
    color: #64748b !important;
}

html.light-theme-active .label-search-clear:hover {
    color: #0f172a !important;
}

html.light-theme-active .labels-list {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    scrollbar-color: #cbd5e1 #f1f5f9 !important;
}

html.light-theme-active .labels-list::-webkit-scrollbar {
    width: 6px !important;
}

html.light-theme-active .labels-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

html.light-theme-active .labels-list::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 4px !important;
}

html.light-theme-active .label-checkbox-wrapper:hover {
    background: #f1f5f9 !important;
}

html.light-theme-active .label-text {
    color: #0f172a !important;
}

html.light-theme-active .label-count {
    color: #64748b !important;
}

html.light-theme-active .filter-select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Sorting Bar & Inline Search (Light Mode) */
html.light-theme-active .sorting-bar {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme-active .promo-search-input {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light-theme-active .promo-search-input::placeholder {
    color: #94a3b8 !important;
}

html.light-theme-active .promo-search-input:focus {
    background: #ffffff !important;
    border-color: #e63946 !important;
}

html.light-theme-active .promo-search-icon,
html.light-theme-active .promo-search-clear {
    color: #64748b !important;
}

html.light-theme-active .promo-search-clear:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.06) !important;
}

html.light-theme-active .sort-label {
    color: #475569 !important;
}

html.light-theme-active .sort-select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Active Filter Chips (Light Mode) */
html.light-theme-active .active-filter-chip {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #9f1239 !important;
}

html.light-theme-active .active-filter-chip:hover {
    background: #ffe4e6 !important;
    border-color: #e63946 !important;
}

html.light-theme-active .active-filter-chip-x {
    background: rgba(159, 18, 57, 0.14) !important;
    color: #9f1239 !important;
}

html.light-theme-active .active-filter-chip:hover .active-filter-chip-x {
    background: #e63946 !important;
    color: #ffffff !important;
}

html.light-theme-active .active-filters-clear {
    color: #475569 !important;
}

html.light-theme-active .active-filters-clear:hover {
    color: #e63946 !important;
}

/* Mobile Trigger & Drawer (Light Mode) */
html.light-theme-active .mobile-filter-toggle {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}

html.light-theme-active #mobile-active-filter-pill,
html.light-theme-active .mobile-active-filter-pill {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

@media (max-width: 900px) {
    html.light-theme-active .promo-sidebar {
        background: #f8fafc !important;
        border: none !important;
        box-shadow: none !important;
    }

    html.light-theme-active .promo-search-mobile .promo-search-input {
        background: #ffffff !important;
        border-color: #cbd5e1 !important;
        color: #0f172a !important;
    }

    html.light-theme-active .promo-sidebar-inner {
        background: #f8fafc !important;
    }

    html.light-theme-active .mobile-drawer-header,
    html.light-theme-active .mobile-drawer-footer {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
    }

    html.light-theme-active .mobile-drawer-title {
        color: #0f172a !important;
    }

    html.light-theme-active .mobile-drawer-reset {
        border-color: #cbd5e1 !important;
        color: #334155 !important;
    }

    html.light-theme-active .mobile-drawer-close-x {
        background: #f1f5f9 !important;
        border-color: #cbd5e1 !important;
        color: #0f172a !important;
    }

    html.light-theme-active .label-checkbox-wrapper {
        border-bottom-color: #e2e8f0 !important;
    }
}

/* Product Cards, Loader & Load More (Light Mode) */
html.light-theme-active .promo-product-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme-active .promo-product-card:hover {
    border-color: #e63946 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

html.light-theme-active .promo-product-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html.light-theme-active .promo-product-brand {
    color: #64748b !important;
    font-weight: 500 !important;
}

html.light-theme-active .promo-product-info h4 {
    color: #059669 !important;
    font-weight: 800 !important;
}

html.light-theme-active .promo-card-actions {
    border-top: 1px solid #e2e8f0 !important;
}

html.light-theme-active .promo-action-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

html.light-theme-active .promo-action-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html.light-theme-active .promo-action-btn.cart {
    border-right: 1px solid #e2e8f0 !important;
}

html.light-theme-active .promo-loading-overlay {
    background: rgba(248, 250, 252, 0.5) !important;
}

html.light-theme-active .load-more-progress,
html.light-theme-active .promo-empty-state {
    color: #475569 !important;
}
