/**
 * ==========================================================
 * ShopCore - Pre Order Page Stylesheet
 * File : assets/css/pre-order.css
 * ==========================================================
 */

.shopcore-pre-order-page {
	padding: 30px 0 60px 0;
	background-color: #ffffff;
	font-family: inherit;
	color: #111827;
}

.shopcore-pre-order-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* --------------------------------------------------
 * 1. Top Banner
 * -------------------------------------------------- */
.shopcore-pre-order-banner-wrap {
	margin-bottom: 40px;
}

.shopcore-pre-order-banner-card {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	background: #f1f5f9;
	aspect-ratio: 14 / 3;
	max-height: 300px;
}

.shopcore-pre-order-banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --------------------------------------------------
 * 2. Main 2-Column Grid
 * -------------------------------------------------- */
.shopcore-pre-order-content-wrap {
	width: 100%;
}

.shopcore-pre-order-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: center;
}

/* --------------------------------------------------
 * 3. Left Column: Form Styling
 * -------------------------------------------------- */
.shopcore-pre-order-form-column {
	width: 100%;
}

.shopcore-form-card {
	background: #ffffff;
	padding: 10px 0;
}

.shopcore-form-group {
	margin-bottom: 20px;
}

.shopcore-form-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.shopcore-form-label .required {
	color: #ef1d25;
	font-weight: 700;
	margin-left: 2px;
}

.shopcore-form-control {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #1e293b;
	background-color: #ffffff;
	border: 1.5px solid #1e293b;
	border-radius: 8px;
	transition: all 0.2s ease-in-out;
	outline: none;
	font-family: inherit;
}

.shopcore-form-control::placeholder {
	color: #94a3b8;
	font-size: 13.5px;
}

.shopcore-form-control:focus {
	border-color: #ef1d25;
	box-shadow: 0 0 0 3px rgba(239, 29, 37, 0.12);
}

.shopcore-form-control.has-error {
	border-color: #dc2626;
	background-color: #fffafb;
}

.shopcore-textarea-address,
.shopcore-textarea-notes {
	resize: vertical;
	min-height: 56px;
}

/* Checkbox */
.shopcore-checkbox-group {
	margin-top: 24px;
	margin-bottom: 24px;
}

.shopcore-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.shopcore-checkbox-input {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #ef1d25;
	border-radius: 4px;
	margin: 0;
}

/* Submit Button */
.shopcore-form-submit-wrap {
	margin-top: 10px;
}

.shopcore-submit-btn {
	width: 100%;
	padding: 15px 24px;
	background: #8e959d;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.shopcore-submit-btn:hover {
	background: #1e293b;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.shopcore-submit-btn:active {
	transform: translateY(0);
}

.shopcore-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

/* Spinner */
.shopcore-submit-btn .btn-spinner {
	display: inline-block;
	animation: scRotate 1s linear infinite;
	font-size: 16px;
}

@keyframes scRotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------
 * 4. Alert / Feedback Box
 * -------------------------------------------------- */
.shopcore-form-alert {
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: scFadeIn 0.3s ease-in-out;
}

