/* ========================================================================= 
   ASSETS/CSS/STYLE.CSS — FINAL CORREGIDO (TALLAS ORIGINALES + SLIDER FULL + MARQUEE)
   ========================================================================= */

/* 1. IMPORTAR FUENTES (Poppins + Oswald para los textos grandes) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ---------- ROOT / GLOBAL ---------- */
:root {
    --fit8-blue: #00C3FF;
    --fit8-dark: #111;
    --fit8-gray: #f4f4f4;
    --accent: #000; /* Usado en tus tallas originales */
    --muted: #6c757d;
    --bg: #fff;
    --fit8-hero-overlay: linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.42) 58%, rgba(0, 0, 0, 0.72) 100%);
}

* { box-sizing: border-box; }

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #fafafa;
    color: var(--fit8-dark);
}

#fit8-hero {
    display: none !important;
}

/* Aseguramos que los títulos usen Poppins */
h1, h2, h3, .hero-title, .btn-hero, .btn-cat, .product-info h6 {
    font-family: 'Poppins', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    background: #fff; z-index: 9999;
}
.spinner {
    width: 44px; height: 44px; border: 5px solid #eee; border-top-color: var(--fit8-blue);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- TOPBAR / HEADER ---------- */
.hidde { display: none !important; }
.topbar { background: #f8f9f9; border-bottom: 1px solid #eee; padding: .35rem 1rem; font-size: .9rem; }
.social-icons a { color: #333; transition: color .18s; }
.social-icons a:hover { color: var(--fit8-blue); }
.navbar { padding: .6rem 1rem; }
.btn-ghost { background: transparent; border: none; padding: .25rem; }
.navbar-brand { font-weight: 700; letter-spacing: .3px; }
.transparent { background: rgba(255, 255, 255, 0.30) !important; backdrop-filter: blur(10px) !important; }

/* =======================
   HERO / SLIDER (PC FULL SCREEN)
======================= */
.fit8-hero-shell {
    position: relative;
}

#heroCarousel {
    margin-top: 0;
}

.fit8-hero-carousel .carousel-item {
    min-height: clamp(640px, 100vh, 980px);
    width: 100%;
    position: relative;
    background: #05070b;
}

.fit8-hero-media,
.fit8-hero-media picture,
.fit8-hero-image,
.fit8-hero-video {
    width: 100%;
    height: 100%;
}

.fit8-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.fit8-hero-media-mobile {
    display: none;
}

.fit8-hero-image,
.fit8-hero-video {
    display: block;
    object-fit: cover;
    object-position: center 35%;
}

.fit8-hero-slide--single-asset .fit8-hero-image {
    object-fit: contain;
    object-position: center center;
    background: #05070b;
}

.fit8-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--fit8-hero-overlay);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 12%;
    left: 5%;
    z-index: 3;
    max-width: 650px;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #00C3FF !important;
    line-height: 1.05;
    margin-bottom: 1.35rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    font-style: normal;
}

.btn-hero {
    background-color: #fff;
    color: #000;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.btn-hero:hover {
    background-color: var(--fit8-blue);
    color: #fff;
    border-color: var(--fit8-blue);
    transform: translateY(-3px);
}

.fit8-hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.fit8-hero-control:hover {
    background: rgba(0, 195, 255, 0.25);
    border-color: rgba(0, 195, 255, 0.8);
}

.fit8-hero-control-prev {
    left: 24px;
}

.fit8-hero-control-next {
    right: 24px;
}

.fit8-hero-toggle {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 4;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.5);
    color: #fff;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.fit8-hero-toggle:hover {
    background: rgba(0, 195, 255, 0.18);
    border-color: rgba(0, 195, 255, 0.8);
}

.hero-toggle-icon {
    font-size: 0.95rem;
}

header #heroCarousel .carousel-item {
    min-height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.cat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.cat-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    background: #080808;
}

.cat-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    background: #080808;
}

.category-media--mobile {
    display: none;
}

/* =======================
   CATEGORÍAS
======================= */
.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.category-card:hover .cat-bg {
    transform: scale(1.05);
}

.category-card:hover .cat-overlay {
    background: rgba(0,0,0,0.3);
}

.btn-cat {
    color: #fff;
    border: 3px solid #fff;
    padding: 12px 45px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
    border-radius: 0;
}

.btn-cat:hover {
    background: #fff;
    color: #000;
}

/* =======================
   PRODUCTOS (ESTILO LIMPIO)
======================= */
.product-card {
    background: transparent; border: none; border-radius: 0;
    position: relative; transition: transform .22s; margin-bottom: 20px;
}
.product-card:hover { transform: translateY(-5px); box-shadow: none; }

.product-img {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: 12px; background-color: var(--fit8-gray);
}
.product-img img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 28%; transition: opacity .28s, transform .35s ease;
}
.product-img img.hover-img { opacity: 0; }
.product-card:hover .product-img img.main-img { opacity: 0; transform: scale(1.06); }
.product-card:hover .product-img img.hover-img { opacity: 1; transform: scale(1.06); }

