/* /webshop_cat — scope .wsc-* ; kolory jak assets/catalog/catalog.css */

.wsc-page {
    --wsc-surface: #1e1e1e;
    --wsc-surface-raised: #262626;
    --wsc-surface-input: #2e2e2e;
    --wsc-border: rgba(255, 255, 255, 0.14);
    --wsc-border-subtle: rgba(255, 255, 255, 0.09);
    --wsc-text-muted: #a3a3a3;
    --wsc-text-body: #e8e8e8;
    --wsc-primary: var(--primary-color, #ff6600);
    min-height: 100vh;
    padding: 1.25rem 0 3rem;
    color: var(--wsc-text-body);
    background: #0a0a0a;
}

.wsc-wrap {
    width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
}

.wsc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wsc-top {
    margin-bottom: 1.25rem;
}

.wsc-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.wsc-logo {
    height: 36px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

.wsc-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}

.wsc-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.wsc-search-input,
.wsc-select {
    background: var(--wsc-surface-input);
    border: 1px solid var(--wsc-border);
    color: var(--wsc-text-body);
    padding: 0.75rem 0.85rem;
    font-size: 16px;
    border-radius: 0;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
}

.wsc-search-input {
    flex: 1;
    min-width: 12rem;
}

.wsc-search-input:focus,
.wsc-select:focus {
    outline: none;
    border-color: rgba(255, 102, 0, 0.55);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.15);
}

.wsc-select:disabled {
    opacity: 0.45;
}

.wsc-search-btn,
.wsc-more {
    background: var(--wsc-primary);
    color: #0a0a0a;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
}

/* Jak CTA katalogu: hover ciemny — biały hover ginął na jasnym tle */
.wsc-search-btn:hover,
.wsc-search-btn:focus-visible,
.wsc-more:hover,
.wsc-more:focus-visible {
    background: #121212;
    color: #fff;
    outline: none;
}

/* Koszyk: sama ikona, kwadrat premium */
.wsc-shop-btn {
    background: var(--wsc-primary);
    color: #0a0a0a;
    border: 1px solid rgba(0, 0, 0, 0.12);
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wsc-shop-btn:hover,
.wsc-shop-btn:focus-visible {
    background: #121212;
    color: #fff;
    border-color: #121212;
    outline: none;
}

/* Legacy corner cart — wyłączony (koszyk w rzędzie SKU na mobile) */
.wsc-shop-btn--corner {
    display: none !important;
}

.wsc-controls {
    display: grid;
    gap: 1rem;
}

.wsc-selects,
.wsc-filters {
    background: var(--wsc-surface);
    border: 1px solid var(--wsc-border-subtle);
    border-radius: 0;
    padding: 1.25rem 1.5rem;
}

.wsc-selects {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
    position: relative;
}

.wsc-selects-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
}

/* Silnik — ta sama szerokość co dropdown GA; na mobile nad osią (order) */
.wsc-field--engine {
    min-width: 0;
    width: 100%;
}

.wsc-field--engine .wsc-select {
    width: 100%;
    min-height: 44px;
}

.wsc-selects-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    grid-column: 1 / -1;
}

.wsc-selects-title {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wsc-text-muted);
}

.wsc-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--wsc-border);
    background: transparent;
    color: var(--wsc-text-body);
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wsc-reset:hover,
.wsc-reset:focus-visible {
    background: var(--wsc-surface-input);
    border-color: rgba(255, 255, 255, 0.28);
    outline: none;
}

.wsc-reset[hidden] {
    display: none !important;
}

@media (min-width: 768px) {
    .wsc-selects-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Koszyk przy SKU na telefonie — bez osobnej „kolumny” / paddingu karty */
.wsc-card-cart-inline {
    display: none;
}

.wsc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wsc-label,
.wsc-filters-title,
.wsc-filter-group-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wsc-text-muted);
}

.wsc-filters {
    padding: 1rem 1.25rem 1.15rem;
}

.wsc-filter-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile: silnik → oś → grupa towarowa */
.wsc-field--engine {
    order: 1;
}

