.hero-content {
    background-color: #fff;
    padding: 20px;
}
/* Wholesale Page Styling */
.wholesale-container {
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Header Styling */
.hero-content h1 {
    font-size: 2.5rem;
    color: #004080;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 0px;
}

/* B2B Search Styling */
.b2b-search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.b2b-search-container input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease;
}

.b2b-search-container input:focus {
    border-color: #004080;
    outline: none;
}

.b2b-search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
}

.b2b-search-container button:hover {
    color: #004080;
}

/* Product Grid */
.wholesale-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-height: 620px; /* Approx 2 rows (300px per row + margins) */
    overflow-y: auto; /* Scrollbar for additional rows */
    padding-right: 10px; /* Space for scrollbar */
}

/* Custom Scrollbar */
.wholesale-products-grid::-webkit-scrollbar {
    width: 8px;
}

.wholesale-products-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wholesale-products-grid::-webkit-scrollbar-thumb {
    background: #004080;
    border-radius: 4px;
}

.wholesale-products-grid::-webkit-scrollbar-thumb:hover {
    background: #003060;
}

.product-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-item img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 10px;
    font-weight: 600;
}

.product-item p {
    font-size: 1rem;
    color: green;
    margin: 0 0 15px;
    font-weight: 600;
}

/* Existing styles above... */

/* Custom Checkbox Styling */
.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 10px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox .checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #004080;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #004080;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #e6f0fa;
}

.custom-checkbox input:checked:hover ~ .checkmark {
    background-color: #003060;
}

.custom-checkbox .select-text {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-checkbox:hover .select-text {
    color: #004080;
}

/* Existing styles below... */
.quantity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #003060;
}

.quantity-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.product-item input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
}

.product-item input[type="number"]:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Form Styling */
.inquiry-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.inquiry-form h3 {
    font-size: 1.75rem;
    color: #004080;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #004080;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.flex-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.flex-group > div {
    flex: 1;
    min-width: 200px;
}

#total-price {
    font-size: 1.2rem;
    color: #004080;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
}

#bulk-inquiry-form button[type="submit"] {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 12px;
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #003060;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wholesale-container {
        padding: 20px 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    .product-wrapper {
        padding: 0px 20px;
    }

    .inquiry-form h3 {
        font-size: 1.5rem;
    }

    .product-item {
        padding: 15px;
    }

    .product-item img {
        height: 120px;
    }

    .wholesale-products-grid {
        max-height: 600px; /* Adjusted for mobile */
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Two columns on mobile */
    }

    .flex-group {
        flex-direction: column;
        gap: 15px;
    }

    button[type="submit"] {
        width: 100%;
        max-width: 300px;
    }

    .b2b-search-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    .product-wrapper {
        padding: 0px 20px;
    }
    .product-item h3 {
        font-size: 1.1rem;
    }

    .product-item p {
        font-size: 0.9rem;
    }

    .inquiry-form {
        padding: 20px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .product-item input[type="number"] {
        width: 50px;
    }

    .flex-group > div {
        min-width: 100%;
    }

    .wholesale-products-grid {
        max-height: 700px; /* Adjusted for mobile two-column layout */
    }
}