.product-info { padding: 12px 2px; text-align: left; }
.product-info h6 {
    margin: 4px 0;
    font-size: 0.92rem;
    line-height: 1.28;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--fit8-dark);
    text-transform: none;
}
.product-info .price {
    color: var(--fit8-dark); font-weight: 600; font-size: 0.88rem; margin-bottom: 0;
}
.category-tag {
    font-size: 0.72rem; color: #888; text-transform: none;
    font-weight: 600; margin-bottom: 2px; letter-spacing: 0;
}

/* =======================
   OPCIONES HOVER (RESTAURADO A TU ORIGINAL)
======================= */
.overlay-options {
    position: absolute;
    left: 8px; right: 8px; top: 8px;
    display: flex; flex-direction: column;
    gap: 8px; align-items: center;
    pointer-events: none; opacity: 0;
    transition: opacity .18s;
}
.product-card:hover .overlay-options { opacity: 1; pointer-events: auto; }

/* Tallas Originales */
.size-options {
    display: flex; gap: 8px;
    background: rgba(0,0,0,0.2); /* Fondo oscuro original */
    padding: 6px 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-radius: 0; /* Reset si había */
}
.size-option {
    padding: 6px 10px; border-radius: 6px;
    background: #fff; border: 1px solid #e8e8e8;
    cursor: pointer; pointer-events: auto; font-weight: 500;
}
.size-option:hover { transform: translateY(-3px); }
.size-option.selected {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Colores Originales */
.color-options {
    display: flex; gap: 8px;
    justify-content: flex-start; /* Alineado izq. para el nuevo diseño */
    margin-top: 8px;
}
.color-circle {
    width: 25px; height: 25px;
    border-radius: 50%; border: 1px solid;
    cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.color-circle:hover { transform: scale(1.08); }
.color-circle.selected {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    outline: 2px solid rgba(0,0,0,0.7);
}

/* ---------- OVERLAYS ---------- */
#overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1500; display: none; }
#overlay.active { display: block; }
.search-overlay {
    position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
    background: rgba(255,255,255,.95); z-index: 1600;
}
.search-box {
    width: 92%; max-width: 680px; display: flex; gap: .5rem; padding: .6rem;
    border-radius: 999px; background: #fff; border: 1px solid #e6e6e6;
}
.search-box input { flex: 1; border: none; outline: none; padding: .6rem 1rem; font-size: 1rem; }

/* Mobile Menu & Sidebar */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 280px; height: 100%;
    background: #fff; z-index: 1700; box-shadow: 4px 0 30px rgba(0,0,0,0.12);
    transform: translateX(-110%);
    transition: transform .28s;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-menu-content { padding: 18px; }
.mobile-menu .mobile-menu-content a {
    display: block; padding: 12px 0; color: #111; text-decoration: none; border-bottom: 1px solid #f2f2f2;
}

.cart-sidebar {
    position: fixed; top: 0; right: 0; width: min(400px, 100vw); max-width: 100vw; height: 100%;
    background: #fff; z-index: 2000; box-shadow: -8px 0 40px rgba(0,0,0,0.08);
    transform: translateX(110%);
    transition: transform .28s;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-top { border-bottom: 1px solid #f5f5f5; padding: 14px; }
.cart-items { padding: 12px; overflow-y: auto; height: calc(100vh - 185px); }
.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}
.cart-item-main {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
}
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.cart-item-info { min-width: 0; }
.cart-item-name {
    display: block;
    font-size: .9rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.cart-item-meta {
    font-size: .78rem;
    line-height: 1.35;
    color: #64748b;
}
.cart-item-side {
    display: flex;
    min-width: 76px;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
}
.cart-item-price {
    white-space: nowrap;
    font-size: .9rem;
}
.remove-item {
    white-space: nowrap;
    font-size: .78rem !important;
}
.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: #fff;
    color: #1f2328;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.cart-qty-btn + .cart-qty-value,
.cart-qty-value + .cart-qty-btn {
    border-left: 1px solid #d9dde3;
}
.cart-qty-btn:hover:not(:disabled) {
    background: #f7f7f8;
}
.cart-qty-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.cart-qty-value {
    min-width: 36px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: .85rem;
    font-weight: 600;
    color: #1f2328;
    background: #fff;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100vw;
    }

    .cart-top {
        padding-top: 4.25rem;
        padding-right: .85rem;
        padding-left: .85rem;
    }

    .cart-items {
        height: calc(100vh - 180px);
        padding: .85rem !important;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .6rem;
    }

    .cart-item-main {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: .65rem;
    }

    .cart-item-image {
        width: 52px;
        height: 52px;
    }

    .cart-item-name {
        font-size: .82rem;
    }

    .cart-item-meta {
        font-size: .72rem;
    }

    .cart-item-side {
        min-width: 62px;
        gap: .55rem;
    }

    .cart-item-price {
        font-size: .8rem;
    }

    .remove-item {
        padding: 0 !important;
        font-size: 1rem !important;
    }

    .remove-item .remove-item-label {
        display: none;
    }

    .cart-footer {
        padding: .85rem !important;
    }

    .cart-footer .btn {
        margin-bottom: .25rem !important;
        padding: .65rem .8rem;
    }
}

/* Chat & Toast */
.chat-fab {
    position: fixed; right: 20px; bottom: 20px; background: var(--fit8-blue);
    color: #fff; border-radius: 50%; width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center; z-index: 1900;
    border: 0; box-shadow: 0 16px 36px rgba(13, 202, 240, .28);
}
.chat-window {
    position: fixed; right: 20px; bottom: 90px; width: min(360px, calc(100vw - 32px)); background: #fff;
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 1901; display: none; flex-direction: column; overflow: hidden;
}
.chat-window.open { display: flex; }
.chat-header { background: #000; color: #fff; padding: 10px; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.chat-messages { padding: 12px; height: min(380px, 48vh); overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 10px 12px; border-radius: 14px; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.bubble.bot { background: #f2f4f7; align-self: flex-start; }
.bubble.user { background: #000; color: #fff; align-self: flex-end; }
.chat-input { padding: 10px; border-top: 1px solid #eee; display: flex; gap: 8px; align-items: center; }
.fit8-chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
}
.fit8-chat-option {
    width: 100%;
    border: 1px solid rgba(13, 202, 240, .38);
    background: #fff;
    color: #111827;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: .88rem;
    text-align: left;
    line-height: 1.35;
}
.fit8-chat-option:hover {
    background: rgba(13, 202, 240, .08);
}

@media (max-width: 575.98px) {
    .chat-fab { right: 16px; bottom: 16px; }
    .chat-window { right: 12px; bottom: 82px; width: calc(100vw - 24px); }
    .chat-messages { height: min(420px, 52vh); }
}

.fit8-toast-viewport {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 18px);
    right: calc(env(safe-area-inset-right) + 18px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(380px, calc(100vw - 36px));
    pointer-events: none;
}

.shofy-toast {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(8, 12, 18, 0.92);
    color: #fff;
    box-shadow: 0 24px 60px rgba(4, 8, 15, 0.28);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    overflow: hidden;
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.shofy-toast::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--toast-accent, #5b7cfa);
}

.shofy-toast.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.shofy-toast__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    flex: none;
    overflow: hidden;
}

.shofy-toast__icon img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.shofy-toast__content {
    min-width: 0;
}

.shofy-toast__title {
    display: block;
    margin: 0 0 2px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.shofy-toast__message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #fff;
}

.shofy-toast__dismiss {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -2px -2px 0 0;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.shofy-toast__dismiss:hover,
.shofy-toast__dismiss:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.shofy-toast--success {
    --toast-accent: #22c55e;
    --toast-surface: rgba(34, 197, 94, 0.16);
}

.shofy-toast--warning {
    --toast-accent: #f59e0b;
    --toast-surface: rgba(245, 158, 11, 0.18);
}

.shofy-toast--danger {
    --toast-accent: #ef4444;
    --toast-surface: rgba(239, 68, 68, 0.18);
}

.shofy-toast--info {
    --toast-accent: #38bdf8;
    --toast-surface: rgba(56, 189, 248, 0.16);
}

@media (max-width: 640px) {
    .fit8-toast-viewport {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: calc(env(safe-area-inset-bottom) + 12px);
        width: auto;
    }

    .shofy-toast {
        grid-template-columns: 30px 1fr auto;
        padding: 13px 12px 13px 14px;
        border-radius: 16px;
    }

    .shofy-toast__icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .shofy-toast__icon img {
        width: 18px;
        height: 18px;
    }
}

.footer { padding: 28px 0; }
.footer .text-rights { color: #e6e6e6; }

/* =========================================
   BRAND SHOWCASE HOME
   ========================================= */
.s8 {
    background: #070707;
    padding: 64px 0 0;
    position: relative;
    font-family: 'Poppins', sans-serif;
    isolation: isolate;
}

.s8-shell {
    width: 100%;
    margin: 0;
}

.s8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00c3ff 50%, transparent);
    opacity: .4;
}

.s8-head {
    text-align: center;
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto 34px;
    padding: 0 24px;
    animation: s8FadeUp 0.85s ease both;
}

.s8-eyebrow {
    font-size: 10px;
    letter-spacing: 4px;
    color: #00c3ff;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.s8-head h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.35rem, 4.6vw, 4.1rem);
    color: #fff;
    line-height: .92;
    letter-spacing: -.04em;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 auto;
    text-wrap: balance;
}

.s8-head h2.s8-text--short { font-size: clamp(2.6rem, 5vw, 4.3rem); max-width: 12ch; }
.s8-head h2.s8-text--medium { font-size: clamp(2.25rem, 4.4vw, 3.7rem); max-width: 14ch; }
.s8-head h2.s8-text--long { font-size: clamp(1.95rem, 3.8vw, 3.15rem); max-width: 16ch; }

.s8-head h2 em {
    color: #00c3ff;
    font-style: normal;
}

.s8-head p {
    color: rgba(255, 255, 255, .48);
    font-size: .92rem;
    line-height: 1.68;
    max-width: 540px;
    margin: 16px auto 0;
    text-wrap: pretty;
}

.s8-head p.s8-text--short { max-width: 36ch; }
.s8-head p.s8-text--medium { max-width: 42ch; }
.s8-head p.s8-text--long { max-width: 46ch; font-size: .86rem; }

.s8-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 0.72fr) minmax(0, 0.72fr);
    gap: 8px;
    width: 100%;
    min-height: 640px;
    max-height: 880px;
    align-items: stretch;
}

.s8-grid[data-items="1"] {
    grid-template-columns: minmax(0, 1fr);
}

.s8-grid--gallery-only {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 14px;
    min-height: 0;
    max-height: none;
}

.s8-grid[data-items="2"] {
    grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.58fr);
    gap: 14px;
}

.s8-grid[data-items="2"] .s8-main {
    min-height: 720px;
}

.s8-grid[data-items="2"] .s8-main video,
.s8-grid[data-items="2"] .s8-main-media {
    object-position: center 34%;
}

.s8-grid[data-items="2"] .s8-photo {
    min-height: 720px;
}

.s8-grid[data-items="2"] .s8-bottom {
    width: min(1480px, calc(100% - 32px));
    margin-top: 14px;
}

.s8-grid--gallery-only .s8-photo,
.s8-grid--gallery-only[data-items="1"] .s8-photo,
.s8-grid--gallery-only[data-items="2"] .s8-photo {
    min-height: clamp(520px, 66vh, 760px);
    border-radius: 18px;
}

.s8-main {
    position: relative;
    overflow: hidden;
    background: #080808;
    min-height: 640px;
    animation: s8FadeUp 0.95s ease both;
    animation-delay: 0.08s;
    border-radius: 18px 0 0 18px;
}

.s8-grid[data-items="1"] .s8-main {
    border-radius: 18px;
}

.s8-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    gap: 12px;
    z-index: 1;
}

