/* Event store PLP layout (BEM: store-*) */
.store-page {
    padding-bottom: 5rem;
}


h1.store-hero__title {
    color: var(--color-white);
}

.store-hero {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: flex-end;
    padding: 2rem 0 2.5rem;
    background: linear-gradient(135deg, #5c0a0a 0%, #c41e1e 45%, #ff6b35 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.store-hero[data-bg-ready='1'] {
    background-image: linear-gradient(135deg, rgba(92, 10, 10, 0.92) 0%, rgba(196, 30, 30, 0.88) 45%, rgba(255, 107, 53, 0.85) 100%),
        var(--store-hero-bg, none);
}

.store-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(120, 10, 10, 0.55) 0%,
        rgba(196, 30, 30, 0.75) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
}

.store-hero__content {
    position: relative;
    z-index: 1;
}

.store-breadcrumb {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.store-breadcrumb a {
    color: #fff;
    text-decoration: underline;
}

.store-breadcrumb__sep {
    margin: 0 0.35rem;
    opacity: 0.7;
}

.store-hero__badge {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5d76e;
    margin-bottom: 0.35rem;
}

.store-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.store-hero__subtitle {
    margin: 0;
    opacity: 0.95;
    max-width: 40rem;
}

.store-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    margin-top: 2rem;
}

.store-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.store-sort-select {
    min-width: 11rem;
}

.store-cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
}

/* Main header (events layout): cart next to search / language (.navbar-light–friendly) */
.store-cart-trigger--navbar {
    background: #eef0f2;
    color: #333;
}

.store-nav-cart-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-cart-trigger__badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ff5711;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-layout {
    display: grid;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

@media (min-width: 992px) {
    .store-layout {
        grid-template-columns: 260px 1fr;
        align-items: start;
    }
}

.store-filters-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-filters__summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 0;
    list-style: none;
}

.store-filters__summary::-webkit-details-marker {
    display: none;
}

.store-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
}

.store-filter-chip {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    min-height: 2.75rem;
}

.store-filter-chip[aria-pressed='true'] {
    background: #ff5711;
    border-color: #ff5711;
    color: #fff;
}

.store-filters__clear-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.65rem 1.35rem;
    border: 1px solid #b01818;
    border-radius: 8px;
    background: #c41e1e;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.store-filters__clear-btn:hover {
    background: #a01818;
    border-color: #8a1414;
    color: #fff;
}

.store-filters__clear-btn:focus {
    outline: none;
}

.store-filters__clear-btn:focus-visible {
    outline: 2px solid rgba(196, 30, 30, 0.45);
    outline-offset: 2px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    contain: layout style;
}

.store-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.store-skeleton__card {
    height: 360px;
    border-radius: 12px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: store-shimmer 1.2s infinite;
}

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

.store-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.store-pagination button {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.store-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 1040;
    pointer-events: none;
}

.store-filter-sheet:not(.store-filter-sheet--closed) {
    pointer-events: auto;
}

.store-filter-sheet--closed {
    visibility: hidden;
}

.store-filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.store-filter-sheet:not(.store-filter-sheet--closed) .store-filter-sheet__backdrop {
    opacity: 1;
}

.store-filter-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.store-filter-sheet:not(.store-filter-sheet--closed) .store-filter-sheet__panel {
    transform: translateY(0);
}

.store-filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0;
}

.store-filter-sheet__body {
    overflow: auto;
    padding: 1rem;
    flex: 1;
}

.store-filter-sheet__footer {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.store-toast {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    background: #333;
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    max-width: 90vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.store-toast--show {
    animation: store-toast-in 0.25s ease;
}

@keyframes store-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