.wsc-filter-axis {
    order: 2;
}

.wsc-filter-parts {
    order: 3;
}

@media (min-width: 900px) {
    .wsc-filter-grid {
        display: grid;
        grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.4fr);
        grid-template-areas:
            "axis engine"
            "axis parts";
        gap: 1.25rem 1.75rem;
        align-items: start;
    }

    .wsc-filter-axis,
    .wsc-field--engine,
    .wsc-filter-parts {
        order: unset;
    }

    .wsc-filter-axis {
        grid-area: axis;
        padding-right: 1.5rem;
        border-right: 1px solid var(--wsc-border);
        align-self: stretch;
    }

    .wsc-field--engine {
        grid-area: engine;
    }

    .wsc-filter-parts {
        grid-area: parts;
    }
}

.wsc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.wsc-filter-group-title {
    margin: 0;
}

.wsc-filter-row {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wsc-filter-parts .wsc-filter-row {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
}

@media (max-width: 479px) {
    .wsc-filter-parts .wsc-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wsc-ga-multi {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.wsc-ga-dd {
    position: relative;
    min-width: 0;
}

.wsc-ga-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--wsc-border);
    border-radius: 0;
    background: var(--wsc-surface-raised);
    color: var(--wsc-text-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wsc-ga-toggle i {
    font-size: 0.75rem;
    color: var(--wsc-text-muted);
    transition: transform 0.15s ease;
}

.wsc-ga-toggle.is-open,
.wsc-ga-toggle[aria-expanded="true"] {
    border-color: rgba(255, 102, 0, 0.65);
}

.wsc-ga-toggle.is-open i,
.wsc-ga-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: var(--wsc-primary);
}

.wsc-ga-toggle:hover,
.wsc-ga-toggle:focus-visible {
    border-color: rgba(255, 102, 0, 0.65);
    outline: none;
}

.wsc-ga-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    max-height: min(18rem, 50vh);
    overflow: hidden;
    border: 1px solid var(--wsc-border);
    background: var(--wsc-surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wsc-ga-panel[hidden] {
    display: none !important;
}

.wsc-ga-filter-wrap {
    flex: 0 0 auto;
    padding: 0.55rem 0.65rem;
    background: var(--wsc-surface);
    border-bottom: 1px solid var(--wsc-border-subtle);
}

.wsc-ga-filter {
    width: 100%;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--wsc-border);
    border-radius: 0;
    background: var(--wsc-surface-raised);
    color: var(--wsc-text-body);
    font-size: 0.82rem;
    font-weight: 600;
}

.wsc-ga-filter:focus,
.wsc-ga-filter:focus-visible {
    outline: none;
    border-color: rgba(255, 102, 0, 0.65);
}

.wsc-ga-options {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.wsc-ga-option[hidden] {
    display: none !important;
}

.wsc-ga-filter-empty {
    margin: 0;
    padding: 0.85rem;
    font-size: 0.78rem;
    color: var(--wsc-text-muted);
    text-align: center;
}

.wsc-ga-filter-empty[hidden] {
    display: none !important;
}

.wsc-ga-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--wsc-border-subtle);
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--wsc-text-body);
}

.wsc-ga-option:last-child {
    border-bottom: 0;
}

.wsc-ga-option:hover {
    background: var(--wsc-surface-input);
}

.wsc-ga-option input {
    margin-top: 0.15rem;
    accent-color: var(--wsc-primary);
    flex: 0 0 auto;
}

.wsc-ga-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.wsc-ga-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 102, 0, 0.45);
    background: rgba(255, 102, 0, 0.12);
    color: var(--wsc-text-body);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
}

.wsc-ga-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsc-ga-chip i {
    color: var(--wsc-primary);
    font-size: 0.7rem;
}

.wsc-ga-chip:hover,
.wsc-ga-chip:focus-visible {
    border-color: var(--wsc-primary);
    outline: none;
}