.s8-placeholder svg {
    opacity: .12;
}

.s8-placeholder span {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .18);
    text-transform: uppercase;
    font-weight: 600;
}

.s8-main video,
.s8-main-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    display: block;
    filter: brightness(.8) contrast(1.05);
    z-index: 2;
    transform: scale(1.01);
    transition: transform 0.7s ease, filter 0.45s ease;
}

.s8-main.s8-main--image .s8-main-media {
    object-fit: contain;
    object-position: center center;
    filter: brightness(.96) contrast(1.02);
    transform: none;
}

.s8-main .s8-media--mobile,
.s8-photo .s8-photo-media--mobile {
    display: none;
}

.s8-main:hover video,
.s8-main:hover .s8-main-media {
    transform: scale(1.04);
    filter: brightness(.88) contrast(1.08);
}

.s8-main.s8-main--image:hover .s8-main-media {
    transform: none;
    filter: brightness(1) contrast(1.02);
}

.s8-vid-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .06) 48%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 26px;
}

.s8-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, .52);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
    align-self: flex-start;
    animation: s8Pulse 2.2s ease-in-out infinite;
}

.s8-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00c3ff;
    animation: s8blink 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes s8blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .2; }
}

.s8-vid-bottom span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #00c3ff;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.s8-vid-bottom h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.85rem);
    color: #fff;
    line-height: .98;
    letter-spacing: -.04em;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    text-wrap: balance;
}

