/* =========================================================
   MATS PAGE
   Purple Leaf Creation
========================================================= */

:root {
    --mats-purple: #5a1768;
    --mats-purple-dark: #3d0d49;
    --mats-purple-light: #f7eff8;
    --mats-text: #222;
    --mats-muted: #6d6d6d;
    --mats-border: #e6e6e6;
}

/* =========================================================
   PAGE
========================================================= */

.mats-page {
    background: #fff;
    color: var(--mats-text);
    overflow: hidden;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.mats-breadcrumb-section {
    background: #fafafa;
    border-bottom: 1px solid #eeeeee;
}

.mats-breadcrumb {
    min-height: 52px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    color: #777;
}

.mats-breadcrumb a {
    color: var(--mats-purple);
    text-decoration: none;
    font-weight: 500;

    transition: color 0.25s ease;
}

.mats-breadcrumb a:hover {
    color: var(--mats-purple-dark);
}

/* =========================================================
   HERO
========================================================= */

.mats-hero {
    position: relative;

    min-height: 440px;

    display: flex;
    align-items: center;

    background: linear-gradient(
            90deg,
            rgba(55, 13, 65, 0.96) 0%,
            rgba(55, 13, 65, 0.562) 38%,
            rgba(55, 13, 65, 0.281) 68%,
            rgba(55, 13, 65, 0.027) 100%
        ),
        url("/images/banner-mats.png") center center / cover no-repeat;
}

.mats-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.12));

    pointer-events: none;
}

.mats-hero .container {
    position: relative;
    z-index: 2;
}

.mats-hero-content {
    max-width: 700px;
    padding: 70px 0;
}

.mats-hero-label {
    display: inline-block;

    margin-bottom: 18px;
    padding: 8px 16px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.mats-hero h1 {
    margin: 0 0 20px;

    color: #fff;

    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 700;

    letter-spacing: -1px;
}

.mats-hero p {
    max-width: 620px;

    margin: 0 0 30px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 16px;
    line-height: 1.8;
}

/* =========================================================
   PRIMARY BUTTON
========================================================= */

.mats-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;

    padding: 13px 24px;

    border: 1px solid var(--mats-purple);
    border-radius: 5px;

    background: var(--mats-purple);
    color: #fff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 600;

    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mats-primary-btn i {
    font-size: 16px;

    transition: transform 0.25s ease;
}

.mats-primary-btn:hover {
    background: var(--mats-purple-dark);
    border-color: var(--mats-purple-dark);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(90, 23, 104, 0.2);
}

.mats-primary-btn:hover i {
    transform: translateX(4px);
}

/* =========================================================
   INTRO
========================================================= */

.mats-intro {
    padding: 80px 0 45px;

    background: #fff;
}

.mats-section-heading {
    max-width: 760px;

    margin: 0 auto 45px;

    text-align: center;
}

.mats-section-heading > span {
    display: block;

    margin-bottom: 12px;

    color: var(--mats-purple);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.mats-section-heading h2 {
    margin: 0 0 15px;

    color: #222;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    font-weight: 700;
}

.mats-section-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: var(--mats-muted);

    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   COLLECTION
========================================================= */

.mats-collection {
    padding: 25px 0 85px;

    background: #fff;
}

.mats-collection-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 32px;
    padding-bottom: 18px;

    border-bottom: 1px solid var(--mats-border);
}

.mats-small-title {
    display: block;

    margin-bottom: 6px;

    color: var(--mats-purple);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.8px;
}

.mats-collection-header h2 {
    margin: 0;

    color: #222;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.mats-product-count {
    color: #777;

    font-size: 13px;

    white-space: nowrap;
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.mats-product-wrapper {
    margin-bottom: 8px;
}

#matsGrid {
    min-height: 50px;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.mats-empty-state {
    max-width: 600px;

    margin: 20px auto 30px;
    padding: 65px 25px;

    border: 1px solid var(--mats-border);
    border-radius: 10px;

    background: #fafafa;

    text-align: center;
}

.mats-empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--mats-purple-light);
    color: var(--mats-purple);

    font-size: 28px;
}

.mats-empty-state h3 {
    margin: 0 0 10px;

    color: #222;

    font-size: 22px;
    font-weight: 700;
}

.mats-empty-state p {
    max-width: 450px;

    margin: 0 auto 25px;

    color: #777;

    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   FEATURES
========================================================= */

.mats-features {
    padding: 85px 0;

    background: #faf7fb;

    border-top: 1px solid #f0e9f1;
    border-bottom: 1px solid #f0e9f1;
}

.mats-feature-card {
    height: 100%;

    padding: 30px 22px;

    border: 1px solid #eadfeb;
    border-radius: 10px;

    background: #fff;

    text-align: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mats-feature-card:hover {
    transform: translateY(-5px);

    border-color: #d9c4dd;

    box-shadow: 0 12px 30px rgba(61, 13, 73, 0.08);
}

.mats-feature-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--mats-purple-light);
    color: var(--mats-purple);

    font-size: 23px;
}

.mats-feature-card h3 {
    margin: 0 0 10px;

    color: #292929;

    font-size: 17px;
    font-weight: 700;
}