@keyframes scFadeIn {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

.shopcore-form-alert.alert-success {
	background-color: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.shopcore-form-alert.alert-error {
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* --------------------------------------------------
 * 5. Right Column: Visual Graphic
 * -------------------------------------------------- */
.shopcore-pre-order-visual-column {
	display: flex;
	justify-content: center;
	align-items: center;
}

.shopcore-visual-card {
	width: 100%;
	max-width: 520px;
	display: flex;
	justify-content: center;
	align-items: center;
	animation: scFloatSlow 6s ease-in-out infinite alternate;
}

.shopcore-visual-img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

@keyframes scFloatSlow {
	0% {
		transform: translateY(0px);
	}
	100% {
		transform: translateY(-10px);
	}
}

/* --------------------------------------------------
 * 6. Responsive Breakpoints
 * -------------------------------------------------- */
@media (max-width: 991px) {
	.shopcore-pre-order-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.shopcore-pre-order-visual-column {
		order: -1; /* Display graphic above form on tablets and phones */
	}

	.shopcore-visual-card {
		max-width: 360px;
	}
}

@media (max-width: 576px) {
	.shopcore-pre-order-page {
		padding: 20px 0 40px 0;
	}

	.shopcore-pre-order-banner-wrap {
		margin-bottom: 24px;
	}

	.shopcore-pre-order-banner-card {
		border-radius: 12px;
		aspect-ratio: 14 / 3;
		height: auto;
	}

	.shopcore-form-control {
		padding: 10px 14px;
		font-size: 13.5px;
	}

	.shopcore-submit-btn {
		padding: 13px 20px;
		font-size: 13px;
	}
}

/* --------------------------------------------------
 * 7. Authentication Gate & Verified User Badge
 * -------------------------------------------------- */
.sc-preorder-auth-gate {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 36px 32px;
	box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
}

.sc-auth-gate-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fef2f2;
	color: #ef1d25;
	border: 1px solid #fee2e2;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 12.5px;
	font-weight: 700;
	margin-bottom: 18px;
	letter-spacing: -0.01em;
}

.sc-auth-gate-badge i {
	font-size: 13px;
}

.sc-auth-gate-title {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 12px 0;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.sc-auth-gate-subtitle {
	font-size: 14.5px;
	line-height: 1.6;
	color: #64748b;
	margin: 0 0 26px 0;
}

.sc-auth-gate-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.sc-auth-gate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.25s ease;
	cursor: pointer;
}

.sc-gate-signin {
	background: linear-gradient(135deg, #ef1d25 0%, #dc2626 100%);
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(239, 29, 37, 0.3);
}

.sc-gate-signin:hover {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(239, 29, 37, 0.4);
	color: #ffffff !important;
}

.sc-gate-register {
	background: #0f172a;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.sc-gate-register:hover {
	background: #1e293b;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
	color: #ffffff !important;
}

.sc-auth-gate-perks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px 20px;
}

.sc-gate-perk-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.sc-gate-perk-item i {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 10px;
	background: #ffffff;
	color: #ef1d25;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	border: 1px solid #f1f5f9;
}

.sc-gate-perk-item strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 2px;
}

.sc-gate-perk-item p {
	font-size: 12px;
	color: #64748b;
	margin: 0;
	line-height: 1.45;
}

/* Logged-in Customer Badge */
.sc-preorder-user-badge {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	padding: 12px 18px;
	margin-bottom: 24px;
}

.sc-user-badge-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sc-user-badge-avatar {
	font-size: 26px;
	color: #16a34a;
	display: flex;
	align-items: center;
	line-height: 1;
}

.sc-user-badge-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #15803d;
	margin-bottom: 1px;
}

.sc-user-badge-meta {
	font-size: 13.5px;
	color: #14532d;
}

.sc-user-badge-meta strong {
	font-weight: 700;
}

.sc-user-badge-email {
	font-size: 12.5px;
	color: #166534;
	opacity: 0.85;
	margin-left: 4px;
}

.sc-user-badge-logout {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #dc2626 !important;
	background: #ffffff;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 6px 12px;
	text-decoration: none;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.sc-user-badge-logout:hover {
	background: #fef2f2;
	border-color: #fca5a5;
	color: #b91c1c !important;
}

@media (max-width: 768px) {
	.sc-preorder-auth-gate {
		padding: 24px 20px;
	}

	.sc-auth-gate-title {
		font-size: 22px;
	}

	.sc-auth-gate-actions {
		flex-direction: column;
	}

	.sc-auth-gate-btn {
		width: 100%;
	}

	.sc-preorder-user-badge {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.sc-user-badge-logout {
		align-self: flex-start;
	}
}

