/* Afarin Store — WooCommerce pages (cart, account, checkout) */

:root {
	--af-woo-radius: 16px;
	--af-woo-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

/* ── PAGE HERO ── */
.af-page-hero {
	position: relative;
	overflow: hidden;
	padding: 36px 0 32px;
	color: #fff;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 42%),
		linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

.af-page-hero::after {
	content: '';
	position: absolute;
	inset: auto -80px -120px auto;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(55, 203, 221, 0.35), transparent 68%);
	pointer-events: none;
}

.af-page-hero--cart {
	background:
		radial-gradient(circle at 15% 80%, rgba(55, 203, 221, 0.2), transparent 45%),
		linear-gradient(135deg, #065f46 0%, #0f766e 50%, #115e59 100%);
}

.af-page-hero--account {
	background:
		radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 40%),
		linear-gradient(135deg, var(--af-secondary, #650512) 0%, #8b1030 55%, #a61b3f 100%);
}

.af-page-hero__inner {
	position: relative;
	z-index: 1;
}

.af-page-hero__title {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 900;
	line-height: 1.3;
}

.af-page-hero__desc {
	margin: 0;
	max-width: 520px;
	font-size: 0.95rem;
	opacity: 0.9;
	line-height: 1.8;
}

.site-content--woo {
	padding: 32px 0 56px;
}

/* ── GENERAL WOOCOMMERCE ── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 14px 18px !important;
	margin-bottom: 20px !important;
	border: 0 !important;
	border-radius: 12px !important;
	font-family: var(--af-font) !important;
	box-shadow: var(--af-woo-shadow);
}

.woocommerce-message {
	background: rgba(55, 203, 221, 0.12) !important;
	color: #0f766e !important;
}

.woocommerce-info {
	background: rgba(59, 130, 246, 0.1) !important;
	color: #1d4ed8 !important;
}

.woocommerce-error {
	background: rgba(239, 57, 78, 0.1) !important;
	color: #be123c !important;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px !important;
	border-radius: 12px !important;
	font-size: 0.9rem !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(55, 203, 221, 0.35) !important;
}

.woocommerce .button.alt,
.woocommerce button.button.alt {
	background: linear-gradient(135deg, var(--af-primary), var(--af-primary-dark)) !important;
}

.woocommerce-privacy-policy-text {
	font-size: 0.82rem;
	color: var(--af-muted);
	line-height: 1.7;
}

@media (max-width: 767px) {
	.af-page-hero {
		padding: 28px 0 24px;
	}

	.site-content--woo {
		padding: 24px 0 40px;
	}
}

/* ── Mobile sticky action bar (cart + checkout) ── */
.af-sticky-bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(148px, 44%);
	gap: 10px;
	align-items: center;
}

.af-sticky-bar__summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.af-sticky-bar__label {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--af-muted, #64748b);
}

.af-sticky-bar__amount {
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.35;
	color: var(--af-text, #1e293b);
}

.af-sticky-bar__amount .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
}

.af-sticky-bar__action {
	min-width: 0;
}

.af-sticky-bar__action .checkout-button,
.af-sticky-bar__action #place_order {
	width: 100%;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border-radius: 14px !important;
	font-size: 0.88rem !important;
	font-weight: 800 !important;
	white-space: nowrap;
}

@media (min-width: 769px) {
	.af-sticky-bar {
		display: block;
	}

	.af-sticky-bar__summary {
		display: none;
	}

	.af-sticky-bar__action {
		padding-top: 18px;
	}
}

@media (max-width: 768px) {
	body.af-cart-page,
	body.af-checkout-page {
		--af-sticky-action-h: 0px;
	}

	body.af-cart-page .site-content--cart,
	body.af-checkout-page .site-content--checkout {
		padding-bottom: calc(24px + var(--af-sticky-action-h, 0px));
	}

	.af-sticky-bar[data-af-sticky-action] {
		position: fixed;
		left: 0;
		right: 0;
		bottom: env(safe-area-inset-bottom, 0px);
		z-index: 360;
		grid-template-columns: minmax(0, 1fr) minmax(132px, 46%);
		gap: 10px;
		align-items: center;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, 0.97);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border-top: 1px solid rgba(184, 238, 245, 1);
		box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.12);
	}

	body.af-cart-page .af-sticky-bar__action,
	body.af-checkout-page .af-sticky-bar__action {
		padding: 0;
	}

	body.af-cart-page .afct-totals .order-total,
	body.af-checkout-page .afck-review-table tfoot .order-total {
		display: none;
	}
}
