.header-bar {
    background-image: url('../../assets/custom/background-5.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left top;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    height: 75px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    position: fixed;
    transition: opacity 0.5s;
    box-shadow: 0px 3px 5px var(--brand-grey);

    &.active {
        opacity: 1;
        pointer-events: all;
    }


    .heading-holder {
        display: flex;
        align-items: center;
    }

    button, a {
        background-color: white;
        color: var(--brand-blue);
        font-size: 18px;
        padding: 5px;
        border-radius: 50%;
        height: 30px;
        width: 30px;
        display: flex;
        justify-content: center;
        align-items: center;

        &.active {
            color: white;
            background-color: var(--brand-blue);
        }
    }

    h3 {
        font-size: 16px;
        color: white;
        letter-spacing: 0.5px;
        margin-left: 10px;
        font-weight: 600;
    }

    .stats-holder {
        font-size: 10px;
        color: white;
        display: flex;
        align-items: center;

        .stat {
            margin-left: 10px;
        }
    }

    .utilities-buttons-holder {
        position: absolute;
        right: 15px;
        bottom: -15px;
        display: flex;
        align-items: center;
        button, a {
            margin-left: 10px;
            box-shadow: 0px 3px 5px var(--brand-grey);
        }
    }
}

.upfold-holder {
    position: relative;
    height: 30vh;
    width: 100%;
    padding: 30px 0;
	margin-bottom: calc(-30vh + 90px);

    .icons-holder {
        position: relative;
        display: flex;
        width: 90%;
        margin: 0 auto;
        justify-content: space-between;

		.action-buttons-holder {
			display: flex;
			align-items: center;
			width: 50%;
			justify-content: flex-end;

			button {
				margin-right: 15px;
			}
		}

        &.navigate-button {
            position: absolute;
            left: 86%;
            bottom: 30px;
            width: auto;

            a {
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }

        button, a {
            background-color: white;
            color: var(--brand-blue);
            font-size: 18px;
            padding: 5px;
            border-radius: 50%;
            height: 30px;
            width: 30px;
            display: block;
            box-shadow: 0px 0px 5px var(--brand-grey);

            &.active {
                background-color: var(--brand-blue);
                color: white;
            }
        }
    }

    img {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        filter: brightness(80%);
    }
}

.card-holder {
    background-color: transparent;
    position: relative;

    .card {
        box-shadow: 0px 0px 5px var(--brand-grey);
        width: 90%;
        margin: 0 auto;
        border-radius: 10px;
        overflow: hidden;
        padding: 20px;
        background-color: white;

        h3 {
            color: var(--brand-dark-grey);
            font-size: 20px;
            letter-spacing: 0.5px;
            font-weight: 600;
			display: flex;
			align-items: flex-start;
			justify-content: space-between;

			ion-button {
				color: var(--brand-blue);
				font-size: 14px;
				margin: 0;
				--padding-end: 0;
			}
        }

        .stats-holder {
            display: flex;
            justify-content: space-between;
            color: var(--brand-blue);
            font-size: 10px;
            font-weight: bold;

            span {
                color: var(--brand-grey);
            }
        }

        p {
            margin: 5px auto;
            font-size: 11px;
            line-height: 1.5;
            color: var(--brand-grey);
        }
    }
}

.menu-card-holder {
    margin: 25px 0;

    header {
		position: sticky;
		top: 75px;
		z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background-color: white;
		box-shadow: 0px 2px 5px rgba(#000000, 0.15);
        color: var(--brand-dark-grey);
        padding: 10px 0 5px 15px;

		button {
			color: var(--brand-blue);
			background-color: white;
			border: 1px solid var(--brand-blue);
			border-radius: 20px;
			padding: 6px 15px;
			font-weight: 500;
			font-size: 11px;
			letter-spacing: 1px;
			margin-right: 10px;
		}
    }

    .toggle {
        font-size: 10px;
        display: flex;
        align-items: center;

        ion-toggle {
            pointer-events: none;
            --handle-background: var(--brand-blue);
            --handle-background-checked: var(--brand-blue);
            transform: scale(0.8);
            z-index: 0;
        }
    }

	.details-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 17px;
		height: 60px;

		.count {
			color: var(--brand-dark-grey);
			font-size: 11px;
			font-weight: 500;
			letter-spacing: 1px;
		}
	}

	.display-formats {
		display: flex;

		button {
			width: 50px;
			height: 50px;
			font-size: 20px;
			background-color: white;
			color: var(--brand-dark-grey);

			&.active {
				color: var(--brand-blue);
			}
		}
	}
}

.items-holder {
    display: flex;
    width: 100%;
    padding: 0px 17px;
    margin: 0 auto -30px;
    justify-content: space-between;
    flex-wrap: wrap;

	&.list-mode {
		flex-direction: column;
		padding-bottom: 15px;

		.item {
			width: 100%;
			display: flex;
			justify-content: space-between;
			margin-bottom: 15px;

			.stats-holder {
				width: 65%;
			}

			.image-holder {
				width: 40%;
			}

			h5 {
				margin: 0 auto 10px;
			}

			.content-holder {
				width: 55%;
			}
		}
	}

    .item {
        width: 46%;
        position: relative;
        margin-bottom: 30px;
		box-shadow: 0px 0px 5px rgba(#000000, 0.2);
		padding: 10px;
		border-radius: 10px;

        &.hide {
            display: none;
        }

		.stats-holder {
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			font-size: 12px;
			color: var(--brand-grey);
			font-weight: 500;
			padding-bottom: 10px;

			ion-icon {
				font-size: 14px;
				float: left;
				position: relative;
				top: 1px;
				margin-right: 3px;
			}
		}

        .image-holder {
			position: relative;

			img {
	            border-radius: 5px;
	            height: 80px;
	            width: 100%;
	            object-fit: cover;
	        }

			.category {
				background-color: white;
	            border: 1px solid var(--brand-dark-grey);
				border-radius: 2px;
	            width: 16px;
	            height: 16px;
	            position: absolute;
				left: 3px;
				bottom: 7px;
	            display: flex;
	            align-items: center;
	            justify-content: center;

	            &::before {
	                content: '';
	                width: 8px;
	                height: 8px;
	                background-color: var(--brand-grey);
	                border-radius: 50%;
	            }

	            &.veg {
	                border-color: var(--ion-color-success);

	                &::before {
	                    background-color: var(--ion-color-success);
	                }
	            }

	            &.non-veg {
	                border-color: var(--ion-color-danger);

	                &::before {
	                    background-color: var(--ion-color-danger);
	                }
	            }
	        }
		}

        h5 {
            font-size: 14px;
            color: var(--brand-dark-grey);
            font-weight: bold;
            letter-spacing: 0.5px;
            margin: 10px 0;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    }

    .price {
        display: flex;
        align-items: center;
        margin-bottom: 0px;
		justify-content: space-between;

		span {
			color: var(--brand-dark-grey);
            font-size: 14px;
			font-weight: 700;
			width: 40%;
		}

		.cart-button {
	        background-color: var(--brand-blue);
	        color: white;
	        font-size: 12px;
	        width: 30px;
			height: 30px;
	        border-radius: 50%;
	    }

		.count-buttons-holder {
		    display: flex;
		    width: 60%;
		    justify-content: space-between;
		    align-items: center;
		    background-color: #efefef;

		    ion-button {
		        margin: 0;
		        width: 30px;
		        height: 30px;
		        --padding-start: 0;
		        --padding-end: 0;
		        --padding-top: 0;
		        --padding-bottom: 0;
		        font-size: 10px;
		        --background: var(--brand-blue);
		    }

		    .count {
		        color: var(--brand-dark-grey);
		        font-size: 12px;
		    }
		}
    }
}

.advertisement {
    width: 90%;
    margin: 0 auto 20px;

    img {
        object-fit: cover;
    }
}


ion-fab {
	position: fixed;
	right: 20px;
	bottom: 70px;
	border-radius: 50%;
	animation: ripple-effect 1s linear;
	animation-iteration-count: 3;


	ion-button {
		--background: var(--brand-blue);
	}
}

@keyframes ripple-effect {
	0% {
		box-shadow: 0 0 0 10px rgba(black, 0.5);
	}
	30% {
		box-shadow: 0 0 0 20px rgba(black, 0.3);
	}
	60% {
		box-shadow: 0 0 0 30px rgba(black, 0.1);
	}
	100% {
		box-shadow: 0 0 0 50px rgba(black, 0);
	}
}
