body {
    margin: 0;
    padding: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #f1f2d8;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures body takes up full viewport height */
}

main {
    flex: 1 0 auto; /* Allows main content to grow and push footer down */
    width: 100%;
}

/*HEADER*/
.usernamedisplay{
    display: flex;
    justify-content: center;
    text-align: center;
    color: black;  
    font-size: 20px;
    font-family: "Bebas Neue", serif;    
    margin: 0;
    white-space: nowrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust spacing between the image and text */
}

.logo-image {
    height: 40px; /* Adjust size as needed */
    width: auto; /* Keep aspect ratio */
}

.logo img {
    height: 40px; /* Adjust logo size */
}

header {
    background-color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure the header uses the full width */
    flex-wrap: wrap;
}

/* Navigation Bar Styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Icons in Navigation */
.icons {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Font Awesome Icon Styles */
.icon-profile, .home, .cart {
    font-size: 1.6rem;
    color: black;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
}

.icon-profile:hover, .home:hover, .cart:hover {
    transform: scale(1.1);
    color: orange;
}

.search-bar {
    padding: 8px 12px;
    border-radius: 25px;
    border: 1px solid #ccc; /* Add border with a light grey color */
    outline: none;
    font-size: 1rem;
    width: 300px;
    background-color: #FFFFFF;
}
/*END OF HEADER*/
.container-fluid {
    margin-top: 20px;
}

.form-check-input {
    margin-right: 10px;
}

.filter-section {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Updated Product Card Styling */
.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 20px;
    padding: 15px;
    text-align: center;
    height: 260px; /* Fixed height to make cards uniform */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 120px; /* Fixed height for images */
    object-fit: contain;
    margin-bottom: 10px;
}

.product-card h5 {
    font-size: 0.95em;
    margin: 8px 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card p {
    font-size: 0.85em;
    margin: 5px 0;
    color: #333;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

/* Remove the add-to-cart button styles since we're making the whole card clickable */
.product-card .add-to-cart {
    display: none;
}

/* Variant styling adjustment */
.product-card .variant-options {
    display: none; /* Hide variants in card view */
}

/* Link styling for product cards */
.product-card-link {
    text-decoration: none;
    color: inherit;
}

/* Filter Section */
.filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-container i {
    font-size: 1.5rem;
    cursor: pointer;
}

.category-dropdown {
    background-color: #1F4529;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* No products message styling */
#no-products-message {
    display: none;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    color: #FF8666;
    font-family: "Bebas Neue", serif;
}

.container {
    flex: 1 0 auto; /* Ensures container grows to fill space */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px; /* Optional: limits container width */
    margin: 0 auto; /* Centers the container */
}

/* Footer */
footer {
    background-color: white;
    color: black;
    padding: 30px 30px;
    display: flex;
    flex-direction: column; /* Stack footer elements vertically */
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 200px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.footer-logo {
    height: 150px; /* Adjust according to your logo size */
}

.footer-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.footer-right {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    font-family: "Bebas Neue", serif !important;
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-nav a {
    color: black;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons {
    display: flex;
    text-align: left;
    flex-direction: column; /* Keeps the SOCIALS text on top and icons underneath */
    align-items: flex-start; /* Aligns items to the left */
    font-size: 20px;
    font-family: "Bebas Neue", serif;
    color: black;
    text-decoration: none;
    padding: 0;
}

.social-icons p {
    margin-bottom: 8px;
}

.social-icons a {
    margin-bottom: 8px;
    color: black;
}

.social-icons a:hover, .footer-nav a:hover {
    transform: scale(1.1);
    color: orange;
}

.footer-center {
    text-align: center;
    width: 100%;
    font-size: 14px;
    opacity: 0.8;
}

/* Media Queries for Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        justify-content: center;
        align-items: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #E8ECD7;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #FF8666;
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #1F4529;
}

/* Modal */
.modal-body {
    text-align: justify;
    align-items: center;
    border-radius: 30px;
}

.modal-header {
    color: whitesmoke;
}

.modal-dialog {
    max-width: 40%; /* Adjust as needed */
}

.modal-content {
    max-height: 50vh; /* Adjust height */
    overflow-y: auto; /* Enables scrolling if content is too long */
}