.s8-vid-bottom h3.s8-text--short { font-size: clamp(1.95rem, 3.2vw, 3rem); max-width: 11ch; }
.s8-vid-bottom h3.s8-text--medium { font-size: clamp(1.75rem, 2.9vw, 2.7rem); max-width: 12ch; }
.s8-vid-bottom h3.s8-text--long { font-size: clamp(1.5rem, 2.5vw, 2.3rem); max-width: 14ch; }

.s8-photo {
    position: relative;
    overflow: hidden;
    background: #080808;
    min-height: 640px;
    animation: s8FadeUp 0.95s ease both;
}

.s8-photo:last-child {
    border-radius: 0 18px 18px 0;
}

.s8-grid--gallery-only .s8-photo:first-of-type,
.s8-grid--gallery-only .s8-photo:last-child {
    border-radius: 18px;
}

.s8-grid[data-items="2"] .s8-photo:last-child,
.s8-grid[data-items="1"] .s8-photo:last-child {
    border-radius: 0 18px 18px 0;
}

.s8-photo:first-of-type {
    border-radius: 0;
}

.s8-photo:nth-of-type(2) {
    animation-delay: 0.16s;
}

.s8-photo:nth-of-type(3) {
    animation-delay: 0.24s;
}

.s8-photo img,
.s8-photo video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .55s ease, filter .4s ease;
    filter: brightness(.88);
}

.s8-photo.s8-photo--image img {
    object-fit: contain;
    object-position: center center;
    filter: brightness(.96) contrast(1.02);
}

.s8-photo:hover img,
.s8-photo:hover video {
    transform: scale(1.04);
    filter: brightness(1.02);
}

.s8-photo.s8-photo--image:hover img {
    transform: none;
    filter: brightness(1) contrast(1.02);
}

.s8-photo-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, transparent 50%);
    z-index: 1;
}

.s8-photo-lbl {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.s8-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    width: min(1380px, calc(100% - 48px));
    margin: 8px auto 0;
    padding: 24px 28px;
    background: rgba(255, 255, 255, .025);
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-radius: 0 0 18px 18px;
    animation: s8FadeUp 1.05s ease both;
    animation-delay: 0.3s;
}