.mats-feature-card p {
    margin: 0;

    color: #777;

    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   PROMO
========================================================= */

.mats-promo {
    padding: 80px 0;

    background: #fff;
}

.mats-promo-box {
    position: relative;

    min-height: 330px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-radius: 12px;

    background: linear-gradient(
            90deg,
            rgba(52, 12, 61, 0.96) 0%,
            rgba(52, 12, 61, 0.479) 42%,
            rgba(52, 12, 61, 0.068) 100%
        ),
        url("/images/banner-mats.png") center center / cover no-repeat;
}

.mats-promo-content {
    position: relative;
    z-index: 2;

    max-width: 620px;

    padding: 55px;
}

.mats-promo-content > span {
    display: block;

    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.mats-promo-content h2 {
    margin: 0 0 15px;

    color: #fff;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 700;
}

.mats-promo-content p {
    max-width: 520px;

    margin: 0 0 25px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 14px;
    line-height: 1.8;
}

.mats-promo-content .mats-primary-btn {
    background: #fff;
    border-color: #fff;

    color: var(--mats-purple) !important;
}

.mats-promo-content .mats-primary-btn:hover {
    background: var(--mats-purple-light);
    border-color: var(--mats-purple-light);
}

/* =========================================================
   BACK TO TOP
========================================================= */

.mats-back-to-top {
    position: fixed;

    right: 22px;
    bottom: 25px;

    z-index: 999;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--mats-purple);
    color: #fff;

    font-size: 17px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease;

    box-shadow: 0 6px 18px rgba(61, 13, 73, 0.25);
}

.mats-back-to-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.mats-back-to-top:hover {
    background: var(--mats-purple-dark);
}

/* =========================================================
   PRODUCT REVEAL
========================================================= */

.mats-product-hidden {
    opacity: 0;

    transform: translateY(18px);
}

.mats-product-visible {
    opacity: 1;

    transform: translateY(0);

    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
    .mats-hero {
        min-height: 400px;
    }

    .mats-hero-content {
        max-width: 620px;

        padding: 60px 0;
    }

    .mats-intro {
        padding-top: 65px;
    }

    .mats-features {
        padding: 65px 0;
    }

    .mats-promo {
        padding: 65px 0;
    }

    .mats-promo-content {
        padding: 45px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .mats-breadcrumb {
        min-height: 45px;

        font-size: 12px;
    }

    .mats-hero {
        min-height: 430px;

        background-position: center;
    }

    .mats-hero-content {
        padding: 55px 10px;
    }

    .mats-hero-label {
        margin-bottom: 15px;

        padding: 7px 13px;

        font-size: 9px;

        letter-spacing: 1.5px;
    }

    .mats-hero h1 {
        margin-bottom: 16px;

        font-size: 35px;
        line-height: 1.12;
    }

    .mats-hero p {
        margin-bottom: 25px;

        font-size: 14px;
        line-height: 1.7;
    }

    .mats-primary-btn {
        min-height: 45px;

        padding: 11px 19px;

        font-size: 13px;
    }

    .mats-intro {
        padding: 55px 0 25px;
    }

    .mats-section-heading {
        margin-bottom: 35px;
    }

    .mats-section-heading h2 {
        font-size: 29px;
    }

    .mats-section-heading p {
        font-size: 14px;
        line-height: 1.7;
    }

    .mats-collection {
        padding: 20px 0 60px;
    }

    .mats-collection-header {
        align-items: center;

        margin-bottom: 24px;
    }

    .mats-collection-header h2 {
        font-size: 25px;
    }

    .mats-small-title {
        font-size: 9px;
    }

    .mats-product-count {
        font-size: 12px;
    }

    .mats-features {
        padding: 60px 0;
    }

    .mats-feature-card {
        padding: 25px 15px;
    }

    .mats-feature-icon {
        width: 50px;
        height: 50px;

        font-size: 20px;
    }

    .mats-feature-card h3 {
        font-size: 15px;
    }

    .mats-feature-card p {
        font-size: 12px;
    }

    .mats-promo {
        padding: 50px 0;
    }

    .mats-promo-box {
        min-height: 380px;

        border-radius: 8px;

        background-position: center;
    }

    .mats-promo-content {
        padding: 35px 25px;
    }

    .mats-promo-content h2 {
        font-size: 30px;
    }

    .mats-promo-content p {
        font-size: 13px;
    }

    .mats-back-to-top {
        right: 15px;
        bottom: 18px;

        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .mats-hero {
        min-height: 420px;
    }

    .mats-hero h1 {
        font-size: 31px;
    }

    .mats-hero p {
        font-size: 13px;
    }

    .mats-collection-header {
        display: block;
    }

    .mats-product-count {
        margin-top: 8px;
    }

    .mats-feature-card {
        min-height: 205px;
    }

    .mats-promo-box {
        min-height: 400px;
    }

    .mats-promo-content {
        padding: 30px 20px;
    }

    .mats-promo-content h2 {
        font-size: 27px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .mats-primary-btn,
    .mats-primary-btn i,
    .mats-feature-card,
    .mats-back-to-top,
    .mats-product-visible {
        transition: none;
    }

    .mats-product-hidden {
        opacity: 1;
        transform: none;
    }
}