.wsc-ga-clear {
    border: 0;
    background: transparent;
    color: var(--wsc-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem 0.15rem;
}

.wsc-ga-clear:hover,
.wsc-ga-clear:focus-visible {
    color: var(--wsc-primary);
    outline: none;
}

.wsc-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 5.25rem;
    padding: 0.65rem 0.5rem 0.7rem;
    border: 1px solid var(--wsc-border);
    border-radius: 0;
    background: var(--wsc-surface-raised);
    color: var(--wsc-text-body);
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wsc-filter--axis {
    background: #181818;
}

.wsc-filter-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.5rem;
}

.wsc-filter img {
    width: auto;
    max-width: 52px;
    height: 34px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.wsc-filter--part img {
    max-width: 36px;
    height: 36px;
}

.wsc-filter-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
}

.wsc-filter:hover,
.wsc-filter:focus-visible {
    border-color: rgba(255, 102, 0, 0.65);
    background: var(--wsc-surface-input);
    outline: none;
}

.wsc-filter[aria-pressed="true"] {
    border-color: var(--wsc-primary);
    color: #fff;
    background: var(--wsc-surface-input);
    box-shadow: inset 3px 0 0 var(--wsc-primary);
}

.wsc-filter[aria-pressed="true"] .wsc-filter-label {
    color: var(--wsc-primary);
}

.wsc-results-block {
    margin-top: 1.5rem;
}

.wsc-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.wsc-results-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.wsc-status {
    margin: 0;
    font-size: 0.8rem;
    color: var(--wsc-text-muted);
}

.wsc-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wsc-skeleton {
    height: 5.5rem;
    border-radius: 0;
    background: linear-gradient(90deg, #e5e7eb, #f3f4f6, #e5e7eb);
    background-size: 200% 100%;
    animation: wsc-shimmer 1.2s infinite linear;
}

html:not([data-theme="light"]) .wsc-skeleton {
    background: linear-gradient(90deg, #2a2a2a, #3a3a3a, #2a2a2a);
    background-size: 200% 100%;
}

@keyframes wsc-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.wsc-empty,
.wsc-error {
    padding: 1.25rem;
    border-radius: 0;
    border: 1px solid var(--wsc-border-subtle);
    background: var(--wsc-surface);
    color: var(--wsc-text-muted);
    font-size: 0.9rem;
}

.wsc-error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.wsc-cols-head {
    display: none;
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 0 0.55rem;
    padding: 0;
    background: #2c2c2c;
    border: 1px solid var(--wsc-border-subtle);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

@media (min-width: 900px) {
    .wsc-cols-head:not([hidden]) {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) 96px minmax(0, 0.95fr) minmax(0, 1.45fr) minmax(0, 1.05fr);
        gap: 0;
        align-items: stretch;
    }

    /* Tylko rozwinięte zastosowanie w widoku → sam podpis Zastosowanie na środku */
    .wsc-cols-head.is-apps-focus:not([hidden]) {
        grid-template-columns: 1fr;
    }

    .wsc-cols-head.is-apps-focus .wsc-cols-cell:not(.wsc-cols-app) {
        display: none;
    }

    .wsc-cols-head.is-apps-focus .wsc-cols-app {
        border-left: 0;
        justify-content: center;
        letter-spacing: 0.14em;
    }
}

@media (max-width: 899px) {
    .wsc-cols-head {
        display: none !important;
    }
}

.wsc-cols-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: #f3f4f6;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.wsc-cols-cell:first-child {
    border-left: 0;
}

.wsc-cols-photo {
    padding: 0.45rem 0.35rem;
    background: #262626;
    font-size: 0.85rem;
    color: #d1d5db;
}

.wsc-cols-acc {
    background: #2a2a2a;
}

.wsc-card {
    position: relative;
    display: grid;
    gap: 0.75rem 0.85rem;
    padding: 0.85rem;
    padding-right: 3.75rem;
    border-radius: 0;
    border: 1px solid var(--wsc-border-subtle);
    background: var(--wsc-surface);
}

@media (min-width: 900px) {
    .wsc-card {
        grid-template-columns: minmax(0, 1.25fr) 96px minmax(0, 0.95fr) minmax(0, 1.45fr) minmax(0, 1.05fr);
        grid-template-areas:
            "code photo side app acc"
            "act act act act acc"
            "panels panels panels panels panels";
        align-items: stretch;
        gap: 0;
        padding: 0;
        padding-right: 0;
        overflow: hidden;
    }
}

.wsc-card-photo-rail {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: #ffffff;
    border-left: 1px solid var(--wsc-border-subtle);
    border-right: 1px solid var(--wsc-border-subtle);
}

.wsc-card-code-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.28rem;
    text-align: center;
}

