body {
    font-family: 'Questrial', sans-serif;
    font-size: 12px;
    overflow: auto;
    min-height: 100vh; /* Ensure content can expand beyond viewport */
}

.custom-container {
    background-color: rgba(0, 0, 0, 0.75); /* Translucent black */
    color: white;
    padding: 20px;
    border-radius: 10px;
    min-height: 800px; /* Allows content to grow without restricting scrolling */
}

.products-container {
    margin: 0 auto 50px;
    overflow: auto; /* Ensures content inside can scroll */
}

.product-card {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    justify-content: space-between;

}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limits to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 100px; /* Fixed height */
    line-height: 15px; /* Ensures text spacing fits inside the 30px limit */
    text-overflow: ellipsis; /* Adds "..." if content overflows */
    white-space: normal; /* Allows wrapping */
}

.container-fluid {
    display: flex;
}

.sidebar {
    min-height: 100vh;
}

main {
    padding: 20px;
}

/* Buttons */
.btn-outline-secondary {
    border: 1px solid white;
    background: transparent;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color .2s, color .2s;
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: black;
}

.custom-back-button,
.enquire-button {
    background-color: black;
    color: white;
    border: 2px solid white;
    padding: 10px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-back-button:hover,
.enquire-button:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

/* Price Styling */

.product-card .title {
    font-size: 20px;
    font-weight: 400;
    color: white;
    margin-bottom: 1rem;
}
.product-card .price {
    font-size: 20px;
    font-weight: 400;
    color: white;
    margin-bottom: 1rem;
}

.product-card .stock_on_hand {
    font-size: 16px;
    font-weight: 400;
    color: white;
    margin-bottom: 1rem;
}

p.price-large {
    font-size: 1.9rem;
    font-weight: 700;
    color: #B8860B;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Form Styles */
.form-control {
    font-size: 20px;
    width: 100%;
    max-width: 500px;
    resize: none !important;
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%; /* Ensures it adjusts dynamically */
}

.product-image-box {
    width: 250px;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    padding-top:20px;
    display: flex;
    justify-content: center;
}


.card.p-4 {
    min-height: 100%; /* Matches the height dynamically */
}

/* Pagination */
.paginator {
    font-size: 17px;
    color: white;
    background-color: rgba(0, 0, 0, 0.45);
}

.paginator ul.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.paginator ul.pagination li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.paginator ul.pagination li a:hover {
    color: #e47911;
}

.pagination .active a {
    background-color: black !important;
    color: white !important;
    font-weight: bold;
    border-radius: 5px;
}

body.contact-page {
    position: relative;
    min-height: 100vh;
    background-color: transparent; /* base fallback */
    overflow-x: hidden;
    font-family: 'Questrial', sans-serif;
}

body.contact-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

#filter-slider small {
    color: #ffffff;
}

#filter-toggle {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

#filter-toggle:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: black;
}

#filter-slider {
    background: #0000007F;
    color: #333;
    padding: 20px;
    opacity: 0.8;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.slider-value {
    position: absolute;
    top: -30px; /* Adjusts position above the slider */
    white-space: nowrap;
    /*background-color: rgba(0, 0, 0, 0.8);*/
    background-color: #0000007F;
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    transform: translateX(-50%); /* Center-align the value above the thumb */
}
