.item_modal_click {
    text-decoration: none !important;
}

#item-card {

    /* Ensure entire card is wrapped with the link */
    .card-link {
        text-decoration: none;
        color: inherit;
    }

    .card-link:hover .card {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-5px);
    }

    /* Card image styling */
    .card-img-top {
        height: 200px;
        width: 100%; /* Ensure the image fills the width of the card */
        object-fit: contain; /* Ensure the image fits entirely within the height and width */
        border-radius: 5px 5px 0 0;
    }

    /* Title and text alignment */
    .card-body h5 {
        font-size: 1.35rem;
        font-weight: normal;
        margin-bottom: 0 !important;
    }

    .card-body p {
        font-size: 1rem;
        color: #666;
    }

    .card-body {
        border-left: rgb(243, 243, 243) solid 1px !important;
        border-right: rgb(243, 243, 243) solid 1px !important;
        border-bottom: rgb(243, 243, 243) solid 1px !important;
    }

    /* Footer area styling */
    .card-footer {
        background-color: #b42121e1;
        color: #f0f0f0;
        padding: 10px;
        transition: background-color 0.3s ease;
        border: none;
        font-weight: bold;
    }

    .card:hover .card-footer.clickable-footer {
        background-color: #a51d1d;

    }

    /* Responsive Design Adjustments */
    @media (max-width: 767px) {
        .card-img-top {
            height: 150px;
        }

        .card-body h5 {
            font-size: 1.2rem;
        }

        .card-body p {
            font-size: 0.9rem;
        }
    }

    /* Additional Styles */
    .card {
        border: none;
        border-radius: 5px;
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        margin-bottom: 1.2rem;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }


}

/* #region Modal */
#ItemModal .col {
    padding-top: 15px;
}

/* #region Gallery */

#ItemModal .wrapper {
    max-height: 400px;
    overflow: hidden;
}

#ItemModal .wrapper.overflow {
    overflow-y: auto;
}

@media (max-width: 1199px) {
    #ItemModal .wrapper {
        margin-top: 10px;
    }

    #ItemModal .main-image {
        align-items: center;
        padding-left: 5px;
    }
}


/* Hide .gallery on screens narrower than 1200px */
@media (max-width: 1199px) {
    #ItemModal .gallery {
        display: none !important;
        /* Hide .gallery on screens narrower than 1200px */
    }

    #ItemModal .gallery-phone {
        display: block !important;
        /* Show .gallery-phone on screens narrower than 1200px */
    }
}

/* Hide .gallery-phone on screens wider than or equal to 1200px */
@media (min-width: 1200px) {
    #ItemModal .gallery-phone {
        display: none !important;
        /* Hide .gallery-phone on screens 1200px and wider */
    }

    #ItemModal .gallery {
        display: flex !important;
        /* Show .gallery on screens 1200px and wider */
    }
}


.showcase-img {
    display: block;
    /* Ensures that the image is displayed as a block element */
    margin: 0 auto;
    /* Centers the image horizontally */
    max-width: 100%;
    /* Ensures the image doesn't overflow the container */
    height: auto;
    /* Keeps the image's aspect ratio */
}

/* Media queries for different screen sizes */
@media (max-width: 576px) {

    /* Small devices (phones) */
    .showcase-img {
        width: 200px;
        /* Set specific width for small screens */
        height: 200px;

    }
}

@media (min-width: 577px) and (max-width: 768px) {

    /* Medium devices (tablets) */
    .showcase-img {
        width: 300px;
        /* Set specific width for medium screens */
        height: 300px;

    }
}

@media (min-width: 769px) and (max-width: 992px) {

    /* Large devices (desktops) */
    .showcase-img {
        width: 400px;
        /* Set specific width for large screens */
        height: 100%;

    }
}

@media (min-width: 993px) {

    /* Extra large devices (large desktops) */
    .showcase-img {
        width: 400px;
        /* Set specific width for extra large screens */
        height: 400px;

    }
}


#ItemModal .gallery {
    display: flex;
    justify-content: space-between; /* Changed from center to space-between */
    height: 100%;
    padding: 0; /* Remove any default padding */
    gap: 10px; /* Add a specific gap between thumbnail column and main image */
}

#ItemModal .main-image {
    align-items: center;
    padding-left: 0; /* Remove the 5px padding */
    flex-grow: 1; /* Allow main image to take available space */
}

#ItemModal .main-image img {
    transition: transform 0.3s ease;

    object-fit: contain !important;
    /* Ensures the image fits within the container without cropping */
}

#ItemModal .thumbnails {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-basis: auto; /* Let it take natural width based on content */
    flex-shrink: 0; /* Prevent shrinking */
    padding-right: 5px; /* Add space for scrollbar */
}

#ItemModal .thumbnail {
    width: auto;
    height: 100px;
    margin-bottom: 10px;
}

#ItemModal #mainImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 400px;
}

#ItemModal .gallery-phone .scroll-container {
    overflow-x: auto;
    overflow-y: none;
    white-space: nowrap;
    height: 100%;
}

#ItemModal .gallery-phone .scroll-container img {
    padding-left: 2px;
}

