@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
    background-color: #f5f3ef;
    font-family: "Poppins", sans-serif;
    margin-inline: auto;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    font-size: 16px;
    --color-text-primary: 117, 92, 17;
    --color-primary: 191, 176, 131;
    --input-border-color: 0, 0, 0;
}

img {
    user-select: none;
}

.mt-100 {
    margin-top: 120px;
}

.pt-75 {
    padding-top: 0.75rem !important;
}

.gap-y-3 {
    row-gap: 0.75rem;
}

*::-webkit-scrollbar {
    display: none;
}

.logo-wrapper {
    position: fixed;
    background-color: #f5f3ef;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5;
    padding: 0.5rem;
    padding-top: 0.75rem;
}

.logo {
    height: 50px;   /* reduce from 80px → adjust if needed */
    margin-inline: auto;
    width: 100%;
    object-fit: contain;
}


/* Search bar */
.searchInputWrapper {
    position: relative;
}

.searchInput {
    width: 100%;
    height: 2.5rem;
    padding: 0 3rem 0rem 1rem;
    border-radius: 2rem;
    border: none;
    transition: transform 0.1s ease-in-out;
    font-size: 1rem;
    line-height: 1.5rem;
}

::placeholder {
    color: #a1a1a1;
}

:focus::placeholder {
    text-indent: -999px
}

.searchInput:focus {
    outline: none;
}

.searchInputIcon {
    position: absolute;
    right: 0.9rem;
    top: 0.7rem;
    color: #a1a1a1;
    transition: all 0.1s ease-in-out;
}

.container:focus-within>.searchInputWrapper>.searchInputIcon {
    right: 0.2rem;
}

/* End Search bar */

/* Category Scroll */
.scrolling-wrapper-flexbox {
    padding: 1rem;
    overflow-y: hidden;
    overflow-x: auto;
    gap: 0.5rem;
    align-items: stretch;
    display: flex;
    margin-inline: -0.75rem;
}



.scrolling-wrapper-flexbox .category-card {
    flex: 0 0 auto;
}

.category-card {
    row-gap: 0.25rem;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    line-height: 1.25rem;
    padding: 10px;
    border: 1px solid #6a3d35;
    border-radius: 0.75rem;
    white-space: nowrap;
}


.category-card p {
    margin: 0 !important;
    word-break: break-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #93512D;
}


.category-card.active {
    color: white;
    background-color: #93512D;
}

.category-card.active p {
    color: white;
}

/* End Category Scroll */

/* Category sticky */

.sticky-top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f5f3ef;
    z-index: 1;

    padding-top: 100px;
    top: -100%;
    transition: top 0.5s ease;
}

.sticky-top-bar.visible {
    top: 0;
}

.sticky-top-bar .category-list {
    max-width: 500px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
    padding: 10px;
}

.sticky-top-bar .category-item {
    margin-right: 15px;
    cursor: pointer;
    color: #6a3d35;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 10px;
    border: 1px solid #6a3d35;
    border-radius: 0.75rem;
    white-space: nowrap;
}

.sticky-top-bar .category-item.active {
    color: white;
    background-color: #6a3d35;
}

/* End Category sticky */


/* Category Section */
.category-section {
    position: relative;
}

.category-section h2 {
    padding-top: 1rem;
    color: #6a3d35;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.75rem;
    text-align: left;
}

.category-section .category-image {
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 0.75rem;
    width: 100%;
    height: 100px;
    user-select: none;
    display: block;
    filter: brightness(0.5);
}

/* End Category Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.product-card {
    background-color: #fff;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;  
}




.product-card .product-details {
    padding: 1rem;  
    background-color: #efebdc;   
   
}


.product-card .product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;  
   
}




.product-card .product-details h5 {
    word-break: break-word;
    text-align: left;
  
   color: #93512D;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  
}

.product-card .product-details p {
    margin: 0 !important;
    text-align: left;
    color: rgb(var(--color-primary));
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
   
    
}

/* Bottom Sheet */

.bottom-sheet-wrapper .backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.bottom-sheet-wrapper .bottom-sheet {
    background-color: #f5f3ef;
    margin-inline: auto;
    width: 100%;
    max-width: 500px;
    height: 0;
    position: absolute;
    z-index: 10;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.2s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
    bottom: -110%;
    overflow: hidden;
}

.bottom-sheet-wrapper {
    z-index: 5;
    height: 0;
    position: fixed;
}

.bottom-sheet-wrapper.show-modal {
    height: auto;
}

.bottom-sheet-wrapper.show-modal .backdrop {
    position: fixed;
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet-wrapper.show-modal .bottom-sheet {
    position: fixed;
    bottom: 0;
    min-height: 80svh;
    max-height: 80svh;
}

.bottom-sheet-wrapper .close-wrapper {
    position: absolute;
    right: 10px;
    top: 10px;
    margin: 10px;
    cursor: pointer;
    background: #8e868652;
    border-radius: 20px;
    padding: 5px;
}

.bottom-sheet-wrapper .close {
    width: 20px;
    height: 20px;
    padding-top: 9px;
}

.bottom-sheet-wrapper .close span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: white;
    transform: rotate(45deg);

}

.bottom-sheet-wrapper .close span::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: white;
    transform: rotate(90deg);
}

.bottom-sheet .bottom-sheet-scrollable {
    height: calc(80svh - 40vh);
    overflow-y: auto;
    overflow-x: hidden;
}

.bottom-sheet .product-image {
    width: 100%;
}

.bottom-sheet .product-title {
    color: rgb(var(--color-text-primary));
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 5px;
}

.bottom-sheet .product-price {
    color: rgb(var(--color-primary));
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 10px;
}

.bottom-sheet .product-label {
    color: rgb(var(--color-text-primary));
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin-bottom: 1px;
}

.bottom-sheet .product-ingredients,
.bottom-sheet .product-description {
    color: rgb(var(--color-text-primary));
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 10px;
}
.bottom-sheet-image {
     height: 45vh;              /* controls image height */
    overflow: hidden;
}

.bottom-sheet-image img {
     width: 100%;
    height: 100%;
    object-fit: cover;         /* crop nicely like screenshot */
    display: block;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* End Bottom sheet */