.wsc-card-identity {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.wsc-card-side-col,
.wsc-card-app-col {
    min-width: 0;
    font-size: 0.8rem;
    color: var(--wsc-text-body);
}

.wsc-card-side-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
}

.wsc-card-app-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
}

.wsc-card-app-main {
    min-width: 0;
    width: 100%;
}

.wsc-card-cell {
    margin: 0;
    line-height: 1.4;
}

.wsc-card-mount {
    display: grid;
    gap: 0.2rem;
}

.wsc-mount-line {
    display: block;
}

.wsc-card-actions-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
    min-width: 0;
}

.wsc-actions-code,
.wsc-actions-mid {
    display: none;
}

.wsc-card-cart-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
}

.wsc-card-cart-slot .wsc-icon-link--cart {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.45rem;
}

@media (min-width: 900px) {
    .wsc-card-photo-rail {
        grid-area: photo;
        align-self: stretch;
        padding: 0.55rem 0.4rem;
    }

    .wsc-card-code-col,
    .wsc-card-side-col,
    .wsc-card-app-col {
        padding: 0.85rem 0.85rem;
        border-left: 1px solid var(--wsc-border-subtle);
    }

    .wsc-card-code-col {
        border-left: 0;
        justify-content: flex-start;
        align-items: center;
        min-height: 100%;
    }

    /* Kod | Foto | Strona | Zastosowanie */
    .wsc-card-actions-bar {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) 96px minmax(0, 0.95fr) minmax(0, 1.45fr);
        gap: 0;
        padding: 0 0 0.85rem;
        min-width: 0;
    }

    .wsc-card-actions-bar > .wsc-actions-code,
    .wsc-card-actions-bar > .wsc-card-360,
    .wsc-card-actions-bar > .wsc-actions-mid,
    .wsc-card-actions-bar > .wsc-expand,
    .wsc-card-actions-bar > .wsc-expand-spacer {
        min-width: 0;
        box-sizing: border-box;
        border-left: 1px solid var(--wsc-border-subtle);
        padding: 0 0.85rem;
    }

    .wsc-card-actions-bar > .wsc-actions-code {
        border-left: 0;
    }

    /* Kolumna foto: 360 na pełną szerokość toru (jak Pokaż zastosowanie w swojej kolumnie) */
    .wsc-card-actions-bar > .wsc-card-360 {
        padding: 0;
        align-items: stretch;
    }

    .wsc-card-actions-bar > .wsc-card-360 .wsc-360-btn {
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 40px;
        box-sizing: border-box;
    }

    .wsc-actions-mid,
    .wsc-actions-code {
        display: block;
    }

    .wsc-expand,
    .wsc-expand-spacer {
        margin: 0;
        width: 100%;
        max-width: none;
    }

    .wsc-card-code-col { grid-area: code; }
    .wsc-card-photo-rail { grid-area: photo; }
    .wsc-card-side-col { grid-area: side; }
    .wsc-card-app-col { grid-area: app; }
    .wsc-card-actions-bar { grid-area: act; }
    .wsc-acc-col { grid-area: acc; }
    .wsc-card-panels { grid-area: panels; }
}

.wsc-card-media {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.wsc-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #ffffff;
}

