@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');

:root {
    --mainColor: #00AB46;
    --mainColor2: #E0FFED;
    --mainColor3: #82bf9b;
    --mainColor4: #00732f;
    --grey1: #D9D9D9;
    --grey2: #666;
    --grey3: #F5F5F5;
    --black0: #000;
    --black1: #4D4D4D;
    --black2: #253D4E;
    --white1: #FAFAFA;
    --border-px: 1px;
}

body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: Poppins, sans-serif;
}

ul {
    list-style-type: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    border-radius: 5px;
}

/* Main Layout */
.cbn-body {
    margin-left: 150px;
    width: min-content;
    min-width: 1350px;
}

/* Header/Menu */
.id-atf-menu {
    padding-top: 40px;
    padding-bottom: 40px;
    align-items: center;
    display: flex;
}

.id-atf-menu img.logo-img {
    width: 166px;
    height: 58px;
}

.id-atf-menu button {
    color: var(--black0);
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    background: none;
    border: none;
    margin-left: 40px;
}

.id-atf-menu button:hover, 
.id-atf-menu button.active {
    color: var(--mainColor);
}

.id-atf-menu .menu-user-info {
    margin-left: auto;
    margin-right: 50px;
}

/* Store Layout */
.cbn-store {
    display: flex;
    clear: both;
}

.cbn-store div.id-products {
    min-width: 870px;
}

/* Categories Filter */
.id-filters {
    float: right;
}

.id-filters ul.id-categories {
    padding: 0px;
    margin: 0px;
}

.id-filters li {
    float: left;
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: 16px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.id-filters li span, 
.id-filters li input {
    cursor: pointer;
}

.id-filters li input {
    display: none;
}

.id-filters span.selected-category {
    color: var(--mainColor);
    font-weight: 600;
}

/* Product List */
.id-list {
    clear: both;
    padding-top: 20px;
}

.id-products .id-list ul.list {
    height: calc(100vh - 190px);
    overflow-y: scroll;
    position: relative;
    gap: 8px;
    padding-left: 0px;
    padding-right: 5px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.id-products .id-list ul li {
    position: relative;
    max-width: 206px;
    border: solid var(--border-px) var(--grey1);
    border-radius: 6px;
    height: min-content;
}

.id-products ul li img.product-img {
    padding: 20px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.id-products ul li .name {
    color: var(--Black, #253D4E);
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    height: 50px;
}

.id-products ul li .details {
    border-top: solid var(--border-px) var(--grey1);
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
}

.id-products ul li .productPriceTag {
    color: var(--mainColor);
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding-top: 8px;
    overflow: hidden;
}

.productPriceTag .price-lbl {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    margin-left: 5px;
}

/* Quantity Controls */
.columns-small-left-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.columns-small-left-right button {
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--grey1);
    background: var(--white1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-number {
    flex: 1;
}

.atf-product-amount {
    color: var(--black0);
    text-align: center;
    font-family: Poppins;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

/* Add to Cart Button */
.add_to_cart {
    margin-top: 10px;
    color: var(--mainColor);
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border-radius: 2px;
    background: var(--mainColor2);
    width: 100%;
    height: 34px;
    border: none;
    cursor: pointer;
}

.add_to_cart:hover {
    background: var(--mainColor3);
}

.add_to_cart img {
    margin-right: 5px;
    vertical-align: middle;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .id-products .id-list ul.list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .id-products .id-list ul.list {
        grid-template-columns: repeat(2, 1fr);
    }
}

