/* ============================================
   Nướng WoW – Custom Cart Drawer
   Brand: #134e34 (dark green) + #ffa827 (amber)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;600;700;800;900&display=swap');

:root {
	--wow-green:  #134e34;
	--wow-amber:  #ffa827;
	--wow-amber2: #e59520;
	--wow-light:  #fff8ee;
	--wow-text:   #1a1a1a;
	--wow-muted:  #888;
	--wow-border: #eeeeee;
	--wow-radius: 14px;
}

/* ── Floating trigger tab ───────────────────── */
.tv-cart-trigger {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%) translateX(100%);
	z-index: 9999;
	background: var(--wow-green);
	border-radius: 12px 0 0 12px;
	padding: 12px 10px;
	cursor: pointer;
	box-shadow: -4px 4px 20px rgba(0,0,0,0.25);
	transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.tv-cart-trigger.is-visible { transform: translateY(-50%) translateX(0); }

@keyframes tv-cart-wiggle {
	0%,100% { transform: translateY(-50%) translateX(0); }
	20%      { transform: translateY(-50%) translateX(-10px); }
	40%      { transform: translateY(-50%) translateX(-4px); }
	60%      { transform: translateY(-50%) translateX(-8px); }
	80%      { transform: translateY(-50%) translateX(-2px); }
}
.tv-cart-trigger.tv-cart-wiggle { animation: tv-cart-wiggle 0.55s ease; }

.tv-cart-trigger-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.tv-cart-count-badge {
	font-family: 'Be Vietnam Pro', sans-serif;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--wow-green);
	background: var(--wow-amber);
	padding: 3px 7px;
	border-radius: 6px;
	white-space: nowrap;
}
.tv-cart-total {
	font-family: 'Be Vietnam Pro', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--wow-amber);
}

/* ── Overlay ─────────────────────────────────── */
.tv-cart-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,.45);
	backdrop-filter: blur(2px);
	z-index: 99998;
	opacity: 0; visibility: hidden;
	transition: all .3s ease;
}
.tv-cart-overlay.is-active { opacity:1; visibility:visible; }

/* ── Drawer ──────────────────────────────────── */
.tv-cart-drawer {
	position: fixed;
	top: 0; right: -480px;
	width: 430px;
	max-width: 100vw;
	height: 100dvh;
	background: #fff;
	z-index: 99999;
	box-shadow: -8px 0 40px rgba(0,0,0,.18);
	transition: right .35s cubic-bezier(.4,0,.2,1);
	display: flex;
	flex-direction: column;
	font-family: 'Be Vietnam Pro', sans-serif;
}
.tv-cart-drawer.is-active { right: 0; }

.tv-cart-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

/* ── Header (amber) ──────────────────────────── */
.tv-cart-header-wrapper {
	background: var(--wow-amber);
	padding: 18px 20px 16px;
	flex-shrink: 0;
}
.tv-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.tv-cart-title {
	margin: 0;
	font-size: 26px;
	font-weight: 900;
	color: var(--wow-green);
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: -.3px;
}
.tv-cart-btn-close {
	width: 34px; height: 34px;
	background: #fff;
	border: 2px solid var(--wow-green);
	color: var(--wow-green);
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: all .2s;
	flex-shrink: 0;
}
.tv-cart-btn-close:hover { background: var(--wow-green); color: #fff; }

/* Summary card */
.tv-cart-summary {
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 2px 12px rgba(19,78,52,.1);
}
.tv-cart-summary-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
}
.tv-cart-summary-top h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--wow-green);
}
.tv-cart-summary-total {
	font-size: 20px;
	font-weight: 900;
	color: var(--wow-green);
}
.tv-cart-summary-bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 10px;
}
.tv-cart-summary-bottom p {
	margin: 0;
	font-size: 11px;
	color: var(--wow-muted);
	line-height: 1.5;
	font-style: italic;
	flex: 1;
}
.tv-cart-btn-clear {
	background: transparent;
	border: none;
	font-size: 12px;
	font-weight: 600;
	color: #999;
	cursor: pointer;
	white-space: nowrap;
	padding: 0;
	font-family: 'Be Vietnam Pro', sans-serif;
	transition: color .2s;
}
.tv-cart-btn-clear:hover { color: #e53935; }

/* ── Items list ──────────────────────────────── */
.tv-cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 8px 20px 16px;
	scrollbar-width: thin;
	scrollbar-color: #ddd transparent;
}
.tv-cart-empty-msg {
	text-align: center;
	color: #aaa;
	padding: 48px 0;
	font-size: 14px;
}

/* Item row */
.tv-cart-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--wow-border);
}
.tv-cart-item:last-child { border-bottom: none; }

/* Left block: name + qty */
.tv-cart-item-left {
	flex: 1;
	min-width: 0;
}
.tv-cart-item-left h4 {
	margin: 0 0 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--wow-text) !important;
	line-height: 1.35 !important;
	word-break: break-word;
}

/* Qty stepper - Premium Pill Design */
.tv-cart-item-qty {
	display: inline-flex !important;
	align-items: center !important;
	height: 36px !important;
	border-radius: 18px !important;
	border: 1px solid #e0e0e0 !important;
	background: #fcfcfc !important;
	margin-top: 6px !important;
	overflow: hidden !important;
	width: fit-content !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

.tv-qty-btn {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	background: transparent !important;
	border: none !important;
	color: #666 !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	user-select: none !important;
	transition: all 0.2s ease !important;
	border-radius: 0 !important;
}

.tv-qty-btn:hover { 
	background: #f0f0f0 !important; 
	color: var(--wow-green) !important;
}

.tv-qty-display {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--wow-text) !important;
	width: 28px !important;
	height: 36px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: 'Be Vietnam Pro', sans-serif !important;
	user-select: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
}
.tv-cart-item .tv-qty-input { display: none !important; }


/* Right block: price + remove */
.tv-cart-item-right {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.tv-cart-item-total {
	font-size: 14px !important;
	font-weight: 800 !important;
	color: var(--wow-green) !important;
	white-space: nowrap !important;
}
.tv-cart-item-remove {
	background: transparent !important;
	border: none !important;
	color: #ccc !important;
	font-size: 13px !important;
	cursor: pointer !important;
	padding: 4px !important;
	line-height: 1 !important;
	transition: color .2s !important;
}
.tv-cart-item-remove:hover { color: #e53935 !important; }

/* ── Footer ──────────────────────────────────── */
.tv-cart-footer {
	padding: 16px 20px 20px;
	border-top: 1px solid var(--wow-border);
	background: #fff;
	flex-shrink: 0;
}
.tv-cart-book-btn {
	width: 100%;
	background: var(--wow-amber);
	color: var(--wow-green);
	border: none;
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 900;
	font-family: 'Be Vietnam Pro', sans-serif;
	border-radius: 50px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .5px;
	transition: all .25s;
	box-shadow: 0 4px 16px rgba(255,168,39,.35);
}
.tv-cart-book-btn:hover {
	background: var(--wow-amber2);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255,168,39,.45);
}
.tv-cart-book-btn:disabled {
	background: #eee;
	color: #aaa;
	box-shadow: none;
	transform: none;
	cursor: not-allowed;
}
.tv-cart-call-msg {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--wow-muted);
	text-align: center;
}
.tv-cart-call-msg strong { color: var(--wow-green); font-weight: 800; }

/* ── Prevent scroll when open ────────────────── */
body.tv-cart-open { overflow: hidden; }
