/* Primtee Shop Grid - grille produits premium responsive */
.psg {
    --psg-gap: clamp(14px, 1.6vw, 28px);
    --psg-radius: 14px;
    --psg-fg: #111;
    --psg-muted: #6b7280;
    --psg-border: rgba(0, 0, 0, 0.08);
    --psg-bg-soft: #f5f5f5;
    --psg-transition: 280ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(16px, 2vw, 28px) clamp(12px, 1.4vw, 24px);
    color: var(--psg-fg);
    font-family: inherit;
    box-sizing: border-box;
}

.psg *,
.psg *::before,
.psg *::after {
    box-sizing: border-box;
}

/* === Neutralisation TOTALE des pseudo-éléments injectés par le thème ===
   IMPORTANT : spécificité doublée (.psg.psg) pour battre des règles thèmes
   du type ".entry-content ul li::before { content:'•' }" qui ont une
   spécificité (0,1,3) et gagnent contre (0,1,1) même avec !important. */
.psg.psg *::before,
.psg.psg *::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-indent: 0 !important;
}
.psg.psg ul,
.psg.psg ol,
.psg.psg li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.psg.psg li {
    display: block !important;
    text-indent: 0 !important;
}
.psg.psg li::marker {
    content: none !important;
    color: transparent !important;
    font-size: 0 !important;
}

/* ---------- Toolbar (catégories + bouton filtres) ---------- */
.psg__toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 clamp(18px, 2vw, 32px);
}

/* Wrapper catégories : permet le dropdown sur mobile */
.psg__cat-wrap {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

/* Bouton "Catégories" : masqué sur desktop, affiché sur mobile */
.psg__cat-btn {
    display: none;
    align-items: center;
    gap: 8px;
    appearance: none;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 14px 10px 16px;
    background: #fff;
    color: var(--psg-fg);
    border: 1px solid var(--psg-border);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--psg-transition);
}

.psg__cat-btn:hover {
    border-color: var(--psg-fg);
}

.psg__cat-btn-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform var(--psg-transition);
}

.psg__cat-wrap.is-open .psg__cat-btn-chevron {
    transform: rotate(180deg);
}

.psg__cat-btn-label {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Filtres catégories ---------- */
.psg__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding-bottom: 4px;
    min-width: 0;
}

.psg__filter {
    appearance: none;
    border: 1px solid var(--psg-border);
    background: #fff;
    color: var(--psg-fg);
    font: inherit;
    font-size: clamp(13px, 0.95vw, 14px);
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background var(--psg-transition), color var(--psg-transition),
        border-color var(--psg-transition), transform var(--psg-transition);
}

.psg__filter:hover {
    border-color: var(--psg-fg);
}

.psg__filter.is-active {
    background: var(--psg-fg);
    color: #fff;
    border-color: var(--psg-fg);
}

.psg__filter:focus-visible {
    outline: 2px solid var(--psg-fg);
    outline-offset: 2px;
}

/* ---------- Recherche + bouton "Filtres" ---------- */
.psg__toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.psg__search-wrap {
    position: relative;
    flex: 0 0 auto;
}

.psg__search-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: clamp(13px, 0.95vw, 14px);
    font-weight: 500;
    line-height: 1;
    padding: 10px 16px;
    background: #fff;
    color: var(--psg-fg);
    border: 1px solid var(--psg-border);
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: border-color var(--psg-transition), background var(--psg-transition), color var(--psg-transition);
    white-space: nowrap;
}

.psg__search-btn:hover {
    border-color: var(--psg-fg);
}

.psg__search-wrap.is-open .psg__search-btn,
.psg__search-btn.has-query {
    background: var(--psg-fg);
    color: #fff;
    border-color: var(--psg-fg);
}

.psg__search-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.psg__search-field {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 31;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: min(320px, calc(100vw - 32px));
    min-height: 44px;
    padding: 6px 8px 6px 16px;
    background: #fff;
    border: 1px solid var(--psg-border);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 24px 48px rgba(0, 0, 0, 0.08);
    animation: psg-panel-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.psg__search-field[hidden] {
    display: none !important;
}

/* Neutralise les styles input du thème (cadre interne) */
.psg.psg .psg__search-input,
.psg.psg .psg__search-input:hover,
.psg.psg .psg__search-input:focus,
.psg.psg .psg__search-input:active {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: var(--psg-fg);
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
}

.psg.psg .psg__search-input::placeholder {
    color: var(--psg-muted);
    opacity: 1;
}

.psg.psg .psg__search-input::-webkit-search-decoration,
.psg.psg .psg__search-input::-webkit-search-cancel-button,
.psg.psg .psg__search-input::-webkit-search-results-button {
    display: none;
    -webkit-appearance: none;
}

.psg__search-clear {
    appearance: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--psg-muted);
    cursor: pointer;
    transition: background var(--psg-transition), color var(--psg-transition);
}

