/* Zestora - Side Cart
   ---------------------------------------------------------------
   To change colours, edit only the values below.
   The rest of the file uses these variables.
   --------------------------------------------------------------- */
.zsc {
	--zsc-accent: #A03A13;      /* brown - header band, buttons */
	--zsc-accent-deep: #7C2A0C; /* button hover */
	--zsc-bg: #FFFFFF;          /* panel background */
	--zsc-surface: #FFFFFF;     /* cards / footer */
	--zsc-cream: #F3E9D6;       /* soft cream fills */
	--zsc-ink: #241813;         /* main text */
	--zsc-muted: #6E5B51;       /* muted text */
	--zsc-faded: #9A8B80;       /* old price */
	--zsc-line: #F0E4D2;        /* borders */
	--zsc-line-soft: #F6EEE2;   /* line between rows */
	--zsc-dash: #D9C4A9;        /* Add more items dashed border */
	--zsc-danger: #C0392B;      /* trash icon */
	--zsc-width: 420px;         /* panel width */
}

/* Zestora - Side Cart (foodsinn.co layout, Zestora colours) */

.zsc, .zsc *, .zsc *::before, .zsc *::after { box-sizing: border-box; }
.zsc[hidden] { display: none; }

/* Hide Elementor's own side cart - we show our own panel */
.elementor-menu-cart__container { display: none !important; }

.zsc {
	position: fixed;
	inset: 0;
	z-index: 100001;
}

.zsc__overlay {
	position: absolute;
	inset: 0;
	background: rgba(31, 26, 18, .55);
	opacity: 0;
	transition: opacity .25s ease;
}

.zsc.is-open .zsc__overlay { opacity: 1; }

.zsc__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 100%;
	max-width: var(--zsc-width);
	background: var(--zsc-bg);
	display: flex;
	flex-direction: column;
	box-shadow: -18px 0 50px rgba(31, 26, 18, .28);
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}

.zsc.is-open .zsc__panel { transform: none; }

/* header band */
.zsc__head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 18px;
	background: var(--zsc-accent);
	color: var(--zsc-surface);
}

.zsc__head svg { width: 22px; height: 22px; flex: 0 0 auto; }

.zsc .zsc__title {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	font-size: 19px;
	font-weight: 700;
	color: var(--zsc-surface);
	letter-spacing: .01em;
}

.zsc .zsc__close {
	margin-left: auto;
	width: 34px;
	height: 34px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .2) !important;
	color: var(--zsc-surface) !important;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.zsc .zsc__close:hover { background: rgba(255, 255, 255, .35) !important; transform: scale(1.06); }

/* scrollable body */
.zsc__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.zsc__loading {
	margin: auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid var(--zsc-cream);
	border-top-color: var(--zsc-accent);
	animation: zscspin .8s linear infinite;
}

@keyframes zscspin { to { transform: rotate(360deg); } }

/* cart line item */
.zsc__items { display: flex; flex-direction: column; gap: 10px; }

.zsc__item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--zsc-surface);
	border: 1px solid var(--zsc-line);
	border-radius: 16px;
	padding: 10px;
}

.zsc__thumb {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--zsc-cream);
}

.zsc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.zsc__info { flex: 1 1 auto; min-width: 0; }

.zsc__name {
	margin: 0 0 4px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--zsc-ink);
	text-transform: uppercase;
	letter-spacing: .01em;
}

.zsc__prices { font-size: 13px; font-weight: 700; color: #000000; }
.zsc__prices del { color: var(--zsc-faded); font-weight: 500; margin-right: 6px; }

/* qty pill */
.zsc__qty {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 2px;
	border: 1px solid var(--zsc-line);
	border-radius: 999px;
	padding: 3px;
	background: var(--zsc-surface);
}

.zsc .zsc__step {
	width: 30px;
	height: 30px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--zsc-cream) !important;
	color: var(--zsc-accent) !important;
	font-size: 16px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}

.zsc .zsc__step:hover { background: var(--zsc-accent) !important; color: var(--zsc-surface) !important; transform: scale(1.06); }
.zsc .zsc__step svg { width: 15px; height: 15px; }
.zsc .zsc__step--trash { background: var(--zsc-surface) !important; color: var(--zsc-danger) !important; }
.zsc .zsc__step--trash:hover { background: var(--zsc-danger) !important; color: var(--zsc-surface) !important; }

.zsc__num {
	min-width: 30px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--zsc-ink);
}