.s8-bottom-text h4 {
    font-size: clamp(1.1rem, 1.8vw, 1.7rem);
    color: #fff;
    letter-spacing: -.03em;
    text-transform: uppercase;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin: 0;
    text-wrap: balance;
}

.s8-bottom-text h4.s8-text--short { max-width: 22ch; }
.s8-bottom-text h4.s8-text--medium { font-size: clamp(1rem, 1.65vw, 1.5rem); max-width: 28ch; }
.s8-bottom-text h4.s8-text--long { font-size: clamp(.92rem, 1.4vw, 1.25rem); max-width: 34ch; line-height: 1.08; }

.s8-bottom-text p {
    color: rgba(255, 255, 255, .48);
    font-size: .86rem;
    line-height: 1.6;
    margin-top: 4px;
    max-width: 700px;
    text-wrap: pretty;
}

.s8-bottom-text p.s8-text--medium { max-width: 62ch; }
.s8-bottom-text p.s8-text--long { font-size: .82rem; line-height: 1.55; max-width: 68ch; }

@media (min-width: 781px) {
    .s8-head {
        width: min(1680px, calc(100% - 56px));
        margin: 0 auto 24px;
    }

    .s8-eyebrow {
        font-size: 11px;
        letter-spacing: 5.5px;
        margin-bottom: 16px;
    }

    .s8-head h2 {
        line-height: .86;
        letter-spacing: -.05em;
    }

    .s8-head h2.s8-text--short {
        font-size: clamp(4.25rem, 6.35vw, 6.35rem);
        max-width: 24ch;
    }

    .s8-head h2.s8-text--medium {
        font-size: clamp(3.95rem, 5.95vw, 5.85rem);
        max-width: 26ch;
    }

    .s8-head h2.s8-text--long {
        font-size: clamp(3.5rem, 5.4vw, 5.15rem);
        max-width: 28ch;
    }

    .s8-head p {
        font-size: 1rem;
        line-height: 1.5;
        margin-top: 16px;
    }

    .s8-head p.s8-text--short { max-width: 40ch; }
    .s8-head p.s8-text--medium { max-width: 46ch; }
    .s8-head p.s8-text--long {
        max-width: 50ch;
        font-size: .94rem;
    }

    .s8-vid-bottom h3.s8-text--short {
        font-size: clamp(2.85rem, 4.15vw, 4.2rem);
        max-width: 22ch;
    }

    .s8-vid-bottom h3.s8-text--medium {
        font-size: clamp(2.5rem, 3.7vw, 3.7rem);
        max-width: 24ch;
    }

    .s8-vid-bottom h3.s8-text--long {
        font-size: clamp(2.15rem, 3.25vw, 3.05rem);
        max-width: 28ch;
        line-height: .94;
    }

    .s8-bottom {
        gap: 28px;
    }

    .s8-bottom-text h4.s8-text--short {
        font-size: clamp(2.05rem, 2.95vw, 2.95rem);
        max-width: 28ch;
    }

    .s8-bottom-text h4.s8-text--medium {
        font-size: clamp(1.8rem, 2.6vw, 2.55rem);
        max-width: 32ch;
    }

    .s8-bottom-text h4.s8-text--long {
        font-size: clamp(1.55rem, 2.2vw, 2.15rem);
        max-width: 36ch;
        line-height: 1.02;
    }

    .s8-bottom-text p {
        font-size: .92rem;
        line-height: 1.45;
        margin-top: 6px;
    }

    .s8-bottom-text p.s8-text--medium { max-width: 66ch; }
    .s8-bottom-text p.s8-text--long {
        font-size: .9rem;
        max-width: 72ch;
    }
}

.s8-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #00c3ff;
    color: #050505;
    text-decoration: none;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all .25s ease;
    box-shadow: 0 10px 24px rgba(0, 195, 255, .12);
}

.s8-btn:hover {
    background: #22d4ff;
    transform: translateY(-2px) scale(1.02);
    color: #050505;
}

.s8-btn svg {
    width: 13px;
    height: 13px;
    transition: transform .25s ease;
}

.s8-btn:hover svg {
    transform: translateX(2px);
}

@keyframes s8FadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes s8Pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 195, 255, .16);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 195, 255, 0);
    }
}

/* =========================================
   NUEVA SECCIÓN: ANIMACIONES DROP / PRÓXIMAMENTE
   (Zoom + Cambio de Imagen "Swap")
   ========================================= */
.fit8-hover-card {
    overflow: hidden; 
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* Necesario para posicionar la segunda imagen encima */
    position: relative; 
}

/* Configuración para AMBAS imágenes (zoom y brillo) */
.fit8-hover-card img {
    /* Agregamos opacity a la transición */
    transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000), filter 0.6s ease, opacity 0.4s ease;
    display: block; /* Elimina espacios extra */
}

/* Configuración específica para la imagen HOVER (la segunda) */
.fit8-hover-card .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Oculta por defecto */
    z-index: 2; /* Encima de la otra */
}

/* EFECTOS AL PASAR EL MOUSE (HOVER) */

/* 1. Cambios en el borde y sombra de la tarjeta */
.fit8-hover-card:hover {
    border-color: var(--fit8-blue) !important;
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.4);
}

