/**
 * Nabux — Material Design AJAX Cart Drawer & Micro-Interactions
 *
 * Designed with:
 * - Material 3 dark surface elevations & blur
 * - Shimmer skeletons for zero-CLS loading states
 * - Spring cubic-bezier transitions for drawer & items
 * - RTL-first support for Persian & Arabic
 * - Tactile ripple & specular light effects
 */

/* ==========================================================================
   1. DRAWER WRAPPER & BACKDROP
   ========================================================================== */

.nx-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	justify-content: flex-end;
	pointer-events: none;
	visibility: hidden;
	transition: visibility 0s linear 380ms;
}

[dir="rtl"] .nx-cart-drawer {
	justify-content: flex-start;
}

.nx-cart-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
	transition-delay: 0s;
}

/* Backdrop */
.nx-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(4, 7, 12, 0.75);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-cart-drawer.is-open .nx-drawer-backdrop {
	opacity: 1;
}

/* ==========================================================================
   2. SLIDE-OVER PANEL (Material 3 Surface)
   ========================================================================== */

.nx-drawer-panel {
	position: relative;
	width: 100%;
	max-width: 440px;
	height: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: rgba(14, 18, 27, 0.94);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: -16px 0 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
	transform: translateX(100%);
	transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
	overflow: hidden;
	color: var(--text, #f1f5f9);
}

[dir="rtl"] .nx-drawer-panel {
	border-left: none;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 16px 0 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
	transform: translateX(-100%);
}

.nx-cart-drawer.is-open .nx-drawer-panel {
	transform: translateX(0);
}

/* ==========================================================================
   3. DRAWER HEADER
   ========================================================================== */

.nx-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.07));
	background: rgba(20, 26, 38, 0.45);
	flex-shrink: 0;
}

.nx-drawer-title-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nx-drawer-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgba(163, 255, 18, 0.1);
	border: 1px solid rgba(163, 255, 18, 0.25);
	color: var(--brand, #a3ff12);
}

.nx-drawer-icon-wrap svg {
	width: 20px;
	height: 20px;
}

.nx-drawer-title {
	margin: 0;
	font-size: 18px;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: #fff;
}

.nx-drawer-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 800;
	border-radius: 999px;
	background: var(--brand, #a3ff12);
	color: #000;
	box-shadow: 0 0 12px rgba(163, 255, 18, 0.4);
}

.nx-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--muted, #94a3b8);
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nx-drawer-close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	transform: scale(1.06);
}

.nx-drawer-close:active {
	transform: scale(0.94);
}

/* ==========================================================================
   4. SKELETON LOADING LAYER (Shimmer)
   ========================================================================== */

.nx-drawer-skeleton {
	position: absolute;
	inset: 78px 0 0 0;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: rgba(14, 18, 27, 0.98);
	z-index: 10;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms ease;
}

.nx-drawer-skeleton.is-active {
	opacity: 1;
	visibility: visible;
}

.nx-drawer-skel-item {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: center;
	padding: 14px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
}

.nx-drawer-skel-art {
	width: 64px;
	height: 64px;
	border-radius: 12px;
}

.nx-drawer-skel-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ==========================================================================
   5. DRAWER BODY & ITEMS
   ========================================================================== */

.nx-drawer-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 18px 20px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nx-drawer-body::-webkit-scrollbar {
	width: 6px;
}

.nx-drawer-body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 999px;
}

.nx-drawer-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Individual Item Card */
.nx-drawer-item {
	display: grid;
	grid-template-columns: 68px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 14px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	transition: background 200ms ease, border-color 200ms ease, transform 240ms ease;
	position: relative;
}

.nx-drawer-item:hover {
	background: rgba(255, 255, 255, 0.045);
	border-color: rgba(255, 255, 255, 0.12);
}

