/* ============================================================================
   Plan One — Booking System Stylesheet
   Cart, Checkout, Confirm, Modal popup, Add-to-cart UI
   ============================================================================ */

/* ─── Cart Item (used on cart page) ─── */
.cart-item {
	display: grid;
	grid-template-columns: 100px 1fr auto;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: white;
	margin-bottom: 12px;
	align-items: center;
}

.cart-item-thumb {
	width: 100px;
	height: 80px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tint);
}
.cart-item-thumb img,
.cart-item-thumb svg { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { display: flex; flex-direction: column; gap: 6px; }
.cart-item-code { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.cart-item-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.cart-item-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-500); }

.cart-item-controls { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-item-price { font-size: 18px; font-weight: 800; color: var(--ink); }
.cart-item-remove {
	background: none;
	border: 1px solid var(--line);
	color: var(--danger);
	width: 36px; height: 36px;
	border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: all .15s;
}
.cart-item-remove:hover { background: var(--danger-50); border-color: var(--danger); }

/* ─── Months selector inside cart ─── */
.month-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.month-pill {
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: white;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-500);
	cursor: pointer;
	transition: all .15s;
	user-select: none;
}
.month-pill:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.month-pill.active { background: var(--brand); color: white; border-color: var(--brand); }
.month-pill:disabled,
.month-pill.disabled { opacity: .35; cursor: not-allowed; }

/* ─── Cart Summary (sidebar) ─── */
.cart-summary {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}
.cart-summary-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--ink); }

.summary-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 14px;
	color: var(--ink-500);
}
.summary-row strong { color: var(--ink); font-weight: 600; }
.summary-row.discount { color: var(--ok); }
.summary-row.discount strong { color: var(--ok); }
.summary-row.total {
	border-top: 1px solid var(--line);
	margin-top: 8px;
	padding-top: 16px;
	font-size: 16px;
	color: var(--ink);
}
.summary-row.total .summary-val { font-size: 24px; font-weight: 800; }

/* ─── Coupon ─── */
.coupon-form {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	margin-bottom: 16px;
}
.coupon-form .input { flex: 1; height: 42px; }
.coupon-form .btn { height: 42px; padding: 0 18px; }

.coupon-applied {
	background: var(--ok-50);
	color: var(--ok);
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.coupon-applied button {
	background: none;
	border: 0;
	color: var(--ok);
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	padding: 0 6px;
}

/* ─── Empty cart ─── */
.cart-empty {
	text-align: center;
	padding: 80px 20px;
}
.cart-empty-icon {
	width: 80px; height: 80px;
	margin: 0 auto 20px;
	background: var(--brand-50);
	color: var(--brand);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cart-empty h2 { font-size: 24px; margin-bottom: 8px; }
.cart-empty p { color: var(--ink-500); margin-bottom: 24px; }

/* ─── Checkout ─── */
.checkout-form { display: flex; flex-direction: column; gap: 20px; }
.checkout-section {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}
.checkout-section h3 { font-size: 18px; margin-bottom: 16px; color: var(--ink); }

.checkout-fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.checkout-fields .field-full { grid-column: 1 / -1; }

/* ─── Payment methods ─── */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 2px solid var(--line);
	border-radius: 12px;
	cursor: pointer;
	transition: all .15s;
	background: white;
}
.payment-method:hover { border-color: var(--brand); background: var(--brand-50); }
.payment-method input[type="radio"] {
	margin: 4px 0 0;
	accent-color: var(--brand);
	width: 18px; height: 18px;
}
.payment-method.active {
	border-color: var(--brand);
	background: var(--brand-50);
}
.payment-method-info { flex: 1; }
.payment-method-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.payment-method-desc { font-size: 13px; color: var(--ink-500); }
.payment-method-extra {
	margin-top: 12px;
	padding: 12px;
	background: var(--bg-soft, var(--tint));
	border-radius: 8px;
	font-size: 13px;
	color: var(--ink-700);
	white-space: pre-wrap;
}

/* ─── File upload ─── */
.file-upload {
	border: 2px dashed var(--line);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	cursor: pointer;
	transition: all .15s;
	background: var(--bg-soft, var(--tint));
}
.file-upload:hover { border-color: var(--brand); background: var(--brand-50); }
.file-upload input[type="file"] { display: none; }
.file-upload-icon {
	width: 48px; height: 48px;
	margin: 0 auto 12px;
	color: var(--brand);
}
.file-upload-text { font-size: 14px; color: var(--ink-500); }
.file-upload-text strong { color: var(--brand); font-weight: 700; }

.file-uploaded {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: var(--ok-50);
	border-radius: 10px;
	margin-top: 8px;
}
.file-uploaded-name { font-size: 13px; color: var(--ok); font-weight: 600; }
.file-remove {
	background: none;
	border: 0;
	color: var(--danger);
	cursor: pointer;
	font-weight: 700;
}

/* ─── Confirm page ─── */
.confirm-wrap {
	max-width: 680px;
	margin: 0 auto;
	padding: 80px 24px;
	text-align: center;
}
.confirm-check {
	width: 96px; height: 96px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--ok-50);
	color: var(--ok);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid var(--ok);
}
.confirm h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.confirm p { color: var(--ink-500); font-size: 16px; margin-bottom: 8px; }
.confirm-number {
	display: inline-block;
	margin: 16px auto 24px;
	padding: 12px 24px;
	background: var(--brand-50);
	color: var(--brand);
	border-radius: 12px;
	font-size: 18px;
	font-weight: 800;
	font-family: 'IBM Plex Mono', monospace;
	letter-spacing: .05em;
}
.confirm-summary {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	margin: 32px 0;
	text-align: right;
}
.confirm-row {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
}
.confirm-row:last-child { border-bottom: 0; }
.confirm-row-key { color: var(--ink-500); font-size: 14px; }
.confirm-row-val { font-weight: 700; color: var(--ink); }