/* 2. Zoom y Brillo (Aplica a las dos imágenes a la vez) */
.fit8-hover-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.08) !important;
}

/* 3. Intercambio de imágenes (La magia) */
.fit8-hover-card:hover .hover-img {
    opacity: 1; /* Aparece la segunda imagen */
}
.fit8-hover-card:hover .main-img {
    opacity: 0; /* Desaparece la primera suavemente */
}

/* Animación del botón notificarme */
.btn-notify-hover {
    transition: all 0.3s ease;
}
.btn-notify-hover:hover {
    background-color: #fff !important;
    color: var(--fit8-blue) !important;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.6);
}

/* =========================================
   NUEVA SECCIÓN: MARQUEE / CINTA DE TEXTO
   (VERSIÓN: BLANCO SÓLIDO + ANTI-PARPADEO)
   ========================================= */
.fit8-marquee-section {
    background: #000;
    border-top: 2px solid #00C3FF;
    border-bottom: 2px solid #00C3FF;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 30px 0;
    margin-top: 40px; 
}

.fit8-marquee-section--no-slider {
    margin-top: 96px;
}

.fit8-marquee-track {
    display: inline-block;
    /* Velocidad: Si sigue parpadeando, cambia 25s por 30s o 40s */
    animation: marquee-scroll 30s linear infinite;
    /* TRUCOS ANTI-PARPADEO: */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); 
}

.fit8-marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
    padding-left: 5rem;
}

.marquee-text {
    font-family: 'Oswald', sans-serif !important;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff; 
    -webkit-text-stroke: 0;
    opacity: 1;
}

.marquee-text.highlight {
    color: #00C3FF;
    text-shadow: 0 0 25px rgba(0, 195, 255, 0.5);
}

.separator-icon {
    height: 40px;
    width: auto; 
    vertical-align: middle; 
    margin: 0 15px;
    object-fit: contain;
}

/* Animación */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   RESPONSIVE (MÓVIL AHORA MÁS GRANDE)
   ========================================= */
