/* ── Events section (home + pages) ── */
.shop-events-section {
    margin-top: 0;
}

@media (min-width: 1024px) {
    .shop-events-section {
        margin-top: 0;
    }
}

.shop-events-panel {
    background: #f3f7fc;
    border: 1px solid #e2eaf3;
    border-radius: 16px;
    padding-block: 16px;
    padding-inline: 0;
}

@media (min-width: 1024px) {
    .shop-events-panel {
        padding-block: 24px;
    }
}

.shop-events-section__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .shop-events-section__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 24px;
    }
}

.shop-events-section__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #005da9;
    text-align: right;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .shop-events-section__title {
        font-size: 24px;
    }
}

.shop-events-section__subtitle {
    margin: 0;
    font-size: 14px;
    color: #5a6478;
    line-height: 1.8;
    text-align: right;
}

.shop-events-section__calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #005da9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}

.shop-events-section__calendar-link:hover {
    text-decoration: underline;
}

.shop-events-section__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .shop-events-section__body--one,
    .shop-events-section__body--two,
    .shop-events-section__body--many,
    .shop-events-section__body--slider,
    .shop-events-section__body--empty {
        grid-template-columns: minmax(0, 0.66fr) minmax(0, 0.34fr);
        gap: 20px;
        min-height: 320px;
    }
}

.shop-events-section__cards-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.shop-events-section__cards-wrap--full {
    width: 100%;
}

.shop-events-section__body--slider,
.shop-events-section__body--empty {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
    .shop-events-section__body--slider,
    .shop-events-section__body--empty {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }
}

.shop-events-section__calendar-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.shop-events-section__calendar-wrap .shop-mini-calendar {
    flex: 1;
    height: 100%;
}

.shop-events-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    height: 100%;
}

.shop-events-cards--one {
    grid-template-columns: minmax(0, 1fr);
}

.shop-events-cards--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: stretch;
}

@media (min-width: 1024px) {
    .shop-events-cards--two {
        min-height: 320px;
    }
}

.shop-events-cards--many {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

/* Events slider (home upcoming events) */
.shop-events-slider {
    position: relative;
    min-width: 0;
}

.shop-events-swiper,
.shop-events-swiper.swiper-container {
    overflow: hidden;
    height: auto;
}

.shop-events-cards--slider,
.shop-events-swiper .swiper-wrapper.shop-events-cards--slider {
    display: flex;
    align-items: stretch;
    height: auto !important;
}

.shop-events-cards--slider .swiper-slide {
    height: auto !important;
    display: flex;
}

.shop-events-cards--slider .shop-event-card--featured {
    width: 100%;
    height: auto;
}

.shop-events-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.shop-events-slider__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #fff;
    color: #005da9;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.shop-events-slider__arrow:hover {
    background: #eef5ff;
    border-color: #c7dbff;
}

