﻿/**
 * Modern theme â€” glassmorphism interaction layer.
 */
:root {
    --modern-max-width: 1340px;
    --modern-radius: calc(var(--border-radius, 0) * 1px);
    --brand-color: var(--primary-color, var(--theme-primary-color, #9fe870));
    --brand-soft: color-mix(in srgb, var(--brand-color) 14%, white);
    --brand-strong: color-mix(in srgb, var(--brand-color) 88%, #000);
    --brand-on: #121212;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.86);
    --glass-bg-subtle: rgba(255, 255, 255, 0.48);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-line: rgba(18, 18, 18, 0.08);
    --glass-blur: 20px;
    --glass-radius: 14px;
    --glass-shadow: 0 8px 32px rgba(18, 18, 18, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    --glass-shadow-soft: 0 2px 14px rgba(18, 18, 18, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Store name â€” brand-tinted gradient */
.modern-store-name {
    color: #1d1d1f;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .modern-store-name {
        background-image: linear-gradient(
            102deg,
            #1d1d1f 0%,
            #1d1d1f 48%,
            color-mix(in srgb, var(--brand-color, #9fe870) 55%, #1d1d1f) 72%,
            color-mix(in srgb, var(--brand-color, #9fe870) 82%, #1d1d1f) 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Glass surfaces */
.modern-glass,
.modern-header,
.modern-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow-soft);
}

.modern-glass-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px) saturate(185%);
    -webkit-backdrop-filter: blur(24px) saturate(185%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.modern-glass-subtle {
    background: var(--glass-bg-subtle);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--glass-shadow-soft);
}

.modern-header {
    border-bottom: 1px solid var(--glass-line);
}

/* Footer uses its own surface â€” not glass header treatment */
.modern-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Catalog â€” Apple-inspired product grid */
.modern-catalog.modern-section {
    padding-top: 2rem;
    padding-bottom: 2.75rem;
    background: #fbfbfd;
}

@media (min-width: 768px) {
    .modern-catalog.modern-section {
        padding-top: 2.5rem;
        padding-bottom: 3.25rem;
    }
}

@media (min-width: 1024px) {
    .modern-catalog.modern-section {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
}

.modern-catalog__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.modern-catalog__toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .modern-catalog__toolbar {
        margin-bottom: 2.5rem;
    }
}

.modern-catalog__header {
    margin-bottom: 2rem;
    text-align: center;
}

.modern-catalog__heading {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #1d1d1f;
}

.modern-catalog__tabs {
    max-width: 100%;
}

.modern-catalog__empty {
    padding: 4rem 1rem;
    text-align: center;
    color: #6e6e73;
    font-size: 0.9375rem;
}

.modern-catalog__empty--hero h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #1d1d1f;
}

.modern-catalog__empty--hero p {
    margin: 0.75rem auto 0;
    max-width: 22rem;
}

.modern-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(0.875rem, 2.5vw, 1.5rem);
    row-gap: clamp(2rem, 5vw, 3.25rem);
    width: 100%;
}

.modern-product-grid--tight-top {
    margin-top: 0;
}

@media (min-width: 640px) {
    .modern-product-grid {
        column-gap: 1.25rem;
        row-gap: 2.75rem;
    }
}

@media (min-width: 768px) {
    .modern-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 1.5rem;
        row-gap: 3.25rem;
    }
}

@media (min-width: 1100px) {
    .modern-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 1.75rem;
        row-gap: 3.75rem;
    }
}

.modern-section--compact {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .modern-section--compact {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }
}

.modern-similar-products {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fbfbfd;
}

/* Product cards â€” Apple Store tiles */
.modern-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    text-align: center;
}

.modern-product-card__frame {
    position: relative;
    width: 100%;
}

.modern-product-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1.125rem;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: none;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.25s ease;
}

.modern-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.modern-product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #86868b;
}

.modern-product-card__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(251, 251, 253, 0.08);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    pointer-events: none;
}

.modern-product-card__quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(4px);
    transition: transform 0.25s ease, background 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .modern-product-card:hover .modern-product-card__media,
    .modern-product-card:focus-within .modern-product-card__media {
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

    .modern-product-card:hover .modern-product-card__image,
    .modern-product-card:focus-within .modern-product-card__image {
        transform: scale(1.04);
    }

    .modern-product-card:hover .modern-product-card__hover,
    .modern-product-card:focus-within .modern-product-card__hover {
        opacity: 1;
        background: rgba(251, 251, 253, 0.24);
    }

    .modern-product-card:hover .modern-product-card__quick,
    .modern-product-card:focus-within .modern-product-card__quick {
        transform: translateY(0);
    }
}

.modern-product-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
    padding: 0 0.35rem;
}

