@font-face {
	font-family: 'Amaranth';
	src: url('/cart/fonts/Amaranth-Regular.ttf');
	font-weight: normal;
	font-style: normal;
}

html {
background: #0F94FF;
}

body {
	font-family: 'Amaranth', serif;
	font-size: 20px;
	margin: 0;
	overflow-x: hidden;
	position: relative;
	z-index: 0;
}

canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	image-rendering: pixelated;
}

canvas.pixelated {
	image-rendering: pixelated;
}

img.logo {
	position: absolute;
	top: 1.5em;
	left: 25px;
	width: 250px;
	height: 250px;
	z-index: 5;
	pointer-events: auto;
}

.instagram {
	display: none;
	position: fixed;
	left: 25px;
	bottom: 1em;
	width: 72px;
	height: 72px;
	z-index: 2;
}

h1, h2, .fancy-title {
	font-family: 'Amaranth', serif;
}

main {
	padding-top: calc(20vw * (4 / 5) + 7em);
	padding-left: 25px;
	padding-right: 25px;
	padding-bottom: 145px;
	position: relative;
	z-index: 1;
}

.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 3em;
}

.product {
	border-radius: 10px;
	padding: 1em;
	text-align: center;
	background: #E8117311;
	backdrop-filter: blur(5px);
	color: white;
	padding-bottom: 0px;
}

.product img {
	max-width: 100%;
	width: 100%;
	height: 220px;
	object-fit: cover;
	object-position: center;
	border-radius: 10px;
	background: #0F94FF22;
}

.product button {
	background-color: #E81173;
	color: white;
	border: none;
	padding: 0.5em 1em;
	cursor: pointer;
	margin-top: 1em;
	border-radius: 10px;
}

/* ── Bottom bar total ─────────────────────────────────────────────────────── */
#cart {
	position: fixed;
	bottom: 1em;
	right: 25px;
	background-color: #E81173;
	color: white;
	font-weight: bold;
	padding: 0.5em 1em;
	border-radius: 10px;
	z-index: 2;
}

/* ── Clear button ──────────────────────────────────────────────────────────── */
#clear-button {
	position: fixed;
	bottom: 4em;
	padding: 0.5em 1em;
	border-radius: 10px;
	color: white;
	font-weight: bold;
	z-index: 3;
	background-color: #FA2C4B;
	right: 25px;
	cursor: pointer;
}
#clear-button:hover {
	background-color: #FA2C4B88;
}

/* ── Price bar ─────────────────────────────────────────────────────────────── */
.price-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1em;
	gap: 0.2em;
}

.price-bar .price {
	font-weight: bold;
	font-size: 1.1em;
	color: white;
}

.price-bar .add-btn {
	background-color: #E81173;
	color: white;
	border: none;
	font-size: 1.4em;
	padding: 0.3em 0.5em;
	border-radius: 10px;
	cursor: pointer;
	line-height: 1;
	font-weight: bold;
	margin-bottom: 23px;
}

.price-bar .add-btn:hover {
	background-color: #E8117388;
}

.qty {
	color: white;
	font-weight: bold;
	font-size: 2.2em;
}

/* ── Language switch ──────────────────────────────────────────────────────── */
.lang-switch {
	position: absolute;
	top: 2em;
	right: 25px;
	z-index: 5;
}

button {
	padding: 6px 12px;
	font-size: 14px;
	z-index: 5;
}

.flag {
	width: 48px;
	height: 32px;
	cursor: pointer;
	border-radius: 3px;
	box-shadow: 0 0 3px #0003;
	transition: transform 0.2s ease;
}

.flag:hover {
	transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
      MULTI-VENDOR CART PANEL
      ═══════════════════════════════════════════════════════════════════════════ */

#cart-panel {
	position: fixed;
	right: 25px;
	bottom: 5em;          /* above the total bar */
	width: 360px;
	max-height: 70vh;
	overflow-y: auto;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 40px #0009;
	backdrop-filter: blur(12px);
	background: rgba(10,10,10,0.92);
	border: 1px solid #E8117344;
	scrollbar-width: thin;
	scrollbar-color: #E81173 #111;
}

#cart-panel::-webkit-scrollbar { width: 5px; }
#cart-panel::-webkit-scrollbar-track { background: #111; }
#cart-panel::-webkit-scrollbar-thumb { background: #E81173; border-radius: 3px; }

/* Each vendor block */
.vendor-cart-block {
	padding: 1rem 1.2rem 0.8rem;
	background: transparent;
}

.vendor-cart-separator {
	height: 1px;
	background: linear-gradient(90deg, transparent, #E8117366, transparent);
	margin: 0 1rem;
}

/* Vendor header */
.vendor-cart-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.7rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #E8117333;
}

.vendor-cart-icon {
	font-size: 1.1rem;
}

.vendor-cart-name {
	font-family: 'Amaranth', serif;
	font-size: 1rem;
	color: #E81173;
	font-weight: bold;
	letter-spacing: 1px;
}

.vendor-cart-insta {
	margin-left: auto;
	font-size: 0.72rem;
	color: #aaa;
	text-decoration: none;
}
.vendor-cart-insta:hover { color: #E81173; }

/* Item rows */
.cart-items-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 0.8rem;
}

.cart-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: #eee;
	padding: 0.3rem 0.2rem;
	border-radius: 6px;
	transition: background 0.15s;
}

.cart-item:hover {
	background: #E8117311;
}

.cart-item-name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.82rem;
}

.cart-item-qty {
	color: #E81173;
	font-weight: bold;
	font-size: 0.82rem;
	min-width: 28px;
	text-align: center;
}

.cart-item-price {
	color: #fff;
	font-weight: bold;
	font-size: 0.82rem;
	min-width: 60px;
	text-align: right;
}

.cart-item-controls {
	display: flex;
	gap: 3px;
}

.cart-minus-btn,
.cart-plus-btn {
	background: #E8117333;
	border: 1px solid #E8117366;
	color: #E81173;
	width: 22px;
	height: 22px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: bold;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.cart-minus-btn:hover { background: #FA2C4B44; border-color: #FA2C4B; color: #FA2C4B; }
.cart-plus-btn:hover  { background: #1EBE5A33; border-color: #1EBE5A; color: #1EBE5A; }

/* Vendor footer */
.vendor-cart-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 0.6rem;
	border-top: 1px solid #E8117322;
	flex-wrap: wrap;
}

.vendor-subtotal {
	font-size: 0.82rem;
	color: #aaa;
	font-weight: bold;
}

/* WhatsApp button per vendor */
.whatsapp-btn {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	background: #1EBE5A;
	color: white;
	border: none;
	padding: 0.45em 0.9em;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: bold;
	font-family: 'Amaranth', serif;
	transition: background 0.2s;
	white-space: nowrap;
}

.whatsapp-btn:hover {
	background: #17a04a;
}

.whatsapp-btn i {
	font-size: 1rem;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	img.logo {
		width: 90vw;
		height: auto;
		left: 5vw;
	}

	#cart-panel {
		right: 10px;
		left: 10px;
		width: auto;
		bottom: 5.5em;
	}

	#cart {
		right: 10px;
	}

	#clear-button {
		right: 10px;
	}
}