.confirm-next-steps {
	background: var(--brand-50);
	border-radius: var(--radius);
	padding: 24px;
	margin: 24px 0;
	text-align: right;
}
.confirm-next-steps h3 { color: var(--brand); margin-bottom: 12px; font-size: 16px; }
.confirm-next-steps ol { padding-right: 20px; line-height: 1.8; color: var(--ink-700); }

.confirm-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 32px;
}

/* ─── Detail Modal Popup ─── */
.detail-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 27, 64, .65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow-y: auto;
	animation: fadeUp .25s ease both;
}
.detail-modal {
	background: white;
	border-radius: 20px;
	max-width: 1100px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
	animation: fadeUp .3s ease both;
}
.detail-modal-close {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	z-index: 5;
	width: 40px; height: 40px;
	border-radius: 12px;
	background: white;
	border: 1px solid var(--line);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .15s;
	box-shadow: var(--shadow-sm);
}
.detail-modal-close:hover { background: var(--ink); color: white; transform: scale(1.05); }

.detail-modal-body { padding: 32px; }

/* ─── Detail page (grid for big detail) ─── */
.detail-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 32px;
	align-items: start;
}
.detail-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	border-radius: var(--radius);
	overflow: hidden;
}
.detail-gallery > *:first-child {
	grid-column: 1 / -1;
	aspect-ratio: 16/9;
}
.detail-gallery > * {
	aspect-ratio: 4/3;
	background: var(--tint);
	overflow: hidden;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }

.detail-specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 20px 0;
}
.spec-item {
	background: var(--bg-soft, var(--tint));
	padding: 14px 16px;
	border-radius: 12px;
}
.spec-item-key { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.spec-item-val { font-size: 16px; font-weight: 700; color: var(--ink); }

.detail-side {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}
.detail-side h3 { font-size: 22px; margin-bottom: 8px; }
.detail-price-block { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; }
.detail-price-num { font-size: 28px; font-weight: 800; color: var(--ink); }
.detail-price-unit { font-size: 14px; color: var(--muted); }

/* ─── Availability calendar ─── */
.avail-calendar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin: 16px 0;
}
.avail-calendar-cell {
	padding: 12px 8px;
	border-radius: 10px;
	border: 1px solid var(--line);
	text-align: center;
	font-size: 12px;
	background: white;
	cursor: pointer;
	transition: all .15s;
	user-select: none;
}
.avail-calendar-cell .cal-month { font-weight: 700; color: var(--ink); display: block; margin-bottom: 2px; }
.avail-calendar-cell .cal-status { font-size: 10px; color: var(--muted); }
.avail-calendar-cell.available { border-color: var(--ok); background: var(--ok-50); }
.avail-calendar-cell.available .cal-status { color: var(--ok); }
.avail-calendar-cell.partial { border-color: var(--warn); background: var(--warn-50); }
.avail-calendar-cell.partial .cal-status { color: var(--warn); }
.avail-calendar-cell.booked { background: var(--line-soft); opacity: .6; cursor: not-allowed; }
.avail-calendar-cell.selected {
	background: var(--brand);
	border-color: var(--brand);
}
.avail-calendar-cell.selected .cal-month,
.avail-calendar-cell.selected .cal-status { color: white; }
.avail-calendar-cell:hover:not(.booked):not(.selected) { transform: translateY(-1px); border-color: var(--brand); }

/* ─── Sticky bottom booking bar (single billboard) ─── */
.booking-bar {
	position: sticky;
	bottom: 0;
	background: white;
	border-top: 1px solid var(--line);
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 30;
	box-shadow: 0 -8px 24px rgba(0,0,0,.06);
	margin: 32px -32px -32px;
}
.booking-bar-info { display: flex; flex-direction: column; gap: 2px; }
.booking-bar-info .price { font-size: 22px; font-weight: 800; color: var(--ink); }
.booking-bar-info .months { font-size: 13px; color: var(--muted); }

/* ─── In-cart state buttons ─── */
.btn-in-cart {
	background: var(--ok-50);
	color: var(--ok);
	border-color: transparent;
}
.btn-in-cart:hover { background: var(--ok); color: white; }

/* ─── Cart page layout ─── */
.cart-page { padding: 40px 0 80px; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cart-header h1 { font-size: clamp(28px, 4vw, 40px); }
.cart-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	align-items: start;
}

/* ─── Checkout layout ─── */
.checkout-page { padding: 40px 0 80px; }
.checkout-header { margin-bottom: 24px; }
.checkout-header h1 { font-size: clamp(28px, 4vw, 40px); }
.checkout-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	align-items: start;
}

/* ─── Order summary on checkout ─── */
.order-summary {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}
.order-summary h3 { font-size: 18px; margin-bottom: 16px; }
.order-line {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 13px;
	color: var(--ink-500);
}
.order-line-title { color: var(--ink); font-weight: 600; }
.order-divider { border-top: 1px solid var(--line); margin: 12px 0; }

/* ─── Map legend & pin enhancements (added for theme) ─── */
.po-map-legend {
	background: white;
	padding: 10px 12px;
	border-radius: 10px;
	box-shadow: var(--shadow-md);
	font-size: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	border: 1px solid var(--line);
}
.po-legend-item { display: flex; align-items: center; gap: 8px; color: var(--ink-700); font-weight: 500; }
.po-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Browse layout */
.browse-page { padding: 24px 0 80px; }
.browse-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 28px;
	align-items: start;
}
.browse-sidebar {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}
.browse-sidebar h3 { font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); }
.filter-group { margin-bottom: 24px; }
.filter-group h3 { margin-bottom: 10px; }
.filter-checks { display: flex; flex-direction: column; gap: 8px; }
.filter-checks label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ink-700);
	cursor: pointer;
}
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range .input { height: 38px; font-size: 13px; }

.browse-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	gap: 12px;
	flex-wrap: wrap;
}
.browse-results-count strong { color: var(--ink); font-weight: 800; }

.view-toggle {
	display: inline-flex;
	background: var(--line-soft);
	border-radius: 10px;
	padding: 3px;
}
.view-toggle button {
	padding: 6px 14px;
	border: 0;
	background: transparent;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-500);
	cursor: pointer;
}
.view-toggle button.active { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }

.browse-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
	min-height: 200px;
	transition: opacity .2s;
}

.browse-map {
	height: 600px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--bg);
}