.modern-product-card__overlay {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.modern-product-detail__panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

@media (min-width: 1024px) {
    .modern-product-detail__panel {
        position: sticky;
        top: 6.5rem;
        align-self: start;
        padding: 0;
    }
}

.modern-product-detail__notice {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6e6e73;
}

/* Mobile search drawer */
.modern-header__search-input {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.modern-header__search .modern-input,
.modern-header__search-input.modern-input {
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #1d1d1f;
}

.modern-header__search .modern-input::placeholder,
.modern-header__search-input.modern-input::placeholder {
    color: #86868b;
}

.modern-header__search .modern-input:focus,
.modern-header__search-input.modern-input:focus {
    border-color: rgba(0, 0, 0, 0.14);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.modern-header__search.search-box.active {
    display: block;
    overflow: visible;
}

.modern-header__search .relative {
    overflow: visible;
}

@media (min-width: 768px) {
    .modern-header__search.search-box:not(.modern-header__search--inline) {
        display: none !important;
    }
}

.modern-header__cart-count:empty {
    display: none !important;
}

/* Banner â€” Apple-inspired hero */
.modern-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    background: #f5f5f7;
}

.modern-banner__media {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    min-height: 30vh;
    width: 100%;
    align-self: stretch;
}

@media (min-width: 768px) {
    .modern-banner__media {
        min-height: 38vh;
    }
}

@media (min-width: 1100px) {
    .modern-banner__media {
        min-height: 42vh;
    }
}

.modern-banner__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.modern-banner__slide--active {
    opacity: 1;
}

.modern-banner__slide--fallback {
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, color-mix(in srgb, var(--brand-color, #9fe870) 10%, #fff), transparent 58%),
        linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 52%, #ebebef 100%);
}

.modern-banner__scrim {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.34) 0%,
        rgba(0, 0, 0, 0.16) 32%,
        rgba(0, 0, 0, 0.06) 58%,
        rgba(0, 0, 0, 0.02) 100%
    );
}

.modern-banner--fallback .modern-banner__scrim {
    background: transparent;
}

.modern-banner__content {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    min-height: 30vh;
    padding: 3rem 0 3.25rem;
    text-align: left;
}

@media (min-width: 768px) {
    .modern-banner__content {
        min-height: 38vh;
        padding-bottom: 3.5rem;
    }
}

@media (min-width: 1100px) {
    .modern-banner__content {
        min-height: 42vh;
    }
}

.modern-banner__layout {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    width: 100%;
    max-width: 52rem;
}

.modern-banner__logo-wrap {
    flex-shrink: 0;
    width: clamp(4.5rem, 18vw, 7rem);
    height: clamp(4.5rem, 18vw, 7rem);
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}

.modern-banner__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .modern-banner__logo-wrap {
        width: clamp(5.5rem, 11vw, 8.5rem);
        height: clamp(5.5rem, 11vw, 8.5rem);
        border-radius: 1.5rem;
    }
}

@media (min-width: 1100px) {
    .modern-banner__logo-wrap {
        width: 9rem;
        height: 9rem;
    }
}

.modern-banner__copy {
    min-width: 0;
    flex: 1;
    max-width: 36rem;
    padding: 1.35rem 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
}

@media (min-width: 768px) {
    .modern-banner__copy {
        padding: 1.75rem 2rem;
    }
}

@media (max-width: 479px) {
    .modern-banner__layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .modern-banner__logo-wrap {
        width: 4.25rem;
        height: 4.25rem;
    }
}

.modern-banner__title {
    margin: 0;
    font-size: clamp(1.75rem, 4.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.modern-banner__description {
    margin: 0.875rem 0 0;
    max-width: 32rem;
    font-size: clamp(0.8125rem, 1.45vw, 0.9375rem);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #6e6e73;
}

.modern-banner__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.modern-banner__socials .modern-socials__link {
    height: 2.125rem;
    width: 2.125rem;
    border-radius: 999px;
    border-color: rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.modern-banner__socials .modern-socials__link:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #1d1d1f;
}

.modern-banner__dots {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .modern-banner__content {
        align-items: flex-start;
        min-height: 30vh;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .modern-banner > .modern-banner__dots {
        top: calc(1rem + env(safe-area-inset-top, 0px));
        right: calc(1.25rem + env(safe-area-inset-right, 0px));
        bottom: auto;
        left: auto;
        transform: none;
        padding: 0.45rem 0.7rem;
        gap: 0.45rem;
        z-index: 3;
    }
}

@media (min-width: 768px) {
    .modern-banner__dots {
        bottom: 1.5rem;
    }
}

.modern-banner__dot {
    width: 0.4rem;
    height: 0.4rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(29, 29, 31, 0.22);
    cursor: pointer;
    transition: width 0.28s ease, background 0.28s ease, opacity 0.28s ease;
}

.modern-banner__dot--active {
    width: 1.35rem;
    background: #1d1d1f;
}

/* Catalog tabs â€” segmented control */
.modern-tabs {
    display: inline-flex;
    gap: 0.2rem;
    max-width: 100%;
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    scrollbar-width: none;
}

.modern-tabs::-webkit-scrollbar {
    display: none;
}

.modern-tab-link {
    border-radius: 0.55rem;
    padding: 0.5rem 1rem;
    border: none !important;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #6e6e73;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.modern-tab-link:hover {
    color: #1d1d1f;
}

.modern-tab-link--active,
.modern-tab--active {
    background: var(--brand-soft, color-mix(in srgb, var(--brand-color, #9fe870) 14%, white));
    box-shadow:
        0 1px 4px color-mix(in srgb, var(--brand-color, #9fe870) 10%, transparent),
        0 0 0 1px color-mix(in srgb, var(--brand-color, #9fe870) 16%, transparent);
    color: #1d1d1f !important;
}

/* Catalog tabs */
.modern-tab-panel {
    display: none;
    animation: modern-fade-in 0.35s ease;
}

.modern-tab-panel--active {
    display: block;
}

@keyframes modern-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product card typography */
.modern-product-card__title {
    margin: 0;
    width: 100%;
    font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-product-card__link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s ease;
}

.modern-product-card__link:hover {
    color: #424245;
    text-decoration: none;
}

.modern-product-card__price {
    margin: 0;
    width: 100%;
    font-size: clamp(0.75rem, 1.4vw, 0.875rem);
    line-height: 1.35;
    color: #6e6e73;
}

.modern-product-card__price-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.modern-product-card__price-value--free {
    color: #86868b;
}

.modern-product-card__badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    z-index: 2;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #1d1d1f;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.modern-product-card__currency {
    margin-right: 0.05em;
}

.modern-event-tier__name {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.modern-event-tier__price {
    margin: 0;
    display: flex;
    min-width: 0;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.modern-event-tier__price-value {
    display: block;
    min-width: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-event-tier__price-value--free {
    color: #1d1d1f;
}

.modern-event-tier__compare {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #86868b;
}

.modern-event-tier__currency {
    margin-right: 0.05em;
}

/* Event tickets section */
.modern-event-tiers {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 0;
    border-radius: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.modern-event-tiers__header {
    margin: 0;
    padding: 1rem 1.125rem 0;
}

.modern-event-tiers__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.modern-event-tiers__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #1d1d1f;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.modern-event-tiers__icon .mdi {
    font-size: 1.25rem;
    line-height: 1;
}

.modern-event-tiers__titles {
    min-width: 0;
}

.modern-event-tiers__heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-event-tiers__subheading {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #6e6e73;
}

.modern-event-tiers__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-event-tier {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.modern-event-tier:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.modern-event-tier--selected {
    border-color: color-mix(in srgb, var(--brand-color, #9fe870) 55%, #1d1d1f 45%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--brand-color, #9fe870) 55%, #1d1d1f 45%),
        0 8px 24px color-mix(in srgb, var(--brand-color, #9fe870) 12%, transparent);
}

.modern-event-tier__main {
    padding: 1rem 1rem 0.875rem;
}

.modern-event-tier__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.modern-event-tier__identity {
    min-width: 0;
    flex: 1 1 auto;
}

.modern-event-tier__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.modern-event-tier__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.modern-event-tier__badge--free {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.06);
}

.modern-event-tier__badge--sale {
    color: #fff;
    background: #1d1d1f;
}

.modern-event-tier__desc {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6e6e73;
}

.modern-event-tier__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.75rem;
}

.modern-event-tier__stock,
.modern-event-tier__limit {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6e6e73;
}

.modern-event-tier__stock .mdi,
.modern-event-tier__limit .mdi {
    font-size: 0.875rem;
    line-height: 1;
}

.modern-event-tier__stock--low {
    color: #b45309;
}

.modern-event-tier__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(245, 245, 247, 0.65);
}

.modern-event-tier__subtotal {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.modern-event-tier__subtotal--active {
    opacity: 1;
}

.modern-event-tier__subtotal-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #86868b;
}

.modern-event-tier__subtotal-value {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-event-tier__qty {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    margin-top: 0;
}

.modern-event-tier__qty-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #86868b;
}

.modern-event-tier__qty .modern-quantity__stepper {
    background: #fff;
}

.modern-event-tier__qty .modern-quantity__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.modern-event-tier__qty .modern-quantity__btn:disabled:hover {
    background: transparent;
}

/* Mobile scroll cue to tickets */
.modern-event-ticket-scroll {
    display: none;
}

@media (max-width: 1023px) {
    .modern-event-ticket-scroll {
        position: fixed;
        right: 1rem;
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
        z-index: 110;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 0.9rem;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 999px;
        background: rgba(251, 251, 253, 0.96);
        backdrop-filter: blur(14px) saturate(160%);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.01em;
        color: #1d1d1f;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }

    .modern-event-ticket-scroll[hidden] {
        display: none !important;
    }

    .modern-event-ticket-scroll .mdi {
        font-size: 1rem;
        line-height: 1;
        color: color-mix(in srgb, var(--brand-color, #9fe870) 65%, #1d1d1f 35%);
    }

    .modern-event-ticket-scroll:active {
        transform: scale(0.97);
    }
}

/* Event meta */
.modern-event-meta {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.modern-event-meta__list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 0;
    padding: 0.875rem 1rem;
    list-style: none;
}

.modern-event-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.modern-event-meta__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modern-event-meta__icon .mdi {
    font-size: 1.125rem;
    line-height: 1;
}

.modern-event-meta__text {
    padding-top: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #1d1d1f;
}

/* Event checkout */
.modern-event-checkout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.125rem;
    padding: 1rem 1.125rem 1.125rem;
    border-radius: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.modern-event-checkout__bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-event-checkout__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-modern .modern-event-checkout #total-quantity,
body.theme-modern .event-product-container .modern-event-checkout #total-quantity {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    z-index: auto;
}

.modern-event-checkout__summary-label {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6e6e73;
}

.modern-event-checkout__summary-value {
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: right;
    color: #1d1d1f;
}

.modern-event-checkout__total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
}

.modern-event-checkout__total-label {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-event-checkout__total-amount {
    margin: 0;
    text-align: right;
}

.modern-event-checkout__total .modern-product-price__value {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.modern-event-checkout__cta {
    margin-top: 0.125rem;
}

.modern-event-checkout__cta:disabled,
.modern-event-checkout__cta[disabled],
.modern-event-checkout__cta[aria-disabled="true"],
.modern-event-checkout__cta--disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.modern-event-checkout__cta:disabled:hover,
.modern-event-checkout__cta[disabled]:hover,
.modern-event-checkout__cta[aria-disabled="true"]:hover,
.modern-event-checkout__cta--disabled:hover {
    background: var(--brand-color, var(--primary-color, #9fe870));
    color: var(--brand-on, #121212);
    transform: none;
}

@media (max-width: 1023px) {
    .modern-product-detail__panel .modern-event-checkout__cta {
        position: static !important;
        bottom: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }

    .modern-product-detail__panel .modern-event-checkout__cta:disabled,
    .modern-product-detail__panel .modern-event-checkout__cta[disabled] {
        box-shadow: none;
    }
}

.modern-product-info__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    word-break: break-word;
}

.modern-product-info__type {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #6e6e73;
}

.modern-product-info__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.modern-product-info__store {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    font-size: 0.8125rem;
    color: #6e6e73;
    text-decoration: none;
    transition: color 0.15s ease;
}

.modern-product-info__store:hover {
    color: #1d1d1f;
}

.modern-product-info__store:hover .modern-store-name {
    background-image: linear-gradient(
        102deg,
        #1d1d1f 0%,
        #1d1d1f 42%,
        color-mix(in srgb, var(--brand-color, #9fe870) 62%, #1d1d1f) 68%,
        color-mix(in srgb, var(--brand-color, #9fe870) 88%, #1d1d1f) 100%
    );
}

.modern-product-info__store-logo {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.modern-product-info__share {
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #fff;
    padding: 0.35rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.modern-product-info__share:hover {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.16);
}

.modern-product-price__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    color: #6e6e73;
}

.modern-product-price__amount {
    margin: 0;
}

.modern-product-price__value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.625rem, 3.2vw, 2.25rem);
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: #1d1d1f;
}

.modern-product-price__value--free {
    color: #6e6e73;
}

.modern-product-price__currency {
    margin-right: 0.1em;
}

/* Product gallery */
.modern-product-gallery {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.125rem;
    background: #f5f5f7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.modern-product-gallery__viewport {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f7;
}

.modern-product-gallery__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.modern-product-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modern-product-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.modern-product-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-product-gallery__nav {
    display: none !important;
}

.modern-product-gallery__counter {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.55);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.modern-product-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fbfbfd;
    scrollbar-width: thin;
}

.modern-product-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.modern-product-gallery__thumbs::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 999px;
}

.modern-product-gallery__thumb {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: #f5f5f7;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.modern-product-gallery__thumb:hover {
    border-color: rgba(18, 18, 18, 0.25);
}

.modern-product-gallery__thumb.is-active {
    border-color: var(--brand-color, #9fe870);
}

.modern-product-gallery__thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-product-gallery__placeholder {
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #8a8a8a;
}

/* Reset legacy owl carousel styles when applied to modern gallery */
.modern-product-gallery.product-image-carousel,
.modern-product-gallery .owl-carousel {
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.modern-product-detail .owl-carousel .owl-nav,
.modern-product-gallery .owl-nav {
    display: none !important;
}

/* Event hero gallery â€” Eventbrite-style full-width blurred backdrop */
.modern-event-gallery {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #1d1d1f;
}

.modern-event-gallery__stage {
    position: relative;
    width: 100%;
    min-height: clamp(220px, 42vw, 480px);
    max-height: min(56vh, 520px);
    overflow: hidden;
}

.modern-event-gallery__track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    max-height: inherit;
}

.modern-event-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.modern-event-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.modern-event-gallery__backdrop {
    position: absolute;
    inset: -12%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(32px) saturate(1.2);
    transform: scale(1.12);
    pointer-events: none;
}

.modern-event-gallery__backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.42) 100%),
        rgba(0, 0, 0, 0.22);
}

.modern-event-gallery__frame {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    max-height: inherit;
    padding: clamp(1rem, 3vw, 2rem);
}

.modern-event-gallery__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(760px, 94%);
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.375rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.modern-event-gallery__counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modern-event-gallery__thumbs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem 1rem;
    background: #fbfbfd;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    scrollbar-width: thin;
}

.modern-event-gallery__thumb {
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background: #f5f5f7;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.modern-event-gallery__thumb:hover {
    border-color: rgba(0, 0, 0, 0.16);
}

.modern-event-gallery__thumb.is-active {
    border-color: var(--brand-color, #9fe870);
    transform: translateY(-1px);
}

.modern-event-gallery__thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-event-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(220px, 36vw, 400px);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--brand-color, #9fe870) 18%, #1d1d1f), transparent 62%),
        linear-gradient(180deg, #2d2d30 0%, #1d1d1f 100%);
}

.modern-event-gallery__placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.75rem;
}

.modern-product-detail--event > .modern-event-gallery + .modern-shell.modern-product-detail__hero {
    padding-top: clamp(1.25rem, 3vw, 2rem);
}

.modern-product-detail__content--event {
    width: 100%;
    max-width: none;
}

.modern-event-layout {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "info"
        "tickets"
        "description";
}

.modern-event-layout__info {
    grid-area: info;
}

.modern-event-layout__tickets {
    grid-area: tickets;
}

.modern-event-layout__description {
    grid-area: description;
}

.modern-event-layout__info,
.modern-event-layout__tickets,
.modern-event-layout__description {
    min-width: 0;
}

.modern-event-layout__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modern-event-layout__tickets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-event-layout__description .modern-product-description {
    margin-top: 0;
}

@media (min-width: 1024px) {
    .modern-event-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        grid-template-areas:
            "info tickets"
            "description tickets";
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .modern-event-layout__tickets {
        position: sticky;
        top: calc(5.5rem + env(safe-area-inset-top, 0px));
        align-self: start;
    }

    .modern-event-layout__tickets .modern-event-checkout {
        margin-top: 0;
    }
}

.quick-view-content .modern-event-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "info"
        "tickets"
        "description";
}

.quick-view-content .modern-event-layout__tickets {
    position: static;
    top: auto;
}

/* Booking page â€” event-style split layout */
.modern-product-detail--booking > .modern-event-gallery + .modern-shell.modern-product-detail__hero {
    padding-top: clamp(1.25rem, 3vw, 2rem);
}

.modern-product-detail__content--booking {
    width: 100%;
    max-width: none;
}

.modern-booking-layout {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "info"
        "schedule"
        "description";
}

.modern-booking-layout__info {
    grid-area: info;
}

.modern-booking-layout__schedule {
    grid-area: schedule;
}

.modern-booking-layout__description {
    grid-area: description;
}

.modern-booking-layout__info,
.modern-booking-layout__schedule,
.modern-booking-layout__description {
    min-width: 0;
}

.modern-booking-layout__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modern-booking-layout__schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-booking-layout__schedule .modern-booking-scheduler {
    flex: 1 1 auto;
    min-height: 0;
}

.modern-booking-checkout {
    flex-shrink: 0;
    margin-top: auto;
}

.modern-booking-checkout .modern-product-buybox {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 0;
    padding: 1rem 1.125rem 1.125rem;
    border-radius: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

@media (min-width: 1024px) {
    .modern-booking-layout__schedule {
        max-height: calc(100vh - 6.5rem - env(safe-area-inset-top, 0px));
    }

    .modern-booking-layout__schedule .modern-booking-scheduler {
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
}

.modern-booking-layout__description .modern-product-description {
    margin-top: 0;
}

@media (min-width: 1024px) {
    .modern-booking-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        grid-template-areas:
            "info schedule"
            "description schedule";
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .modern-booking-layout__schedule {
        position: sticky;
        top: calc(5.5rem + env(safe-area-inset-top, 0px));
        align-self: start;
    }
}

.quick-view-content .modern-booking-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "info"
        "schedule"
        "description";
}

.quick-view-content .modern-booking-layout__schedule {
    position: static;
    top: auto;
}

/* Service page â€” event-style split layout */
.modern-product-detail--service > .modern-event-gallery + .modern-shell.modern-product-detail__hero {
    padding-top: clamp(1.25rem, 3vw, 2rem);
}

.modern-product-detail__content--service {
    width: 100%;
    max-width: none;
}

.modern-service-layout {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "info"
        "order"
        "description";
}

.modern-service-layout__info {
    grid-area: info;
}

.modern-service-layout__order {
    grid-area: order;
}

.modern-service-layout__description {
    grid-area: description;
}

.modern-service-layout__info,
.modern-service-layout__order,
.modern-service-layout__description {
    min-width: 0;
}

.modern-service-layout__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modern-service-layout__order {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modern-service-panel {
    display: flex;
    flex-direction: column;
    border-radius: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
    overflow: hidden;
}

.modern-service-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    padding: 1.25rem;
}

.modern-service-form__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-service-form__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.modern-service-form__price-value {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    line-height: 1.1;
}

.modern-service-form__price-unit {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #86868b;
}

.modern-service-form__quantity .modern-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modern-service-form__quantity .modern-quantity__label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d1d1f;
}

.modern-service-form__quantity .modern-quantity__hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #86868b;
}

.modern-service-form__quantity .modern-quantity__stepper {
    flex-shrink: 0;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.modern-service-form__addons {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.modern-service-form__addons .modern-product-variations {
    gap: 1rem;
}

.modern-service-form__addons .modern-product-variations__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1d1d1f;
}

.modern-service-form__addons .modern-product-variations__option {
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    background: #fff;
}

.modern-service-checkout {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.modern-service-checkout__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
}

.modern-service-checkout__total-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6e6e73;
}

.modern-service-checkout__total .modern-product-price__amount {
    margin: 0;
}

.modern-service-checkout__total .modern-product-price__value {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-service-checkout__cta {
    width: 100%;
    min-height: 2.75rem;
}

.modern-service-checkout__unavailable {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ed5e5e;
    text-align: center;
}

.modern-service-layout__description .modern-product-description {
    margin-top: 0;
}

.modern-portfolio__heading {
    margin: 0 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-portfolio-scroll {
    margin: 0 -0.25rem;
    padding: 0.125rem 0.25rem 0.625rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.modern-portfolio-scroll::-webkit-scrollbar {
    height: 5px;
}

.modern-portfolio-scroll::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 999px;
}

.modern-portfolio-scroll__track {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    width: max-content;
    min-width: 100%;
    padding-bottom: 0.125rem;
}

.modern-portfolio-item {
    flex: 0 0 auto;
    width: 10.5rem;
    scroll-snap-align: start;
}

.modern-portfolio-item__link {
    display: block;
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-portfolio-item__link:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.modern-portfolio-item__image {
    display: block;
    width: 100%;
    height: 7.5rem;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.modern-portfolio-item__link:hover .modern-portfolio-item__image {
    transform: scale(1.03);
}

.modern-portfolio-item__link--file {
    display: flex;
    align-items: stretch;
    min-height: 7.5rem;
    background: #fff;
}

.modern-portfolio-item__file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 0.75rem;
    text-align: center;
}

.modern-portfolio-item__file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 1.625rem;
    line-height: 1;
}

.modern-portfolio-item__file-icon .mdi {
    font-size: inherit;
    line-height: 1;
}

.modern-portfolio-item__file-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1d1d1f;
    word-break: break-word;
}

.modern-portfolio-item__file-meta {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6e6e73;
}

@media (min-width: 1024px) {
    .modern-service-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        grid-template-areas:
            "info order"
            "description order";
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .modern-service-layout__order {
        position: sticky;
        top: calc(5.5rem + env(safe-area-inset-top, 0px));
        align-self: start;
    }
}

.quick-view-content .modern-service-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "info"
        "order"
        "description";
}

.quick-view-content .modern-service-layout__order {
    position: static;
    top: auto;
}

/* Booking scheduler */
.modern-booking-scheduler {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.125rem 1.25rem 1.25rem;
    border-radius: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.modern-booking-scheduler__header {
    margin: 0;
}

.modern-booking-scheduler__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.modern-booking-scheduler__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: #fff;
    color: #1d1d1f;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.modern-booking-scheduler__icon .mdi {
    font-size: 1.125rem;
    line-height: 1;
}

.modern-booking-scheduler__heading {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-booking-scheduler__subheading {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6e6e73;
}

.modern-booking-scheduler__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

.modern-booking-scheduler__summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modern-booking-scheduler__summary-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #86868b;
}

.modern-booking-scheduler__summary-value {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: #1d1d1f;
}

.modern-booking-calendar {
    padding: 0.75rem;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modern-booking-calendar__picker {
    width: 100%;
}

.modern-booking-calendar .ui-datepicker {
    width: 100% !important;
    padding: 0;
    border: none !important;
    background: transparent;
    font-family: inherit;
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #1d1d1f;
    font-weight: 600;
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-prev,
.modern-booking-calendar .ui-datepicker .ui-datepicker-next {
    top: 50%;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
    transform: translateY(-50%);
    cursor: pointer;
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-prev-hover,
.modern-booking-calendar .ui-datepicker .ui-datepicker-next-hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: #ebebef;
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-prev span,
.modern-booking-calendar .ui-datepicker .ui-datepicker-next span {
    display: none;
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-prev::after,
.modern-booking-calendar .ui-datepicker .ui-datepicker-next::after {
    display: block;
    font-size: 1rem;
    line-height: 2rem;
    text-align: center;
    color: #1d1d1f;
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-prev::after {
    content: "â€¹";
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-next::after {
    content: "â€º";
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0;
    line-height: 1.2;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.modern-booking-calendar .ui-datepicker .ui-datepicker-title select {
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 0.8125rem;
    font-weight: 500;
}

.modern-booking-calendar .ui-datepicker table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0.2rem;
    font-size: 0.8125rem;
}

.modern-booking-calendar .ui-datepicker th {
    padding: 0.25rem 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #86868b;
}

.modern-booking-calendar .ui-datepicker td {
    padding: 0;
    border: none;
}

.modern-booking-calendar .ui-datepicker td a,
.modern-booking-calendar .ui-datepicker td span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto;
    padding: 0;
    border: none !important;
    border-radius: 999px;
    background: transparent !important;
    color: #1d1d1f;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.modern-booking-calendar .ui-datepicker td .ui-state-default:hover {
    background: #f0f0f2 !important;
}

.modern-booking-calendar .ui-datepicker td .ui-state-active,
.modern-booking-calendar .ui-datepicker td .ui-state-active:hover {
    background: var(--brand-color, var(--primary-color, #9fe870)) !important;
    color: var(--brand-on, #121212) !important;
    font-weight: 600;
}

.modern-booking-calendar .ui-datepicker td .ui-state-disabled,
.modern-booking-calendar .ui-datepicker td .ui-datepicker-unselectable span {
    color: #c7c7cc !important;
    opacity: 1;
}

.modern-booking-times__heading {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6e6e73;
}

.modern-booking-times__grid {
    min-height: 2.5rem;
}

.modern-booking-times__placeholder {
    margin: 0;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background: #fff;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #86868b;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modern-booking-times__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    max-height: 14rem;
    overflow-y: auto;
    padding-right: 0.125rem;
    scrollbar-width: thin;
}

@media (min-width: 480px) {
    .modern-booking-times__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.modern-booking-times__slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 0.625rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #1d1d1f;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.modern-booking-times__slot:hover {
    border-color: rgba(0, 0, 0, 0.14);
    background: #f5f5f7;
}

.modern-booking-times__slot.is-selected,
.modern-booking-times__slot.is-selected:hover {
    border-color: color-mix(in srgb, var(--brand-color, #9fe870) 55%, #1d1d1f 45%);
    background: color-mix(in srgb, var(--brand-color, #9fe870) 22%, #ffffff);
    color: #1d1d1f;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-color, #9fe870) 35%, transparent);
}

.modern-product-detail .modern-booking-checkout,
.modern-product-detail .modern-booking-checkout .modern-product-buybox {
    background: #f5f5f7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.125rem;
    box-shadow: none;
}

.modern-product-detail__content--event .modern-product-detail__panel {
    width: 100%;
}

.quick-view-content .modern-event-gallery {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0.875rem;
    overflow: hidden;
}

.quick-view-content .modern-event-gallery__stage {
    min-height: clamp(180px, 34vw, 320px);
    max-height: 360px;
}

.quick-view-content .modern-event-gallery__image {
    max-width: min(520px, 90%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.modern-product-variations__options {
    position: relative;
}

.modern-product-variations__choice {
    position: relative;
    display: inline-flex;
}

.modern-product-variations__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1d1d1f;
}

.modern-product-variations__option {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
    color: #1d1d1f;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.modern-product-variations__badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #6e6e73;
}

.modern-product-variations__desc {
    line-height: 1.35;
}

.modern-product-variations__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modern-product-variations__input:checked + .modern-product-variations__option {
    border-color: color-mix(in srgb, var(--brand-color, #9fe870) 55%, #1d1d1f 45%);
    background: color-mix(in srgb, var(--brand-color, #9fe870) 20%, #ffffff);
    color: #1d1d1f;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-color, #9fe870) 35%, transparent);
}

.modern-product-variations__input:checked + .modern-product-variations__option .text-ink,
.modern-product-variations__input:checked + .modern-product-variations__option .font-normal {
    color: #1d1d1f;
}

.modern-product-variations__input:checked + .modern-product-variations__option .text-muted,
.modern-product-variations__input:checked + .modern-product-variations__option .modern-product-variations__desc {
    color: #6e6e73;
}

.modern-product-variations__input:checked + .modern-product-variations__option .price {
    color: #6e6e73;
}

.modern-accordion summary::-webkit-details-marker {
    display: none;
}

/* Offcanvas */
body.modern-offcanvas-open {
    overflow: hidden;
}

/* Keep fixed product CTAs below cart/checkout offcanvas */
body.theme-modern.modern-offcanvas-open .modern-product-detail--event .modern-event-checkout,
body.theme-modern.modern-offcanvas-open .modern-product-detail--booking .modern-booking-checkout,
body.theme-modern.modern-offcanvas-open .modern-product-detail--course .modern-course-enroll,
body.theme-modern.modern-offcanvas-open .modern-product-detail--service .modern-service-checkout,
body.theme-modern.modern-offcanvas-open .modern-product-detail--subscription .modern-subscription-checkout,
body.theme-modern.modern-offcanvas-open .modern-product-detail--digital .modern-product-buybox,
body.theme-modern.modern-offcanvas-open .modern-product-detail--physical .modern-product-buybox,
body.theme-modern.modern-offcanvas-open .modern-product-detail--default .modern-product-buybox,
body.theme-modern.modern-offcanvas-open .modern-product-detail--membership .modern-product-buybox,
body.theme-modern.modern-offcanvas-open .modern-event-ticket-scroll {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.theme-modern #cartSidebar,
body.theme-modern #checkoutSidebar {
    display: none !important;
}

.modern-offcanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
}

.modern-offcanvas__backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(18, 18, 18, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: pointer;
}

.modern-offcanvas.is-open,
.modern-offcanvas[aria-hidden="false"] {
    pointer-events: auto;
    z-index: 1400;
}

.modern-offcanvas.is-open .modern-offcanvas__backdrop {
    opacity: 1;
}

.modern-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: min(420px, 100%);
    height: 100%;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-left: 1px solid var(--glass-border);
    box-shadow: -12px 0 40px rgba(18, 18, 18, 0.1), inset 1px 0 0 rgba(255, 255, 255, 0.55);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.modern-offcanvas.is-open .modern-offcanvas__panel {
    transform: translateX(0);
}

.modern-offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-line);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modern-offcanvas__close {
    position: relative;
    z-index: 2;
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #8a8a8a;
}

.modern-offcanvas__body {
    overflow: auto;
    flex: 1;
    min-height: 0;
    padding: 1.25rem 1.5rem;
}

.modern-offcanvas__body--cart {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.modern-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 240px;
    color: #6b6b6b;
}

.modern-cart-state__spinner {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #e8e8e8;
    border-top-color: var(--primary-color, var(--theme-primary-color, #9fe870));
    animation: modern-spin 0.8s linear infinite;
}

@keyframes modern-spin {
    to { transform: rotate(360deg); }
}

/* Share offcanvas */
.modern-share__hero {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
}

.modern-share__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    color: #6e6e73;
}

.modern-share__close:hover {
    color: #121212;
}

.modern-share__hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.35rem 1.1rem 1.15rem;
    border-radius: calc(var(--glass-radius) + 2px);
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--brand-color, #9fe870) 28%, #fff) 0%,
            color-mix(in srgb, var(--brand-color, #9fe870) 10%, #fff) 52%,
            #fafafa 100%
        ),
        radial-gradient(
            circle at 88% 12%,
            color-mix(in srgb, var(--brand-color, #9fe870) 20%, transparent),
            transparent 52%
        );
    color: #121212;
    border: 1px solid color-mix(in srgb, var(--brand-color, #9fe870) 14%, transparent);
    box-shadow: var(--glass-shadow-soft);
}

.modern-share__avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid color-mix(in srgb, var(--brand-color, #9fe870) 22%, #fff);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-color, #9fe870) 14%, rgba(18, 18, 18, 0.12));
}

.modern-share__avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-color, #9fe870) 12%, #fff);
    color: #121212;
}

.modern-share__avatar.hidden,
.modern-share__subtitle.hidden {
    display: none !important;
}

.modern-share__eyebrow {
    margin: 1rem 0 0;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--brand-color, #9fe870) 45%, #6e6e73);
}

.modern-share__title {
    margin: 0.35rem 0 0;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #121212;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-word;
}

.modern-share__subtitle {
    margin: 0.5rem 0 0;
    max-width: 18rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6e6e73;
}

.modern-offcanvas__body--share {
    padding: 1.35rem 1.25rem 1.5rem;
}

.modern-share__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.modern-share__copy-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.modern-share__input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: calc(var(--glass-radius) - 4px);
    background: var(--glass-bg-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0.9rem;
    font: inherit;
    font-size: 0.8125rem;
    color: #121212;
}

.modern-share__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid color-mix(in srgb, var(--brand-color, #9fe870) 45%, transparent);
    border-radius: calc(var(--glass-radius) - 4px);
    background: color-mix(in srgb, var(--brand-color, #9fe870) 90%, white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--brand-on, #121212);
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--glass-shadow-soft);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.modern-share__copy-btn:hover {
    background: var(--brand-strong, #121212);
    border-color: var(--brand-strong, #121212);
    color: #fff;
}

.modern-share__copy-btn.is-copied {
    background: var(--brand-color, #9fe870);
    border-color: var(--brand-color, #9fe870);
    color: var(--brand-on, #121212);
}

.modern-share__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.35rem 0 1rem;
    color: #8a8a8a;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modern-share__divider::before,
.modern-share__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.modern-share__platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.modern-share__platform {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: calc(var(--glass-radius) - 4px);
    background: var(--glass-bg-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.modern-share__platform:hover {
    transform: translateY(-1px);
    background: var(--glass-bg);
    border-color: color-mix(in srgb, var(--platform-color, #121212) 35%, rgba(255, 255, 255, 0.5));
    box-shadow: var(--glass-shadow-soft);
}

.modern-share__platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--platform-color, #121212) 12%, white);
    color: var(--platform-color, #121212);
    flex-shrink: 0;
}

.modern-share__platform-label {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Modal manager / Preline HSOverlay backdrop */
.hs-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.25s ease;
}

#modal-stack .mm-hs-overlay.open [data-mm-modal-content],
#modal-stack .quick-view_modal.open [data-mm-modal-content] {
    border-radius: 1.125rem;
    border: none;
    background: #fbfbfd;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
}

/* Quick-view: full-width flush on mobile; narrower centered panel on desktop */
#modal-stack .quick-view_modal .hs-overlay-animation-target {
    padding: 0 !important;
    align-items: stretch;
    justify-content: stretch;
}

#modal-stack .quick-view_modal .mm-modal-panel {
    width: 100%;
    max-width: 100% !important;
    max-height: 100dvh !important;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

@media (min-width: 640px) {
    #modal-stack .quick-view_modal .hs-overlay-animation-target {
        align-items: center;
        justify-content: center;
    }

    #modal-stack .quick-view_modal .mm-modal-panel {
        width: 100%;
        max-width: min(56rem, calc(100% - 2rem)) !important;
        max-height: min(92vh, 900px) !important;
        min-height: 0;
        margin: 0;
        border-radius: 1.125rem;
        border: none;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
    }
}

.quick-view-content {
    padding: 2.5rem 1.25rem 1.5rem;
    background: #fbfbfd;
}

@media (min-width: 640px) {
    .quick-view-content {
        padding: 2.25rem 1.75rem 1.75rem;
    }
}

/* Compact product layout inside quick-view (drop page-scale shell/section padding) */
.quick-view-content .modern-shell {
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.quick-view-content .modern-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.quick-view-content .modern-product-detail > .modern-shell,
.quick-view-content .modern-product-detail__hero,
.quick-view-content .modern-product-detail__below,
.quick-view-content .modern-product-detail .modern-shell.pb-16,
.quick-view-content .modern-product-detail .modern-shell.pb-8 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.quick-view-content .modern-product-detail__grid,
.quick-view-content .modern-product-detail .grid {
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .quick-view-content .modern-product-detail__grid,
    .quick-view-content .modern-product-detail .grid {
        gap: 2rem;
    }
}

.quick-view-content .modern-product-detail__panel {
    position: static;
    top: auto;
}

/* Keep event checkout in modal scroll flow (avoid fixed bar under overlay) */
.quick-view-content .modern-product-detail--event .modern-event-checkout {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    margin-top: 1rem !important;
}

.quick-view-content .modern-product-detail--event .modern-event-checkout__bar {
    position: static !important;
    box-shadow: none !important;
}

.quick-view-content .modern-product-detail--event .modern-event-checkout__summary {
    display: flex !important;
}

.quick-view-content .modern-product-detail--booking .modern-booking-checkout {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.quick-view-content .modern-product-detail--booking .modern-booking-checkout .modern-product-buybox {
    flex-direction: column !important;
    padding: 1rem 1.125rem 1.125rem !important;
    border-radius: 1.125rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #f5f5f7 !important;
    box-shadow: none !important;
}

.quick-view-content .modern-product-detail--booking .modern-booking-checkout .modern-quantity {
    display: flex !important;
}

.quick-view-content .modern-product-detail--service .modern-service-checkout {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    margin-top: 0 !important;
    padding: 1rem 1.25rem 1.25rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.quick-view-content .modern-product-detail--service .modern-service-checkout__total {
    display: flex !important;
}

.quick-view-content .modern-product-detail--digital .modern-product-buybox,
.quick-view-content .modern-product-detail--physical .modern-product-buybox,
.quick-view-content .modern-product-detail--default .modern-product-buybox,
.quick-view-content .modern-product-detail--membership .modern-product-buybox,
.quick-view-content .modern-product-detail--subscription .modern-subscription-checkout {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

.quick-view-content .modern-product-detail--digital .modern-product-buybox .modern-quantity,
.quick-view-content .modern-product-detail--physical .modern-product-buybox .modern-quantity,
.quick-view-content .modern-product-detail--default .modern-product-buybox .modern-quantity,
.quick-view-content .modern-product-detail--membership .modern-product-buybox .modern-quantity {
    display: grid !important;
}

.quick-view-content .modern-product-page {
    min-height: 0;
}

.quick-view-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.quick-view-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.hs-overlay-backdrop.opacity-0 {
    opacity: 0;
}

#modal-stack .mm-hs-overlay.open {
    pointer-events: auto;
}

.modern-product-buybox {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-product-buybox__unavailable {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #f5f5f7;
    font-size: 0.875rem;
    color: #6e6e73;
    text-align: center;
}

.modern-product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-product-detail .modern-btn-primary,
.modern-product-detail .modern-btn-buy,
.modern-btn-buy {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: var(--brand-color, var(--primary-color, #9fe870));
    color: var(--brand-on, #121212);
    padding: 0.9375rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.modern-product-detail .modern-btn-primary:hover,
.modern-product-detail .modern-btn-buy:hover,
.modern-btn-buy:hover {
    background: var(--brand-strong, color-mix(in srgb, var(--brand-color, #9fe870) 88%, #000));
    color: #fff;
}

.modern-product-detail .modern-btn-primary:active,
.modern-product-detail .modern-btn-buy:active,
.modern-btn-buy:active {
    transform: scale(0.99);
}

/* Reset legacy storefront sticky action bar on modern product pages */
body.theme-modern .modern-product-detail .action-container,
body.theme-modern .course-container .action-container,
body.theme-modern .event-product-container .action-container,
body.theme-modern .digital-product-container .action-container,
body.theme-modern .service-container .action-container,
body.theme-modern .booking-product-container .action-container,
body.theme-modern .subscription-product-container .action-container,
.modern-product-detail .action-container {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    justify-content: flex-start;
    gap: 1rem;
    font-size: inherit;
}

/* Footer â€” Apple-inspired */
.modern-footer__inner {
    padding-top: 2.75rem;
    padding-bottom: 2.25rem;
}

@media (min-width: 768px) {
    .modern-footer__inner {
        padding-top: 3.5rem;
        padding-bottom: 2.75rem;
    }
}

.modern-footer__grid {
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .modern-footer__grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
        align-items: start;
        gap: 2.5rem 3rem;
        text-align: left;
    }
}

.modern-footer__identity {
    min-width: 0;
}

.modern-footer__brand {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.modern-header__logo {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 640px) {
    .modern-header__logo {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .modern-header__logo {
        width: 2.75rem;
        height: 2.75rem;
    }
}

.modern-header__brand-text {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    max-width: 100%;
}

.modern-footer__logo {
    display: block;
    height: 2rem;
    width: auto;
    max-width: 10rem;
    margin: 0 auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .modern-footer__logo {
        margin: 0;
        height: 2.125rem;
        max-width: 11rem;
    }
}

.modern-footer__tagline {
    margin: 0.65rem auto 0;
    max-width: 22rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #6e6e73;
}

@media (min-width: 768px) {
    .modern-footer__tagline {
        margin-left: 0;
        max-width: 26rem;
    }
}

.modern-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1.25rem;
    margin: 0;
}

@media (min-width: 768px) {
    .modern-footer__nav {
        justify-content: flex-start;
        padding-top: 0.2rem;
    }
}

.modern-footer__link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #424245;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modern-footer__link:hover {
    color: #1d1d1f;
    text-decoration: none;
}

.modern-footer__link--button {
    appearance: none;
}

.modern-footer__socials {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .modern-footer__socials {
        justify-content: flex-end;
        padding-top: 0.1rem;
    }
}

.modern-footer__socials .modern-socials {
    justify-content: center;
}

@media (min-width: 768px) {
    .modern-footer__socials .modern-socials {
        justify-content: flex-end;
    }
}

.modern-footer__socials .modern-socials__link {
    height: 2.125rem;
    width: 2.125rem;
    border-radius: 999px;
    border-color: rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.modern-footer__socials .modern-socials__link:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #1d1d1f;
}

.modern-footer__payments {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

@media (min-width: 768px) {
    .modern-footer__payments {
        text-align: left;
    }
}

.modern-footer__payments-label {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #86868b;
}

.modern-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .modern-footer__bottom {
        justify-content: space-between;
    }
}

.modern-footer__copyright,
.modern-footer__credit {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #86868b;
}

.modern-footer__credit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.modern-footer__credit-label {
    font-size: 0.75rem;
    line-height: 1;
    color: #86868b;
}

.modern-footer__credit-logo {
    display: block;
    height: 1rem;
    width: auto;
    max-width: 4.5rem;
    object-fit: contain;
}

.modern-footer__credit:hover {
    opacity: 0.82;
    text-decoration: none;
}

.modern-footer__credit:hover .modern-footer__credit-label {
    color: #6e6e73;
}

.modern-payment-types__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.modern-payment-types {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .modern-payment-types {
        justify-content: flex-start;
    }
}

.modern-payment-types__item {
    margin: 0;
}

.modern-payment-types__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
}

.modern-payment-types__brand--visa {
    font-style: italic;
    color: #1a1f71;
}

.modern-payment-types__brand--mastercard {
    gap: 0.2rem;
}

.modern-payment-types__mc-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
}

.modern-payment-types__mc-dot--red {
    background: #eb001b;
}

.modern-payment-types__mc-dot--orange {
    background: #f79e1b;
    margin-left: -0.3rem;
}

.modern-payment-types__mc-text {
    margin-left: 0.15rem;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #121212;
}

.modern-payment-types__brand--verve {
    color: #5cb85c;
}

.modern-payment-types__brand--bank {
    gap: 0.25rem;
    color: #4b5563;
}

.modern-payment-types__brand--bank svg {
    flex-shrink: 0;
}

.modern-payment-types__brand--ussd {
    color: #121212;
}

.modern-payment-types__brand--amex {
    color: #006fcf;
}

.modern-payment-types__brand--apple {
    gap: 0.2rem;
    color: #121212;
}

.modern-payment-types__brand--google {
    gap: 0;
    font-weight: 600;
}

.modern-payment-types__g {
    font-size: 0.625rem;
    font-weight: 700;
}

.modern-payment-types__g--blue {
    color: #4285f4;
}

.modern-payment-types__g--red {
    color: #ea4335;
}

.modern-payment-types__g--yellow {
    color: #fbbc04;
}

.modern-payment-types__g--green {
    color: #34a853;
}

.modern-payment-types__g-pay {
    margin-left: 0.15rem;
    font-size: 0.625rem;
    color: #5f6368;
}

/* Currency */
.modern-currency-mobile {
    gap: 0.35rem;
    padding: 0.2rem 0.45rem 0.2rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.03);
}

.modern-currency-mobile__flag {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    border-radius: 1px;
    object-fit: cover;
}

.modern-currency-mobile .modern-currency__select {
    min-width: 0;
    max-width: 4.25rem;
    padding-right: 0.15rem;
    color: #1d1d1f;
    cursor: pointer;
}

.modern-currency__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 140;
    min-width: 200px;
    padding: 0.35rem;
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--glass-radius) - 4px);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.modern-currency__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modern-currency__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.8125rem;
    transition: background 0.15s ease;
}

.modern-currency__item-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-currency__flag {
    width: 1rem;
    height: 1rem;
    border-radius: 1px;
    object-fit: cover;
}

.modern-currency__item:hover,
.modern-currency__item.active,
.modern-currency__item--active {
    background: rgba(255, 255, 255, 0.55);
    border-radius: calc(var(--glass-radius) - 6px);
}

.modern-currency__code {
    font-weight: 600;
}

.modern-currency__meta {
    color: #8a8a8a;
}

/* Account menu */
.modern-account__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 140;
    min-width: 180px;
    padding: 0.35rem;
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--glass-radius) - 4px);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.modern-account__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modern-account__item {
    display: block;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    color: #121212;
    text-decoration: none;
    transition: background 0.15s ease;
}

.modern-account__item:hover {
    background: rgba(255, 255, 255, 0.55);
    border-radius: calc(var(--glass-radius) - 6px);
}

.modern-account__item--primary {
    font-weight: 600;
}

/* Social links */
.modern-socials--inverse .modern-socials__link {
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modern-socials--inverse .modern-socials__link:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.92);
    color: #1d1d1f;
}

/* Search dropdown â€” Apple style */
body.theme-modern .modern-search-dropdown,
body.theme-modern .search-results-dropdown {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

body.theme-modern .modern-search-dropdown__list,
body.theme-modern .search-results-list {
    max-height: min(22rem, 58vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.35rem;
    scrollbar-width: thin;
}

body.theme-modern .modern-search-dropdown__list::-webkit-scrollbar,
body.theme-modern .search-results-list::-webkit-scrollbar {
    width: 6px;
}

body.theme-modern .modern-search-dropdown__list::-webkit-scrollbar-thumb,
body.theme-modern .search-results-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

body.theme-modern .modern-search-dropdown__item,
body.theme-modern .search-results-dropdown .search-result-item {
    margin: 0;
    border: none;
    border-radius: 0.65rem;
    transition: background 0.15s ease;
}

body.theme-modern .modern-search-dropdown__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.55rem;
    text-decoration: none;
    color: inherit;
}

body.theme-modern .modern-search-dropdown__link:hover {
    text-decoration: none;
}

body.theme-modern .modern-search-dropdown__thumb {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #f5f5f7;
    object-fit: cover;
}

body.theme-modern .modern-search-dropdown__thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #86868b;
}

body.theme-modern .modern-search-dropdown__meta {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.15rem;
}

body.theme-modern .modern-search-dropdown__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: #1d1d1f;
}

body.theme-modern .modern-search-dropdown__price {
    font-size: 0.75rem;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    color: #6e6e73;
}

body.theme-modern .modern-search-dropdown__price--free {
    color: #86868b;
}

body.theme-modern .search-results-dropdown .search-result-item:hover,
body.theme-modern .search-results-dropdown .search-result-item.active,
body.theme-modern .modern-search-dropdown__item:hover,
body.theme-modern .modern-search-dropdown__item.active {
    background: #f5f5f7;
}

body.theme-modern .modern-search-dropdown__status {
    padding: 1.35rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6e6e73;
}

body.theme-modern .modern-search-dropdown__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 6.5rem;
}

body.theme-modern .modern-search-dropdown__spinner {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 999px;
    border: 2px solid #ececee;
    border-top-color: color-mix(in srgb, var(--brand-color, #9fe870) 70%, #1d1d1f);
    animation: modern-spin 0.8s linear infinite;
}

/* Cart & checkout offcanvas */
.modern-cart-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.modern-cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-cart-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--glass-line);
    background: rgba(251, 251, 253, 0.98);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.modern-cart-footer .modern-btn-primary {
    width: 100%;
}

.modern-cart-item {
    border-bottom: 1px solid var(--glass-line);
    padding: 1rem 1.25rem;
}

.modern-cart-item:last-child {
    border-bottom: 0;
}

.modern-cart-item__image {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.modern-cart-item__meta {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #8a8a8a;
}

.modern-cart-item__meta li + li {
    margin-top: 0.15rem;
}

.modern-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

.modern-qty {
    display: inline-flex;
    align-items: center;
    margin-top: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: calc(var(--glass-radius) - 6px);
    background: var(--glass-bg-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.modern-qty button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #121212;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.modern-qty button:hover {
    background: #f3f3f3;
}

.modern-qty input {
    width: 2.5rem;
    border: 0;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    background: transparent;
    text-align: center;
    font-size: 0.8125rem;
    color: #121212;
}

.modern-checkout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modern-checkout__section-title {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.modern-checkout__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
}

.modern-checkout__row--total {
    padding-top: 0.75rem;
    border-top: 1px solid #e8e8e8;
    font-weight: 600;
}

.modern-checkout__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8125rem;
}

.modern-checkout__item:last-child {
    border-bottom: 0;
}

.modern-checkout__discount-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.8125rem;
    color: var(--brand-strong, #121212);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.modern-checkout__discount-form {
    display: flex;
    gap: 0.5rem;
}

.modern-checkout__discount-form .modern-input {
    flex: 1;
}

.modern-checkout__discount-applied {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.8125rem;
}

.modern-checkout__field {
    display: block;
}

.modern-checkout__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.modern-checkout__grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .modern-checkout__grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.modern-checkout__phone {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.modern-checkout__phone .modern-input--code,
.modern-checkout__phone .eego-select-wrapper {
    width: 8.5rem;
    flex-shrink: 0;
}

.modern-checkout__phone .eego-select-trigger {
    min-height: 2.75rem;
    padding: 0.75rem 1.75rem 0.75rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 0.875rem;
    color: #1d1d1f;
}

.modern-checkout__phone .eego-select-wrapper.open .eego-select-trigger,
.modern-checkout__phone .eego-select-trigger:focus-visible {
    border-color: color-mix(in srgb, var(--brand-color, #9fe870) 50%, transparent);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.modern-checkout__phone .eego-select-dropdown {
    z-index: 1400;
    border-radius: 0.75rem;
    min-width: 14rem;
}

.modern-checkout__phone .eego-select-option-label {
    font-size: 0.8125rem;
}

.modern-offcanvas__body--checkout {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.modern-checkout-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.modern-checkout__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.5rem;
}

.modern-checkout-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(251, 251, 253, 0.98);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.modern-checkout-footer__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-checkout-footer__total #checkout-cart-total {
    font-variant-numeric: tabular-nums;
}

.modern-checkout-footer__cta {
    width: 100%;
}

/* Product type UX */
.modern-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    color: #1d1d1f;
}

/* Digital product — delivery badge + desktop description excerpt */
.modern-product-detail__panel--digital {
    position: relative;
}

.modern-digital-delivery-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: min(11rem, 42%);
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--brand-color, #9fe870) 28%, rgba(0, 0, 0, 0.08));
    background: color-mix(in srgb, var(--brand-color, #9fe870) 12%, #fff);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1d1d1f;
    white-space: nowrap;
}

.modern-digital-delivery-badge .mdi {
    font-size: 0.875rem;
    line-height: 1;
    color: color-mix(in srgb, var(--brand-color, #9fe870) 55%, #1d1d1f);
}

.modern-product-detail--digital .modern-product-info__title {
    padding-right: clamp(6.5rem, 34%, 10rem);
}

.modern-product-excerpt {
    display: none;
}

@media (min-width: 1024px) {
    .modern-product-detail--digital .modern-product-excerpt {
        display: block;
        margin: 0;
    }

    .modern-product-excerpt__text {
        margin: 0;
        font-size: 0.9375rem;
        line-height: 1.65;
        color: #424245;
    }

    .modern-product-excerpt__more {
        display: inline-flex;
        align-items: center;
        margin-top: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: #1d1d1f;
        text-decoration: none;
        border-bottom: 1px solid color-mix(in srgb, var(--brand-color, #9fe870) 45%, transparent);
        transition: color 0.15s ease, border-color 0.15s ease;
    }

    .modern-product-excerpt__more:hover {
        color: color-mix(in srgb, var(--brand-color, #9fe870) 50%, #1d1d1f);
        border-bottom-color: var(--brand-color, #9fe870);
    }

    .modern-product-description {
        scroll-margin-top: 6rem;
    }
}

.modern-type-meta {
    margin: 0;
}

.modern-product-tags__item {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    color: #6e6e73;
}

.modern-quantity {
    display: grid;
    gap: 0.5rem;
}

.modern-quantity__label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    color: #1d1d1f;
}

.modern-quantity__hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.modern-quantity__stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #f5f5f7;
    padding: 0.15rem;
    overflow: hidden;
}

.modern-quantity__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 1.125rem;
    line-height: 1;
    color: #1d1d1f;
    cursor: pointer;
}

.modern-quantity__btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.modern-quantity__input {
    width: 2.75rem;
    border: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1d1d1f;
    -moz-appearance: textfield;
}

.modern-quantity__input::-webkit-outer-spin-button,
.modern-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modern-subscription-plan {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-radius: calc(var(--glass-radius));
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-subscription-plan--selected {
    border-color: color-mix(in srgb, var(--brand-color, #9fe870) 45%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-color, #9fe870) 35%, transparent);
}

.modern-subscription-plan__input {
    margin-top: 0.2rem;
    accent-color: var(--brand-color, #9fe870);
}

.modern-subscription-plan__content {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.modern-subscription-plan__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.modern-subscription-plan__name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #121212;
}

.modern-subscription-plan__price {
    font-size: 0.875rem;
    font-weight: 500;
    color: #121212;
    white-space: nowrap;
}

.modern-subscription-plan__cycle {
    margin-left: 0.15rem;
    font-size: 0.75rem;
    color: #8a8a8a;
}

.modern-subscription-plan__desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6b6b6b;
}

.modern-portfolio-scroll,
.modern-booking-calendar,
.modern-event-meta {
    width: 100%;
}

.modern-product-actions__unavailable {
    margin: 0;
}

/* Course â€” Apple-style includes, enroll, curriculum */
.modern-course-includes {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.modern-course-includes__heading {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #6e6e73;
}

.modern-course-includes__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 0.875rem;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.modern-course-includes__grid::-webkit-scrollbar {
    display: none;
}

.modern-course-includes__item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
    min-width: 3.75rem;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
}

.modern-course-includes__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modern-course-includes__icon .mdi {
    font-size: 1.125rem;
    line-height: 1;
}

.modern-course-includes__caption {
    display: block;
    max-width: 4.75rem;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #6e6e73;
    word-break: break-word;
    hyphens: auto;
}

.modern-course-enroll {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.125rem;
    padding: 1rem 1.125rem 1.125rem;
    border-radius: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.modern-course-enroll__price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.modern-course-enroll__label {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-course-enroll__price .modern-product-price__amount {
    margin: 0;
    text-align: right;
}

.modern-course-enroll__price .modern-product-price__value {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.modern-course-enroll__cta {
    margin: 0;
}

.modern-product-detail__curriculum {
    padding-top: 0.5rem;
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.modern-course-curriculum__header {
    margin-bottom: 1rem;
}

.modern-course-curriculum__title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.modern-course-curriculum__summary {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6e6e73;
}

.modern-course-curriculum__modules {
    overflow: hidden;
    border-radius: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.modern-course-module {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modern-course-module:last-child {
    border-bottom: none;
}

.modern-course-module__summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    list-style: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.modern-course-module__summary::-webkit-details-marker {
    display: none;
}

.modern-course-module__summary:hover {
    background: rgba(255, 255, 255, 0.45);
}

.modern-course-module[open] .modern-course-module__summary {
    background: rgba(255, 255, 255, 0.55);
}

.modern-course-module__chevron {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #86868b;
    transition: transform 0.2s ease, color 0.15s ease;
}

.modern-course-module[open] .modern-course-module__chevron {
    transform: rotate(90deg);
    color: #1d1d1f;
}

.modern-course-module__main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.modern-course-module__index {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #86868b;
}

.modern-course-module__title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: #1d1d1f;
}

.modern-course-module__meta {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6e6e73;
    white-space: nowrap;
}

.modern-course-module__lessons {
    margin: 0;
    padding: 0.25rem 0 0.75rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.42);
}

.modern-course-lesson {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.125rem 0.625rem 2.75rem;
}

.modern-course-lesson + .modern-course-lesson {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.modern-course-lesson__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
}

.modern-course-lesson--video .modern-course-lesson__icon {
    color: color-mix(in srgb, var(--brand-color, #9fe870) 70%, #1d1d1f);
}

.modern-course-lesson__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.modern-course-lesson__title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: #1d1d1f;
}

.modern-course-lesson__type {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #86868b;
}

@media (max-width: 1023px) {
    .theme-modern .modern-product-detail .modern-btn-primary,
    .theme-modern .modern-product-detail .modern-btn-buy {
        padding: 0.625rem 1.125rem !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        min-height: 2.75rem !important;
        max-height: none !important;
        box-shadow: 0 2px 12px color-mix(in srgb, var(--brand-color, #9fe870) 32%, transparent) !important;
    }

    .theme-modern .modern-product-detail--course {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .theme-modern .modern-product-detail--event {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .theme-modern .modern-product-detail--booking {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .theme-modern .modern-product-detail--service {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .theme-modern .modern-product-detail--course .modern-course-enroll {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 115 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        background: rgba(251, 251, 253, 0.99) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
    }

    .theme-modern .modern-course-enroll__cta,
    .theme-modern .modern-event-checkout__cta,
    .theme-modern .modern-booking-checkout .modern-btn-buy,
    .theme-modern .modern-service-checkout__cta {
        padding: 0.6875rem 1.25rem !important;
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        min-height: 2.875rem !important;
        box-shadow: 0 3px 14px color-mix(in srgb, var(--brand-color, #9fe870) 38%, transparent) !important;
    }

    .theme-modern .modern-course-enroll__label {
        display: none !important;
    }

    .theme-modern .modern-course-enroll__price {
        flex: 0 0 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    .theme-modern .modern-course-enroll__price .modern-product-price__amount {
        margin: 0 !important;
        text-align: left !important;
    }

    .theme-modern .modern-course-enroll__price .modern-product-price__value {
        font-size: 1rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .theme-modern .modern-course-enroll__cta {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .theme-modern .modern-product-detail--event .modern-event-checkout {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 110 !important;
        display: block !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .theme-modern .modern-product-detail--event .modern-event-checkout__bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        background: rgba(251, 251, 253, 0.99) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
    }

    .theme-modern .modern-product-detail--event .modern-event-checkout__summary {
        display: none !important;
    }

    .theme-modern .modern-product-detail--event .modern-event-checkout__total {
        flex: 0 0 auto !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .theme-modern .modern-product-detail--event .modern-event-checkout__total-label {
        display: none !important;
    }

    .theme-modern .modern-product-detail--event .modern-event-checkout__total .modern-product-price__value {
        font-size: 1rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .theme-modern .modern-product-detail--event .modern-event-checkout__cta {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }

    .theme-modern .modern-product-detail--digital,
    .theme-modern .modern-product-detail--physical,
    .theme-modern .modern-product-detail--default,
    .theme-modern .modern-product-detail--membership,
    .theme-modern .modern-product-detail--subscription {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .theme-modern .modern-product-detail--digital .modern-product-buybox,
    .theme-modern .modern-product-detail--physical .modern-product-buybox,
    .theme-modern .modern-product-detail--default .modern-product-buybox,
    .theme-modern .modern-product-detail--membership .modern-product-buybox,
    .theme-modern .modern-product-detail--subscription .modern-subscription-checkout {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 110 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
        margin: 0 !important;
        padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        background: rgba(251, 251, 253, 0.99) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
        justify-content: stretch !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .theme-modern .modern-product-detail--digital .modern-product-buybox .modern-quantity,
    .theme-modern .modern-product-detail--physical .modern-product-buybox .modern-quantity,
    .theme-modern .modern-product-detail--default .modern-product-buybox .modern-quantity,
    .theme-modern .modern-product-detail--membership .modern-product-buybox .modern-quantity {
        display: none !important;
    }

    .theme-modern .modern-product-detail--digital .modern-product-buybox .modern-product-price,
    .theme-modern .modern-product-detail--physical .modern-product-buybox .modern-product-price,
    .theme-modern .modern-product-detail--default .modern-product-buybox .modern-product-price,
    .theme-modern .modern-product-detail--membership .modern-product-buybox .modern-product-price,
    .theme-modern .modern-product-detail--subscription .modern-subscription-checkout__price {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .theme-modern .modern-product-detail--digital .modern-product-buybox .modern-product-price__amount,
    .theme-modern .modern-product-detail--physical .modern-product-buybox .modern-product-price__amount,
    .theme-modern .modern-product-detail--default .modern-product-buybox .modern-product-price__amount,
    .theme-modern .modern-product-detail--membership .modern-product-buybox .modern-product-price__amount {
        margin: 0 !important;
        text-align: left !important;
    }

    .theme-modern .modern-product-detail--digital .modern-product-buybox .modern-product-price__value,
    .theme-modern .modern-product-detail--physical .modern-product-buybox .modern-product-price__value,
    .theme-modern .modern-product-detail--default .modern-product-buybox .modern-product-price__value,
    .theme-modern .modern-product-detail--membership .modern-product-buybox .modern-product-price__value,
    .theme-modern .modern-product-detail--subscription .modern-subscription-checkout__amount {
        font-size: 1rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .theme-modern .modern-product-detail--digital .modern-product-buybox .modern-btn-buy,
    .theme-modern .modern-product-detail--physical .modern-product-buybox .modern-btn-buy,
    .theme-modern .modern-product-detail--default .modern-product-buybox .modern-btn-buy,
    .theme-modern .modern-product-detail--membership .modern-product-buybox .modern-btn-buy,
    .theme-modern .modern-product-detail--subscription .modern-subscription-checkout__cta {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0.6875rem 1.25rem !important;
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        min-height: 2.875rem !important;
        box-shadow: 0 3px 14px color-mix(in srgb, var(--brand-color, #9fe870) 38%, transparent) !important;
    }

    .theme-modern .modern-product-detail--digital .modern-product-buybox__unavailable,
    .theme-modern .modern-product-detail--physical .modern-product-buybox__unavailable,
    .theme-modern .modern-product-detail--default .modern-product-buybox__unavailable,
    .theme-modern .modern-product-detail--membership .modern-product-buybox__unavailable {
        flex: 1 1 auto !important;
        margin: 0 !important;
        padding: 0.625rem 0.875rem !important;
        text-align: center !important;
    }

    .theme-modern .modern-subscription-checkout__cycle {
        margin-left: 0.125rem;
        font-size: 0.75rem;
        font-weight: 500;
        color: #86868b;
    }
}

@media (max-width: 1023px) {
    .modern-product-detail__panel .modern-product-buybox .modern-btn-buy,
    .modern-product-detail__panel .modern-product-buybox > .modern-btn-primary,
    .modern-product-detail__panel .modern-product-actions .modern-btn-primary,
    .modern-product-detail__panel > .modern-btn-primary,
    .modern-service-pricing + .modern-btn-primary {
        position: static !important;
        bottom: auto !important;
        z-index: auto !important;
    }

    .modern-product-detail__panel {
        padding-bottom: 0.5rem;
    }

    .modern-event-tier__top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .modern-event-tier__price {
        justify-content: flex-start;
        text-align: left;
    }

    .modern-event-tier__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modern-event-tier__qty {
        align-items: stretch;
    }

    .modern-event-tier__qty .modern-quantity__stepper {
        width: 100%;
        justify-content: space-between;
    }
}

/* Product page â€” Apple layout */
.modern-product-page {
    background: #fbfbfd;
}

.modern-product-detail__hero,
.modern-product-detail > .modern-shell.modern-section {
    padding-top: clamp(1.75rem, 4vw, 2.75rem);
    padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.modern-product-detail__below,
.modern-product-detail > .modern-shell.pb-16 {
    padding-top: 1.25rem;
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.modern-product-detail__grid,
.modern-product-detail > .modern-shell > .grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 1024px) {
    .modern-product-detail__grid,
    .modern-product-detail > .modern-shell > .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(2.5rem, 5vw, 4rem);
        align-items: start;
    }
}

.modern-product-detail__meta {
    margin: 0;
    font-size: 0.8125rem;
    color: #6e6e73;
}

.modern-product-variations-wrap {
    padding-top: 0.25rem;
}

.modern-product-description {
    width: 100%;
    max-width: none;
    margin-top: 1.75rem;
    padding-top: 0.25rem;
}

.modern-product-description__header {
    margin-bottom: 0.75rem;
}

.modern-product-description__heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.modern-product-description__card {
    padding: 1.25rem 1.375rem;
    border-radius: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.modern-product-description__body {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #424245;
    overflow-wrap: anywhere;
}

.modern-product-description__body > :first-child {
    margin-top: 0;
}

.modern-product-description__body > :last-child {
    margin-bottom: 0;
}

.modern-product-description__body p {
    margin-top: 0;
    margin-bottom: 0.875rem;
}

.modern-product-description__body p:last-child {
    margin-bottom: 0;
}

.modern-product-description__body h1,
.modern-product-description__body h2,
.modern-product-description__body h3,
.modern-product-description__body h4 {
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #1d1d1f;
}

.modern-product-description__body h1:first-child,
.modern-product-description__body h2:first-child,
.modern-product-description__body h3:first-child,
.modern-product-description__body h4:first-child {
    margin-top: 0;
}

.modern-product-description__body ul,
.modern-product-description__body ol {
    margin: 0 0 0.875rem;
    padding-left: 1.25rem;
}

/* Override Tailwind preflight: ol, ul, menu { list-style: none } */
.modern-product-description__body ul {
    list-style-type: disc;
    list-style-position: outside;
}

.modern-product-description__body ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.modern-product-description__body li {
    display: list-item;
    margin-bottom: 0.35rem;
}

.modern-product-description__body li:last-child {
    margin-bottom: 0;
}

.modern-product-description__body a {
    color: #1d1d1f;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.modern-product-description__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.875rem 0;
    border-radius: 0.75rem;
}

.modern-product-description__body blockquote {
    margin: 0.875rem 0;
    padding-left: 0.875rem;
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    color: #6e6e73;
}

/* Flat surfaces inside product detail (replace glass) */
.modern-product-detail .modern-glass-subtle,
.modern-product-detail .modern-event-meta,
.modern-product-detail .modern-event-tiers,
.modern-product-detail .modern-subscription-plan,
.modern-product-detail .modern-service-panel,
.modern-product-detail .modern-course-includes__grid,
.modern-product-detail .modern-course-enroll,
.modern-product-detail .modern-course-curriculum__modules,
.modern-product-detail .modern-event-meta,
.modern-product-detail .modern-event-checkout,
.modern-product-detail .modern-booking-scheduler,
.modern-product-detail .modern-product-description__card,
.modern-product-detail .modern-booking-calendar,
.modern-product-detail .modern-portfolio-item__link {
    background: #f5f5f7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.125rem;
    box-shadow: none;
}

.modern-product-detail .modern-subscription-plan--selected {
    border-color: #1d1d1f;
    box-shadow: inset 0 0 0 1px #1d1d1f;
}

.modern-product-detail .modern-event-tier {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.modern-product-detail .modern-event-tier:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.modern-product-detail .modern-event-tier--selected {
    background: #fff;
}

.modern-product-detail .modern-event-tier__name,
.modern-product-detail .modern-heading {
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

/* Override legacy storefront.css mobile action bars on package theme */
@media (max-width: 1023px) {
    .theme-modern .course-container .action-container,
    .theme-modern .event-product-container .action-container,
    .theme-modern .digital-product-container .action-container,
    .theme-modern .service-container .action-container,
    .theme-modern .booking-product-container .action-container,
    .theme-modern .subscription-product-container .action-container,
    .theme-modern .course-price-container,
    .theme-modern .service-price-container {
        position: static !important;
        display: flex !important;
        height: auto !important;
        min-height: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        justify-content: flex-start !important;
    }

    .theme-modern .course-container .action-container .btn-primary,
    .theme-modern .course-price-container .btn-primary,
    .theme-modern .service-price-container .btn-primary {
        width: auto !important;
        padding: 0.625rem 1.125rem !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        min-height: 2.75rem !important;
        max-height: none !important;
        box-shadow: 0 2px 12px color-mix(in srgb, var(--brand-color, #9fe870) 32%, transparent) !important;
        border: none !important;
    }

    /* Fixed mobile checkout bars (must follow legacy action-container reset) */
    .theme-modern .modern-product-detail--booking .modern-booking-checkout {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 110 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
        margin: 0 !important;
        padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        background: rgba(251, 251, 253, 0.99) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
        justify-content: stretch !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .theme-modern .modern-product-detail--booking .modern-booking-checkout .modern-product-buybox {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .theme-modern .modern-product-detail--booking .modern-booking-checkout .modern-quantity {
        display: none !important;
    }

    .theme-modern .modern-product-detail--booking .modern-booking-checkout .modern-product-price {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .theme-modern .modern-product-detail--booking .modern-booking-checkout .modern-product-price__amount {
        margin: 0 !important;
        text-align: left !important;
    }

    .theme-modern .modern-product-detail--booking .modern-booking-checkout .modern-product-price__value {
        font-size: 1rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .theme-modern .modern-product-detail--booking .modern-booking-checkout .modern-btn-buy {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }

    .theme-modern .modern-product-detail--service .modern-service-checkout {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 110 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
        margin: 0 !important;
        padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        background: rgba(251, 251, 253, 0.99) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
        justify-content: stretch !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .theme-modern .modern-product-detail--service .modern-service-checkout__total {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    .theme-modern .modern-product-detail--service .modern-service-checkout__total .modern-product-price__amount {
        margin: 0 !important;
        text-align: left !important;
    }

    .theme-modern .modern-product-detail--service .modern-service-checkout__total-label {
        display: none !important;
    }

    .theme-modern .modern-product-detail--service .modern-service-checkout__total .modern-product-price__value {
        font-size: 1rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .theme-modern .modern-product-detail--service .modern-service-checkout__cta {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}