/* add more items */
.zsc .zsc__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px;
	border: 1.5px dashed var(--zsc-dash) !important;
	border-radius: 14px !important;
	background: transparent !important;
	color: var(--zsc-ink) !important;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.zsc .zsc__more:hover { border-color: var(--zsc-accent) !important; color: var(--zsc-accent) !important; background: var(--zsc-surface) !important; }

/* popular carousel */
.zsc__pop-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 2px;
}

.zsc__pop-bar {
	width: 4px;
	height: 20px;
	border-radius: 4px;
	background: var(--zsc-accent);
}

.zsc__pop-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--zsc-ink);
}

.zsc__arrows { margin-left: auto; display: flex; gap: 8px; }

.zsc .zsc__arrow {
	width: 32px;
	height: 32px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--zsc-cream) !important;
	color: var(--zsc-accent) !important;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.zsc .zsc__arrow:hover { background: var(--zsc-accent) !important; color: var(--zsc-surface) !important; }

.zsc__track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.zsc__track::-webkit-scrollbar { display: none; }

.zsc__pop {
	flex: 0 0 auto;
	width: 118px;
}

.zsc__pop-media {
	position: relative;
	width: 100%;
	height: 96px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--zsc-cream);
}

.zsc__pop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.zsc .zsc__pop-add {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 26px;
	height: 26px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--zsc-accent) !important;
	color: var(--zsc-surface) !important;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(31, 26, 18, .3);
	transition: transform .18s ease, background .18s ease;
}

.zsc .zsc__pop-add:hover { background: var(--zsc-accent-deep) !important; transform: scale(1.1); }

.zsc__pop-price {
	margin: 8px 0 2px;
	font-size: 13px;
	font-weight: 800;
	color: #000000;
}

.zsc__pop-price del { font-size: 11.5px; font-weight: 500; color: var(--zsc-faded); margin-left: 5px; }

.zsc__pop-name {
	font-size: 11px;
	font-weight: 600;
	color: var(--zsc-muted);
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* totals */
.zsc__totals {
	background: var(--zsc-surface);
	border: 1px solid var(--zsc-line);
	border-radius: 16px;
	padding: 6px 14px;
}

.zsc__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	font-size: 14px;
	color: var(--zsc-ink);
}

.zsc__row + .zsc__row { border-top: 1px solid var(--zsc-line-soft); }
.zsc__row svg { width: 18px; height: 18px; color: var(--zsc-accent); flex: 0 0 auto; }
.zsc__row b { margin-left: auto; font-weight: 700; }

/* footer */
.zsc__foot {
	flex: 0 0 auto;
	padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
	background: var(--zsc-surface);
	border-top: 1px solid var(--zsc-line);
}

.zsc .zsc__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--zsc-accent) !important;
	color: var(--zsc-surface) !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.zsc .zsc__checkout:hover { background: var(--zsc-accent-deep) !important; transform: translateY(-1px); }

.zsc .zsc__checkout svg {
	width: 20px !important;
	height: 20px !important;
	flex: 0 0 auto;
}

.zsc__grand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--zsc-line);
	font-size: 17px;
	font-weight: 800;
	color: var(--zsc-ink);
}

/* empty state */
.zsc__empty {
	margin: auto;
	text-align: center;
	color: #000000;
	padding: 30px 10px;
}

.zsc__empty svg { width: 56px; height: 56px; color: #000000; display: block; margin: 0 auto 12px; }
.zsc__empty p { margin: 0 0 16px; font-size: 15px; color: #000000; }

.zsc .zsc__browse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--zsc-accent) !important;
	color: var(--zsc-surface) !important;
	font-weight: 700;
	cursor: pointer;
}

.zsc.is-busy .zsc__body { opacity: .55; pointer-events: none; }

body.zsc-open { overflow: hidden; }

@media (max-width: 480px) {
	.zsc__panel { max-width: 100%; }
	.zsc__body { padding: 14px; }
}

@media (max-width: 380px) {
	.zsc__body { padding: 12px; gap: 14px; }
	.zsc__item { gap: 9px; padding: 9px; }
	.zsc__thumb { width: 50px; height: 50px; }
	.zsc .zsc__step { width: 27px; height: 27px; }
	.zsc__num { min-width: 24px; }
	.zsc__name { font-size: 12.5px; }
	.zsc__pop { width: 110px; }
	.zsc__head { padding: 15px 14px; }
	.zsc .zsc__title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.zsc__panel, .zsc__overlay { transition: none; }
	.zsc__track { scroll-behavior: auto; }
}