.browse-layout.view-map .browse-results-grid { display: none; }
.browse-layout.view-map .browse-map { height: 700px; }
.browse-layout:not(.view-map) .browse-map { display: none; }

.city-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.city-tab {
	padding: 10px 18px;
	border-radius: 10px;
	background: white;
	border: 1px solid var(--line);
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--ink-700);
	white-space: nowrap;
	transition: all .15s;
}
.city-tab:hover { border-color: var(--brand); color: var(--brand); }
.city-tab.active { background: var(--brand); color: white; border-color: var(--brand); }
.city-tab .count { font-size: 11px; opacity: .7; margin-right: 4px; }


/* ════════════════════════════════════════════════════════════════════════
   Plan One — Cart Drawer (Slide-over panel from the side)
   ════════════════════════════════════════════════════════════════════════ */

.po-drawer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	visibility: hidden;
	pointer-events: none;
}
.po-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.po-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 30, 82, .55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .3s ease;
}
.po-drawer.is-open .po-drawer-overlay {
	opacity: 1;
}

/* Panel — comes from LEFT in RTL = "left side" visually */
.po-drawer-panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0; /* فتح من اليسار */
	width: 460px;
	max-width: 92vw;
	background: #fff;
	box-shadow: 4px 0 32px -8px rgba(11, 30, 82, .25);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.po-drawer.is-open .po-drawer-panel {
	transform: translateX(0);
}

/* Header */
.po-drawer-head {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: linear-gradient(135deg, #1E40D7 0%, #1734B5 100%);
	color: #fff;
	gap: 12px;
}
.po-drawer-head-info {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.po-drawer-head-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.po-drawer-head h2 {
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.2;
}
.po-drawer-head p {
	font-size: 12px;
	color: rgba(255, 255, 255, .75);
	margin: 2px 0 0;
}
.po-drawer-close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
	flex-shrink: 0;
}
.po-drawer-close:hover {
	background: rgba(255, 255, 255, .25);
}

/* Body */
.po-drawer-body {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	background: #F8FAFC;
	position: relative;
}
.po-drawer-state {
	display: none;
	padding: 20px;
}
.po-drawer-state.is-active {
	display: block;
}

/* Cart items */
.po-drawer-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.po-drawer-loading {
	padding: 60px 0;
	text-align: center;
}
.po-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid #E5E9F2;
	border-top-color: #1E40D7;
	border-radius: 50%;
	animation: po-spin .8s linear infinite;
}
@keyframes po-spin { to { transform: rotate(360deg); } }

.po-drawer-item {
	background: #fff;
	border-radius: 14px;
	padding: 14px;
	border: 1px solid #E5E9F2;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	transition: all .2s;
}
.po-drawer-item:hover {
	border-color: #C7D2FE;
	box-shadow: 0 4px 12px -4px rgba(30, 64, 215, .12);
}
.po-drawer-item-img {
	width: 70px;
	height: 70px;
	border-radius: 10px;
	background: #F1F5F9;
	flex-shrink: 0;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}
.po-drawer-item-info {
	flex: 1;
	min-width: 0;
}
.po-drawer-item-title {
	font-size: 14px;
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 4px;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.po-drawer-item-meta {
	font-size: 11px;
	color: #94A3B8;
	margin-bottom: 6px;
}
.po-drawer-item-price {
	font-size: 13px;
	font-weight: 700;
	color: #1E40D7;
}
.po-drawer-item-price small {
	font-size: 11px;
	color: #94A3B8;
	font-weight: 500;
}
.po-drawer-item-months {
	margin-top: 8px;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.po-drawer-month-chip {
	background: #EEF2FF;
	color: #1E40D7;
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 999px;
	font-weight: 600;
}
.po-drawer-item-remove {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #FEE2E2;
	color: #DC2626;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background .15s;
}
.po-drawer-item-remove:hover {
	background: #FECACA;
}

/* Empty cart state */
.po-drawer-empty {
	padding: 60px 20px;
	text-align: center;
}
.po-drawer-empty-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	background: linear-gradient(135deg, #EEF2FF, #DDE4FF);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1E40D7;
}
.po-drawer-empty h3 {
	font-size: 16px;
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 6px;
}
.po-drawer-empty p {
	font-size: 13px;
	color: #94A3B8;
	margin: 0 0 16px;
}
.po-drawer-empty-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: #1E40D7;
	color: #fff;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: background .15s;
}
.po-drawer-empty-btn:hover {
	background: #1734B5;
	color: #fff;
}

/* Back button */
.po-drawer-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: transparent;
	color: #64748B;
	border: 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	margin-bottom: 16px;
	border-radius: 8px;
	transition: all .15s;
}
.po-drawer-back:hover {
	background: #F1F5F9;
	color: #1E40D7;
}