/* Item Removing Animation */
.nx-drawer-item.is-removing {
	opacity: 0;
	transform: translateX(40px) scale(0.92);
	max-height: 0;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-color: transparent;
	pointer-events: none;
	transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .nx-drawer-item.is-removing {
	transform: translateX(-40px) scale(0.92);
}

/* Item Image */
.nx-drawer-item-art {
	position: relative;
	width: 68px;
	height: 68px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.07);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nx-drawer-item-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nx-drawer-item-art .artMono {
	font-size: 24px;
	font-weight: 800;
	color: var(--brand, #a3ff12);
}

/* Item Meta */
.nx-drawer-item-meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nx-drawer-item-cat {
	font-size: 11px;
	font-weight: 600;
	color: var(--brand-2, #00f0ff);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nx-drawer-item-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 160ms ease;
}

.nx-drawer-item-title:hover {
	color: var(--brand, #a3ff12);
}

.nx-drawer-item-price {
	margin: 2px 0 0;
	font-size: 13px;
	font-weight: 800;
	color: var(--brand, #a3ff12);
	letter-spacing: -0.01em;
}

/* Controls Column: Stepper & Remove */
.nx-drawer-item-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	flex-shrink: 0;
}

[dir="rtl"] .nx-drawer-item-actions {
	align-items: flex-start;
}

/* Material Quantity Stepper */
.nx-stepper {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	padding: 2px;
	transition: border-color 160ms ease;
}

.nx-stepper:focus-within {
	border-color: var(--brand, #a3ff12);
}

.nx-stepper-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 140ms ease, color 140ms ease, transform 120ms ease;
}

.nx-stepper-btn:hover {
	background: rgba(255, 255, 255, 0.14);
}

.nx-stepper-btn:active {
	transform: scale(0.88);
}

.nx-stepper-val {
	min-width: 24px;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
	user-select: none;
}

/* Remove button */
.nx-drawer-remove-btn {
	background: transparent;
	border: none;
	color: var(--muted, #64748b);
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 160ms ease, transform 140ms ease;
}

.nx-drawer-remove-btn:hover {
	color: #ef4444;
	transform: scale(1.15);
}

.nx-drawer-remove-btn:active {
	transform: scale(0.9);
}

/* ==========================================================================
   6. EMPTY CART STATE
   ========================================================================== */

.nx-drawer-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 24px;
	gap: 14px;
}

.nx-drawer-empty.is-hidden {
	display: none;
}

.nx-drawer-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: rgba(163, 255, 18, 0.05);
	border: 1px dashed rgba(163, 255, 18, 0.25);
	color: var(--brand, #a3ff12);
	margin-bottom: 8px;
}

.nx-drawer-empty h4 {
	margin: 0;
	font-size: 19px;
	font-weight: 750;
	color: #fff;
}

.nx-drawer-empty p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--muted, #94a3b8);
	max-width: 280px;
}

.nx-drawer-explore-btn {
	margin-top: 10px;
	padding: 12px 22px;
	font-size: 13px;
}

/* ==========================================================================
   7. DRAWER FOOTER (Summary & CTAs)
   ========================================================================== */

.nx-drawer-foot {
	padding: 20px 24px;
	border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
	background: rgba(20, 26, 38, 0.65);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nx-drawer-foot.is-hidden {
	display: none;
}

.nx-drawer-trust {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted, #94a3b8);
}

.nx-drawer-trust svg {
	width: 16px;
	height: 16px;
	color: var(--brand, #a3ff12);
	flex-shrink: 0;
}

.nx-drawer-subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nx-drawer-subtotal-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--muted, #94a3b8);
}

.nx-drawer-subtotal-val {
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--brand, #a3ff12);
}

.nx-drawer-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nx-drawer-checkout-btn {
	width: 100%;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 750;
	justify-content: center;
}

.nx-drawer-viewcart-btn {
	width: 100%;
	padding: 11px 18px;
	font-size: 13px;
	justify-content: center;
}

/* ==========================================================================
   8. QUICK ADD BUTTON / PILL ON CARDS & TACTILE RIPPLE
   ========================================================================== */

.buyPill.nabux-quick-add {
	border: none;
	background: var(--text, #fff);
	color: #000;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
	position: relative;
	z-index: 2;
}

.buyPill.nabux-quick-add:hover {
	background: var(--brand, #a3ff12);
	box-shadow: 0 0 16px rgba(163, 255, 18, 0.45);
	transform: scale(1.04);
}

.buyPill.nabux-quick-add:active {
	transform: scale(0.94);
}

.buyPill.nabux-quick-add.is-adding {
	pointer-events: none;
	opacity: 0.8;
}

.buyPill.nabux-quick-add.is-added {
	background: var(--brand, #a3ff12);
	color: #000;
}

/* ==========================================================================
   9. PROMO CODE, CLEAR CART & CHECKOUT STYLING
   ========================================================================== */

.nx-drawer-head-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nx-drawer-clear-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--muted, #94a3b8);
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nx-drawer-clear-btn:hover {
	background: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.35);
	color: #ef4444;
	transform: scale(1.05);
}

.nx-drawer-clear-btn.is-hidden {
	display: none;
}

/* Promo Code Box */
.nx-drawer-promo {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-drawer-promo-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	color: var(--brand-2, #00f0ff);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	text-align: inherit;
}

.nx-drawer-promo-toggle svg {
	width: 14px;
	height: 14px;
}

.nx-drawer-promo-toggle .nx-promo-caret {
	transition: transform 200ms ease;
}

.nx-drawer-promo-toggle.is-active .nx-promo-caret {
	transform: rotate(180deg);
}

.nx-drawer-promo-box {
	display: flex;
	gap: 8px;
	overflow: hidden;
	transition: max-height 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease, margin 200ms ease;
	max-height: 52px;
	opacity: 1;
}

.nx-drawer-promo-box.is-collapsed {
	max-height: 0;
	opacity: 0;
	margin: 0;
	pointer-events: none;
}

.nx-drawer-promo-input {
	flex: 1 1 auto;
	height: 40px;
	padding: 0 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: #fff;
	font-size: 13px;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nx-drawer-promo-input:focus {
	border-color: var(--brand, #a3ff12);
	box-shadow: 0 0 0 3px rgba(163, 255, 18, 0.15);
}

.nx-drawer-promo-btn {
	padding: 0 16px;
	height: 40px;
	font-size: 12px;
	border-radius: 10px;
	flex-shrink: 0;
}

.nx-drawer-coupons-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nx-drawer-coupon-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(163, 255, 18, 0.12);
	border: 1px solid rgba(163, 255, 18, 0.3);
	color: var(--brand, #a3ff12);
	font-size: 11px;
	font-weight: 750;
}

.nx-drawer-coupon-chip button {
	background: transparent;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	font-size: 14px;
	line-height: 1;
}

/* Discount & Total Rows */
.nx-drawer-discount,
.nx-drawer-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nx-drawer-discount.is-hidden,
.nx-drawer-total.is-hidden {
	display: none;
}

.nx-drawer-discount-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted, #94a3b8);
}

.nx-drawer-discount-val {
	font-size: 15px;
	font-weight: 800;
	color: #ef4444;
}

.nx-drawer-total-label {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.nx-drawer-total-val {
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--brand, #a3ff12);
}

/* ==========================================================================
   10. CHECKOUT PAGE ENHANCEMENTS (Material Design 3 & Shimmer)
   ========================================================================== */

.wc-block-checkout {
	transition: opacity 240ms ease;
}

.wc-block-components-checkout-step {
	background: rgba(20, 26, 38, 0.5) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 18px !important;
	padding: 24px !important;
	margin-bottom: 20px !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"] {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 12px !important;
	color: #fff !important;
	transition: border-color 180ms ease, box-shadow 180ms ease !important;
}

.wc-block-components-text-input input:focus {
	border-color: var(--brand, #a3ff12) !important;
	box-shadow: 0 0 0 3px rgba(163, 255, 18, 0.18) !important;
}

.wc-block-components-radio-control__option {
	border-radius: 12px !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	background: rgba(255, 255, 255, 0.02) !important;
	padding: 14px 16px !important;
	transition: border-color 160ms ease, background 160ms ease !important;
}

.wc-block-components-radio-control__option:hover {
	background: rgba(255, 255, 255, 0.05) !important;
	border-color: rgba(255, 255, 255, 0.18) !important;
}

.wc-block-components-radio-control__option--checked {
	border-color: var(--brand, #a3ff12) !important;
	background: rgba(163, 255, 18, 0.04) !important;
}

/* Floating Toast Notification */
.nx-toast-box {
	position: fixed;
	bottom: 84px;
	right: 24px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

[dir="rtl"] .nx-toast-box {
	right: auto;
	left: 24px;
}

.nx-toast {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(14, 18, 27, 0.95);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(163, 255, 18, 0.4);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 16px rgba(163, 255, 18, 0.2);
	color: #fff;
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	opacity: 0;
	transform: translateY(12px) scale(0.95);
	transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-toast.is-shown {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.nx-toast.is-error {
	border-color: rgba(239, 68, 68, 0.5);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 16px rgba(239, 68, 68, 0.2);
}

.nx-toast-icon {
	color: var(--brand, #a3ff12);
}

/* Empty cart badge styling */
.cartCount.is-empty,
.mnBadge.is-empty {
	display: none !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.nx-drawer-panel {
		max-width: 100%;
	}
	.nx-toast-box {
		bottom: 96px;
		left: 16px;
		right: 16px;
	}
}

/* ==========================================================================
   11. MATERIAL DESIGN 3 CHECKOUT & CART PAGES
   ========================================================================== */

/* Full-width container centering for Checkout & Cart */
.woocommerce-checkout #main.screen,
.woocommerce-cart #main.screen {
	display: block !important;
	width: 100% !important;
	max-width: 1240px !important;
	margin: 0 auto !important;
	padding: 0 var(--page-pad-x, 5vw) 80px !important;
	box-sizing: border-box !important;
}

.woocommerce-checkout .nx-container,
.woocommerce-cart .nx-container {
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	width: 100% !important;
}

.woocommerce-checkout .entry-content,
.woocommerce-cart .entry-content {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-checkout .woocommerce,
.woocommerce-cart .woocommerce {
	width: 100% !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
}

/* Coupon Notice & Toggle Banner */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
	width: 100%;
	margin: 0 0 24px 0;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	background: rgba(20, 17, 14, 0.75) !important;
	border: 1px solid rgba(245, 183, 60, 0.25) !important;
	border-left: 4px solid var(--brand, #f5b73c) !important;
	border-radius: 16px !important;
	padding: 16px 22px !important;
	color: var(--text, #faf9f8) !important;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[dir="rtl"] .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	border-left: 1px solid rgba(245, 183, 60, 0.25) !important;
	border-right: 4px solid var(--brand, #f5b73c) !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
	color: var(--brand, #f5b73c) !important;
	font-weight: 750;
	text-decoration: underline;
}

/* Collapsible Coupon Form */
form.checkout_coupon.woocommerce-form-coupon {
	width: 100%;
	margin: 0 0 24px 0 !important;
	background: rgba(20, 17, 14, 0.8) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 18px !important;
	padding: 20px 24px !important;
	backdrop-filter: blur(20px);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

/* Two-Column Responsive Grid (Left: Customer Details, Right: Review & Pay) */
form.woocommerce-checkout {
	display: grid !important;
	grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr) !important;
	grid-template-rows: auto 1fr !important;
	grid-template-areas:
		"details heading"
		"details review" !important;
	gap: clamp(24px, 3.5vw, 40px) !important;
	align-items: start !important;
	margin-top: 16px !important;
	width: 100% !important;
}

@media (max-width: 980px) {
	form.woocommerce-checkout {
		display: flex !important;
		flex-direction: column !important;
		gap: 24px !important;
	}
}

/* Billing & Customer Details Panel */
#customer_details {
	grid-area: details !important;
	width: 100% !important;
	float: none !important;
	background: rgba(20, 17, 14, 0.72) !important;
	border: 1px solid rgba(255, 255, 255, 0.09) !important;
	border-radius: 22px !important;
	padding: clamp(20px, 3vw, 32px) !important;
	backdrop-filter: blur(20px) !important;
	-webkit-backdrop-filter: blur(20px) !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	box-sizing: border-box !important;
}

#customer_details .col-1,
#customer_details .col-2 {
	float: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

#customer_details h3 {
	font-size: 18px;
	font-weight: 850;
	letter-spacing: -0.02em;
	color: var(--text, #faf9f8);
	margin-top: 0;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Row-first & Row-last alignment */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
	width: calc(50% - 8px) !important;
	float: left !important;
}

.woocommerce form .form-row-last {
	float: right !important;
}

[dir="rtl"] .woocommerce form .form-row-first {
	float: right !important;
}

[dir="rtl"] .woocommerce form .form-row-last {
	float: left !important;
}

.woocommerce form .form-row-wide {
	clear: both !important;
	width: 100% !important;
}

@media (max-width: 600px) {
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last {
		width: 100% !important;
		float: none !important;
	}
}

/* Material 3 Outlined Inputs */
.woocommerce form .form-row {
	margin-bottom: 16px;
	padding: 0;
}

.woocommerce form .form-row label {
	font-size: 13px;
	font-weight: 700;
	color: var(--muted, #a8a29e);
	margin-bottom: 6px;
	display: block;
}

.woocommerce form .form-row .required {
	color: var(--danger, #e08a5f);
	text-decoration: none;
}

.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="password"],
.woocommerce form textarea,
.woocommerce form select {
	width: 100% !important;
	height: 48px;
	border-radius: 12px !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: var(--text, #faf9f8) !important;
	padding: 0 16px !important;
	font-size: 14px !important;
	outline: none !important;
	transition: all 0.2s ease !important;
}

.woocommerce form textarea {
	height: 100px !important;
	padding: 12px 16px !important;
}

.woocommerce form input:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus {
	border-color: var(--brand, #f5b73c) !important;
	background: rgba(255, 255, 255, 0.07) !important;
	box-shadow: 0 0 0 3px rgba(245, 183, 60, 0.18) !important;
}

/* Material 3 Select / Dropdown Customization */
select,
.woocommerce select,
.country_select,
.state_select {
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5b73c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	padding-inline-end: 38px !important;
	cursor: pointer;
}

html[dir="rtl"] select,
html[dir="rtl"] .woocommerce select,
html[dir="rtl"] .country_select,
html[dir="rtl"] .state_select {
	background-position: left 14px center !important;
	padding-inline-start: 38px !important;
	padding-inline-end: 16px !important;
}

select option {
	background: #14110e !important;
	color: #faf9f8 !important;
	padding: 10px !important;
}

/* Order Review & Payment Card (Right Column) */
#order_review_heading {
	grid-area: heading !important;
	font-size: 20px !important;
	font-weight: 850 !important;
	letter-spacing: -0.02em !important;
	color: var(--text, #faf9f8) !important;
	margin: 0 0 14px 0 !important;
	padding: 0 !important;
	display: block !important;
	float: none !important;
	width: 100% !important;
}

#order_review {
	grid-area: review !important;
	background: rgba(20, 17, 14, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: clamp(18px, 3vw, 28px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	position: sticky;
	top: 96px;
	width: 100% !important;
	float: none !important;
	box-sizing: border-box !important;
}

@media (max-width: 980px) {
	#order_review {
		position: static;
	}
}

/* Order Review Table */
table.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--text, #faf9f8);
	font-size: 14px;
}

table.woocommerce-checkout-review-order-table thead th {
	color: var(--muted, #a8a29e);
	font-weight: 750;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding-bottom: 8px;
}

table.woocommerce-checkout-review-order-table .product-name {
	font-weight: 650;
}

table.woocommerce-checkout-review-order-table .product-name .product-quantity {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(245, 183, 60, 0.14);
	color: var(--brand, #f5b73c);
	font-size: 11.5px;
	font-weight: 800;
	margin-inline-start: 6px;
}

table.woocommerce-checkout-review-order-table .product-total,
table.woocommerce-checkout-review-order-table tfoot td {
	text-align: end;
	font-weight: 750;
}

table.woocommerce-checkout-review-order-table .order-total th,
table.woocommerce-checkout-review-order-table .order-total td {
	font-size: 18px;
	font-weight: 900;
	color: var(--brand, #f5b73c);
	border-bottom: 0;
	padding-top: 16px;
}

/* Material 3 Payment Methods List */
#payment {
	background: transparent;
	border: 0;
	padding: 0;
	margin-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 16px;
}

#payment ul.payment_methods {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#payment ul.payment_methods li.wc_payment_method {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	padding: 14px 16px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
}

#payment ul.payment_methods li.wc_payment_method:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.18);
}

#payment ul.payment_methods li.wc_payment_method:has(input:checked) {
	background: linear-gradient(135deg, rgba(245, 183, 60, 0.1) 0%, rgba(224, 138, 95, 0.05) 100%) !important;
	border-color: var(--brand, #f5b73c) !important;
	box-shadow: 0 0 16px rgba(245, 183, 60, 0.18), inset 0 0 1px rgba(245, 183, 60, 0.4) !important;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"] {
	margin: 0 10px 0 0;
	accent-color: var(--brand, #f5b73c);
	transform: scale(1.15);
	vertical-align: middle;
}

html[dir="rtl"] #payment ul.payment_methods li.wc_payment_method input[type="radio"] {
	margin: 0 0 0 10px;
}

#payment ul.payment_methods li.wc_payment_method label {
	font-weight: 750;
	font-size: 14px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

#payment ul.payment_methods li.wc_payment_method label img {
	max-height: 24px;
	width: auto;
	vertical-align: middle;
	margin-inline-start: 6px;
	border-radius: 4px;
}

#payment div.payment_box {
	background: rgba(0, 0, 0, 0.38) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 12px !important;
	padding: 12px 16px !important;
	margin-top: 12px !important;
	font-size: 13px !important;
	color: var(--muted, #a8a29e) !important;
	line-height: 1.6 !important;
}

#payment div.payment_box::before {
	display: none !important;
}

/* Place Order Submit Button */
#place_order {
	width: 100% !important;
	min-height: 52px !important;
	border-radius: 14px !important;
	font-size: 16px !important;
	font-weight: 850 !important;
	background: linear-gradient(135deg, var(--brand, #f5b73c) 0%, #e08a5f 100%) !important;
	color: #0c0a09 !important;
	border: 0 !important;
	box-shadow: 0 6px 20px rgba(245, 183, 60, 0.35) !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#place_order:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 10px 28px rgba(245, 183, 60, 0.5) !important;
	filter: brightness(1.05) !important;
}

/* Terms and Conditions */
.woocommerce-terms-and-conditions-wrapper {
	font-size: 12px;
	color: var(--muted, #a8a29e);
	margin-bottom: 14px;
}

.woocommerce-terms-and-conditions-wrapper a {
	color: var(--brand, #f5b73c);
	text-decoration: underline;
}

/* Notices & Alerts */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	background: rgba(20, 17, 14, 0.85) !important;
	border: 1px solid rgba(245, 183, 60, 0.25) !important;
	border-radius: 14px !important;
	padding: 14px 18px !important;
	color: var(--text, #faf9f8) !important;
	margin-bottom: 20px !important;
	list-style: none !important;
	backdrop-filter: blur(16px) !important;
}

.woocommerce-error {
	border-color: rgba(224, 138, 95, 0.4) !important;
	background: rgba(224, 138, 95, 0.08) !important;
}

/* ==========================================================================
   12. MATERIAL DESIGN 3 CART PAGE (/cart/)
   ========================================================================== */

.woocommerce-cart .woocommerce {
	max-width: 1200px !important;
	margin: 0 auto !important;
	width: 100% !important;
}

.woocommerce-cart form.woocommerce-cart-form {
	width: 100% !important;
	margin-bottom: 32px !important;
}

/* Cart Table Card */
.woocommerce-cart table.shop_table.cart {
	width: 100% !important;
	float: none !important;
	background: rgba(20, 17, 14, 0.72) !important;
	border: 1px solid rgba(255, 255, 255, 0.09) !important;
	border-radius: 22px !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	overflow: hidden !important;
	backdrop-filter: blur(20px) !important;
	-webkit-backdrop-filter: blur(20px) !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
}

.woocommerce-cart table.shop_table.cart thead th {
	background: rgba(255, 255, 255, 0.03) !important;
	color: var(--muted, #a8a29e) !important;
	font-weight: 750 !important;
	font-size: 13px !important;
	padding: 16px 20px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
	text-align: start !important;
}

.woocommerce-cart table.shop_table.cart tbody td {
	padding: 18px 20px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
	color: var(--text, #faf9f8) !important;
	vertical-align: middle !important;
}

/* Remove button */
.woocommerce-cart table.shop_table.cart a.remove {
	display: inline-grid !important;
	place-items: center !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: var(--danger, #e08a5f) !important;
	font-size: 18px !important;
	line-height: 1 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart a.remove:hover {
	background: rgba(224, 138, 95, 0.2) !important;
	color: #ff6b6b !important;
	transform: scale(1.1) !important;
}

/* Product thumbnail */
.woocommerce-cart table.shop_table.cart .product-thumbnail img {
	width: 48px !important;
	height: 48px !important;
	border-radius: 12px !important;
	object-fit: cover !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Product title */
.woocommerce-cart table.shop_table.cart .product-name a {
	color: var(--text, #faf9f8) !important;
	font-weight: 750 !important;
	font-size: 15px !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart .product-name a:hover {
	color: var(--brand, #f5b73c) !important;
}

/* Subtotal & Price */
.woocommerce-cart table.shop_table.cart .product-price,
.woocommerce-cart table.shop_table.cart .product-subtotal {
	font-weight: 850 !important;
	color: var(--brand, #f5b73c) !important;
	font-size: 15px !important;
}

/* Quantity input in cart */
.woocommerce-cart table.shop_table.cart .quantity input.qty {
	width: 64px !important;
	height: 40px !important;
	border-radius: 10px !important;
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: var(--text, #faf9f8) !important;
	text-align: center !important;
	font-weight: 800 !important;
	font-size: 14px !important;
}

/* Actions Row: Coupon + Update Cart */
.woocommerce-cart table.shop_table.cart td.actions {
	padding: 18px 20px !important;
	background: rgba(255, 255, 255, 0.02) !important;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon input#coupon_code {
	height: 44px !important;
	border-radius: 12px !important;
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: var(--text, #faf9f8) !important;
	padding: 0 16px !important;
	font-size: 13px !important;
	width: 180px !important;
}

.woocommerce-cart table.shop_table.cart td.actions button.button {
	height: 44px !important;
	border-radius: 12px !important;
	padding: 0 20px !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	background: linear-gradient(135deg, var(--brand, #f5b73c) 0%, #e08a5f 100%) !important;
	color: #0c0a09 !important;
	border: 0 !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(245, 183, 60, 0.3) !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce-cart table.shop_table.cart td.actions button.button:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(245, 183, 60, 0.45) !important;
}

/* Cart Collaterals / Totals Card */
.woocommerce-cart .cart-collaterals {
	width: 100% !important;
	display: flex !important;
	justify-content: flex-end !important;
	margin-top: 10px !important;
}

[dir="rtl"] .woocommerce-cart .cart-collaterals {
	justify-content: flex-start !important;
}

.woocommerce-cart .cart_totals {
	width: 100% !important;
	max-width: 480px !important;
	float: none !important;
	background: rgba(20, 17, 14, 0.8) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 22px !important;
	padding: 24px 28px !important;
	backdrop-filter: blur(20px) !important;
	-webkit-backdrop-filter: blur(20px) !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
}

.woocommerce-cart .cart_totals h2 {
	font-size: 20px !important;
	font-weight: 850 !important;
	letter-spacing: -0.02em !important;
	color: var(--text, #faf9f8) !important;
	margin: 0 0 16px 0 !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.woocommerce-cart .cart_totals table.shop_table {
	width: 100% !important;
	border-collapse: collapse !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin-bottom: 20px !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
	color: var(--muted, #a8a29e) !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
	padding: 12px 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: transparent !important;
}

.woocommerce-cart .cart_totals table.shop_table td {
	text-align: end !important;
	color: var(--text, #faf9f8) !important;
	padding: 12px 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: transparent !important;
}

[dir="rtl"] .woocommerce-cart .cart_totals table.shop_table td {
	text-align: start !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
	font-size: 18px !important;
	font-weight: 900 !important;
	color: var(--brand, #f5b73c) !important;
	border-bottom: 0 !important;
	padding-top: 16px !important;
}

/* Proceed to checkout button */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 52px !important;
	border-radius: 14px !important;
	font-size: 16px !important;
	font-weight: 850 !important;
	background: linear-gradient(135deg, var(--brand, #f5b73c) 0%, #e08a5f 100%) !important;
	color: #0c0a09 !important;
	text-decoration: none !important;
	box-shadow: 0 6px 20px rgba(245, 183, 60, 0.35) !important;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 10px 28px rgba(245, 183, 60, 0.5) !important;
	filter: brightness(1.05) !important;
}

