/* ===========================================================================
   1. DESIGN TOKENS
   =========================================================================== */
:root {
    --ink:         #111;
    --ink-2:       #191919;
    --paper:       #f7f5f2;
    --white:       #fff;
    --red:         #d71920;
    --muted:       #68635d;
    --rule:        #d8d2ca;
    --display:     'Poppins', 'Arial Narrow', sans-serif;
    --body:        'Inter', Arial, sans-serif;
}

/* ===========================================================================
   2. BASE / LAYOUT
   =========================================================================== */
.storefront-body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--body);
    overflow-x: hidden;
}

.storefront-container {
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 1rem;
    transform: translateY(-120%);
    background: #fff;
    color: #111;
    padding: .8rem 1rem;
}
.skip-link:focus { transform: none; }

/* ===========================================================================
   3. SITE HEADER
   =========================================================================== */
.site-header {
    background: #111;
    border-bottom: 1px solid #353535;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.site-header .navbar {
    min-height: 76px;
    padding: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: .08em;
    color: #fff;
}
.navbar-brand img { object-fit: contain; }
.navbar-brand b   { color: var(--red); }

.site-header .nav-link {
    color: #d8d8d8 !important;
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 1.7rem .85rem !important;
    border-bottom: 3px solid transparent;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: 1.2rem;
}

.header-icon,
.language-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #fff;
    text-decoration: none;
}
.language-link {
    font-size: .7rem;
    font-weight: 900;
}
.header-icon:hover,
.header-icon:focus-visible,
.language-link:hover,
.language-link:focus-visible {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ===========================================================================
   4. TYPOGRAPHY HELPERS
   =========================================================================== */
.eyebrow {
    display: block;
    color: var(--red);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.display-title {
    font-family: var(--display);
    font-weight: 900;
    line-height: .86;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .93;
    text-transform: uppercase;
    margin: .65rem 0 1.6rem;
}

.section-intro {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.05rem;
}
.section-dark .section-intro { color: #b7b1aa; }

/* ===========================================================================
   5. BUTTONS
   =========================================================================== */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.btn-brand,
.btn-ghost {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.4rem;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--red);
}
.btn-brand {
    background: var(--red);
    color: #fff;
}
.btn-brand:hover,
.btn-brand:focus-visible {
    background: #fff;
    color: #111;
    border-color: #fff;
}
.btn-ghost {
    color: #fff;
    border-color: #fff;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: #fff;
    color: #111;
}

/* ===========================================================================
   6. SECTIONS
   =========================================================================== */
.section      { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark { background: #111; color: #fff; }

/* ===========================================================================
   7. HERO
   =========================================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    background: #0e0e0e;
    color: #fff;
    display: grid;
    align-items: end;
    overflow: hidden;
}
.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .94) 0%,
        rgba(0, 0, 0, .63) 48%,
        rgba(0, 0, 0, .22) 100%
    );
}
.hero-stripe {
    position: absolute;
    z-index: 2;
    top: -10%;
    left: 9%;
    width: 48px;
    height: 125%;
    background: var(--red);
    transform: skewX(-9deg);
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: clamp(5rem, 12vh, 9rem) 0 5.2rem;
    margin-left: clamp(5rem, 12vw, 11rem);
    max-width: 830px;
}
.hero h1 {
    font-size: clamp(4rem, 10vw, 9rem);
    margin: .5rem 0 1rem;
}
.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}
.hero-copy {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    max-width: 620px;
    color: #e4e0dc;
}

/* ===========================================================================
   8. SERVICE CARDS
   =========================================================================== */
.service-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    margin-top: 3rem;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.service-card {
    position: relative;
    min-height: 360px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #111;
    text-decoration: none;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
}
.service-card:first-child {
    background: #151515;
    color: #fff;
}
.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--display);
    font-size: 4.8rem;
    font-weight: 900;
    opacity: .08;
}
.service-card h3 {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.5rem, 2.6vw, 2.8rem);
    line-height: .95;
    text-transform: uppercase;
    max-width: 10ch;
}
.service-card p {
    max-width: 35ch;
    color: inherit;
    opacity: .68;
}
.service-card:hover {
    background: var(--red);
    color: #fff;
}

/* ===========================================================================
   9. MEMBERSHIP PLAN CARDS
   =========================================================================== */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #363636;
    margin-top: 3rem;
}
.plan-card {
    padding: 2rem;
    border-right: 1px solid #363636;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}
.plan-card:last-child  { border-right: 0; }
.plan-card h3 {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 1rem 0;
}
.plan-price {
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 900;
}
.plan-card ul {
    padding-left: 1rem;
    color: #bbb;
    margin: 1.5rem 0 2rem;
}
.plan-card .btn-brand { margin-top: auto; }

/* ===========================================================================
   10. PRODUCT CARDS
   =========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 2.5rem;
}
.product-card { background: #fff; min-width: 0; }

.product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #ebe8e3;
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.product-card:hover .product-media img { transform: scale(1.035); }

.media-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(
        -45deg,
        #e4dfd8,
        #e4dfd8 10px,
        #ece8e2 10px,
        #ece8e2 20px
    );
    color: #5e5952;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-copy        { padding: 1.25rem; }
.product-context {
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #776f66;
    font-weight: 800;
}
.product-copy h3 {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 800;
    margin: .5rem 0;
    min-height: 2.5em;
}

.price-row {
    display: flex;
    gap: .6rem;
    align-items: baseline;
}
.price      { font-weight: 900; }
.old-price  { color: #807a73; font-size: .78rem; }

.product-actions {
    display: flex;
    gap: .4rem;
    margin-top: 1rem;
}
.icon-action {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #c8c1b8;
    background: #fff;
    color: #111;
    text-decoration: none;
}
.icon-action.order { background: #111; color: #fff; border-color: #111; }
.icon-action.pay   { background: var(--red); color: #fff; border-color: var(--red); }
.icon-action:disabled { opacity: .4; }
.icon-action:hover,
.icon-action:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
}

/* ===========================================================================
   11. CAPABILITIES
   =========================================================================== */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.capability {
    border-top: 4px solid var(--red);
    padding-top: 1.5rem;
}
.capability h3 {
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;
}

/* ===========================================================================
   12. MEDIA STAGE (featured video)
   =========================================================================== */
.media-stage {
    position: relative;
    background: #050505;
    min-height: 560px;
    overflow: hidden;
}
.media-stage video {
    width: 100%;
    height: 560px;
    object-fit: cover;
    opacity: .75;
}
.media-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .9));
    color: #fff;
}