@media (max-width: 899px) {
    .wsc-card {
        /* Zdjęcie z lewej; koszyk przy SKU (bez osobnej kolumny / paddingu) */
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas:
            "photo code"
            "side side"
            "app app"
            "act act"
            "panels panels"
            "acc acc";
        gap: 0.55rem 0.65rem;
        padding: 0.75rem;
        align-items: start;
    }

    .wsc-card-cart-inline {
        display: inline-flex;
        align-items: center;
    }

    .wsc-card-cart-slot {
        display: none !important;
    }

    .wsc-card-photo-rail {
        grid-area: photo;
        border-left: 0;
        border-right: 0;
        background: transparent;
        padding: 0;
        align-self: start;
    }

    .wsc-card-media {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        border: 1px solid var(--wsc-border-subtle);
    }

    .wsc-card-code-col {
        grid-area: code;
        align-items: flex-start;
        text-align: left;
        /* nie wchodź pod koszyk — padding karty już rezerwuje prawo */
        padding-right: 0.15rem;
    }
    .wsc-card-identity { align-items: flex-start; }
    .wsc-card-code-row { justify-content: flex-start; }
    .wsc-actions-code,
    .wsc-actions-mid {
        display: none;
    }
    .wsc-card-side-col { grid-area: side; }
    .wsc-card-app-col { grid-area: app; }
    .wsc-card-actions-bar { grid-area: act; }
    .wsc-acc-col { grid-area: acc; }
    .wsc-card-panels { grid-area: panels; }
}

.wsc-card-code {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.wsc-card-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.wsc-card-actions-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wsc-card-type {
    margin: 0;
    font-size: 0.75rem;
    color: var(--wsc-text-muted);
}

.wsc-icon-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wsc-icon-btn,
.wsc-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wsc-primary);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.wsc-icon-link--cart {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.25rem;
    color: var(--wsc-primary);
}

.wsc-icon-btn--info {
    color: var(--wsc-text-muted);
    font-size: 1.05rem;
    width: 1.45rem;
    height: 1.45rem;
    opacity: 0.9;
}

.wsc-icon-btn:hover,
.wsc-icon-btn:focus-visible,
.wsc-icon-link:hover,
.wsc-icon-link:focus-visible {
    color: #fff;
    outline: none;
    opacity: 1;
}

.wsc-icon-btn--info:hover,
.wsc-icon-btn--info:focus-visible {
    color: var(--wsc-text-body);
}

.wsc-app-notes {
    margin: 0.45rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

/* Info dodatkowe — każdy wpis = osobny kafelek (dark: ciepły stonowany) */
.wsc-app-note-tile {
    min-width: 0;
    margin: 0;
    padding: 0.4rem 0.55rem 0.4rem 0.65rem;
    border: 0;
    border-left: 2px solid #c47a3a;
    border-radius: 6px 0 0 6px;
    background: #2c2218;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    color: #e8d4bc;
}

.wsc-app-note-label {
    display: block;
    margin: 0 0 0.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #f0c9a0;
}

.wsc-app-note-text {
    display: block;
    color: #e8d4bc;
}

.wsc-apps .wsc-app-notes {
    margin-top: 0.35rem;
}

.wsc-apps .wsc-app-row {
    margin: 0 0 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--wsc-border-subtle);
}

.wsc-apps .wsc-app-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.wsc-apps .wsc-app-line {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--wsc-text-body);
}

.wsc-apps .wsc-app-crit {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
    color: var(--wsc-text-muted);
    line-height: 1.35;
}

.wsc-filter-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--wsc-text-muted);
    padding: 0.35rem 0;
}

.wsc-filter-media--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--wsc-primary);
    border: 1px solid var(--wsc-border);
    background: var(--wsc-surface-raised);
}

