/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

a {
    color: white;
    text-decoration: none;
}

h5 {
    font-weight: bold;
}

.main-content {
    margin: 20px;
}

.product-detail {
    padding: 20px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-detail img {
    max-width: 100%;
    height: auto;
}

.icons img {
    width: 24px;
    margin-left: 10px;
}

.card {
    padding: 5px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.price {
    font-size: 20px;
    color: red;
    margin: 10px 0;
}

.description {
    color: gray;
    font-size: 14px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #0000FF;
    color: white;
}

.footer .row {
    flex-wrap: nowrap;
    justify-content: center;
}

.footer .col-auto {
    flex: 1;
    text-align: center;
    font-size: 16px;
}

button, .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: white;
    color: #0000FF;
    border: none;
    cursor: pointer;
}

button svg, .btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Search bar wrapper */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    padding-right: 40px; /* Extra padding to accommodate the icon */
}

.search-icon {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none; /* Prevent icon from being clickable */
}

/* Form Inline */
.form-inline {
    display: flex;
    width: 100%;
    align-items: center;
}

.form-inline .input-group {
    width: 100%;
}

.form-inline input {
    flex-grow: 1;
}

.form-inline button {
    width: 50px; /* Fixed button width */
}

.form input, textarea {
    width: 100%;
}

.list-group a {
    color: gray;
}

.container-category {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 5px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Allow list-group items to wrap when they exceed container width */
.container-category .list-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.container-category .list-group-item {
    flex: 1 1 auto;
    min-width: 100px;
    text-align: center;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 5px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-list img {
    max-width: 50%;
    object-fit: cover;
}

.list-detail {
    max-width: 50%;
    padding-left: 20px;
    box-sizing: border-box;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
    .form-inline {
        flex-wrap: nowrap;
    }

    .form-inline .input-group,
    .form-inline input {
        width: 100%;
    }

    .product-list img, 
    .list-detail {
        max-width: 100%; /* Stacks the image and details on small screens */
    }

    .product-detail {
        padding: 10px;
    }
}

.carousel-inner .d-flex {
    flex-wrap: nowrap; /* Prevents wrapping */
}
.promo-image {
    max-width: 100%;
    height: auto;
    display: block;
}
.promo-text {
    text-align: left;
}