.shop-events-slider__arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.shop-events-slider__pagination {
    position: static;
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shop-events-slider__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #c7d4e6;
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.shop-events-slider__pagination .swiper-pagination-bullet-active {
    background: #005da9;
    transform: scale(1.15);
}

@media (min-width: 640px) {
    .shop-events-cards--many {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .shop-events-cards--many {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .shop-events-section__calendar-wrap {
        order: 2;
    }

    .shop-events-section__cards-wrap {
        order: 1;
    }
}

/* Event card */
.shop-event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.shop-event-card:hover {
    border-color: #c7dbff;
}

.shop-event-card--template {
    display: none !important;
}

.shop-event-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f7;
}

.shop-event-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-event-card__date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(16, 42, 86, 0.88);
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

.shop-event-card__date-day {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.shop-event-card__date-month {
    display: block;
    font-size: 11px;
    font-weight: 600;
}

.shop-event-card__type-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: #102a56;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shop-event-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    text-align: right;
}

.shop-event-card__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .shop-event-card__title {
        font-size: 17px;
    }
}

.shop-event-card__title-link {
    color: #005da9;
    text-decoration: none;
}

.shop-event-card__title-link:hover {
    text-decoration: underline;
}

.shop-event-card__meta {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.shop-event-card__meta li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

.shop-event-card__meta svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #6f7b8f;
}

.shop-event-card__capacity {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ce3f2d;
}

.shop-event-card__actions {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.shop-event-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #005da9;
    background: #fff;
    color: #005da9;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.shop-event-card__btn:hover {
    background: #005da9;
    color: #fff;
}

.shop-event-card__btn--disabled {
    border-color: #d7dde8;
    background: #f3f5f8;
    color: #8a94a6;
    cursor: not-allowed;
}

.shop-event-card__btn--registered {
    background: #005da9;
    color: #fff;
}

.shop-event-card__login-hint {
    display: inline;
    font-size: 12px;
    color: #6f7b8f;
    text-decoration: none;
}

.shop-event-card__login-hint:hover {
    color: #005da9;
    text-decoration: underline;
}

.shop-event-card__login-note {
    margin: 0;
    text-align: center;
    font-size: 12px;
}

/* Featured horizontal event card */
.shop-event-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    height: 100%;
    min-height: 280px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .shop-event-card--featured {
        grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
        grid-template-rows: none;
        min-height: 320px;
    }
}

.shop-event-card__media--featured {
    position: relative;
    min-height: 180px;
    height: 100%;
    aspect-ratio: auto;
}

@media (min-width: 768px) {
    .shop-event-card__media--featured {
        min-height: 100%;
    }
}

.shop-event-card__media-link--featured {
    display: block;
    height: 100%;
    text-decoration: none;
}

.shop-event-card__body--featured {
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: right;
}

.shop-event-card__format-pill {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: #102a56;
    font-size: 12px;
    font-weight: 700;
}

.shop-event-card__title--featured {
    margin-bottom: 8px;
    font-size: 20px;
    -webkit-line-clamp: 2;
}

@media (min-width: 1024px) {
    .shop-event-card__title--featured {
        font-size: 22px;
    }
}

.shop-event-card__excerpt {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #5a6478;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-event-card__meta--featured {
    margin-bottom: auto;
}

.shop-event-card__capacity--featured {
    margin-top: 8px;
}

.shop-event-card__actions--featured {
    margin-top: 16px;
}

.shop-event-card__btn--primary {
    background: #005da9;
    color: #fff;
    border-color: #005da9;
}

.shop-event-card__btn--primary:hover {
    background: #004a88;
    border-color: #004a88;
    color: #fff;
}

@media (max-width: 767px) {
    .shop-event-card--featured .shop-event-card__media-link--featured {
        order: -1;
    }
}

/* Mini calendar */
.shop-mini-calendar {
    background: #fff;
    border: 1px solid #d7e0ec;
    border-radius: 16px;
    padding: 18px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.shop-mini-calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.shop-mini-calendar__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #102a56;
    text-align: center;
    flex: 1;
}

.shop-mini-calendar__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #005da9;
    cursor: pointer;
}

.shop-mini-calendar__nav:hover {
    background: #eef5ff;
}

.shop-mini-calendar__weekdays,
.shop-mini-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.shop-mini-calendar__weekdays {
    margin-bottom: 6px;
}

.shop-mini-calendar__weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
}

.shop-mini-calendar__day {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #172033;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.shop-mini-calendar__day:focus-visible {
    outline: 2px solid #005da9;
    outline-offset: 2px;
}

.shop-mini-calendar__day:hover:not(:disabled) {
    background: #eef5ff;
}

.shop-mini-calendar__day.is-selected {
    background: #102a56;
    color: #fff;
}

.shop-mini-calendar__day.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.shop-mini-calendar__day.has-event::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #22c55e;
}

.shop-mini-calendar__day.is-selected.has-event::after {
    background: #fff;
}

.shop-mini-calendar__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: #4a5568;
}

.shop-mini-calendar__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

.shop-mini-calendar__all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #005da9;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.shop-mini-calendar__all-link:hover {
    text-decoration: underline;
}