/* ===========================================================================
   13. EXERCISE CARDS
   =========================================================================== */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}
.exercise-card {
    background: #fff;
    border: 1px solid var(--rule);
}
.exercise-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.exercise-copy { padding: 1rem; }
.exercise-copy h3 {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1rem;
}

/* ===========================================================================
   14. PAGE HERO / SHOP LAYOUT
   =========================================================================== */
.shop-hero,
.page-hero {
    padding: 5rem 0 3rem;
    background: #111;
    color: #fff;
    border-bottom: 12px solid var(--red);
}
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
}
.filter-panel {
    align-self: start;
    position: sticky;
    top: 100px;
    background: #fff;
    border-top: 5px solid var(--red);
    padding: 1.5rem;
}
.filter-panel label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}
.filter-panel .form-control,
.filter-panel .form-select {
    border-radius: 0;
    min-height: 44px;
}
.shop-results .product-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
}

/* ===========================================================================
   15. PAGINATION
   =========================================================================== */
.pagination .page-link {
    border-radius: 0 !important;
    color: #111;
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
}
.pagination .active .page-link {
    background: var(--red);
    border-color: var(--red);
}

/* ===========================================================================
   16. PRODUCT DETAIL
   =========================================================================== */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: clamp(2rem, 6vw, 6rem);
    padding: 5rem 0;
}
.detail-image {
    background: #e9e5df;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.detail-copy h1 {
    font-family: var(--display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: -.05em;
    text-transform: uppercase;
}
.detail-price {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 900;
}
.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--rule);
    margin: 2rem 0;
}
.detail-meta div {
    padding: .8rem 0;
    border-bottom: 1px solid var(--rule);
}

