.bigblock {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.oneblock {
	display: inline-block;
	flex-direction: column;
	width: 250px;
	margin: 15px;
	border-radius: 20px;
	text-align: center;
	background: linear-gradient(135deg, #E5D9F2, #F0E6FA, #FAF5FF, #F0E6FA, #E5D9F2);
		-webkit-background: linear-gradient(135deg, #E5D9F2, #F0E6FA, #FAF5FF, #F0E6FA, #E5D9F2);
		-moz-background: linear-gradient(135deg, #E5D9F2, #F0E6FA, #FAF5FF, #F0E6FA, #E5D9F2);

	overflow: hidden;
}

.oneblock img {
	margin: 10px 10px 0px 15px;
	width: 90%;
	height: 150px;
	border-radius: 20px;
}

.oneblock p {
	margin: 5px;
	margin-top: 0px;
	font-size: 1.2em;
}

/*********************************search****************************/

#search-container {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 320px;
    margin: 10px auto;
}

#search-bar {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

.input-for-order {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 80%;
    margin: 5px;
}

#clear-search {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background: #E74C3C;
    color: white;
    cursor: pointer;
    font-size: 16px;
     margin-top: 10px;
}

#clear-search:hover {
    background: #C0392B;
}

/*********************************search****************************/

.hidden {
	display: block;
	width: 90%;
	padding: 10px;
	border-radius: 10px;
  cursor: pointer; /* Makes it clear it's clickable */
  transition: background 0.3s ease, max-height 0.4s ease-out;
	background: linear-gradient(135deg, rgba(255, 87, 51, 1), rgba(255, 120, 85, 1), rgba(255, 170, 130, 1), rgba(255, 120, 85, 1), rgba(255, 87, 51, 1));
		-webkit-background: linear-gradient(135deg, rgba(255, 87, 51, 1), rgba(255, 120, 85, 1), rgba(255, 170, 130, 1), rgba(255, 120, 85, 1), rgba(255, 87, 51, 1));
		-moz-background: linear-gradient(135deg, rgba(255, 87, 51, 1), rgba(255, 120, 85, 1), rgba(255, 170, 130, 1), rgba(255, 120, 85, 1), rgba(255, 87, 51, 1));

	margin: 5px auto;
	text-align: center;
}


/* Default state */
.dropdown-toggle::after {
    content: " ▼"; /* Down arrow */
    font-size: 16px;
     float: right;
  
    transition: transform 0.3s ease; /* Smooth rotation */
}

/* Rotate arrow when active (dropdown is open) */
.dropdown-toggle.active::after {
    transform: rotate(180deg); /* Rotates when expanded */
}


#ShowCart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #FF5733;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

#ShowCart:hover {
  background-color: #E74C3C;
}


#qty-btn {
    background-color: #ff5733;
    color: white;
    border: none;
    padding: 0px 5px;
    margin: 0 2px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

#qty-btn:hover {
    background-color: #e74c3c;
}


#cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: red;
  color: white;
  font-size: 14px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 50%;
  display: none; /* Hidden when cart is empty */
}



/******************************* CART *************************************/

.oneblock input {
	  width: 50px;
	  text-align: center;
	  margin: 5px;
}

.oneblock button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
}

.oneblock button:hover {
    background-color: #1EBE5D;
}

.cart {
	display: block;
	width: 40%;
	padding: 10px;
	border-radius: 10px;
	background:#8484d1;
	margin: 5px auto;
	text-align: center;
}

#cart-container {
    margin-left: calc((100% - 40%) / 2); /* Centers the cart */
    margin-right: calc((100% - 40%) / 2);
    margin-bottom: 10px;
}

.cart h2 {
	margin: 0px;
}

#order-btn {
    background-color: #128C7E;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    width: fit-content;

}

#order-btn:hover {
    background-color: #0F6B5C;
}

/***************js*************/
/* Default (Desktop) - Buttons inline */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.cart-buttons {
    display: flex;
    gap: 5px;
}

.decrease-btn, .increase-btn, .remove-btn {
    background-color: white;
    color: black;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.decrease-btn:hover { background-color: #ffcc00; }
.increase-btn:hover { background-color: #4CAF50; color: white; }
.remove-btn:hover { background-color: #ff4d4d; color: white; }

/****************ask adress*************************/
/* Popup Background */
#address-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup Content */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

/* Address Input */
#address-input {
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

/* Buttons */
.popup-content button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content button:first-of-type {
    background: #25D366; /* WhatsApp Green */
    color: white;
}

.popup-content button:last-of-type {
    background: #E74C3C; /* Cancel Red */
    color: white;
}


/******************************* CART *************************************/

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-container {
    text-align: center;
    display: none;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0; /* Ensures smooth opening */
}

.category-container.active {
    display: block;
    opacity: 1;
}


/*----------------------------- Media Queries start -----------------------*/
@media (max-width: 768px) {
	.oneblock {
		width:90%;
		text-align: left;
	}

	.oneblock img {
		display: inline-block;
		margin: 10px 10px 0px 15px;
		width: 20%;
		height: 50px;
	}
	.oneblock p {
		display: inline-block;
	}

    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 5px;
        width: 100%; /* Ensures buttons are centered */
    }

    /* Ensure list is centered */
    #cart-list {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ensure total price is centered */
    #cart-total {
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        margin-top: 10px;
    }
    #cart-container {
        margin-left: calc((100% - 90%) / 2); /* Centers the cart */
        margin-right: calc((100% - 90%) / 2);
    }
    .cart {
        width: 90%;
    }

}

@media (max-width: 390px) {
	#order-btn {
    font-size: 10px;
    }


}