/* Checkout form */
.po-form-section {
	background: #fff;
	border: 1px solid #E5E9F2;
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 14px;
}
.po-form-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #F1F5F9;
}
.po-form-section-title svg { color: #1E40D7; flex-shrink: 0; }

.po-form-group {
	margin-bottom: 12px;
}
.po-form-group:last-child { margin-bottom: 0; }
.po-form-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 5px;
}
.po-form-group .req { color: #DC2626; }
.po-form-group input,
.po-form-group textarea {
	width: 100%;
	background: #fff;
	border: 1px solid #E5E9F2;
	border-radius: 9px;
	padding: 10px 13px;
	font-size: 13px;
	color: #0F172A;
	font-family: inherit;
	transition: all .15s;
}
.po-form-group input:focus,
.po-form-group textarea:focus {
	outline: 0;
	border-color: #1E40D7;
	box-shadow: 0 0 0 3px rgba(30, 64, 215, .1);
}
.po-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}
.po-form-row .po-form-group { margin-bottom: 0; }

/* Payment options */
.po-payment-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.po-payment-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: #fff;
	border: 2px solid #E5E9F2;
	border-radius: 10px;
	cursor: pointer;
	transition: all .15s;
}
.po-payment-option:hover {
	border-color: #C7D2FE;
}
.po-payment-option:has(input:checked) {
	border-color: #1E40D7;
	background: #EEF2FF;
}
.po-payment-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.po-payment-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #CBD5E1;
	flex-shrink: 0;
	position: relative;
	transition: all .15s;
}
.po-payment-option:has(input:checked) .po-payment-radio {
	border-color: #1E40D7;
}
.po-payment-option:has(input:checked) .po-payment-radio::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #1E40D7;
}
.po-payment-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}
.po-payment-content strong {
	font-size: 13px;
	color: #0F172A;
	font-weight: 700;
}
.po-payment-content small {
	font-size: 11px;
	color: #94A3B8;
}

/* Footer (totals + CTA) */
.po-drawer-foot {
	flex-shrink: 0;
	background: #fff;
	border-top: 1px solid #E5E9F2;
	padding: 16px 20px;
	box-shadow: 0 -4px 12px -4px rgba(11, 30, 82, .08);
}
.po-drawer-foot-state {
	display: none;
}
.po-drawer-foot-state.is-active {
	display: block;
}
.po-drawer-totals {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}
.po-drawer-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: #64748B;
}
.po-drawer-total-row strong {
	font-weight: 700;
	color: #0F172A;
}
.po-drawer-total-final {
	padding-top: 10px;
	border-top: 1px dashed #E5E9F2;
	font-size: 14px;
	color: #0F172A;
}
.po-drawer-total-final strong {
	font-size: 18px;
	color: #1E40D7;
	font-weight: 800;
}

.po-drawer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	transition: all .15s;
}
.po-drawer-cta:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.po-drawer-cta-primary {
	background: #1E40D7;
	color: #fff;
}
.po-drawer-cta-primary:not(:disabled):hover {
	background: #1734B5;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px -2px rgba(30, 64, 215, .4);
}

/* Form result */
.po-form-result {
	display: none;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	margin-top: 10px;
}
.po-form-result.is-success {
	display: block;
	background: #DCFCE7;
	color: #15803D;
	border: 1px solid #BBF7D0;
}
.po-form-result.is-error {
	display: block;
	background: #FEE2E2;
	color: #B91C1C;
	border: 1px solid #FECACA;
}