/* ===========================================================================
   17. EXERCISE LIBRARY
   =========================================================================== */
.exercise-library {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.exercise-library details {
    background: #fff;
    border: 1px solid var(--rule);
}
.exercise-library video {
    width: 100%;
    margin-top: 1rem;
}

/* ===========================================================================
   18. FOOTER
   =========================================================================== */
.site-footer {
    background: #111;
    color: #fff;
    padding: 5rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}
.footer-brand h2 {
    font-family: var(--display);
    font-size: 2.7rem;
    line-height: .9;
    font-weight: 900;
}
.site-footer h3 {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #8d8882;
}
.site-footer a,
.site-footer p {
    display: block;
    color: #c8c4bf;
    text-decoration: none;
    margin: .65rem 0;
}
.site-footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    color: #807c77;
    font-size: .75rem;
}

/* ===========================================================================
   19. MODALS, FORMS, MISC
   =========================================================================== */
.modal-content,
.form-control,
.form-select,
.btn {
    border-radius: 0 !important;
}
.payment-summary {
    display: grid;
    gap: .5rem;
    background: #f2f0ed;
    padding: 1rem;
    margin-top: .8rem;
}
.payment-summary span {
    display: flex;
    justify-content: space-between;
}
.public-payment-state:empty { display: none; }

/* Public Order / Pay modal: one bounded viewport with the body as scroll owner. */
#bookingModal .public-checkout-modal,
#viewBookingModal .public-checkout-modal {
    height: calc(100vh - 2rem);
    height: calc(100dvh - 2rem);
    margin-block: 1rem;
}
#bookingModal .modal-content,
#viewBookingModal .modal-content {
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#bookingModal #bookingForm {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}
#bookingModal .modal-body,
#viewBookingModal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 1rem 0 7rem;
}
#bookingModal .modal-header,
#bookingModal .modal-footer,
#viewBookingModal .modal-header {
    flex: 0 0 auto;
}

@media (max-width: 767.98px), (max-height: 700px) {
    #bookingModal,
    #viewBookingModal { padding: 0 !important; }
    #bookingModal .public-checkout-modal,
    #viewBookingModal .public-checkout-modal {
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        margin: 0;
        align-items: stretch;
    }
    #bookingModal .modal-content,
    #viewBookingModal .modal-content {
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border: 0;
    }
    #bookingModal .modal-header,
    #viewBookingModal .modal-header { padding: .85rem 1rem; }
    #bookingModal .modal-body,
    #viewBookingModal .modal-body { padding: 1rem; }
    #bookingModal .modal-footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        gap: .65rem;
        padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -8px 22px rgba(0,0,0,.1);
    }
    #bookingModal .modal-footer .btn { min-height: 48px; margin: 0; }
}

.scroll-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--red);
    color: #fff;
    display: none;
    z-index: 1000;
}
.scroll-top.show { display: block; }

/* ===========================================================================
   20. WELCOME SLIDER
   =========================================================================== */
.welcome-slider {
    position: relative;
    height: min(790px, calc(100vh - 76px));
    min-height: 610px;
    background: #111;
    color: #fff;
    overflow: hidden;
}
.welcome-slider .hero-stripe { z-index: 5; }

.slider-track,
.welcome-slide {
    position: absolute;
    inset: 0;
}
.welcome-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease;
}
.welcome-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.welcome-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .91),
        rgba(0, 0, 0, .54) 55%,
        rgba(0, 0, 0, .2)
    );
}
.welcome-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.slide-copy {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 5rem;
    padding-left: clamp(4rem, 12vw, 11rem);
}
.slide-copy .display-title {
    font-size: clamp(4rem, 10vw, 9rem);
    margin: .5rem 0 1rem;
}
.slide-copy .display-title span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}
.slide-copy p {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    max-width: 620px;
    color: #ece8e2;
}

