/* Zuggu Shop Page */
:root {
	--zs-purple-700: #6d28d9;
	--zs-purple-600: #7c3aed;
	--zs-purple-500: #8b5cf6;
	--zs-purple-100: #ede9fe;
	--zs-ink: #1f1130;
	--zs-muted: #6b7280;
	--zs-bg: #f5f4f8;
	--zs-white: #ffffff;
	--zs-border: #e7e4ee;
	--zs-radius-lg: 20px;
	--zs-radius-md: 14px;
	--zs-danger: #dc2626;
	--zs-gold: #d97706;
	--zs-clear: 60px; /* height of your separate bottom-menu plugin's bar — overridden inline from the "Bottom menu clearance" setting */
}
.zs, .zs *, .zs *::before, .zs *::after { box-sizing: border-box; }
.zs {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	background: var(--zs-bg);
	color: var(--zs-ink);
	min-height: 100vh;
	position: relative;
	padding-bottom: calc(var(--zs-clear) + 30px);
}

/* These five are relocated to <body> at runtime (see zuggu-shop.js) so their
   fixed positioning can never be broken by a transformed ancestor elsewhere
   on the page — so they need their own explicit box-sizing/font/color
   instead of inheriting it from .zs. */
.zs-footer-stack, .zs-footer-stack *,
.zs-cart-drawer, .zs-cart-drawer *,
.zs-modal-overlay, .zs-modal-overlay *,
.zs-vendor-page, .zs-vendor-page *,
.zs-toast, .zs-toast * {
	box-sizing: border-box;
}
.zs-footer-stack, .zs-cart-drawer, .zs-modal-overlay, .zs-vendor-page, .zs-toast {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--zs-ink);
}

/* Responsive shell: widen progressively for tablet / desktop */
@media (min-width: 768px) {
	.zs { padding-bottom: 0; }
	.zs-body { max-width: 1100px; margin: 0 auto; padding: 20px 24px 100px; }
	.zs-header { max-width: 1100px; margin: 0 auto; padding: 18px 24px 14px; }
	.zs-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* the cart button, cart drawer, and pop-up sheets stay a comfortable
	   app-card width even on wide screens, rather than stretching edge to edge */
	.zs-footer-stack, .zs-cart-drawer, .zs-modal { max-width: 480px; }
}
@media (min-width: 1200px) {
	.zs-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.zs-vendor-page .zs-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.zs-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------- Header: location + search ---------------- */
.zs-header {
	background: linear-gradient(135deg, var(--zs-purple-600), var(--zs-purple-700));
	padding: 14px 16px 8px;
	position: relative;
	border-radius: 0 0 22px 22px;
}
.zs-location-pill {
	display: inline-flex; align-items: center; gap: 6px;
	background: rgba(255,255,255,0.16); border: none; border-radius: 999px;
	color: #fff; padding: 7px 12px; font-size: 12.5px; margin-bottom: 8px; cursor: pointer;
}
.zs-location-text strong { font-weight: 700; }
.zs-search-bar {
	display: flex; align-items: center; gap: 10px;
	background: #fff; border-radius: 14px; padding: 12px 14px;
	box-shadow: 0 6px 18px rgba(31,17,48,0.18);
}
.zs-search-bar svg { color: var(--zs-purple-600); flex-shrink: 0; }
.zs-search-bar input { flex: 1; border: none; outline: none; font-size: 14.5px; background: transparent; color: var(--zs-ink); min-width: 0; }
.zs-search-clear { background: none; border: none; color: var(--zs-muted); cursor: pointer; font-size: 13px; padding: 4px; }
.zs-search-suggestions {
	position: absolute; left: 16px; right: 16px; top: 100%; margin-top: 6px;
	background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(31,17,48,0.22);
	max-height: 60vh; overflow-y: auto; z-index: 99990;
}
.zs-suggest-section-label { padding: 10px 14px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--zs-muted); }
.zs-suggest-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; cursor: pointer; }
.zs-suggest-item:hover { background: var(--zs-purple-100); }
.zs-suggest-item img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #f0eef6; flex-shrink: 0; }
.zs-suggest-item-name { flex: 1; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zs-suggest-item-price { font-size: 12.5px; color: var(--zs-purple-700); font-weight: 700; }
.zs-suggest-empty { padding: 18px; text-align: center; color: var(--zs-muted); font-size: 13px; }

.zs-body { padding: 5px 16px 100px; }

/* ---------------- Banner carousel ---------------- */
.zs-carousel-wrap { margin-bottom: 5px; }
.zs-carousel-wrap[hidden] { display: none; }
.zs-carousel-track {
	display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
	scrollbar-width: none; padding-bottom: 2px;
}
.zs-carousel-track::-webkit-scrollbar { display: none; }
.zs-carousel-slide {
	flex: 0 0 150px; width: 150px; height: 150px; scroll-snap-align: start;
	border-radius: var(--zs-radius-md); overflow: hidden; cursor: pointer; position: relative; background: var(--zs-purple-100);
	transition: transform .12s ease;
}
.zs-carousel-slide:active { transform: scale(0.96); }
.zs-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- Category chips ---------------- */
.zs-vendor-list-link {
	display: inline-block; margin: 0 0 5px; font-size: 12px; font-weight: 700; color: var(--zs-purple-700);
	text-decoration: none; padding: 5px 12px; border: 1.5px solid var(--zs-purple-100); border-radius: 999px; background: var(--zs-purple-100);
	transition: transform .12s ease;
}
.zs-vendor-list-link:active { transform: scale(0.96); }

.zs-categories-wrap { margin-bottom: 5px; position: relative; }
.zs-categories-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-behavior: smooth; }
.zs-categories-scroll::-webkit-scrollbar { display: none; }
.zs-cat-nav {
	position: absolute; top: 0; bottom: 2px; width: 30px; display: flex; align-items: center; justify-content: center;
	border: none; cursor: pointer; font-size: 20px; font-weight: 700; color: var(--zs-purple-700); z-index: 5;
}
.zs-cat-nav[hidden] { display: none; }
.zs-cat-nav-left { left: -4px; background: linear-gradient(to right, var(--zs-bg) 55%, transparent); }
.zs-cat-nav-right { right: -4px; background: linear-gradient(to left, var(--zs-bg) 55%, transparent); }
.zs-cat-chip {
	flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
	background: var(--zs-white); border: 1.5px solid var(--zs-border); border-radius: 14px;
	padding: 10px 14px; cursor: pointer; min-width: 68px;
	transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.zs-cat-chip:active { transform: scale(0.94); }
.zs-cat-chip.is-selected { border-color: var(--zs-purple-600); background: var(--zs-purple-100); }
.zs-cat-chip-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--zs-purple-100); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 16px; }
.zs-cat-chip-icon img { width: 100%; height: 100%; object-fit: cover; }
.zs-cat-chip-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.zs-skeleton-chip { flex: 0 0 68px; height: 68px; border-radius: 14px; }

