/* ==========================================================
General SMT Trading
Spare Parts Section
========================================================== */

.smt-spare-parts-section {

    position: relative;

    width: 100%;

    /*
     * Keep the spare parts section itself below
     * the fixed navbar when using anchor navigation.
     */
    scroll-margin-top: 90px;

    padding: 0 0 120px;

    background: transparent;

}


/* ==========================================================
Spare Parts Wrapper
========================================================== */

.smt-spare-parts-wrapper {

    width: min(1400px, 92%);

    margin: 0 auto;

}


/* ==========================================================
Spare Parts Header
========================================================== */

.smt-spare-parts-header {

    width: min(820px, 92%);

    min-height: calc(100vh - 90px);

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    box-sizing: border-box;

    padding: 80px 0;

}


.smt-spare-parts-eyebrow {

    display: inline-block;

    margin-bottom: 18px;

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: .22em;

    text-transform: uppercase;

    color: var(--text-soft);

}


.smt-spare-parts-title {

    margin: 0;

    font-size: clamp(2.5rem, 4vw, 4.2rem);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -2px;

    color: var(--text);

}


.smt-spare-parts-title .gradient {

    background: var(--accent-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}


.smt-spare-parts-description {

    max-width: 680px;

    margin: 24px auto 0;

    font-size: 1.08rem;

    line-height: 1.7;

    color: var(--text-soft);

}


/* ==========================================================
Spare Parts Container
========================================================== */

.smt-spare-parts-container {

    display: flex;

    flex-direction: column;

    gap: 0;

}


/* ==========================================================
Spare Parts Category
========================================================== */

.smt-spare-parts-category {

    min-height: calc(100vh - 110px);

    box-sizing: border-box;

    scroll-margin-top: 110px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.smt-spare-parts-category-header {

    max-width: 760px;

    margin-bottom: 35px;

}


.smt-spare-parts-category-label {

    display: inline-block;

    margin-bottom: 10px;

    font-size: .7rem;

    font-weight: 700;

    letter-spacing: .20em;

    text-transform: uppercase;

    color: var(--text-soft);

}


.smt-spare-parts-category-title {

    margin: 0;

    font-size: clamp(2rem, 3vw, 3rem);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -1px;

    color: var(--text);

}


/* ==========================================================
Spare Parts Grid

Maximum 4 cards per row.

Cards remain centered.
Incomplete rows are automatically centered.
========================================================== */

.smt-spare-parts-grid {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 24px;

}


/* ==========================================================
Spare Part Card Width

Four cards maximum per row.

The width is calculated against the available
container width while accounting for the three
horizontal gaps between four cards.
========================================================== */

.smt-spare-part-card {

    width: calc(
        (100% - 72px) / 4
    );

    box-sizing: border-box;

}


/* ==========================================================
Spare Part Card
========================================================== */

.smt-spare-part-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 460px;

    padding: 28px;

    border: 1px solid var(--card-border);

    border-radius: 26px;

    background: var(--glass-background);

    backdrop-filter: blur(18px);

    overflow: hidden;

    cursor: pointer;

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal),
        box-shadow var(--transition-normal);

}


.smt-spare-part-card:hover {

    transform: translateY(-6px);

    border-color: var(--card-border-hover);

    background: var(--card-color);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .16);

}


/* ==========================================================
Spare Part Image Area
========================================================== */

.smt-spare-part-card-image {

    width: 100%;

    height: 250px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 24px;

}


.smt-spare-part-card-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 35px rgba(0, 0, 0, .30)
        );

    transition:
        transform var(--transition-normal);

}


.smt-spare-part-card:hover
.smt-spare-part-card-image img {

    transform: scale(1.04);

}


/* ==========================================================
Spare Part Information
========================================================== */

.smt-spare-part-card-category {

    margin-bottom: 7px;

    font-size: .68rem;

    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;

    color: var(--text-soft);

}


.smt-spare-part-card-title {

    margin: 0;

    font-size: 1.45rem;

    font-weight: 800;

    line-height: 1.15;

    color: var(--text);

}


.smt-spare-part-card-description {

    margin: 14px 0 0;

    font-size: .94rem;

    line-height: 1.6;

    color: var(--text-soft);

}


/* ==========================================================
Spare Part Card Action
========================================================== */

.smt-spare-part-card-action {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: auto;

    padding-top: 24px;

    font-size: .85rem;

    font-weight: 700;

    color: var(--text);

}


.smt-spare-part-card-action i {

    transition:
        transform var(--transition-fast);

}


.smt-spare-part-card:hover
.smt-spare-part-card-action i {

    transform: translateX(5px);

}


/* ==========================================================
Empty State
========================================================== */

.smt-spare-parts-empty {

    padding: 40px;

    text-align: center;

    color: var(--text-soft);

}


/* ==========================================================
Responsive
========================================================== */

/* ----------------------------------------------------------
1200px and below
---------------------------------------------------------- */

@media (max-width: 1200px) {

    .smt-spare-part-card {

        width: calc(
            (100% - 48px) / 3
        );

    }

}


/* ----------------------------------------------------------
900px and below
---------------------------------------------------------- */

@media (max-width: 900px) {

    .smt-spare-parts-section {

        padding-top: 0;

    }


    .smt-spare-parts-header {

        min-height: calc(100vh - 70px);

        padding:
            70px 0
            60px;

    }


    .smt-spare-parts-container {

        gap: 80px;

    }


    .smt-spare-part-card {

        width: calc(
            (100% - 24px) / 2
        );

    }

}


/* ----------------------------------------------------------
600px and below
---------------------------------------------------------- */

@media (max-width: 600px) {

    .smt-spare-parts-section {

        padding:
            0 0
            90px;

    }


    .smt-spare-parts-header {

        min-height: calc(100vh - 70px);

        padding:
            60px 20px;

        margin-bottom: 0;

    }


    .smt-spare-parts-grid {

        flex-direction: column;

        align-items: stretch;

    }


    .smt-spare-part-card {

        width: 100%;

        min-height: 430px;

        padding: 24px;

    }

}