.slide-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    background: #171717;
}
.slide-loader::after {
    content: '';
    width: 44px;
    height: 44px;
    border: 3px solid #777;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: slide-spin .8s linear infinite;
}
.welcome-slide.media-ready .slide-loader { display: none; }

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

.slider-controls {
    position: absolute;
    z-index: 8;
    right: clamp(1rem, 4vw, 4rem);
    bottom: 2rem;
    display: flex;
    align-items: center;
    background: #111;
}
.slider-controls button,
.slider-status {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #444;
    background: #111;
    color: #fff;
}
.slider-status {
    width: 68px;
    font-size: .75rem;
}
.slider-controls button:hover,
.slider-controls button:focus-visible {
    background: var(--red);
    border-color: var(--red);
}

/* ===========================================================================
   21. PREVIEW HEADINGS (department & gallery previews)
   =========================================================================== */
.preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
}
.preview-heading-later { margin-top: 6rem; }
.preview-grid          { grid-template-columns: repeat(3, 1fr); }

/* ===========================================================================
   22. GALLERY PREVIEW & GRID
   =========================================================================== */
.gallery-preview,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.gallery-preview a,
.gallery-item {
    position: relative;
    background: #1c1c1c;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}
.gallery-preview img,
.gallery-item > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.gallery-preview span {
    position: absolute;
    inset: auto 0 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .9));
    font-weight: 800;
}
.gallery-caption { padding: 1.2rem; }
.gallery-caption h2 {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: .5rem;
}

/* ===========================================================================
   23. ON-DEMAND VIDEO (details/summary)
   =========================================================================== */
.on-demand-video summary {
    cursor: pointer;
    min-height: 44px;
    padding: .65rem 0;
    font-weight: 800;
}
.on-demand-video video {
    width: 100%;
    margin-top: .8rem;
}

/* ===========================================================================
   24. NEWS CARDS
   =========================================================================== */
.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.news-card {
    background: #fff;
    border: 1px solid var(--rule);
}
.news-card img {
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}
.news-card > div { padding: 1.2rem; }
.news-card h3 {
    font-family: var(--display);
    font-weight: 800;
}
.news-card a {
    color: var(--red);
    font-weight: 800;
}

/* ===========================================================================
   25. HEADER (compact desktop override)
   =========================================================================== */
.site-header .nav-link {
    font-size: .66rem;
    padding-inline: .55rem !important;
}

/* ===========================================================================
   26. DYNAMIC PUBLIC MEDIA (theme variables)
   =========================================================================== */
.site-header .navbar { background: #111 !important; }

.welcome-slide > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.welcome-slide .slide-copy {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.filter-panel .form-control,
.filter-panel .form-select {
    border: 1px solid #aaa198;
    background: #fff;
    color: #191919;
}
.filter-panel .form-control:focus,
.filter-panel .form-select:focus {
    border-color: #d71920;
    box-shadow: 0 0 0 .2rem rgba(215, 25, 32, .16);
}

/* Dynamic public media (theme-aware) */
.site-header,
.navbar {
    background: var(--af-header) !important;
    color: var(--af-header-text);
}
.storefront-body {
    background: var(--af-page);
    color: var(--af-text);
}
.section-title,
.eyebrow,
.product-context {
    color: var(--af-accent);
}

/* ===========================================================================
   27. VIDEO CARDS (exercise library)
   =========================================================================== */
.exercise-card video,
.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #090909;
    object-fit: contain;
}
.video-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr);
    border: var(--af-border-width) var(--af-border-style) var(--af-border);
}
.exercise-download {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.empty-state {
    padding: 3rem;
    background: var(--af-surface);
    border: var(--af-border-width) var(--af-border-style) var(--af-border);
}

/* ===========================================================================
   28. IMAGE GALLERY (zoomable)
   =========================================================================== */
.image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}
.gallery-zoom {
    padding: 0;
    text-align: left;
    background: var(--af-surface);
    color: var(--af-text);
    border: var(--af-border-width) var(--af-border-style) var(--af-border);
    cursor: zoom-in;
    overflow: hidden;
}
.gallery-zoom img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .35s;
}
.gallery-zoom:hover img,
.gallery-zoom:focus-visible img {
    transform: scale(1.035);
}
.gallery-caption {
    position: static !important;
    display: grid !important;
    gap: .2rem;
    padding: 1rem;
    background: var(--af-surface) !important;
    color: var(--af-text) !important;
}
.gallery-caption small { opacity: .65; }

.gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
}
.gallery-pagination a {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--af-border);
    text-decoration: none;
}
.gallery-pagination a.active {
    background: var(--af-accent);
    color: var(--af-accent-text);
}

/* ===========================================================================
   29. LIGHTBOX
   =========================================================================== */
.gallery-lightbox {
    width: min(94vw, 1200px);
    max-height: 94vh;
    padding: 0;
    background: #090909;
    color: #fff;
    border: 2px solid var(--af-border);
}
.gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, .88);
}
.gallery-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    margin: auto;
    object-fit: contain;
}
.gallery-lightbox p {
    margin: .8rem 4rem 1rem;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 44px;
    height: 44px;
    border: 1px solid #fff;
    background: #111;
    color: #fff;
    font-size: 1.7rem;
    z-index: 2;
}

/* ===========================================================================
   30. MODAL THEME OVERRIDES
   =========================================================================== */
.modal-content {
    background: var(--af-surface);
    color: var(--af-text);
    border: var(--af-border-width) var(--af-border-style) var(--af-border) !important;
    border-radius: var(--af-radius) !important;
}

/* ===========================================================================
   31. PUBLIC EXPERIENCE: semantic action colours
   =========================================================================== */
.header-icon.icon-search   { --header-action-color: #55b8ff; color: var(--header-action-color); }
.header-icon.icon-bookings { --header-action-color: #ffbf47; color: var(--header-action-color); }
.header-icon.icon-account  { --header-action-color: #7be495; color: var(--header-action-color); }
.header-icon.icon-install  { --header-action-color: #ff6269; color: var(--header-action-color); }

.language-link {
    --header-action-color: #d9b7ff;
    color: var(--header-action-color);
    grid-template-columns: auto auto;
    width: auto;
    min-width: 52px;
    padding: 0 .55rem;
    gap: .3rem;
}

.site-header .header-icon:hover,
.site-header .header-icon:focus-visible,
.site-header .language-link:hover,
.site-header .language-link:focus-visible {
    background: #252525;
    border-color: currentColor;
    color: var(--header-action-color, var(--af-header-text));
}

.header-icon:focus-visible,
.language-link:focus-visible,
.cookie-settings-link:focus-visible,
.footer-install:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ===========================================================================
   32. FOOTER CONTACT & MAP
   =========================================================================== */
.footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-height: 44px;
}
.footer-contact i {
    font-size: 1.15rem;
    width: 22px;
    margin-top: .15rem;
}
.footer-contact small {
    display: block;
    color: #a7a19a;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.contact-phone    { color: #ffbf47; }
.contact-email    { color: #55b8ff; }
.contact-location { color: #ff765e; }
.contact-whatsapp { color: #25D366; }

.cookie-settings-link {
    min-height: 44px;
    padding: 0;
    background: none;
    border: 0;
    color: #c8c4bf;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-install {
    min-height: 48px;
    border: 2px solid var(--red);
    background: var(--red);
    color: #fff;
    padding: .7rem 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.footer-install[hidden],
.pwa-ios-help[hidden] {
    display: none;
}
.pwa-ios-help {
    max-width: 34ch;
    font-size: .82rem;
}

.footer-map {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1rem;
    border-block: 1px solid #333;
}
.footer-map strong {
    display: block;
    margin-top: .4rem;
}
.footer-map iframe {
    width: 100%;
    height: 260px;
    border: 0;
    filter: grayscale(.35);
    background: #242424;
}

/* ===========================================================================
   34. RESPONSIVE — 991px
   =========================================================================== */
@media (max-width: 991px) {
    .storefront-container {
        width: min(100% - 32px, 1320px);
    }

    .site-header .nav-link {
        padding: .8rem 0 !important;
        min-height: 44px;
    }
    .header-actions { margin: 1rem 0; }

    .hero-content { margin-left: 4rem; }

    .service-grid        { grid-template-columns: 1fr; }
    .service-card        { min-height: 260px; }

    .plan-grid           { grid-template-columns: 1fr 1fr; }
    .plan-card:nth-child(2) { border-right: 0; }
    .plan-card           { border-bottom: 1px solid #363636; }

    .product-grid,
    .exercise-grid       { grid-template-columns: repeat(2, 1fr); }

    .shop-layout         { grid-template-columns: 1fr; }
    .filter-panel        { position: static; }
    .shop-results .product-grid { grid-template-columns: repeat(2, 1fr); }

    .product-detail      { grid-template-columns: 1fr; }
    .exercise-library    { grid-template-columns: repeat(2, 1fr); }

    .footer-grid         { grid-template-columns: 1fr 1fr; }

    /* Welcome slider overrides */
    .welcome-slider      { height: 720px; }
    .slide-copy          { padding-left: 4rem; }

    .gallery-preview,
    .gallery-grid,
    .news-preview-grid   { grid-template-columns: repeat(2, 1fr); }

    .preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .preview-grid        { grid-template-columns: repeat(2, 1fr); }

    /* Footer map */
    .footer-map { grid-template-columns: 1fr; }
}

/* ===========================================================================
   35. RESPONSIVE — 800px
   =========================================================================== */
@media (max-width: 800px) {
    .video-card     { grid-template-columns: 1fr; }
    .image-gallery  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===========================================================================
   36. RESPONSIVE — 575px
   =========================================================================== */
@media (max-width: 575px) {
    .storefront-container {
        width: min(100% - 24px, 1320px);
    }

    .hero         { min-height: 690px; }
    .hero-stripe  { left: 18px; width: 24px; }
    .hero-content {
        margin-left: 2.8rem;
        padding-bottom: 3.5rem;
    }
    .hero h1      { font-size: 3.55rem; }
    .button-row > a { flex: 1 1 100%; }

    .plan-grid,
    .product-grid,
    .shop-results .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan-card {
        padding: 1rem;
        min-height: 360px;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .plan-price   { font-size: 1.15rem; }

    .product-copy { padding: .8rem; }
    .product-copy h3 { font-size: .85rem; }

    .exercise-grid,
    .exercise-library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }
    .exercise-card,
    .exercise-copy {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .capability-grid { grid-template-columns: 1fr; }
    .footer-grid     { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        gap: .5rem;
    }

    .product-detail { padding: 2rem 0; }
    .detail-copy h1 { font-size: 2.5rem; }

    /* Welcome slider overrides */
    .welcome-slider {
        min-height: 650px;
        height: calc(100vh - 76px);
    }
    .slide-copy {
        padding-left: 2.8rem;
        padding-bottom: 6rem;
    }
    .slide-copy .display-title { font-size: 3.45rem; }
    .slider-controls {
        right: .75rem;
        bottom: .75rem;
    }

    .gallery-preview,
    .gallery-grid,
    .news-preview-grid { grid-template-columns: 1fr; }
    .preview-grid      { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Video library */
    .video-library { grid-template-columns: 1fr; }
    .video-card,
    .video-frame,
    .video-card video {
        min-width: 0;
        max-width: 100%;
    }

    /* Footer map */
    .footer-map {
        margin-inline: -12px;
        padding-inline: 12px;
    }
    .footer-map iframe { height: 220px; }

    /* Cookie consent */
}

/* ===========================================================================
   37. RESPONSIVE — 420px
   =========================================================================== */
@media (max-width: 420px) {
    .image-gallery { grid-template-columns: 1fr; }
    .gallery-lightbox p {
        margin: .7rem 3rem .8rem .7rem;
    }
}

/* ===========================================================================
   38. REDUCED MOTION
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
    .welcome-slide            { transition: none; }
    .slide-loader::after      { animation: none; }
    .welcome-slider[data-autoplay] { --autoplay: off; }
}