.wsc-card-360 {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.wsc-360-btn {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    height: 100%;
    padding: 0.55rem 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--wsc-surface-raised);
    border: 1px solid var(--wsc-border);
    box-shadow: none;
    color: var(--wsc-text-body);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wsc-360-btn-label {
    display: block;
}

.wsc-360-caret {
    display: none;
    font-size: 1.05rem;
    line-height: 1;
}

.wsc-360-btn:hover,
.wsc-360-btn:focus-visible {
    background: var(--wsc-surface-input);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    outline: none;
    text-decoration: none;
}

/* Otwarty 360: szary jak hover + większy daszek w górę na środku */
.wsc-360-btn.is-open,
.wsc-360-btn[aria-expanded="true"] {
    background: var(--wsc-surface-input);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    outline: none;
}

.wsc-360-btn.is-open .wsc-360-btn-label,
.wsc-360-btn[aria-expanded="true"] .wsc-360-btn-label {
    display: none;
}

.wsc-360-btn.is-open .wsc-360-caret,
.wsc-360-btn[aria-expanded="true"] .wsc-360-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.wsc-card-panels {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    width: 100%;
}

.wsc-card-panels > [hidden] {
    display: none !important;
}

.wsc-360-panel {
    margin: 0;
    width: 100%;
    padding: 0 0.85rem 0.85rem;
}

.wsc-360-panel[hidden] {
    display: none !important;
}

.wsc-360-stage {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: min(62vh, 520px);
    min-height: 280px;
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--wsc-border-subtle);
}

@media (min-width: 900px) {
    .wsc-360-stage {
        min-height: 360px;
        max-height: min(58vh, 560px);
    }
}

.wsc-360-stage iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.wsc-acc-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    background: #262626;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.wsc-acc-title {
    display: none;
    margin: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: #e8e8e8;
    background: #333333;
}

@media (max-width: 899px) {
    .wsc-acc-title {
        display: block;
    }
}

.wsc-acc-body {
    padding: 0.65rem 0.6rem;
    display: grid;
    gap: 0.3rem;
    align-content: start;
    flex: 1;
    min-height: 100%;
    overflow: hidden;
}

.wsc-acc-item {
    padding: 0.15rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.wsc-acc-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.wsc-acc-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    min-width: 0;
}

.wsc-acc-code {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f3f4f6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsc-acc-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    flex: 0 0 auto;
}

.wsc-acc-icons .wsc-icon-btn,
.wsc-acc-icons .wsc-icon-link {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 0.85rem;
}

.wsc-acc-desc {
    margin-top: 0.05rem;
    font-size: 0.62rem;
    line-height: 1.25;
    color: #c8c8c8;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wsc-acc-empty {
    margin: 0.25rem 0;
    color: #b0b0b0;
    font-size: 0.8rem;
    text-align: center;
}

.wsc-card-foot {
    display: none;
}

.wsc-card-actions {
    display: none;
}

.wsc-expand {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    border: 1px solid var(--wsc-border);
    background: var(--wsc-surface-raised);
    color: var(--wsc-text-body);
    border-radius: 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    min-height: 40px;
    height: 100%;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wsc-expand-spacer {
    display: block;
    min-height: 40px;
}

.wsc-expand:hover,
.wsc-expand:focus-visible {
    background: var(--wsc-surface-input);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    outline: none;
    opacity: 1;
    text-decoration: none;
}

/* Otwarte zastosowanie („Ukryj”) — szary jak hover, jak przycisk 360 */
.wsc-expand.is-open,
.wsc-expand[aria-expanded="true"] {
    background: var(--wsc-surface-input);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.wsc-info-dialog {
    border: 1px solid var(--wsc-border);
    border-radius: 0;
    padding: 0;
    width: min(720px, calc(100vw - 2rem));
    max-height: min(90vh, 820px);
    background: var(--wsc-surface);
    color: var(--wsc-text-body);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.wsc-info-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.wsc-info-shell {
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 820px);
}

.wsc-info-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.55rem 0.65rem 0;
}

.wsc-info-close {
    border: 1px solid var(--wsc-border);
    background: transparent;
    color: var(--wsc-text-body);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
}

.wsc-info-close:hover,
.wsc-info-close:focus-visible {
    background: var(--wsc-surface-input);
    outline: none;
}

.wsc-info-body {
    padding: 0.35rem 1.15rem 1.25rem;
    overflow: auto;
}

.wsc-info-layout {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .wsc-info-layout {
        grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.15fr);
        gap: 1.15rem;
        align-items: start;
    }
}