/* ---------------- Filter / sort bar ---------------- */
.zs-filter-bar { margin-bottom: 5px; }
.zs-filter-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.zs-icon-btn {
	display: flex; align-items: center; gap: 6px; background: var(--zs-white); border: 1.5px solid var(--zs-border);
	border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--zs-ink);
	transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.zs-icon-btn:active { transform: scale(0.95); }
.zs-icon-btn[aria-expanded="true"] { border-color: var(--zs-purple-600); background: var(--zs-purple-100); color: var(--zs-purple-700); }
#zs-open-sort { margin-left: auto; }
.zs-filter-count {
	background: var(--zs-purple-600); color: #fff; border-radius: 999px; min-width: 17px; height: 17px; padding: 0 5px;
	font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Anchored popovers — open right under their trigger button, never a
   full-screen sheet, so results never require scrolling to find. */
.zs-dropdown-panel {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 99990;
	background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(31,17,48,0.2);
	width: min(300px, 88vw); max-height: 70vh; overflow-y: auto; padding: 4px 0;
	transform-origin: top left; opacity: 1; visibility: visible; transform: scale(1) translateY(0);
	transition: opacity .1s ease, transform .1s ease, visibility .1s;
}
.zs-dropdown-panel[hidden] { opacity: 0; visibility: hidden; transform: scale(0.96) translateY(-4px); pointer-events: none; }
.zs-dropdown-panel-right { left: auto; right: 0; padding: 6px; transform-origin: top right; }
.zs-dropdown-panel .zs-filter-group:first-child { padding-top: 14px; }
.zs-sort-option { display: block; width: 100%; text-align: left; background: none; border: none; border-radius: 10px; padding: 11px 12px; font-size: 13.5px; cursor: pointer; color: var(--zs-ink); }
.zs-sort-option.is-selected { background: var(--zs-purple-100); color: var(--zs-purple-700); font-weight: 700; }

.zs-active-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.zs-active-chip { background: var(--zs-purple-100); color: var(--zs-purple-700); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.zs-active-chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: 11px; }

/* ---------------- Section headers ---------------- */
.zs-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.zs-section-header h2 { font-size: 17px; font-weight: 700; margin: 0; }
.zs-section-sub { font-size: 12px; color: var(--zs-muted); }

/* ---------------- Flash sale row ---------------- */
.zs-flash-sale { margin-bottom: 12px; }
.zs-flash-sale[hidden] { display: none; }
.zs-flash-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.zs-flash-scroll::-webkit-scrollbar { display: none; }
.zs-flash-scroll .zs-product-card { flex: 0 0 150px; }

/* ---------------- Product grid (same visual language as the wizard's Select Products step) ---------------- */
.zs-products-section { margin-bottom: 14px; }
.zs-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.zs-product-card {
	background: var(--zs-white); border: 1.5px solid var(--zs-border); border-radius: var(--zs-radius-md);
	overflow: hidden; display: flex; flex-direction: column; height: 100%; min-width: 0; position: relative;
	box-shadow: 0 1px 3px rgba(31,17,48,0.04); transition: box-shadow .15s ease, border-color .15s ease;
}
.zs-product-card:active { box-shadow: 0 1px 2px rgba(31,17,48,0.06); }
.zs-product-card.is-in-cart { border-color: var(--zs-purple-600); }
.zs-product-badge { position: absolute; top: 8px; left: 8px; background: var(--zs-danger); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; z-index: 2; }
.zs-product-img-wrap { width: 100%; aspect-ratio: 1/1; background: #f0eef6; overflow: hidden; cursor: pointer; position: relative; }
.zs-product-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-product-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.zs-product-card-vendor { font-size: 11px; color: var(--zs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zs-product-card-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; cursor: pointer; word-break: break-word; overflow-wrap: anywhere; }
.zs-product-card-rating { font-size: 11.5px; color: var(--zs-gold); font-weight: 600; }
.zs-product-card-price-row { display: flex; align-items: baseline; gap: 6px; }
.zs-product-card-price { font-size: 14px; font-weight: 700; color: var(--zs-purple-700); }
.zs-product-card-regular { font-size: 11.5px; color: var(--zs-muted); text-decoration: line-through; }
.zs-product-card-footer { margin-top: auto; }
.zs-add-btn { width: 100%; background: var(--zs-purple-100); color: var(--zs-purple-700); border: none; border-radius: 999px; padding: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.zs-add-btn:active { transform: scale(0.95); background: var(--zs-purple-500); color: #fff; }
.zs-qty-stepper { display: flex; align-items: center; justify-content: space-between; background: var(--zs-purple-600); border-radius: 999px; padding: 4px; }
.zs-qty-stepper button { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(255,255,255,0.2); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zs-qty-stepper span { color: #fff; font-weight: 700; font-size: 13.5px; }
.zs-qty-stepper-lg { max-width: 130px; }
.zs-qty-stepper-lg button { width: 32px; height: 32px; }

.zs-empty-state { text-align: center; padding: 40px 20px; color: var(--zs-muted); font-size: 14px; grid-column: 1 / -1; }
.zs-retry-link { background: none; border: none; color: var(--zs-purple-600); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 0; }
.zs-load-more { width: 100%; margin-top: 14px; background: var(--zs-white); border: 1.5px solid var(--zs-border); border-radius: 999px; padding: 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.zs-load-more[hidden] { display: none; }

/* ---------------- Vendor storefront page ---------------- */
.zs-vendor-page {
	position: fixed; inset: 0; background: var(--zs-bg); z-index: 99991; overflow-y: auto; max-width: 480px; margin: 0 auto;
	transition: transform .18s cubic-bezier(.22,.61,.36,1), visibility .18s;
	transform: translateX(0); visibility: visible;
}
.zs-vendor-page[hidden] { transform: translateX(100%); visibility: hidden; pointer-events: none; }
@media (min-width: 768px) { .zs-vendor-page { max-width: 100%; } }
.zs-vendor-page-header { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--zs-white); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--zs-border); font-weight: 700; }
.zs-back-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--zs-purple-100); border: none; color: var(--zs-purple-700); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.zs-vendor-banner { width: 100%; height: 140px; background: linear-gradient(135deg, var(--zs-purple-600), var(--zs-purple-700)); background-size: cover; background-position: center; }
.zs-vendor-info-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--zs-white); margin: -24px 12px 16px; border-radius: var(--zs-radius-md); box-shadow: 0 6px 18px rgba(31,17,48,0.1); position: relative; }
.zs-vendor-avatar-lg { width: 56px; height: 56px; border-radius: 14px; background: var(--zs-purple-100); overflow: hidden; flex-shrink: 0; border: 3px solid #fff; }
.zs-vendor-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.zs-vendor-info-text { min-width: 0; }
.zs-vendor-info-text strong { display: block; font-size: 15px; }
.zs-vendor-info-text small { color: var(--zs-muted); font-size: 12.5px; }
.zs-vendor-rating { font-size: 12px; color: var(--zs-gold); font-weight: 700; }
.zs-vendor-page .zs-product-grid { padding: 0 12px; }

/* ---------------- Modal shell (product sheet, filters, checkout) ---------------- */
.zs-modal-overlay {
	position: fixed; inset: 0; background: rgba(20,10,35,0.5); display: flex; align-items: flex-end; z-index: 99995; padding-bottom: var(--zs-clear);
	opacity: 1; visibility: visible; transition: opacity .14s ease, visibility .14s;
}
.zs-modal-overlay[hidden] { opacity: 0; visibility: hidden; pointer-events: none; }
.zs-modal {
	background: #fff; width: 100%; max-width: 480px; margin: 0 auto; border-radius: 24px 24px 0 0; max-height: 88vh; overflow-y: auto;
	transition: transform .18s cubic-bezier(.22,.61,.36,1);
	transform: translateY(0);
}
.zs-modal-overlay[hidden] .zs-modal { transform: translateY(24px); }
@media (min-width: 768px) {
	.zs-modal-overlay { align-items: center; }
	.zs-modal { border-radius: 20px; max-height: 80vh; }
}
.zs-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 4px; gap: 10px; position: sticky; top: 0; background: #fff; z-index: 2; }
.zs-modal-header h3 { margin: 0; font-size: 16px; flex: 1; text-align: center; }
.zs-modal-close { background: none; border: none; font-size: 16px; color: var(--zs-muted); cursor: pointer; }

/* Product detail sheet — internal scroll region + a sticky action bar that's
   always visible without scrolling and sits right above your bottom nav. */
.zs-modal.zs-product-sheet { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.zs-product-sheet-scroll { overflow-y: auto; flex: 1 1 auto; min-height: 0; position: relative; }
.zs-product-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.95); border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.18); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; color: var(--zs-ink); padding: 0; }
.zs-product-gallery { width: 100%; aspect-ratio: 1/1; background: #f0eef6; overflow-x: auto; display: flex; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px 24px 0 0; }
.zs-product-gallery::-webkit-scrollbar { display: none; }
.zs-product-gallery img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; scroll-snap-align: start; }
.zs-product-sheet-body { padding: 18px 20px 6px; }
.zs-product-vendor-link { font-size: 12.5px; color: var(--zs-purple-700); font-weight: 600; margin-bottom: 6px; cursor: pointer; }
.zs-product-sheet-title { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.zs-product-sheet-rating { font-size: 13px; color: var(--zs-gold); font-weight: 600; margin-bottom: 10px; }
.zs-product-sheet-desc { font-size: 13.5px; color: var(--zs-muted); line-height: 1.5; margin: 0 0 16px; }
.zs-product-attributes { margin-bottom: 4px; }
.zs-attr-group { margin-bottom: 14px; }
.zs-attr-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: block; }
.zs-attr-options { display: flex; gap: 8px; flex-wrap: wrap; }
.zs-attr-swatch { border: 1.5px solid var(--zs-border); background: var(--zs-white); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.zs-attr-swatch.is-selected { border-color: var(--zs-purple-600); background: var(--zs-purple-100); color: var(--zs-purple-700); }
.zs-attr-swatch.zs-color-swatch { width: 32px; height: 32px; padding: 0; border-radius: 50%; }
.zs-product-sheet-sticky { flex: 0 0 auto; padding: 12px 20px 18px; border-top: 1px solid var(--zs-border); background: #fff; }
.zs-product-sheet-footer { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.zs-product-sheet-price { font-size: 20px; font-weight: 700; color: var(--zs-purple-700); }
.zs-add-to-cart-btn { width: 100%; background: var(--zs-purple-600); color: #fff; border: none; border-radius: 999px; padding: 15px; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 6px 18px rgba(124,58,237,0.35); transition: transform .12s ease; }
.zs-add-to-cart-btn:active:not(:disabled) { transform: scale(0.97); }
.zs-add-to-cart-btn:disabled { background: #cabdf0; cursor: not-allowed; box-shadow: none; }

/* Filter drawer */
.zs-filter-group { padding: 14px 20px; border-bottom: 1px solid var(--zs-border); }
.zs-filter-label { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: block; }
.zs-price-inputs { display: flex; align-items: center; gap: 10px; }
.zs-price-inputs input { flex: 1; border: 1.5px solid var(--zs-border); border-radius: 10px; padding: 10px 12px; font-size: 14px; min-width: 0; }
.zs-rating-options { display: flex; gap: 8px; flex-wrap: wrap; }
.zs-rating-options button { border: 1.5px solid var(--zs-border); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.zs-rating-options button.is-selected { border-color: var(--zs-purple-600); background: var(--zs-purple-100); color: var(--zs-purple-700); font-weight: 700; }
.zs-filter-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.zs-filter-actions { display: flex; gap: 10px; padding: 16px 20px 0; }
.zs-filter-reset { flex: 1; background: var(--zs-white); border: 1.5px solid var(--zs-border); border-radius: 999px; padding: 13px; font-weight: 700; font-size: 14px; cursor: pointer; }
.zs-filter-apply { flex: 2; background: var(--zs-purple-600); color: #fff; border: none; border-radius: 999px; padding: 13px; font-weight: 700; font-size: 14px; cursor: pointer; }

/* ---------------- Floating cart button ---------------- */
/* Sits a fixed distance above your bottom-menu plugin's bar, controlled by
   the "Bottom menu clearance" setting (--zs-clear) — it does not move on
   scroll since position:fixed is relative to the viewport, not the page. */
.zs-footer-stack {
	position: fixed; left: 50%; transform: translateX(-50%);
	bottom: calc(var(--zs-clear) + 10px);
	width: 100%; max-width: 480px; padding: 0 16px; z-index: 99985; pointer-events: none;
}
.zs-footer-stack > * { pointer-events: auto; }
.zs-cart-btn {
	width: 100% !important; background: var(--zs-ink); color: #fff; border: none; border-radius: 999px;
	padding: 12px 18px; display: flex !important; align-items: center; gap: 10px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.25); cursor: pointer;
	transition: transform .15s cubic-bezier(.34,1.56,.64,1), opacity .12s ease, visibility .12s;
	opacity: 1; visibility: visible; transform: scale(1) translateY(0);
}
.zs-cart-btn:active { transform: scale(0.97); }
.zs-cart-btn[hidden] { opacity: 0; visibility: hidden; transform: scale(0.9) translateY(8px); pointer-events: none; }
.zs-cart-icon { font-size: 16px; }
.zs-cart-count { background: var(--zs-purple-600); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.zs-cart-total { flex: 1; text-align: left; font-weight: 700; font-size: 14px; }
.zs-cart-chevron { font-size: 11px; opacity: 0.7; }

.zs-cart-drawer {
	position: fixed; left: 0; right: 0; max-width: 480px; margin: 0 auto; bottom: var(--zs-clear);
	background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
	z-index: 99996; max-height: 66vh; display: flex; flex-direction: column;
	transition: transform .18s cubic-bezier(.22,.61,.36,1), visibility .18s;
	transform: translateY(0); visibility: visible;
}
.zs-cart-drawer[hidden] { transform: translateY(110%); visibility: hidden; pointer-events: none; }
.zs-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--zs-border); }
.zs-cart-minimize { background: none; border: none; font-size: 13px; color: var(--zs-muted); cursor: pointer; }
.zs-cart-items { flex: 1; overflow-y: auto; padding: 10px 20px; }
.zs-cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--zs-border); }
.zs-cart-item:last-child { border-bottom: none; }
.zs-cart-item-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #f0eef6; flex-shrink: 0; }
.zs-cart-item-info { flex: 1; min-width: 0; }
.zs-cart-item-info strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-cart-item-info small { color: var(--zs-muted); font-size: 12px; }
.zs-cart-item-qty { display: flex; align-items: center; gap: 6px; }
.zs-cart-item-qty button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--zs-border); background: #fff; font-size: 13px; cursor: pointer; }
.zs-cart-item-remove { background: none; border: none; color: var(--zs-danger); font-size: 16px; cursor: pointer; padding: 4px; flex-shrink: 0; }
.zs-cart-drawer-footer { padding: 12px 20px 16px; border-top: 1px solid var(--zs-border); }
.zs-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.zs-cart-checkout-btn { width: 100%; background: var(--zs-purple-600); color: #fff; border: none; border-radius: 999px; padding: 15px; font-weight: 700; font-size: 15px; cursor: pointer; }

/* ---------------- Checkout flow: location / summary / payment ---------------- */
.zs-checkout-modal { max-width: 480px; }
.zs-checkout-step { padding: 4px 20px 20px; }
.zs-checkout-step[hidden] { display: none; }
.zs-step-sub { font-size: 13.5px; color: var(--zs-muted); margin: 0 0 14px; }
.zs-area-select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--zs-border); background: #fff; font-size: 14px; margin-bottom: 12px; }
.zs-map-wrap { position: relative; width: 100%; height: 42vh; min-height: 280px; max-height: 420px; border-radius: 16px; overflow: hidden; }
#zs-map { width: 100%; height: 100%; }
.zs-map-locate-btn { position: absolute; bottom: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--zs-purple-700); border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.25); font-size: 18px; cursor: pointer; z-index: 5; }
.zs-map-address-overlay { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; background: #fff; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,0.18); padding: 4px 6px 4px 16px; display: flex; align-items: center; gap: 10px; }
.zs-map-address-overlay input { flex: 1; border: none; outline: none; font-size: 14px; padding: 11px 0; background: transparent; color: var(--zs-ink); min-width: 0; }

.zs-summary-card { background: var(--zs-bg); border-radius: var(--zs-radius-md); padding: 4px 2px; }
.zs-summary-vendor-group { margin-bottom: 10px; }
.zs-summary-vendor-name { font-size: 12.5px; font-weight: 700; color: var(--zs-purple-700); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.zs-summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--zs-muted); }
.zs-summary-row strong { color: var(--zs-ink); font-weight: 500; }
.zs-summary-divider { border: none; border-top: 1px solid var(--zs-border); margin: 8px 0; }
.zs-summary-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding-top: 6px; }
.zs-summary-total span:last-child { color: var(--zs-purple-700); }

.zs-modal-total { padding: 0 20px; color: var(--zs-muted); font-size: 14px; margin: 0 0 14px; }
.zs-modal-total strong { color: var(--zs-ink); }
.zs-payment-options { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; margin-bottom: 6px; }
.zs-payment-option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--zs-border); border-radius: 14px; padding: 14px; cursor: pointer; }
.zs-payment-option input { display: none; }
.zs-payment-option.is-selected { border-color: #16a34a; background: #f0fdf4; }
.zs-payment-icon img { max-height: 24px; max-width: 40px; }
.zs-payment-text { flex: 1; display: flex; flex-direction: column; }
.zs-payment-text small { color: var(--zs-muted); font-size: 12.5px; }
.zs-payment-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1cbe0; flex-shrink: 0; }
.zs-payment-option.is-selected .zs-payment-radio { border-color: #16a34a; background: #16a34a; }

.zs-checkout-continue-btn {
	position: sticky; bottom: 0; width: calc(100% - 40px); margin: 8px 20px 16px;
	background: var(--zs-purple-600); color: #fff; border: none; border-radius: 999px; padding: 15px;
	font-weight: 700; font-size: 15px; cursor: pointer;
}
.zs-checkout-continue-btn:disabled { background: #cabdf0; cursor: not-allowed; }

.zs-toast { position: fixed; bottom: calc(var(--zs-clear) + 80px); left: 50%; transform: translateX(-50%); background: var(--zs-ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 13px; z-index: 99998; max-width: 90vw; text-align: center; }

.zs-skeleton { height: 68px; border-radius: var(--zs-radius-md); background: linear-gradient(90deg, #eceaf3 25%, #f5f4f8 37%, #eceaf3 63%); background-size: 400% 100%; animation: zs-shimmer 1.4s ease infinite; }
.zs-skeleton-card { aspect-ratio: 3/4; height: auto; }
@keyframes zs-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .zs-skeleton { animation: none; } }