.psg__search-clear svg {
    width: 14px;
    height: 14px;
}

.psg__search-clear:hover {
    background: #f5f6f8;
    color: var(--psg-fg);
}

.psg__search-clear[hidden] {
    display: none !important;
}

/* ---------- Bouton "Filtres" + panel ---------- */
.psg__panel-wrap {
    position: relative;
    flex: 0 0 auto;
}

.psg__panel-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: clamp(13px, 0.95vw, 14px);
    font-weight: 500;
    line-height: 1;
    padding: 10px 16px;
    background: #fff;
    color: var(--psg-fg);
    border: 1px solid var(--psg-border);
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: border-color var(--psg-transition), background var(--psg-transition);
    white-space: nowrap;
}

.psg__panel-btn:hover {
    border-color: var(--psg-fg);
}

.psg__panel-btn.has-active {
    background: var(--psg-fg);
    color: #fff;
    border-color: var(--psg-fg);
}

.psg__panel-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.psg__panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--psg-fg);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.psg__panel-btn:not(.has-active) .psg__panel-count {
    background: var(--psg-fg);
    color: #fff;
}

.psg__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: min(420px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--psg-border);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 24px 48px rgba(0, 0, 0, 0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: psg-panel-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes psg-panel-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.psg__panel[hidden] { display: none !important; }

.psg__panel-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psg__panel-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--psg-muted);
}

/* Header de section avec valeurs live (utilisé par le slider prix) */
.psg__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.psg__panel-values {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--psg-fg);
}

.psg__panel-values-sep {
    color: var(--psg-muted);
}

/* ---------- Slider dual-range prix ---------- */
.psg__slider {
    position: relative;
    width: 100%;
    height: 28px;
    margin: 6px 0 2px;
    --psg-thumb-size: 18px;
}

.psg__slider-track {
    position: absolute;
    inset: 0;
    margin: auto;
    top: 0;
    bottom: 0;
    height: 4px;
    background: #e7eaee;
    border-radius: 999px;
    pointer-events: none;
}

.psg__slider-active {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--psg-fg);
    border-radius: 999px;
}

.psg__slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    outline: none;
}

/* Track (transparent : on utilise notre .psg__slider-track) */
.psg__slider-input::-webkit-slider-runnable-track {
    height: 28px;
    background: transparent;
    border: 0;
}
.psg__slider-input::-moz-range-track {
    height: 28px;
    background: transparent;
    border: 0;
}

/* Thumb commun */
.psg__slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--psg-thumb-size);
    height: var(--psg-thumb-size);
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d0d5dd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.08);
    cursor: grab;
    pointer-events: auto;
    margin-top: 0;
    transition: transform var(--psg-transition), box-shadow var(--psg-transition);
}
.psg__slider-input::-moz-range-thumb {
    width: var(--psg-thumb-size);
    height: var(--psg-thumb-size);
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d0d5dd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.08);
    cursor: grab;
    pointer-events: auto;
    transition: transform var(--psg-transition), box-shadow var(--psg-transition);
}

.psg__slider-input::-webkit-slider-thumb:hover,
.psg__slider-input::-webkit-slider-thumb:active {
    transform: scale(1.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 14px rgba(0,0,0,0.14);
    cursor: grabbing;
}
.psg__slider-input::-moz-range-thumb:hover,
.psg__slider-input::-moz-range-thumb:active {
    transform: scale(1.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 14px rgba(0,0,0,0.14);
    cursor: grabbing;
}

/* Tri (chips) */
.psg__sort {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.psg__chip {
    appearance: none;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--psg-border);
    background: #fff;
    color: var(--psg-fg);
    cursor: pointer;
    transition: border-color var(--psg-transition), background var(--psg-transition), color var(--psg-transition);
}

.psg__chip:hover {
    border-color: var(--psg-fg);
}

.psg__chip.is-active {
    background: var(--psg-fg);
    color: #fff;
    border-color: var(--psg-fg);
}

/* Couleurs dans le panel */
.psg__panel-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.psg__panel-color {
    --psg-swatch: #ccc;
    appearance: none;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    background: var(--psg-swatch);
    border: 1px solid #d8dde3;
    cursor: pointer;
    position: relative;
    transition: transform var(--psg-transition), box-shadow var(--psg-transition);
}

.psg__panel-color:hover {
    transform: scale(1.08);
}

.psg__panel-color.is-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--psg-fg);
}