.wsc-info-media {
    width: 100%;
    aspect-ratio: 1;
    max-width: 280px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--wsc-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wsc-info-media--360 {
    aspect-ratio: 1 / 1;
    max-width: none;
    width: 100%;
    min-height: 240px;
}

.wsc-info-media--360 iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.wsc-info-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.wsc-info-media--empty {
    color: #9ca3af;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.wsc-info-main {
    min-width: 0;
}

.wsc-info-type {
    margin: 0;
    font-size: 0.72rem;
    color: var(--wsc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.wsc-info-code {
    margin: 0.25rem 0 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.wsc-info-desc {
    margin: 0.55rem 0 0;
    color: var(--wsc-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.wsc-info-meta {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
}

.wsc-info-block {
    margin-top: 1.05rem;
}

.wsc-info-block h4 {
    margin: 0 0 0.45rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wsc-text-muted);
}

.wsc-info-block--features .wsc-app-notes {
    margin-top: 0;
    gap: 0.4rem;
}

.wsc-info-block ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.wsc-info-block li span {
    color: var(--wsc-text-muted);
    margin-right: 0.25rem;
}

.wsc-info-actions {
    margin: 1.15rem 0 0;
}

.wsc-info-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--wsc-primary);
    color: #0a0a0a;
    text-decoration: none;
    padding: 0.7rem 1rem;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wsc-info-shop:hover,
.wsc-info-shop:focus-visible {
    background: #121212;
    color: #fff;
    outline: none;
}

.wsc-info-loading {
    margin: 1rem 0;
    color: var(--wsc-text-muted);
}

.wsc-apps {
    grid-column: auto;
    margin-top: 0;
    padding: 0.75rem;
    border-radius: 0;
    background: var(--wsc-surface-raised);
    border: 1px solid var(--wsc-border-subtle);
    font-size: 0.8rem;
}

@media (min-width: 900px) {
    .wsc-apps {
        margin-inline: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .wsc-card-panels .wsc-360-panel {
        padding-bottom: 0.85rem;
    }
}

.wsc-apps[hidden] {
    display: none !important;
}

.wsc-apps ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
}

.wsc-acc {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--wsc-text-muted);
}

.wsc-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.25rem;
    min-height: 3rem;
}

.wsc-more[hidden],
.wsc-more-loading[hidden] {
    display: none !important;
}

.wsc-more-loading {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--wsc-text-muted);
    text-align: center;
}

/* Light theme — jak katalog */
html[data-theme="light"] .wsc-page {
    background: #f3f4f6;
    --wsc-surface: #ffffff;
    --wsc-surface-raised: #f9fafb;
    --wsc-surface-input: #ffffff;
    --wsc-border: rgba(17, 24, 39, 0.16);
    --wsc-border-subtle: rgba(17, 24, 39, 0.1);
    --wsc-text-muted: #6b7280;
    --wsc-text-body: #111827;
}

html[data-theme="light"] .wsc-title,
html[data-theme="light"] .wsc-results-title,
html[data-theme="light"] .wsc-card-code {
    color: #111827;
}

html[data-theme="light"] .wsc-cols-head {
    background: #3a3a3a;
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .wsc-cols-cell {
    border-left-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .wsc-cols-photo {
    background: #333333;
}

html[data-theme="light"] .wsc-cols-acc {
    background: #4a4a4a;
}

html[data-theme="light"] .wsc-card-code-col,
html[data-theme="light"] .wsc-card-side-col,
html[data-theme="light"] .wsc-card-app-col {
    border-left-color: rgba(17, 24, 39, 0.1);
}

html[data-theme="light"] .wsc-card-photo-rail {
    border-left-color: rgba(17, 24, 39, 0.1);
    border-right-color: rgba(17, 24, 39, 0.1);
}

html[data-theme="light"] .wsc-acc-col {
    background: #fdfdfd;
    border-left-color: rgba(17, 24, 39, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .wsc-acc-title {
    background: #ececec;
    color: #3a3a3a;
}

html[data-theme="light"] .wsc-acc-code {
    color: #111827;
}

html[data-theme="light"] .wsc-acc-desc {
    color: #6b7280;
}

html[data-theme="light"] .wsc-acc-empty {
    color: #6b7280;
}

html[data-theme="light"] .wsc-acc-item {
    border-top-color: rgba(17, 24, 39, 0.08);
}

html[data-theme="light"] .wsc-app-hilite {
    color: #dc2626;
}

/* Beżowe kafelki info: jasny beż tylko w light */
html[data-theme="light"] .wsc-app-note-tile {
    background: #f6ebe0;
    border-left-color: #e5d4bf;
    color: #9a3412;
}

html[data-theme="light"] .wsc-app-note-label {
    background: transparent;
    border: 0;
    color: #9a3412;
}

html[data-theme="light"] .wsc-app-note-text {
    color: #9a3412;
}

html[data-theme="light"] .wsc-filter--axis {
    background: #f3f4f6;
}

html[data-theme="light"] .wsc-filter:hover,
html[data-theme="light"] .wsc-filter:focus-visible {
    background: #fff;
}

html[data-theme="light"] .wsc-filter[aria-pressed="true"] {
    color: #111827;
    background: #fff;
}

html[data-theme="light"] .wsc-shop-btn {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .wsc-shop-btn:hover,
html[data-theme="light"] .wsc-shop-btn:focus-visible {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

html[data-theme="light"] .wsc-icon-btn--info {
    color: #9ca3af;
}

html[data-theme="light"] .wsc-icon-btn--info:hover,
html[data-theme="light"] .wsc-icon-btn--info:focus-visible {
    color: #4b5563;
}

html[data-theme="light"] .wsc-icon-btn:hover,
html[data-theme="light"] .wsc-icon-btn:focus-visible,
html[data-theme="light"] .wsc-icon-link:hover,
html[data-theme="light"] .wsc-icon-link:focus-visible {
    color: #111827;
}

html[data-theme="light"] .wsc-icon-link--cart:hover,
html[data-theme="light"] .wsc-icon-link--cart:focus-visible {
    color: #111827;
}

html[data-theme="light"] .wsc-360-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .wsc-360-btn:hover,
html[data-theme="light"] .wsc-360-btn:focus-visible {
    background: #f3f3f3;
    border-color: rgba(0, 0, 0, 0.28);
    color: #0a0a0a;
}

html[data-theme="light"] .wsc-360-btn.is-open,
html[data-theme="light"] .wsc-360-btn[aria-expanded="true"] {
    background: #f3f3f3;
    border-color: rgba(0, 0, 0, 0.28);
    color: #0a0a0a;
}

html[data-theme="light"] .wsc-expand {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

html[data-theme="light"] .wsc-expand:hover,
html[data-theme="light"] .wsc-expand:focus-visible {
    background: #f3f3f3;
    border-color: rgba(0, 0, 0, 0.28);
    color: #0a0a0a;
}

html[data-theme="light"] .wsc-expand.is-open,
html[data-theme="light"] .wsc-expand[aria-expanded="true"] {
    background: #f3f3f3;
    border-color: rgba(0, 0, 0, 0.28);
    color: #0a0a0a;
}

html[data-theme="light"] .wsc-reset:hover,
html[data-theme="light"] .wsc-reset:focus-visible {
    background: #f3f3f3;
    border-color: rgba(0, 0, 0, 0.28);
    color: #0a0a0a;
}

html[data-theme="light"] .wsc-info-dialog {
    background: #fff;
    color: #111827;
}

html[data-theme="light"] .wsc-info-code {
    color: #111827;
}

html[data-theme="light"] .wsc-ga-toggle {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.14);
    color: #1a1a1a;
}

html[data-theme="light"] .wsc-ga-panel {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .wsc-ga-filter-wrap {
    background: #fff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .wsc-ga-filter {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.14);
    color: #1a1a1a;
}

html[data-theme="light"] .wsc-ga-chip {
    background: rgba(255, 102, 0, 0.08);
    border-color: rgba(255, 102, 0, 0.35);
    color: #1a1a1a;
}

html[data-theme="light"] .wsc-info-media {
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .wsc-filter[aria-pressed="true"] .wsc-filter-label {
    color: var(--wsc-primary);
}
