/* ═══════════════════════════════════════
   Auth & Cart — Shared CSS for all pages
   ═══════════════════════════════════════ */

/* Header Login Button */
.header-login {
	display: flex;
	align-items: center;
	gap: 8px;
}
.header-login .login-btn {
	color: #fff;
	text-decoration: none;
	font-family: 'Clash Display', 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.3s ease;
}
.header-login .login-btn:hover {
	color: rgba(255,255,255,0.7);
}

/* POS Login Modal */
.pos-modal-card {
	display: flex;
	background: #1a1a2e;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0,0,0,0.6);
	max-height: 90vh;
}
.pos-modal-left {
	flex: 1;
	padding: 40px 45px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}
.pos-modal-right {
	flex: 1;
	position: relative;
	min-height: 480px;
}
.pos-modal-right img {
	width: calc(100% - 24px);
	height: calc(100% - 24px);
	object-fit: cover;
	border-radius: 16px;
	margin: 12px;
}
.pos-window-dots {
	display: flex;
	gap: 7px;
	margin-bottom: 40px;
}
.pos-window-dots span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
}
.pos-login-form-title {
	font-family: 'Clash Display', 'Montserrat', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}
.pos-login-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	color: rgba(255,255,255,0.4);
	margin-bottom: 35px;
}
.pos-form-group {
	margin-bottom: 18px;
}
.pos-form-group label {
	display: none;
}
.pos-form-group input {
	width: 100%;
	padding: 16px 22px;
	background: rgba(123,134,252,0.08);
	border: 1.5px solid rgba(123,134,252,0.2);
	border-radius: 50px;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	outline: none;
	transition: all 0.3s ease;
}
.pos-form-group input::placeholder {
	color: rgba(255,255,255,0.3);
}
.pos-form-group input:focus {
	border-color: #7B86FC;
	background: rgba(123,134,252,0.12);
	box-shadow: 0 0 20px rgba(123,134,252,0.12);
}
.pos-login-btn {
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, #7B86FC 0%, #4B5AFF 100%);
	border: none;
	border-radius: 50px;
	color: #fff;
	font-family: 'Clash Display', 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: 0.5px;
	transition: all 0.35s ease;
	box-shadow: 0 8px 25px rgba(75,90,255,0.3);
	margin-top: 12px;
}
.pos-login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 35px rgba(75,90,255,0.45);
	background: linear-gradient(135deg, #8B96FF 0%, #5B6AFF 100%);
}
.pos-login-btn:active {
	transform: translateY(0);
}
.pos-register-link {
	text-align: center;
	margin-top: 20px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	color: rgba(255,255,255,0.35);
}
.pos-register-link a {
	color: #7B86FC;
	text-decoration: none;
	font-weight: 600;
}
.pos-register-link a:hover {
	color: #a8b0ff;
}
@media (max-width: 767px) {
	.pos-modal-card {
		flex-direction: column;
		max-width: 95%;
	}
	.pos-modal-right {
		min-height: 200px;
		order: -1;
	}
	.pos-modal-left {
		padding: 30px;
	}
}

/* Cart Icon & Dropdown */
.header-cart {
	position: relative;
	margin-left: 20px;
}
.header-cart .cart-icon-btn {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	position: relative;
	padding: 5px;
	transition: color 0.3s;
}
.header-cart .cart-icon-btn:hover {
	color: rgba(255,255,255,0.7);
}
.cart-badge {
	position: absolute;
	top: -4px;
	right: -6px;
	background: #7B86FC;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	font-family: 'Montserrat', sans-serif;
	line-height: 1;
}
.cart-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	width: 360px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
	z-index: 9999;
	overflow: hidden;
}
.cart-dropdown.active {
	display: block;
	animation: cartSlideIn 0.25s ease;
}
@keyframes cartSlideIn {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}
.cart-dropdown-header {
	padding: 20px 24px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.cart-dropdown-header h4 {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #111;
	margin: 0;
}
.cart-dropdown-header .cart-count {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	color: #999;
}
.cart-dropdown-items {
	padding: 8px 0;
	max-height: 300px;
	overflow-y: auto;
}
.cart-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	transition: background 0.2s;
}
.cart-item:hover {
	background: #f9f9fb;
}
.cart-item-img {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: #f5f5f7;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.cart-item-img img {
	max-width: 40px;
	max-height: 40px;
	object-fit: contain;
}
.cart-item-info {
	flex: 1;
	min-width: 0;
}
.cart-item-name {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #111;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cart-item-meta {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}
.cart-item-price {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #7B86FC;
	white-space: nowrap;
}
.cart-item-remove {
	background: none;
	border: none;
	color: #ccc;
	cursor: pointer;
	font-size: 14px;
	padding: 4px;
	transition: color 0.2s;
}
.cart-item-remove:hover {
	color: #e74c3c;
}
.cart-dropdown-footer {
	padding: 16px 24px;
	border-top: 1px solid #f0f0f0;
}
.cart-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.cart-total-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #555;
}
.cart-total-value {
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #111;
}
.cart-checkout-btn {
	width: 100%;
	background: #111;
	color: #fff;
	border: none;
	padding: 12px;
	border-radius: 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.25s;
}
.cart-checkout-btn:hover {
	background: #222;
}
.cart-empty {
	padding: 32px 24px;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	color: rgba(0,0,0,0.3);
}
.cart-empty i {
	font-size: 36px;
	display: block;
	margin-bottom: 12px;
	color: rgba(0,0,0,0.1);
}

/* Clear Cart Button */
.cart-clear-btn {
	display: none;
	align-items: center;
	gap: 4px;
	background: none;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	color: #999;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 10px;
	transition: all 0.2s ease;
}
.cart-clear-btn:hover {
	color: #e74c3c;
	border-color: #e74c3c;
	background: rgba(231,76,60,0.05);
}
.cart-clear-btn i {
	font-size: 11px;
}

/* Cart dropdown responsive */
@media only screen and (max-width: 480px) {
	.cart-dropdown {
		right: -60px;
		width: 300px;
	}
}
@media only screen and (max-width: 480px) {
	.pos-modal-card {
		flex-direction: column;
	}
	.pos-modal-left {
		display: none;
	}
	.pos-modal-right {
		padding: 24px 16px;
	}
}
