/* --------------------------- */

.uniform-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    padding: 0px;
    transition: transform 0.2s;
    position: relative;
    height: 430px; /* Ensure the card takes up full height */
    display: flex;
    align-items: start;
    flex-direction: column; /* Ensures uniform content alignment */
    position: relative; /* Allows absolute positioning of overlay elements */
}

.uniform-card:hover {
    transform: scale(1.00);

}

/* Styling for the uniform name overlay */
.uniform-name-overlay {
    position: absolute;
    bottom: 0; /* Place the overlay at the bottom of the card */
    left: 0; /* Align the overlay to the left */
    width: 100%; /* Make sure the overlay spans the full width of the card */
    height: 70px; /* Set a fixed height for the black bar */
    background-color: rgba(0, 0, 0, 0.8); /* Black background with slight transparency */
    color: white; /* White text */
    display: flex; /* Use flexbox to center the text vertically */
    justify-content: center; /* Horizontally center the text */
    align-items: center; /* Vertically center the text */
    padding: 00px 00px; /* Adjust padding for left/right spacing */
    z-index: 1; /* Ensure the overlay is above the image */
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
    border-radius: 0; /* No rounded corners */
}
/* Ensures the image takes up the full width and height of the card */
.uniform-card img {
    width: 100%;
    height: auto;
    object-fit:cover;
}

.uniform-card img {
    height: auto;
}

/* ------------------------------------- */

.item-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-image-container {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image {
    max-width: 100%;
    height: 100%;
    object-fit:contain;
}

.item-card img {
    width: 100%;
    height: 150px;
    object-fit:contain;
}
.item-description {
    margin: 10px;
    padding: 5px;
    height: 70px;
    display: flex;
    vertical-align:text-bottom;
    background-color: #ffffff; /* Optional: add a background color */
}

/* --------------- */ 

.add-to-cart-btn, button.add-to-cart-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #007bff; /* Change the color of the cart icon */
}

.add-to-cart-btn:hover, button.add-to-cart-btn:hover {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #0056b3;
}
/* ---------------- */

.card-img-top {
    border-radius: 8px;
}

/* Event Card Styles */

.event-card-small {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Full height of column */
    width: 100%; /* Full width of the column */
    margin-bottom: 0;
    background-color: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-card-small:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.event-card-small img {
    height: 250px;     
    width: 100%;    /* Fixed height */
    object-fit: contain;     /* Ensure the image covers the container proportionally */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.event-card-small-body {
    padding: 15px;
    flex-grow: 1;
    color: var(--dark-grey);
}

.event-card-body p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: var(--dark-grey);    
}


.event-card-small-body p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: var(--dark-grey);  
}
