/* Mexx Elementor Widgets - mexx.com style */

/* ============ Hero Banner ============ */
.mexx-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mexx-hero__media,
.mexx-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* YouTube background video — no interaction, no YouTube chrome */
.mexx-hero__video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    container-type: size;
}
.mexx-hero__video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 0;
    pointer-events: none;
    /* fallback: stretch to fill (video letterboxes inside) */
    width: 100%;
    height: 100%;
    /* 16:9 cover sizing via container units */
    width: 100cqw;
    height: 100cqh;
    min-width: 177.78cqh;
    min-height: 56.25cqw;
    transform: translate(-50%, -50%) scale(1.02);
}
.mexx-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}
.mexx-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 24px;
    max-width: 720px;
}
.mexx-hero--left .mexx-hero__content { text-align: left; margin-right: auto; }
.mexx-hero--right .mexx-hero__content { text-align: right; margin-left: auto; }
.mexx-hero__kicker {
    display: block;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.mexx-hero__heading {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 12px;
}
.mexx-hero__subtext {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0 0 24px;
}
.mexx-hero__cta {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 14px 36px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.mexx-hero__cta:hover { opacity: 0.85; }
.mexx-hero__strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}
a.mexx-hero__strip:hover { background: #000; }

/* ============ Category Tiles ============ */
.mexx-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.mexx-tile {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.mexx-tile__media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f4f4f4;
}
.mexx-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mexx-tile:hover .mexx-tile__media img { transform: scale(1.05); }
.mexx-tile__label {
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: lowercase;
}
@media (max-width: 767px) {
    .mexx-tiles--scroll {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mexx-tiles--scroll::-webkit-scrollbar { display: none; }
    .mexx-tiles--scroll .mexx-tile {
        flex: 0 0 42%;
        scroll-snap-align: start;
    }
}

/* ============ Editorial Split ============ */
.mexx-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.mexx-split__card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.mexx-split__media,
.mexx-split__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mexx-split__media img { transition: transform 0.4s ease; }
.mexx-split__card:hover .mexx-split__media img { transform: scale(1.04); }
.mexx-split__content {
    position: relative;
    z-index: 2;
    padding: 32px 28px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.mexx-split__kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.mexx-split__desc-top {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}
.mexx-split__heading {
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px;
}
.mexx-split__cta {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.mexx-split__cta:hover { opacity: 0.85; }

/* ============ Product Showcase ============ */
.mexx-showcase__track {
    display: flex;
    align-items: stretch;
    gap: 12px;
}
.mexx-showcase__panel-card {
    flex: 0 0 24%;
    min-width: 240px;
    background: #1f2f6b;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 24px;
}
.mexx-showcase__kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.mexx-showcase__heading {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.mexx-showcase__tabs {
    display: flex;
    gap: 14px;
}
.mexx-showcase__tab {
    border: none;
    background: none;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid transparent;
}
.mexx-showcase__tab.is-active {
    color: #fff;
    border-bottom-color: #fff;
}
.mexx-showcase__panel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.mexx-showcase__shopall {
    display: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #fff;
}
.mexx-showcase__shopall.is-active { display: inline-block; }
.mexx-showcase__arrows { display: flex; gap: 6px; margin-left: auto; }
.mexx-showcase__arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}
.mexx-showcase__arrow:hover { background: rgba(255, 255, 255, 0.15); }
.mexx-showcase__arrow:disabled { opacity: 0.3; cursor: default; }
.mexx-showcase__scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mexx-showcase__scroll::-webkit-scrollbar { display: none; }
.mexx-showcase__panel {
    display: none;
    flex-wrap: nowrap;
    gap: 12px;
}
.mexx-showcase__panel.is-active { display: flex; }
.mexx-card {
    flex: 0 0 38%;
    scroll-snap-align: start;
}
@media (max-width: 1024px) {
    .mexx-card { flex-basis: 46% !important; }
}
@media (max-width: 767px) {
    .mexx-showcase__track { flex-direction: column; }
    .mexx-showcase__panel-card { flex-basis: auto; }
    .mexx-card { flex-basis: 72% !important; }
}

/* ---- Product card ---- */
.mexx-card { position: relative; }
.mexx-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f4f4f4;
}
.mexx-card__link { display: block; width: 100%; height: 100%; }
.mexx-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mexx-card__img.is-active { opacity: 1; }
.mexx-card__tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.mexx-card__tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid #ddd;
    color: #333;
}
.mexx-card__tag--sale { border-color: #d6001c; color: #d6001c; }
.mexx-card__tag--soldout { border-color: #333; color: #333; }
.mexx-card__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mexx-card:hover .mexx-card__arrow { opacity: 1; }
.mexx-card__arrow--prev { left: 8px; }
.mexx-card__arrow--next { right: 8px; }
.mexx-card__sizes {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 12px 12px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.mexx-card:hover .mexx-card__sizes { transform: translateY(0); }
.mexx-card__sizes-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.mexx-card__size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mexx-card__size {
    min-width: 38px;
    padding: 7px 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.mexx-card__size:hover { border-color: #000; }
.mexx-card__size.is-added { background: #000; color: #fff; border-color: #000; }
.mexx-card__size.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}
.mexx-card__info { padding: 12px 2px 0; }
.mexx-card__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    margin-bottom: 6px;
}
.mexx-card__price {
    font-size: 14px;
    font-weight: 700;
}
.mexx-card__price del {
    font-weight: 400;
    color: #888;
    margin-right: 6px;
}
.mexx-card__price ins { text-decoration: none; color: #d6001c; }
.mexx-card__swatches {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.mexx-card__swatch {
    width: 34px;
    height: 42px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: inline-block;
}
.mexx-card__swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mexx-card__swatch.is-current { border-color: #000; }