/* Success state — confetti view */
.po-drawer-success {
	padding: 60px 30px;
	text-align: center;
}
.po-drawer-success-icon {
	width: 84px;
	height: 84px;
	margin: 0 auto 20px;
	background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #15803D;
	animation: po-pop .5s cubic-bezier(.4, 0, .2, 1);
}
@keyframes po-pop {
	0% { transform: scale(0); }
	60% { transform: scale(1.1); }
	100% { transform: scale(1); }
}
.po-drawer-success h3 {
	font-size: 20px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 8px;
}
.po-drawer-success p {
	font-size: 14px;
	color: #64748B;
	margin: 0 0 6px;
	line-height: 1.6;
}
.po-drawer-success .order-num {
	display: inline-block;
	background: #EEF2FF;
	color: #1E40D7;
	font-family: monospace;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	margin: 16px 0;
}

/* Responsive */
@media (max-width: 640px) {
	.po-drawer-panel {
		width: 100%;
		max-width: 100%;
	}
	.po-form-row {
		grid-template-columns: 1fr;
	}
	.po-drawer-state { padding: 16px; }
	.po-drawer-foot { padding: 14px 16px; }
}

/* Body lock when drawer open */
body.po-drawer-open {
	overflow: hidden;
}

/* Cart pill pulse animation عند الإضافة */
@keyframes po-cart-pulse {
	0%, 100% { transform: scale(1); }
	30% { transform: scale(1.08); }
	60% { transform: scale(0.96); }
}
.cart-pill.cart-pulse {
	animation: po-cart-pulse .55s cubic-bezier(.4, 0, .2, 1);
}
.cart-pill .cart-pill-badge {
	transition: transform .2s;
}
.cart-pill.cart-pulse .cart-pill-badge {
	transform: scale(1.25);
}

/* ════════════════════════════════════════════════════════════════════════
   Plan One — Professional Calendar (po-cal-*)
   نسخة theme — تطابق نسخة البلقن للتأكد من العرض في كل الحالات
   ════════════════════════════════════════════════════════════════════════ */
