* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
	font-size:12px;
	font-family: 'ubuntu', sans-serif;
}

/* Main area */
.main {
    display: flex;
    height: 100vh;
    padding-bottom: 65px;
}
.header{
background:blue;
padding:18px;
color:white;
text-align:center;
font-size:22px;
font-weight:600;
box-shadow:0 5px 15px rgba(0,0,0,.15);
}
/* =========================
   LEFT FIXED CONTAINER
   ========================= */

.left-container {
    width: 100px;
    min-width: 120px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #ddd;
	font-family: 'ubuntu', sans-serif;
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
}

.left-container::-webkit-scrollbar {
    display: none;
}

/* Category */
.category {
    width: 100%;
    text-align: center;
    padding: 12px 5px;
    cursor: pointer;
}

.category img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.category.active img {
    border: 2px solid #8b5a20;
}

.category-name {
    margin-top: 7px;
    font-size: 17px;
	font-family:'Ubuntu',sans-serif;
	color:blue;
}

.category.active .category-name {
    font-weight: bold;
}
#toast {
    visibility: hidden;
    min-width: 220px;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 18px;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    font-size: 14px;
}

#toast.show {
    visibility: visible;
    animation: fadein 0.3s, fadeout 0.3s 1.7s;
}


/* =========================
   RIGHT SCROLLABLE CONTAINER
   ========================= */

.right-container {
    flex: 1;
    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    background: #fff;
}

/* Product grid */
.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Product */
.product {
    padding: 12px 10px 18px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    min-width: 0;
	overflow:hidden;
}

.product-image {
    width: 100%;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 18px;
    line-height: 1.45;
    margin-top: 7px;
	font-family:'Nunito',sans-serif;
	color:blue;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.weight {
    color: #777;
    font-size: 16px;
    margin-top: 8px;
}

/* Price */
.price-box {
    margin-top: 12px;
    display: flex;
	width:fit-content;
    max-width:80%;
	height:36px;
	border-radius: 12px;
	overflow:hidden;
}

.price {
    background: #ffd900;
    padding: 5px 10px;
	height:48px;
	border:2px solid #ffd900;
    border-radius: 14px 0 0 14px;
    font-size: 10px;
    font-weight: bold;
	display:flex;
	align-items: center;
	white-space: nowrap;
}

.mrp {
	background: #fff;
    padding: 5px 8px;
    border:2px solid #d8c900;
	border-left:0;
    border-radius: 0 14px 14px 0;
    font-size: 8px;
    color: #777;
	display:flex;
	flex-direction:column;
	justify-content:center;
	white-space: nowrap;
}

.mrp del {
    font-size: 8px;
}

/* Add button */
.add-btn {
    width: 50%;
    margin-top: 12px;
    padding: 12px;

    background: white;
    border: 2px solid #9a682b;
    border-radius: 7px;

    color: #8b5a20;
    font-size: 10px;
    font-weight: bold;

    cursor: pointer;
}

.add-btn:active {
    background: #f5eadc;
}


/* =========================
   BOTTOM NAVIGATION
   ========================= */

.bottom-nav{
position:fixed;
bottom:0;
left:0;
width:100%;
background:white;
display:flex;
justify-content:space-around;
padding:12px 0;
box-shadow:0 -3px 15px rgba(0,0,0,.12);
}

.bottom-nav a{
text-decoration:none;
color:#1565C0;
font-size:14px;
text-align:center;
font-weight:600;
}
.cart_div {
	color:white;
	font-size:28px;
	position:absolute;
	right: 13px;
	top: 1px;
	}
	.cart_div a {
	color:white;
	}	
.header span {
	font-size: 10px;
    line-height: 4px;
    background: white;
    padding: 2px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
    top: -1px;
    right: 8px;
    color: blue;
    width: 18px;
    height: 13px;
    text-align: center;
	}
.box{
	margin: 10px 0px;
    border: 1px solid #2b772e;
    text-align: center;
    font-weight: bold;
    color: #2b772e;
	}
button,select{
padding:2px;
border:1px solid #ddd;
border-radius:12px;
margin-top:2px;
margin-bottom:2px;
font-size:10px;
background:#fff;
}
#opencart {
      position: fixed;
      bottom: 70px;
      right: 20px;
      display: block;
      /* Initially hidden */
      padding: 10px 15px;
      font-size: 16px;
      border-radius: 30px;
      z-index: 1000;
	  background:blue;
	  color:white;
    }
#supplierToast {
position: fixed;
left: 50%;
bottom: 80px;
transform: translateX(-50%) translateY(20px);

background: rgba(30,30,30,0.95);
color: white;

padding: 10px 18px;
border-radius: 25px;

font-size: 14px;
z-index: 9999;

opacity: 0;
pointer-events: none;

transition: all 0.3s ease;
}

#supplierToast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* =========================
   MOBILE
   ========================= */

@media(max-width:600px) {

    .left-container {
        width: 100px;
        min-width: 100px;
    }

    .category img {
        width: 85px;
        height: 85px;
    }

    .category-name {
        font-size: 17px;
    }

    .product {
        padding: 10px 8px 15px;
    }

    .product-image {
        height: 140px;
    }

    .product-name {
        font-size: 13px;
    }

    .price {
        font-size: 12px;
    }

    .mrp {
        font-size: 10px;
    }

    .add-btn {
        font-size: 12px;
    }
}