#ItemModal .thumbnail:hover {
    opacity: 0.75;
}

#ItemModal .thumbnail.selected {
    opacity: 0.5;
    border: 1px solid rgb(104, 104, 104);
}

.disabled-placeholder {
    color: rgb(105, 105, 105) !important;
}

.disabled-label {
    color: grey !important;
}

.close-modal-btn {
    background-color: red;
    /* Set background color to red */
    color: white;
    /* Set text color to white */
    border: none;
    /* Remove the border */
    font-size: 1rem;
    /* Adjust font size as needed */
    cursor: pointer;
    /* Change cursor to pointer */
}

.close-modal-btn:hover {
    background-color: rgb(190, 0, 0);
    /* Darken the background color on hover */
    color: #f8f9fa;
    /* Lighten the text color on hover */
}

.close-modal-btn:focus {
    outline: none;
    /* Remove focus outline */
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
    /* Optional: Add a focus shadow */
}

/* #endregion */

/* #region Title/Desc */

#ItemModal .title {
    font-weight: bold;
}

.description {
    background-color: #f9f9f9;
    /* Light grey background */
    border: 1px solid #e0e0e0;
    /* Light grey border */
    border-radius: 8px;
    /* Rounded corners */
    padding: 14px;
    /* Padding inside the box */
    font-size: 16px;
    /* Slightly smaller font size */
    color: #202020;
    /* Dark grey text color */
    line-height: 1.4;
    /* Better line spacing */
}

.description p {
    margin: 0;
    /* No margin for paragraphs inside the description */
}


/* #endregion */

/* #region Finishes Table */

#modal-table .selectable-row:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* #endregion */

/* #region Options Titles and Content Sections */

#ItemModal .option-title {
    font-size: 1.25rem;
    cursor: pointer;
    padding: 10px 20px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

#ItemModal .option-title.active {
    font-weight: bold;
    border-color: #007bff;
}

#ItemModal .content-section {
    display: none;
}

#ItemModal .content-section.active {
    display: block;
}

#ItemModal #options-list a.active {
    font-weight: bold;
}

.bordered-content {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding-left: 15px;
    padding-right: 15px;
}


.pastel-card {
    background-color: #fafafa;
    border: 1px solid #f1cfcf;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 92%;
}

#ItemModal .card-title {
    color: #b81919;
    margin-bottom: 1rem;
}

.form-group label {
    color: #e65858;
    font-weight: bold;
    padding-bottom: 4px;
}

.attribute-dropdown {
    border: 1px solid #e6e6e6;
    border-radius: 4px;
}

.attribute-dropdown:focus {
    box-shadow: none;
}


@media (max-width: 1199px) {
    .pastel-card {
        margin-top: 26px !important;
        width: 100%;
    }

    #modalContent {
        padding-left: 14px;
        padding-right: 14px;
    }

    #ItemModal .description {
        width: 90%;
    }
}

@media (max-width: 993px) {
    #ItemModal .description {
        font-size: 16px !important;
    }

    #modalContent {
        padding-top: 8px;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

.login-required-button {
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;

}

.login-required-button i {
    margin-right: 8px;
}

.login-item-row .login-item-col {
    padding: 10px;
    /* Overall padding */
}

.login-item-row .login-item-col:not(:first-child) {
    padding-left: 5px;
    /* Left padding between columns */
}

.login-item-row .login-item-col:not(:last-child) {
    padding-right: 5px;
    /* Right padding between columns */
}


.login-required-button:active {
    transform: scale(0.98);
}

#login-price-button {
    background-color: rgb(35, 167, 35);
    border: 2px solid rgb(35, 167, 35);
}

#login-price-button:hover {
    background-color: white;
    color: rgb(32, 161, 32);
}

#login-price-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.5);
}


#item-enquire-button {
    width: 100%;
    background-color: rgb(59, 61, 59);
    border: 2px solid rgb(59, 61, 59);
}

#item-enquire-button:hover {
    background-color: white;
    color: rgb(59, 61, 59);
}

#item-enquire-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 61, 59, 0.548);
}

#item-enquire-button:disabled {
    outline: none;
    color: white;
}


#variation-price {
    background-color: rgb(35, 167, 35);
    color: white;
    border: 2px solid rgb(35, 167, 35);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 16px;
    display: inline-block;
}


.error-message {
    display: none;
}

/* #endregion */
#ItemModal {
    .categories-list {
        padding-top: 2px;
        padding-bottom: 5px;
        padding-left: 0px;
        padding-right: 0px;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .category-link {
        display: inline-block;
        padding: 5px 10px;
        font-size: 12px;
        /* Adjust font size as needed */
        color: #242424;
        /* Bootstrap primary color or your preferred color */
        text-decoration: none;
        border: 1px solid #6d6e6e;
        /* Border color matching the link color */
        border-radius: 12px;
        /* Rounded corners */
        background-color: #f8f9fa;
        /* Light background color */
        transition: background-color 0.3s, color 0.3s;
        /* Smooth transition for hover effects */
    }

    .category-link:hover {
        background-color: #353535;
        /* Darker background on hover */
        color: #fff;
        /* White text on hover */
    }
}