.po-cal-section { padding: 22px 0; }
.po-cal-header {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.po-cal-header-text h3 {
	font-size: 18px; font-weight: 800; color: #0F172A;
	margin: 0 0 4px; line-height: 1.3;
}
.po-cal-header-text p { font-size: 13px; color: #64748B; margin: 0; }
.po-cal-year-nav {
	display: flex; align-items: center; gap: 8px;
	background: #fff; border: 1px solid #E5E9F2; border-radius: 12px;
	padding: 4px; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); flex-shrink: 0;
}
.po-cal-nav-btn {
	width: 36px; height: 36px; border-radius: 9px;
	background: transparent; border: 0; cursor: pointer;
	color: #1E40D7; display: flex; align-items: center; justify-content: center;
	transition: all .15s;
}
.po-cal-nav-btn:hover:not(:disabled) { background: #EEF2FF; }
.po-cal-nav-btn:disabled { color: #CBD5E1; cursor: not-allowed; }
.po-cal-year-display {
	font-size: 16px; font-weight: 800; color: #0F172A;
	min-width: 56px; text-align: center; letter-spacing: 0.5px;
}
.po-cal-legend {
	display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
	padding: 14px 16px; background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
	border-radius: 14px; border: 1px solid #E5E9F2;
}
.po-cal-legend-item {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; color: #475569; font-weight: 600; flex: 1; min-width: 90px;
}
.po-cal-legend-item strong {
	margin-right: auto; padding: 2px 10px; background: #fff;
	border-radius: 999px; font-size: 12px; color: #0F172A;
	min-width: 28px; text-align: center; border: 1px solid #E5E9F2;
}
.po-cal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.po-cal-dot-available { background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.po-cal-dot-booked    { background: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.po-cal-dot-selected  { background: #1E40D7; box-shadow: 0 0 0 3px rgba(30, 64, 215, .15); }
.po-cal-legend-selected strong { background: #1E40D7; color: #fff; border-color: #1E40D7; }
.po-cal-grid {
	display: none; grid-template-columns: repeat(4, 1fr); gap: 10px;
	animation: po-cal-fade .3s ease-out;
}
.po-cal-grid.is-active { display: grid; }
@keyframes po-cal-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
.po-cal-cell {
	position: relative; background: #fff; border: 2px solid #E5E9F2;
	border-radius: 14px; padding: 14px 12px 12px; cursor: pointer;
	text-align: center; font-family: inherit;
	transition: all .2s cubic-bezier(.4, 0, .2, 1);
	display: flex; flex-direction: column; gap: 4px;
	min-height: 120px; overflow: hidden;
}
.po-cal-cell::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0;
	height: 3px; background: transparent; transition: background .2s;
}
.po-cal-cell-num {
	font-family: 'IBM Plex Mono', 'Cairo', monospace;
	font-size: 22px; font-weight: 800; color: #0F172A;
	letter-spacing: -1px; line-height: 1; margin-bottom: 2px;
}
.po-cal-cell-name { font-size: 14px; font-weight: 700; color: #1F2937; line-height: 1.2; }
.po-cal-cell-year { font-size: 11px; color: #94A3B8; font-weight: 500; margin-bottom: 8px; }
.po-cal-cell-badge {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
	margin-top: auto; width: fit-content; margin-inline: auto;
}
.po-cal-cell-check {
	position: absolute; top: 8px; left: 8px; width: 24px; height: 24px;
	border-radius: 7px; background: #1E40D7; color: #fff;
	display: flex; align-items: center; justify-content: center;
	transform: scale(0); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
	box-shadow: 0 4px 10px -2px rgba(30, 64, 215, .5);
}
.po-cal-cell.is-available::before { background: #10B981; }
.po-cal-cell.is-available .po-cal-cell-badge { background: #DCFCE7; color: #15803D; }
.po-cal-cell.is-available:hover {
	border-color: #1E40D7; transform: translateY(-2px);
	box-shadow: 0 8px 20px -8px rgba(30, 64, 215, .3);
}
.po-cal-cell.is-partial::before { background: #F59E0B; }
.po-cal-cell.is-partial { border-color: #FDE68A; }
.po-cal-cell.is-partial .po-cal-cell-badge { background: #FEF3C7; color: #B45309; }
.po-cal-cell.is-partial:hover { border-color: #F59E0B; transform: translateY(-2px); }
.po-cal-cell.is-booked::before { background: #DC2626; }
.po-cal-cell.is-booked {
	background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
	border-color: #FECACA; cursor: not-allowed; opacity: .9;
}
.po-cal-cell.is-booked .po-cal-cell-num,
.po-cal-cell.is-booked .po-cal-cell-name {
	color: #94A3B8; text-decoration: line-through;
}
.po-cal-cell.is-booked .po-cal-cell-badge { background: #FEE2E2; color: #B91C1C; }
.po-cal-cell.is-booked:hover { transform: none; box-shadow: none; }
.po-cal-cell.is-selected, .po-cal-cell.selected {
	background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 100%);
	border-color: #1E40D7;
	box-shadow: 0 0 0 3px rgba(30, 64, 215, .15), 0 8px 20px -6px rgba(30, 64, 215, .35);
	transform: translateY(-2px);
}
.po-cal-cell.is-selected::before, .po-cal-cell.selected::before { background: #1E40D7; }
.po-cal-cell.is-selected .po-cal-cell-num, .po-cal-cell.selected .po-cal-cell-num { color: #1E40D7; }
.po-cal-cell.is-selected .po-cal-cell-badge, .po-cal-cell.selected .po-cal-cell-badge { background: #1E40D7; color: #fff; }
.po-cal-cell.is-selected .po-cal-cell-check, .po-cal-cell.selected .po-cal-cell-check { transform: scale(1); }
@media (max-width: 640px) {
	.po-cal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.po-cal-cell { min-height: 100px; padding: 12px 10px 10px; }
	.po-cal-cell-num { font-size: 18px; }
	.po-cal-legend { padding: 10px 12px; }
	.po-cal-legend-item { min-width: 80px; font-size: 12px; }
	.po-cal-header { flex-direction: column; }
	.po-cal-year-nav { width: 100%; justify-content: space-between; }
}