@media (max-width: 780px) {
    .s8-head {
        margin: 0 auto 18px;
        padding: 0 18px;
    }

    .s8-eyebrow {
        font-size: 9px;
        letter-spacing: 3px;
        margin-bottom: 8px;
    }

    .s8-head h2 {
        font-size: clamp(1.95rem, 7vw, 3rem);
        line-height: 0.96;
        max-width: 11ch;
        margin: 0 auto;
    }

    .s8-head h2.s8-text--short { font-size: clamp(2rem, 7.2vw, 3rem); max-width: 10ch; }
    .s8-head h2.s8-text--medium { font-size: clamp(1.8rem, 6.5vw, 2.6rem); max-width: 11ch; }
    .s8-head h2.s8-text--long { font-size: clamp(1.45rem, 5.6vw, 2.15rem); max-width: 13ch; }

    .s8-head p {
        font-size: 0.82rem;
        line-height: 1.55;
        max-width: 32ch;
        margin: 10px auto 0;
    }

    .s8-head p.s8-text--short { font-size: 0.84rem; max-width: 30ch; }
    .s8-head p.s8-text--medium { font-size: 0.8rem; max-width: 32ch; }
    .s8-head p.s8-text--long { font-size: 0.74rem; line-height: 1.5; max-width: 34ch; }

    .marquee-text { font-size: 1.5rem; gap: 2rem; }
    
    .fit8-hero-carousel .carousel-item,
    header #heroCarousel .carousel-item {
        min-height: 100vh;
        min-height: min(860px, 100svh);
    }

    .fit8-hero-image,
    .fit8-hero-video {
        object-position: center 38%;
    }

    .fit8-hero-slide.has-mobile-media .fit8-hero-media-desktop {
        display: none;
    }

    .fit8-hero-slide.has-mobile-media .fit8-hero-media-mobile {
        display: block;
    }

    .fit8-hero-control {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }

    .fit8-hero-control-prev {
        left: 14px;
    }

    .fit8-hero-control-next {
        right: 14px;
    }

    .fit8-hero-toggle {
        right: 14px;
        bottom: 14px;
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .hero-title { font-size: 2rem; }
    .hero-content { bottom: 12%; width: 90%; }
    .category-card {
        height: auto;
        aspect-ratio: 3 / 2;
        min-height: 0;
        max-height: none;
        background: #080808;
    }
    .cat-bg,
    .cat-bg-video,
    .cat-bg-image {
        object-fit: contain;
        object-position: center center;
        background-position: center center;
        background-color: #080808;
    }
    .cat-overlay {
        padding: 1rem;
    }
    .category-card--has-mobile .category-media--desktop {
        display: none;
    }
    .category-card--has-mobile .category-media--mobile {
        display: block;
    }
    .btn-cat { font-size: 1.4rem; padding: 8px 30px; }

    .product-img img {
        object-position: center 24%;
    }

    .s8-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 14px;
        min-height: 0;
        max-height: none;
        align-items: start;
    }

    .s8-grid[data-items="3"] {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .s8-main {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        aspect-ratio: auto;
        min-height: 0;
        border-radius: 0;
        background: transparent;
        overflow: visible;
        align-self: start;
    }

    .s8-main:not(.s8-main--image) {
        min-height: 0;
    }

    .s8-grid[data-items="2"] .s8-photo,
    .s8-grid[data-items="1"] .s8-photo {
        grid-column: 1 / -1;
    }

    .s8-grid[data-items="2"] .s8-main,
    .s8-grid[data-items="2"] .s8-photo,
    .s8-grid[data-items="3"] .s8-main,
    .s8-grid[data-items="3"] .s8-photo {
        min-height: 0;
    }

    .s8-grid--gallery-only {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .s8-grid--gallery-only[data-items="2"] {
        grid-template-columns: 1fr 1fr;
    }

    .s8-grid--gallery-only .s8-photo,
    .s8-grid--gallery-only[data-items="1"] .s8-photo,
    .s8-grid--gallery-only[data-items="2"] .s8-photo {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .s8-grid--gallery-only[data-items="2"] .s8-photo {
        grid-column: auto;
    }

    .s8-main--has-mobile .s8-media--desktop,
    .s8-photo--has-mobile .s8-photo-media--desktop {
        display: none;
    }

    .s8-main--has-mobile .s8-media--mobile,
    .s8-photo--has-mobile .s8-photo-media--mobile {
        display: block;
    }

    .s8-main video,
    .s8-main-media {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        max-height: min(58svh, 560px);
        object-position: center center;
        border-radius: 18px;
        display: block;
    }

    .s8-placeholder {
        display: none;
    }

    .s8-main video {
        object-fit: contain;
        object-position: center center;
        background-color: #080808;
        transform: none;
        filter: brightness(.92) contrast(1.04);
    }

    .s8-main.s8-main--image .s8-main-media {
        object-fit: contain;
        object-position: center center;
        background-color: #080808;
    }

    .s8-vid-overlay {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 6px;
        padding: 0 2px;
        background: none;
    }

    .s8-main:hover video,
    .s8-main:hover .s8-main-media,
    .s8-main.s8-main--image:hover .s8-main-media {
        transform: none;
        filter: brightness(.92) contrast(1.04);
    }

    .s8-vid-bottom {
        width: 100%;
        max-width: 100%;
    }

    .s8-badge {
        padding: 5px 10px;
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .s8-vid-bottom span {
        font-size: 8px;
        letter-spacing: 1.8px;
        margin-bottom: 4px;
    }

    .s8-vid-bottom h3 {
        font-size: clamp(1.25rem, 4.8vw, 1.9rem);
        line-height: 0.98;
        max-width: 100%;
    }

    .s8-vid-bottom h3.s8-text--short { font-size: clamp(1.22rem, 4.7vw, 1.85rem); max-width: 100%; }
    .s8-vid-bottom h3.s8-text--medium { font-size: clamp(1.06rem, 4vw, 1.55rem); max-width: 100%; }
    .s8-vid-bottom h3.s8-text--long { font-size: clamp(.92rem, 3.4vw, 1.28rem); max-width: 100%; line-height: 1.02; }

    .s8-photo {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
        min-height: 0;
        border-radius: 18px;
        padding: 0;
        background: #080808;
        border: 1px solid rgba(255, 255, 255, .08);
        align-self: start;
    }

    .s8-photo img,
    .s8-photo video {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        max-height: min(42svh, 390px);
        object-fit: contain;
        object-position: center center;
        filter: brightness(1);
        background-color: #080808;
    }

    .s8-photo.s8-photo--image img {
        object-fit: contain;
        object-position: center center;
        background-color: #080808;
    }

    .s8-photo:hover img,
    .s8-photo:hover video {
        transform: scale(1.02);
    }

    .s8-photo-ov {
        display: none;
    }

    .s8-bottom {
        grid-template-columns: 1fr;
        gap: 14px;
        border-radius: 18px;
        padding: 18px;
    }

    .s8-bottom-text h4 {
        font-size: 1.15rem;
        max-width: 100%;
    }

    .s8-bottom-text h4.s8-text--short { font-size: 1.08rem; max-width: 100%; }
    .s8-bottom-text h4.s8-text--medium { font-size: .98rem; max-width: 100%; }
    .s8-bottom-text h4.s8-text--long { font-size: .88rem; line-height: 1.06; max-width: 100%; }

    .s8-bottom-text p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .s8-bottom-text p.s8-text--short { font-size: 0.82rem; max-width: 30ch; }
    .s8-bottom-text p.s8-text--medium { font-size: 0.78rem; max-width: 34ch; }
    .s8-bottom-text p.s8-text--long { font-size: 0.72rem; line-height: 1.45; max-width: 36ch; }

    .s8-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.76rem;
        padding: 12px 18px;
    }

    .s8-shell {
        width: 100%;
    }

    .s8-head,
    .s8-bottom {
        width: min(100%, calc(100% - 24px));
    }
}

@media (max-width: 520px) {
    .s8 {
        padding: 48px 0 0;
    }

    .s8-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
    }

    .s8-grid[data-items="3"] {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .s8-head {
        margin-bottom: 16px;
        padding: 0 14px;
    }

    .s8-head h2 {
        font-size: clamp(1.7rem, 10vw, 2.35rem);
        max-width: 9ch;
    }

    .s8-head h2.s8-text--short { font-size: clamp(1.8rem, 10.2vw, 2.4rem); max-width: 8.5ch; }
    .s8-head h2.s8-text--medium { font-size: clamp(1.55rem, 8.8vw, 2rem); max-width: 9.5ch; }
    .s8-head h2.s8-text--long { font-size: clamp(1.28rem, 7.4vw, 1.7rem); max-width: 11.5ch; }

    .s8-head p {
        font-size: 0.78rem;
        max-width: 28ch;
    }

    .s8-head p.s8-text--short { font-size: 0.8rem; max-width: 26ch; }
    .s8-head p.s8-text--medium { font-size: 0.76rem; max-width: 28ch; }
    .s8-head p.s8-text--long { font-size: 0.7rem; line-height: 1.42; max-width: 30ch; }

    .s8-main {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        aspect-ratio: auto;
        min-height: 0;
        border-radius: 0;
        background: transparent;
        overflow: visible;
        align-self: start;
    }

    .s8-main:not(.s8-main--image) {
        min-height: 0;
    }

    .s8-grid[data-items="2"] .s8-photo,
    .s8-grid[data-items="1"] .s8-photo {
        grid-column: 1 / -1;
    }

    .s8-grid[data-items="2"] .s8-main,
    .s8-grid[data-items="2"] .s8-photo,
    .s8-grid[data-items="3"] .s8-main,
    .s8-grid[data-items="3"] .s8-photo {
        min-height: 0;
    }

    .s8-grid--gallery-only {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .s8-grid--gallery-only[data-items="2"] {
        grid-template-columns: 1fr 1fr;
    }

    .s8-grid--gallery-only .s8-photo,
    .s8-grid--gallery-only[data-items="1"] .s8-photo,
    .s8-grid--gallery-only[data-items="2"] .s8-photo {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .s8-grid--gallery-only[data-items="2"] .s8-photo {
        grid-column: auto;
    }

    .s8-main video,
    .s8-main-media {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        max-height: min(54svh, 500px);
        border-radius: 16px;
        display: block;
    }

    .s8-vid-overlay {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0 2px;
        background: none;
    }

    .s8-main video {
        object-fit: contain;
        object-position: center center;
        background-color: #080808;
    }

    .s8-main.s8-main--image .s8-main-media {
        object-fit: contain;
        object-position: center center;
        background-color: #080808;
    }

    .s8-vid-bottom {
        width: 100%;
        max-width: 100%;
    }

    .s8-badge {
        padding: 4px 9px;
    }

    .s8-vid-bottom h3 {
        font-size: clamp(1.05rem, 7vw, 1.55rem);
        max-width: 100%;
    }

    .s8-vid-bottom h3.s8-text--short { font-size: clamp(1rem, 6.6vw, 1.5rem); max-width: 100%; }
    .s8-vid-bottom h3.s8-text--medium { font-size: clamp(.9rem, 5.7vw, 1.26rem); max-width: 100%; }
    .s8-vid-bottom h3.s8-text--long { font-size: clamp(.8rem, 4.8vw, 1.06rem); max-width: 100%; line-height: 1.02; }

    .s8-photo {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
        min-height: 0;
        padding: 0;
        border-radius: 16px;
        background: #080808;
        align-self: start;
    }

    .s8-photo img,
    .s8-photo video,
    .s8-photo-ov {
        inset: auto;
    }

    .s8-photo img,
    .s8-photo video {
        position: relative;
        width: 100%;
        height: auto;
        max-height: min(36svh, 320px);
        display: block;
    }

    .s8-photo-ov {
        display: none;
    }

    .s8-photo.s8-photo--image img {
        object-fit: contain;
        object-position: center center;
        background-color: #080808;
    }

    .s8-photo-lbl {
        left: 10px;
        bottom: 10px;
        font-size: 9px;
        padding: 4px 10px;
    }

    .s8-bottom {
        padding: 16px 14px;
        gap: 12px;
        border-radius: 16px;
    }

    .s8-bottom-text h4 {
        font-size: 1rem;
        max-width: 100%;
    }

    .s8-bottom-text h4.s8-text--short { font-size: .96rem; max-width: 100%; }
    .s8-bottom-text h4.s8-text--medium { font-size: .88rem; max-width: 100%; }
    .s8-bottom-text h4.s8-text--long { font-size: .78rem; line-height: 1.08; max-width: 100%; }

    .s8-bottom-text p {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .s8-bottom-text p.s8-text--short { font-size: 0.78rem; max-width: 26ch; }
    .s8-bottom-text p.s8-text--medium { font-size: 0.74rem; max-width: 28ch; }
    .s8-bottom-text p.s8-text--long { font-size: 0.68rem; line-height: 1.4; max-width: 30ch; }

    .s8-btn {
        font-size: 0.74rem;
        padding: 11px 16px;
    }

    .s8-head,
    .s8-bottom {
        width: min(100%, calc(100% - 16px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .s8-head,
    .s8-main,
    .s8-photo,
    .s8-bottom,
    .s8-badge {
        animation: none !important;
    }

    .s8-main video,
    .s8-photo img,
    .s8-photo video,
    .s8-btn,
    .s8-btn svg {
        transition: none !important;
        transform: none !important;
    }
}
