/* --- CARDS */

/*.super-card-row{
    padding:0 !important;
    margin:0 !important;
}*/



.me-category-card, .part-card, .category-card {
    background-color: #333 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 200px;
    height: 200px;
    border-radius: 1.2rem;
    margin: 5px;
    box-shadow: 5px 1px 5px gray;
    padding: 0;
    transition: transform 0.2s;
    overflow: hidden;
}

.me-super-card {
    background-color: #333 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 90%;
    min-width: 180px;
    max-width: 225px;
    height: auto;
    min-height: 200px;
    border-radius: 1.2rem;
    margin: 10px; /* Increased margin for spacing */
    letter-spacing: 0.4px;
    line-height: normal;
    font-weight: bold;
    box-shadow: 2px 1px 5px gray;
    padding: 0;
    overflow: hidden;
    transition: all 0.1s ease;
    box-sizing: border-box;
}

.col-md-3 {
    padding: 0px !important;
}

.me-card-img-top {

/*    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: 75px;
    height: 250px;
    border-radius: 0.6rem;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
}

.me-super-card img {
    width: 75%;
    max-height:200px;
    object-fit: contain;
    background-color: transparent;
    border-radius: 3.0em;
    display: block;
    align-content:center;
    margin: auto;
/*    padding-top: 5px;*/
}
.category-image{
/*    padding:15px;
    padding-bottom:0;*/

}



.super-card-text {
    font-size: 2.5em;
    font-weight: 400;
    color: #fff;
    margin-top: 0;
    height: 25%;
    padding: 5px;
    padding-top: 0;
}


.me-super-card:hover, .me-category-card:hover, .part-card:hover, .category-card:hover {
    transform: scale(1.05);
    outline: 1.5px solid #db6400 !important;
}

.me-super-card:active, .me-category-card:active, .part-card:active, .category-card:active {
    box-shadow: 3.5px 1px 5px gray;
    transform: translateY(1px);
}

.me-category-card img, .part-card img, .category-card img {
    width: 50%;
    height: 95%;
    max-height: 180px;
    min-height: 150px;
    height: auto;
    object-fit: contain;
    background-color: transparent;
    border-radius: 1.2rem;
    display: block;
    margin: auto;
    padding-top: 5px;
}

.me-super-card .card-text a,
.me-super-card .card-text a:hover,
.me-super-card .card-text a:visited,
.me-super-card .card-text a:active,
.me-super-card .card-text a:focus,
.me-category-card .card-text a,
.me-category-card .card-text a:hover,
.me-category-card .card-text a:visited,
.me-category-card .card-text a:active,
.me-category-card .card-text a:focus {
    color: inherit !important;
    text-decoration: none !important;
}

.me-category-card {
    width: 20%;
    max-width: 250px;
    min-width: 220px;
}

.part-card {
    width: 200px !important;
    align-content: center;
    justify-content: center;
}



.center-cards {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    position: relative !important;
    margin: auto;
}

.card-display {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    position: relative !important;
    margin: auto;
    align-content: center;
}

.card-text {
    max-height:50px;
    font-size: 1.2em;
    font-weight: normal;
    text-decoration: none !important;
    padding: 0px;
    color: #f8f1f1 !important;
}

.part-description, .category-description {
    display: block;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-weight: bold;
    text-decoration: none;
    vertical-align: bottom;
    padding: 0.8rem;
    text-align: left;
}

.category-description {
    padding: 0px;
}

.card-body {
/*    max-height: 400px;
    overflow-y: auto;*/
}

.col-md-3 {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.card-title {
    margin-bottom: 1rem !important;
    color: #e0e0e0 !important;
    text-decoration: underline;
}


@media (max-width: 768px) {
    .container-fluid {
        margin-top: 25px;
    }

    .super-card-container {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        margin: 5px;
    }

    .me-super-card {
        min-height: 50px;
        margin: 5px;
        width: 100%;
        min-width: 0;
    }

    .super-card-text {

    }
}

@media (max-width: 576px) {
}

@media (max-width: 480px) {
    .container-fluid {
        margin-top: 5px;
    }

    .col-md-3 {
        flex: 0 0 33.333%; /* 3 cards per row: 100% / 3 */
        max-width: 25.333%;
        padding: 2px; /* Reduced from 3px for tighter fit */
        justify-content: center !important;
        box-sizing: border-box; /* Ensure padding doesn't add extra width */
    }

    .me-super-card-container {
        margin: 12px; 
        padding: 0; 
        width: 100%;
        height: 110px;
    }

    .me-super-card {
        width: 100%; /* Full container width */
        max-width: none;
        min-width: 0;
        min-height: 80px;
        /*max-height: 100px;*/
        height: auto;
        margin: 0;
        border-radius: 0.6rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: visible;
    }

        .me-super-card img {
            width: 100%;
            max-height: 100%;
            height: auto;
            object-fit: contain;
            border-radius: 0.6rem;
            display: block;
            padding: 4px; /* Reduced padding for tighter fit */
        }

    .me-card-img-top {
        width: 100%;
        max-width: none;
        min-width: 0;
        max-height: 75px;
        height: auto;
        border-radius: 0.6rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: visible;
    }

    .super-card-text {
        font-size: 1.1em; /* Slightly bigger text for mobile */
        padding: 0; /* Minimal padding */
        text-align: center;
        width: 100%;
        background-color: transparent;
    }

    .category-image {
        padding-left: 5px;
        padding-bottom: 0;
        margin: 0;
    }

    /* Ensure row doesn't wrap prematurely */
    .super-card-row {
        margin: 0;
        display: flex;
        flex-wrap: nowrap; /* Force no wrap on very small screens if needed */
    }

    .me-super-card:hover, .me-category-card:hover, .part-card:hover, .category-card:hover {
        transform: scale(1.05);
        outline: 1.5px solid #db6400 !important;
    }

    .me-super-card:active, .me-category-card:active, .part-card:active, .category-card:active {
        box-shadow: 3.5px 1px 5px gray;
        transform: translateY(1px);
    }
}