/* Font family for store page - background handled by Bootstrap */
.store-body {
    font-family: 'Montserrat', sans-serif;
}
#orderSelect {
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 20px;
    display: block;
    color: #333;
}

.product-link {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
    display: block; /* Ensure the link takes the entire space of the product div */
    display: flex;
    flex-wrap: wrap;
    width: calc(33.333% - 20px); /* Adjust width minus gap for 3 in a row */
}

/* Old container styles disabled - using Bootstrap instead */
.old-container {
    display: flex;
    justify-content: center; /* Center the children horizontally */
    padding: 2em; /* Space from the edges of the viewport */
}
.sidebar-label{
    font-weight: bold;
    font-size: 25px;
}
span {
    font-weight: bold;
    font-size: 20px;
}
/* Old sidebar styles disabled - using Bootstrap instead */
.old-sidebar {
    font-size: smaller;
    width: 22%; /* Sidebar takes up 20% of the container width */
    background-color: #fff; /* White background for the sidebar */
    margin-right: 2em; /* Space between the sidebar and products */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Shadow for floating effect */
    padding: 1em;
    box-sizing: border-box;
    overflow-y: auto; /* Scrollable content */
    max-height: 90vh; /* 90% of the viewport height */
    font-size: 15px; /* Larger text for the filters */
    overflow-x: hidden;
}

/* Old products styles disabled - using Bootstrap instead */
.old-products {
    flex-grow: 1; /* Products section takes remaining space */
    max-width: 78%; /* Limits the width of the product list */
    background-color: #fff; /* White background for products */
    padding: 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Shadow for floating effect */
    box-sizing: border-box;
    overflow-y: hidden; /* Scrollable content if it overflows */
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
  }
  .product {
    border: 2px solid black;
    border-radius: 5px;
    width: 100%; /* Adjust width minus gap for 3 in a row */
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
  }
  .product img {
    width: 90%;
    height: auto;
  }
  .product-title {
    font-size: 15px;
    margin: 10px 0;
  }
  .product-price {
    font-size: 13px;
    color: #333;
  }

.filter-title, .filter-subtitle {
    font-weight: bold; /* Bold font for titles */
    font-size: 40px; /* Bold font for titles */
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 25px;
}

.filter-option label {
    display: block; /* Labels on their own line */
    margin: 0.3em 0; /* Space above and below the label */
    font-size: 20px;
}

.filter-option {
    display: flex;
    align-items: center; /* This will vertically center the label with the checkbox */
    margin-bottom: 0.5em;
}

.filter-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.5);
    border-radius: 100%; /* Make it round */
    border: 3px solid #333; /* Add border */
    background-color: #fff; /* Set background color */
    cursor: pointer; /* Show pointer cursor */
    /* Customize checkbox styles if needed */
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack the sidebar and products */
    }
    .product-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    .sidebar, .products {
        max-width: 100%; /* Full width on smaller screens */
        max-height: unset; /* Remove max-height on smaller screens */
        margin-right: 0; /* Remove margin between sidebar and products */
    }
    .product-grid {
        display: block;
    }
    .container{
        width: 100%;
    }

    
    .product-link {
        text-decoration: none; /* Remove underline from links */
        color: inherit; /* Inherit text color */
        display: block; /* Ensure the link takes the entire space of the product div */
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .product {
        border: 2px solid black;
        border-radius: 5px;
        text-align: center;
        
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    .sidebar {
        font-size: x-large;
        font-weight: bold;
        width: 100%; /* Sidebar takes up 20% of the container width */
    }
    .filter-title, .filter-subtitle {
        font-size: 30px;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .filter-option label {
        font-size: 20px;
    }
}

/* Bootstrap override for products page */
.products-page {
    min-height: 100vh;
}

/* Ensure Bootstrap components work properly */
.products-page .btn {
    transition: all 0.3s ease !important;
}

.products-page .card {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.products-page .form-select,
.products-page .form-range,
.products-page .form-check-input {
    border-color: #4a7c59 !important;
}

.products-page .form-select:focus,
.products-page .form-range:focus {
    border-color: #2d5a27 !important;
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25) !important;
}

/* Product grid styles for Bootstrap layout */
.products-page .product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    padding: 0 !important;
}

@media screen and (max-width: 768px) {
    .products-page .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 15px !important;
    }
}
