/* =========================================================
   MDM footer + home "shop by category" (plain CSS, no build step)
   ========================================================= */

/* ---------- Footer ---------- */
.mx-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(4.5rem, 9vw, 7.5rem);
    background: #050913;
    color: rgba(225, 233, 255, 0.7);
}

.mx-footer__glow {
    position: absolute;
    width: 70vw;
    height: 70vw;
    left: 50%;
    bottom: -45vw;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(50, 119, 216, 0.4), rgba(124, 92, 255, 0.15) 60%, transparent);
    filter: blur(30px);
    pointer-events: none;
}

.mx-footer__inner {
    position: relative;
    z-index: 1;
}

.mx-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 3rem clamp(2rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mx-footer__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #5ee7ff;
}

.mx-footer__headline {
    margin: 0 0 2rem;
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.mx-footer__headline em {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    color: #8fb6ff;
}

.mx-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.55rem 0.5rem 1.5rem;
    border-radius: 999px;
    color: #050913 !important;
    font-weight: 600;
    text-decoration: none !important;
    background: #fff;
    transition: box-shadow 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mx-footer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(94, 231, 255, 0.55);
}

.mx-footer__cta-icon {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #3277d8, #7c5cff);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mx-footer__cta:hover .mx-footer__cta-icon {
    transform: rotate(-45deg);
}

.mx-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.mx-footer__h {
    margin: 0 0 1.1rem;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mx-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mx-footer__cols li + li {
    margin-top: 0.7rem;
}

.mx-footer a {
    color: rgba(225, 233, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.mx-footer__cols a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color 0.3s, background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    word-break: break-word;
}

.mx-footer a:hover {
    color: #fff !important;
}

.mx-footer__cols a:hover {
    background-size: 100% 1px;
}

.mx-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.75rem 0;
    font-size: 0.88rem;
}

.mx-footer__bottom p {
    margin: 0;
}

.mx-footer__bottom ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

.mx-footer__top-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-weight: 600;
}

.mx-footer__word {
    position: relative;
    margin-bottom: -0.18em;
    text-align: center;
    font-size: clamp(7rem, 30vw, 26rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.07em;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .mx-footer__top {
        grid-template-columns: 1fr;
    }
}

/* ---------- Home: shop by category ---------- */
.mx-cats {
    position: relative;
    padding: clamp(4.5rem, 10vw, 8rem) 0;
    background: var(--bs-body-bg);
}

.mx-cats__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.mx-cats .mx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #3277d8;
}

.mx-cats__title {
    margin: 0;
    font-size: clamp(2.2rem, 5.5vw, 4.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.mx-cats__all {
    font-weight: 600;
    text-decoration: none !important;
}

.mx-cats__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid color-mix(in srgb, var(--bs-emphasis-color) 14%, transparent);
}

.mx-cats__item {
    border-bottom: 1px solid color-mix(in srgb, var(--bs-emphasis-color) 14%, transparent);
}

.mx-cats__row {
    position: relative;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: clamp(1.25rem, 3vw, 2.1rem) clamp(0.5rem, 2vw, 1.5rem);
    color: var(--bs-emphasis-color) !important;
    text-decoration: none !important;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.45s;
}

.mx-cats__row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, #050913 0%, #0e1f44 60%, #3277d8 140%);
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.mx-cats__row:hover {
    color: #fff !important;
}

.mx-cats__row:hover::before {
    transform: scaleY(1);
    transform-origin: 50% 0;
}

.mx-cats__num {
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.55;
}

.mx-cats__name {
    font-size: clamp(1.7rem, 4.6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mx-cats__row:hover .mx-cats__name {
    transform: translateX(0.6rem);
}

.mx-cats__subs {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.9rem;
    opacity: 0.6;
}

.mx-cats__count {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px currentColor;
    opacity: 0.75;
}

.mx-cats__arrow {
    display: inline-grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s, color 0.4s;
}

.mx-cats__row:hover .mx-cats__arrow {
    transform: rotate(-45deg);
    background: #fff;
    color: #050913;
}

/* Floating preview that follows the cursor */
.mx-cats__preview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: 15rem;
    aspect-ratio: 4 / 5;
    padding: 1.25rem;
    border-radius: 1.4rem;
    background: radial-gradient(120% 90% at 30% 10%, #fff, #e3eaf5);
    box-shadow: 0 30px 60px -20px rgba(5, 9, 19, 0.55);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6) rotate(-8deg);
    transition: opacity 0.35s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mx-cats__preview.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.mx-cats__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@media (max-width: 767.98px) {
    .mx-cats__row {
        grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    }

    .mx-cats__count {
        display: none;
    }

    .mx-cats__arrow {
        width: 2.6rem;
        height: 2.6rem;
    }
}

@media (hover: none) {
    .mx-cats__preview {
        display: none;
    }
}

.mx-footer .mx-footer__cta,
.mx-footer .mx-footer__cta:hover {
    color: #050913 !important;
}