/* States */
.shop-events-state {
    grid-column: 1 / -1;
    padding: 32px 20px;
    border: 1px dashed #d7dde8;
    border-radius: 16px;
    background: #fafbfd;
    text-align: center;
}

.shop-events-state h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #102a56;
}

.shop-events-state p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6f7b8f;
}

.shop-events-state__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: #005da9;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.shop-events-state__btn--link {
    background: #fff;
    border: 1px solid #005da9;
    color: #005da9;
}

.shop-events-filter-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef5ff;
    font-size: 12px;
    color: #102a56;
}

.shop-events-filter-note__clear {
    border: 0;
    background: transparent;
    color: #005da9;
    font-weight: 700;
    cursor: pointer;
}

.shop-events-skeleton__calendar,
.shop-events-skeleton__card {
    border-radius: 16px;
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
    background-size: 200% 100%;
    animation: shop-events-shimmer 1.2s infinite;
}

.shop-events-skeleton__calendar {
    min-height: 320px;
}

.shop-events-skeleton__card {
    min-height: 360px;
}

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

@media (prefers-reduced-motion: reduce) {
    .shop-event-card,
    .shop-event-card__btn,
    .shop-events-skeleton__calendar,
    .shop-events-skeleton__card {
        transition: none;
        animation: none;
    }
}

/* Events page */
.shop-events-page__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .shop-events-page__head {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.shop-events-page__title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #005da9;
}

.shop-events-page__subtitle {
    margin: 0;
    color: #707070;
    line-height: 1.8;
}

.shop-events-page__back {
    color: #005da9;
    font-size: 14px;
    text-decoration: none;
}

.shop-events-page__filters {
    margin-bottom: 20px;
}

.shop-events-page__filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-events-page__filter {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #fff;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.shop-events-page__filter.is-active {
    background: #005da9;
    border-color: #005da9;
    color: #fff;
}

.shop-events-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .shop-events-page__layout {
        grid-template-columns: minmax(0, 0.68fr) minmax(260px, 0.32fr);
    }
}

.shop-events-page__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .shop-events-page__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Event detail */
.shop-event-detail__back {
    display: inline-block;
    margin-bottom: 16px;
    color: #005da9;
    text-decoration: none;
    font-size: 14px;
}

.shop-event-detail__hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.shop-event-detail__cover {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
    background: #eef2f7;
}

.shop-event-detail__hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(180deg, rgba(16, 42, 86, 0.05) 0%, rgba(16, 42, 86, 0.72) 100%);
}

.shop-event-detail__type {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff;
    color: #102a56;
    font-size: 12px;
    font-weight: 700;
}

.shop-event-detail__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 800;
}

.shop-event-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .shop-event-detail__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    }
}

.shop-event-detail__description {
    color: #334155;
    line-height: 1.9;
    text-align: justify;
}

.shop-event-detail__audience {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 13px;
    color: #475569;
}

.shop-event-detail__info-card,
.shop-event-detail__register-card {
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(16, 42, 86, 0.05);
}

.shop-event-detail__register-card {
    margin-top: 16px;
}

.shop-event-detail__info-card h2 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #102a56;
}

.shop-event-detail__info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.shop-event-detail__info-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #6f7b8f;
}

.shop-event-detail__info-card strong {
    color: #102a56;
    text-align: left;
}

.shop-event-detail__status {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}

.shop-event-detail__status--success {
    color: #047857;
    font-weight: 700;
}

.shop-event-detail__status--muted {
    color: #8a94a6;
    font-weight: 700;
}

.shop-event-detail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: #005da9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.shop-event-detail__btn--success {
    background: #059669;
}

.shop-event-detail__btn--disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f3f5f8;
    color: #8a94a6;
    font-size: 14px;
    font-weight: 700;
    cursor: not-allowed;
}

.shop-event-detail__btn:disabled,
.shop-event-detail__btn.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.hidden {
    display: none !important;
}