.psg__panel-color.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Actions panel */
.psg__panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--psg-border);
    margin-top: 2px;
}

.psg__panel-reset {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: var(--psg-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.psg__panel-reset:hover {
    color: var(--psg-fg);
}

.psg__panel-close {
    appearance: none;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    border: 0;
    background: var(--psg-fg);
    color: #fff;
    cursor: pointer;
}

/* Responsive : toolbar mobile
   - "Catégories" et "Filtres" sur la même ligne, en pills compacts
   - Catégories devient un dropdown au tap */
@media (max-width: 640px) {
    .psg__toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .psg__cat-wrap {
        flex: 0 1 auto;
        min-width: 0;
    }
    .psg__cat-btn {
        display: inline-flex;
        max-width: 100%;
        padding: 9px 12px 9px 14px;
    }
    .psg__filters {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        z-index: 30;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
        width: min(280px, calc(100vw - 32px));
        max-height: min(60vh, 420px);
        overflow-y: auto;
        padding: 8px;
        background: #fff;
        border: 1px solid var(--psg-border);
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 24px 48px rgba(0, 0, 0, 0.08);
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .psg__cat-wrap.is-open .psg__filters {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .psg__filters .psg__filter {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
        border-radius: 10px;
        border-color: transparent;
        background: transparent;
        font-size: 14px;
    }
    .psg__filters .psg__filter:hover {
        background: #f5f6f8;
        border-color: transparent;
    }
    .psg__filters .psg__filter.is-active {
        background: var(--psg-fg);
        color: #fff;
    }
    .psg__search-btn,
    .psg__panel-btn {
        padding: 9px 14px;
    }
    .psg__search-btn-label {
        max-width: 88px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .psg__search-field {
        min-width: min(280px, calc(100vw - 32px));
    }
    .psg__panel {
        right: 0;
        left: auto;
        width: min(360px, calc(100vw - 32px));
    }
}

/* ---------- Grille ---------- */
.psg__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--psg-gap);
}

@media (max-width: 1024px) {
    .psg__grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

@media (max-width: 640px) {
    .psg {
        --psg-gap: 12px;
        padding: 16px 12px;
    }
    .psg__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* ---------- État vide (aucun produit ne correspond) ---------- */
.psg__grid.is-empty {
    display: none;
}

.psg__empty {
    text-align: center;
    padding: clamp(40px, 8vw, 80px) 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--psg-fg);
}

.psg__empty[hidden] {
    display: none !important;
}

.psg__empty-icon {
    width: 40px;
    height: 40px;
    color: var(--psg-muted);
    margin-bottom: 4px;
    opacity: 0.7;
}

.psg__empty-title {
    margin: 0;
    font-size: clamp(15px, 1.1vw, 17px);
    font-weight: 600;
    color: var(--psg-fg);
}

.psg__empty-sub {
    margin: 0;
    font-size: 13px;
    color: var(--psg-muted);
}

.psg__empty-reset {
    margin-top: 14px;
    appearance: none;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 999px;
    border: 0;
    background: var(--psg-fg);
    color: #fff;
    cursor: pointer;
    transition: transform var(--psg-transition), box-shadow var(--psg-transition);
}

.psg__empty-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 8px 18px rgba(0,0,0,0.12);
}

/* ---------- Carte produit ---------- */
.psg__card {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.psg__card.is-hidden {
    display: none;
}

.psg__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    border-radius: var(--psg-radius);
    background: var(--psg-bg-soft);
    isolation: isolate;
}

.psg__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psg__img--secondary {
    opacity: 0;
}

/* Transitions et effet hover : uniquement quand une 2e image existe */
.psg__media--has-hover .psg__img {
    transition: opacity var(--psg-transition), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
}

@media (hover: hover) and (pointer: fine) {
    .psg__media--has-hover:hover .psg__img--primary {
        opacity: 0;
    }
    .psg__media--has-hover:hover .psg__img--secondary {
        opacity: 1;
    }
    .psg__media--has-hover:hover .psg__img {
        transform: scale(1.03);
    }
}

/* ---------- Pastilles ---------- */
.psg__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    z-index: 2;
    pointer-events: none;
}

.psg__badge {
    --psg-badge-bg: #111;
    --psg-badge-fg: #fff;
    background: var(--psg-badge-bg);
    color: var(--psg-badge-fg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    line-height: 1;
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform var(--psg-transition), box-shadow var(--psg-transition);
    pointer-events: auto;
}

.psg__badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* ---------- Corps de carte ---------- */
.psg__body {
    padding: 10px 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.psg__title {
    margin: 0;
    font-size: clamp(14px, 1vw, 15px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.005em;
}

.psg__title a {
    color: inherit;
    text-decoration: none;
}

.psg__title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.psg__price {
    font-size: 13px;
    color: var(--psg-muted);
    font-weight: 500;
    margin-top: 1px;
}

.psg__price .woocommerce-Price-amount,
.psg__price bdi {
    color: inherit;
}

.psg__price del {
    opacity: 0.5;
    margin-right: 6px;
}

.psg__price ins {
    text-decoration: none;
    color: var(--psg-fg);
    font-weight: 600;
}

/* ---------- Pastilles couleurs ----------
   Taille, bordure et background sont définis EN INLINE sur l'élément
   (cf. render_card en PHP) pour battre tout style hérité du thème.
   Ici on gère uniquement les états (hover / focus). */
.psg__colors {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.psg__color {
    transition: transform var(--psg-transition), box-shadow var(--psg-transition), border-color var(--psg-transition);
    cursor: pointer;
}

.psg__color:hover,
.psg__color:focus-visible {
    transform: scale(1.15);
    border-color: #b8bec6 !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--psg-fg) !important;
    outline: none;
}

/* === Mode événement === */
.psg__event-banner {
    width: 100%;
    margin-bottom: var(--psg-gap);
    border-radius: var(--psg-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--psg-event-accent, #004990) 0%, color-mix(in srgb, var(--psg-event-accent, #004990) 65%, #000) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    min-height: clamp(180px, 26vw, 300px);
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}

.psg__event-banner-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.psg__event-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    opacity: 1;
}

.psg__event-banner--has-image {
    background-color: #111;
}

.psg__event-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.psg__event-banner-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--psg-event-accent, #004990);
    padding: 4px 10px;
    border-radius: 6px;
    margin: 0;
}

.psg.psg .psg__event-banner-title {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.psg__event-banner-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.psg__event-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--psg-event-accent, #004990);
    background: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.psg__event-banner-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.psg__event-banner-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.psg__filter--event {
    order: -1;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 16px !important;
    border: 2px solid var(--psg-event-accent, #004990) !important;
    color: var(--psg-event-accent, #004990) !important;
    font-weight: 700 !important;
    background: color-mix(in srgb, var(--psg-event-accent, #004990) 12%, #fff) !important;
}

.psg__filter-event-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.psg__filter-event-label {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.psg__filter-event-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--psg-event-accent, #004990);
    color: #fff;
    flex-shrink: 0;
}

.psg__filter--event.is-active {
    background: var(--psg-event-accent, #004990) !important;
    color: #fff !important;
    border-color: var(--psg-event-accent, #004990) !important;
}

.psg__filter--event.is-active .psg__filter-event-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.psg__price-event-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
}

.psg__price-old {
    font-size: 13px;
    color: var(--psg-muted, #6b7280);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.psg__price-new {
    font-size: 16px;
    font-weight: 700;
    color: var(--psg-event-accent, #004990);
}

.psg__price-event-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--psg-event-accent, #004990) 14%, #fff);
    color: var(--psg-event-accent, #004990);
    line-height: 1.2;
}

.primtee-event-price-label {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: color-mix(in srgb, var(--psg-event-accent, #004990) 15%, #fff);
    color: var(--psg-event-accent, #004990);
    vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
    .psg *,
    .psg *::before,
    .psg *::after {
        transition: none !important;
        animation: none !important;
    }
}
