/* style.css */
.navbar {
    background-color: #d6cfcf;
    padding: 1rem;
}

#txtsearch {
    border-radius: 25px;
}

#appText{
    font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size:30px
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.btn-signIn {
    background-color: #72cd3b;
    border: none;
    border-radius: 25px;
    color: white;
}

.btn-signIn:hover {
    background-color: #aaa;
    color: white;
}

.icon-heart:hover {
    color: red;
}

.icon-cart:hover {
    color: #72cd3b;
}

.nav-item {
    margin-right: 15px;
}

.btn-signUp {
    background-color: black;
    color: white;
    border-radius: 25px;
}

.btn-signUp:hover {
    background-color: #ccc;
    color: white;
}

.category-bar-desktop {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.category-bar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
}

.category-item {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    cursor: pointer;
    justify-content: flex-start; 
}

.category-item i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: #72cd3b;
    margin-bottom: 5px;
}

.category-item span {
    font-size: 1rem;
}

.category-item-desktop i {
    font-size: 1.5rem;
    color: #72cd3b;
    margin-bottom: 5px;
}

.category-item-desktop span {
    display: block;
    font-size: 0.8rem;
    color: #333;
}

.category-bar .category-item-desktop:hover i {
    color: #007bff;
}

.offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    z-index: 1050;
    background-color: white;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.offcanvas.show {
    transform: translateX(0);
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensure left-alignment in the sidebar */
}

.category-item i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: #72cd3b;
}

.category-item span {
    font-size: 1rem;
}

.promotion-card {
    height: auto; /* Reduce overall height by making it dynamic */
    display: flex;
    flex-direction: column;
}

.promotion-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.promoimg{
    max-width: 200px;
    max-height: 150px;
}



.categories {
    display: none;
    background-color: #f0f0f0;
    padding: 10px 0;
}

.categories.desktop {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.category {
    text-align: center;
    padding: 10px;
    cursor: pointer;
}

.category img {
    display: block;
    margin: 0 auto;
    width: 40px;
    height: 40px;
}

.category p {
    margin-top: 5px;
}

.categories.mobile {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #f0f0f0;
}

.category-mobile {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    cursor: pointer;
    justify-content: flex-start; 
}

.category-mobile i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.category-mobile span {
    font-size: 1rem;
}

@media screen and (max-width: 1024px) {
    .categories.desktop {
        display: none;
    }

    .categories.mobile {
        display: flex;
    }
}

@media screen and (min-width: 1025px) {
    .categories.desktop {
        display: flex;
    }

    .categories.mobile {
        display: none;
    }
}


.card {
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #28a745;
}

.card-body small {
    font-size: 0.8rem; /* Smaller font for expiry details */
}

.card-img-top {
    object-fit: cover; /* Ensure image fills the space proportionally */
    height: 150px; /* Reduce image height for smaller cards */
    width: 100%; /* Ensure the image spans the card’s width */
}

.btn-block {
    font-size: 0.9rem; /* Slightly smaller button text */
}

.prices {
    display: flex;
    align-items: center; /* Align the text vertically in the same line */
    font-size: 0.95rem; /* Adjust font size for prices */
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.card-body .mt-auto {
    margin-top: auto; /* Push the button to the bottom of the card body */
}

.card-discount {
    color: #dc3545;
    text-decoration: line-through;
    margin-right: 0.5rem; /* Add spacing between discount and price */
    font-size: 0.9rem;
}


.card-save {
    color: #ffc107;
    font-weight: bold;
}



@media screen and (max-width: 1024px) {
    .carousel-item img {
        width: 100%; 
        height: 400px; 
    }
}

@media screen and (min-width: 1024px) {
    .carousel-item img {
        width: 100%; 
        height: 600px; 
    }
}



html {
    scroll-behavior: smooth;
}
