/* ==========================================================================
   Fvor8 Checkout Kit — Checkout page
   Single-page checkout. Visual feel matches the Luxana reference (purple
   gradient surface, clean cards, bold CTA). Mobile-first.
   ========================================================================== */

/* ---------- page surface ---------- */

.fck-page {
	min-height: 100vh;
	background: linear-gradient(to bottom right, #faf5ff, #ffffff, #fdf2f8);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	color: #1e293b;
	padding: 1rem 1rem 8rem; /* bottom padding leaves room for the sticky CTA */
}

.fck-container {
	max-width: 720px;
	margin: 0 auto;
}

/* ---------- product summary card ---------- */

.fck-product {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fck-product__image {
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	animation: fck-image-reveal 500ms ease-out;
	margin: 0 auto;
}

.fck-product__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@keyframes fck-image-reveal {
	from { opacity: 0; transform: scale(0.96); }
	to   { opacity: 1; transform: scale(1); }
}

/* ---------- image gallery (auto-slide) ---------- */

.fck-gallery {
	position: relative;
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	margin: 0 auto;
}

.fck-gallery__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 500ms ease;
	pointer-events: none;
}

.fck-gallery__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.fck-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fck-gallery__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	display: flex;
	justify-content: center;
	gap: 4px;
	z-index: 2;
}

.fck-gallery__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transition: background 150ms ease, transform 150ms ease;
}

.fck-gallery__dot.is-active {
	background: #ffffff;
	transform: scale(1.2);
}

/* ---------- star ratings ---------- */

.fck-stars {
	position: relative;
	display: inline-block;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #e2e8f0; /* empty star color */
}

.fck-stars::before {
	content: '★★★★★';
}

.fck-stars__fill {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f59e0b; /* filled star color */
}

.fck-stars__fill::before {
	content: '★★★★★';
}

.fck-product__rating {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

.fck-product__rating-text {
	font-size: 0.85rem;
	color: #64748b;
}

/* ---------- reviews section ---------- */

.fck-section--reviews .fck-section__title {
	font-size: 1rem;
}

.fck-reviews-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.fck-review {
	padding: 0.75rem;
	border: 1px solid #f1f5f9;
	border-radius: 8px;
	background: #fafbfc;
}

.fck-review__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.fck-review__author {
	font-size: 0.9rem;
	color: #0f172a;
	font-weight: 600;
}

.fck-review__content {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #475569;
}

.fck-review__date {
	font-size: 0.75rem;
	color: #94a3b8;
}

.fck-product__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.fck-product__name {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 0.25rem;
	color: #0f172a;
}

.fck-product__price {
	font-size: 1.05rem;
	font-weight: 700;
	color: #7c3aed;
}

.fck-product__qty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.fck-product__qty button {
	width: 32px;
	height: 32px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	border-radius: 6px;
	font-size: 1.1rem;
	line-height: 1;
	color: #475569;
	cursor: pointer;
	transition: background 120ms ease;
}

.fck-product__qty button:hover {
	background: #f1f5f9;
}

.fck-product__qty input {
	width: 56px;
	height: 32px;
	text-align: center;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 0.95rem;
}

/* ---------- section card ---------- */

.fck-section {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem 1rem;
	margin-top: 1rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fck-section__title {
	font-size: 1.05rem;
	font-weight: 600;
	color: #0f172a;
	margin: 0 0 1rem;
}

/* ---------- form fields ---------- */

.fck-field {
	margin-bottom: 0.875rem;
}

.fck-field:last-child {
	margin-bottom: 0;
}

.fck-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	color: #475569;
	margin-bottom: 0.25rem;
}

.fck-field input,
.fck-field select,
.fck-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
	font-size: 0.95rem;
	color: #0f172a;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.fck-field input:focus,
.fck-field select:focus,
.fck-field textarea:focus {
	outline: none;
	border-color: #a855f7;
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.fck-field input[aria-invalid="true"],
.fck-field select[aria-invalid="true"] {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.fck-field--row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

/* ---------- payment method radios ---------- */

.fck-payment-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fck-payment {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 120ms ease, background 120ms ease;
}

.fck-payment:hover {
	background: #faf5ff;
}

.fck-payment input[type="radio"] {
	accent-color: #7c3aed;
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

.fck-payment.is-selected {
	border-color: #a855f7;
	background: #faf5ff;
}

.fck-payment__title {
	font-weight: 600;
	color: #0f172a;
}

.fck-payment__desc {
	font-size: 0.8rem;
	color: #64748b;
	margin-top: 0.1rem;
}

/* ---------- order summary ---------- */

.fck-summary {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem 1rem;
	margin-top: 1rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fck-summary__row {
	display: flex;
	justify-content: space-between;
	font-size: 0.95rem;
	color: #475569;
	padding: 0.4rem 0;
}

.fck-summary__row--total {
	border-top: 1px dashed #e2e8f0;
	margin-top: 0.5rem;
	padding-top: 0.75rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
}

/* ---------- sticky CTA bar ---------- */

.fck-cta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border-top: 1px solid #e2e8f0;
	padding: 0.75rem 1rem;
}

.fck-cta-bar__inner {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.fck-cta-bar__total {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 1.05rem;
	color: #0f172a;
}

.fck-cta-bar__pay {
	flex: 1;
	background: linear-gradient(135deg, #f97316, #ea580c);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	padding: 0.95rem 1rem;
	cursor: pointer;
	transition: filter 120ms ease, transform 120ms ease;
	letter-spacing: 0.01em;
}

.fck-cta-bar__pay:hover:not(:disabled) {
	filter: brightness(1.05);
}

.fck-cta-bar__pay:active:not(:disabled) {
	transform: translateY(1px);
}

.fck-cta-bar__pay:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ---------- inline alerts ---------- */

.fck-alert {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	margin: 0.75rem 0;
	font-size: 0.9rem;
}

.fck-alert--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.fck-alert--info {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

/* ---------- hidden ---------- */

.is-hidden {
	display: none !important;
}