/* Relentless Try-On — "Wear Now". Inherits tokens/CTA from gallery.css. */

.rag-tryon-hero {
	min-height: 60vh;
	background:
		radial-gradient(ellipse at 50% 20%, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
		linear-gradient(160deg, #141210 0%, var(--rag-black) 70%);
}

.rag-cta-row {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Ghost / secondary CTA */
.rag-cta-ghost {
	background: transparent;
	color: var(--rag-white);
	border: 1px solid var(--rag-border);
}

.rag-cta-ghost:hover {
	border-color: rgba(201, 168, 76, 0.6);
	color: var(--rag-gold-light);
	transform: translateY(-2px);
}

/* ── Tool ─────────────────────────────────────────────── */
.rag-tool {
	background: var(--rag-charcoal);
	padding: 64px clamp(20px, 5vw, 64px) 96px;
}

.rag-tool-inner {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 44px;
}

.rag-step-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 24px;
	color: var(--rag-white);
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.rag-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--rag-gold);
	color: var(--rag-black);
	font-family: "Inter", sans-serif;
	font-size: 15px;
	font-weight: 700;
	flex: none;
}

/* ── Tee picker ───────────────────────────────────────── */
.rag-tee-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.rag-tee {
	appearance: none;
	background: var(--rag-surface);
	border: 1px solid var(--rag-border);
	padding: 0;
	cursor: pointer;
	text-align: left;
	display: block;
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rag-tee:hover {
	border-color: rgba(201, 168, 76, 0.55);
	transform: translateY(-2px);
}

.rag-tee.is-active {
	border-color: var(--rag-gold);
	box-shadow: 0 0 0 1px var(--rag-gold), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.rag-tee-media {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--rag-black);
	overflow: hidden;
	position: relative;
}

.rag-tee-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rag-tee.is-active .rag-tee-media::after {
	content: "\2713";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--rag-gold);
	color: var(--rag-black);
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rag-tee-name {
	display: block;
	padding: 10px 12px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rag-offwhite);
	line-height: 1.35;
}

/* ── Upload drop zone ─────────────────────────────────── */
.rag-drop {
	display: block;
	border: 1.5px dashed var(--rag-border);
	background: var(--rag-surface);
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease;
	overflow: hidden;
}

.rag-drop:hover,
.rag-drop.is-hover {
	border-color: rgba(201, 168, 76, 0.7);
	background: #191714;
}

.rag-drop-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	padding: 44px 24px;
	min-height: 200px;
}

.rag-drop.has-photo .rag-drop-inner {
	padding: 0;
	min-height: 0;
}

.rag-drop-preview {
	width: 100%;
	max-height: 420px;
	object-fit: contain;
	display: block;
	background: var(--rag-black);
}

.rag-drop-icon { font-size: 30px; }

.rag-drop-text {
	font-size: 15px;
	font-weight: 600;
	color: var(--rag-white);
}

.rag-drop-hint {
	font-size: 12.5px;
	color: rgba(212, 212, 204, 0.55);
}

.rag-privacy {
	font-size: 12px;
	color: rgba(212, 212, 204, 0.5);
	margin: 12px 2px 0;
}

/* ── Go button ────────────────────────────────────────── */
.rag-step-go {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.rag-step-go .rag-cta {
	font-size: 15px;
	padding: 17px 40px;
}

.rag-cta[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.rag-run-note {
	font-size: 13px;
	color: rgba(212, 212, 204, 0.55);
	margin: 0;
	text-align: center;
}

/* ── Result ───────────────────────────────────────────── */
.rag-result[hidden] { display: none; }

.rag-result-stage {
	position: relative;
	background: var(--rag-black);
	border: 1px solid var(--rag-border);
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.rag-result-img {
	width: 100%;
	display: block;
	object-fit: contain;
	max-height: 640px;
}

.rag-result-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 48px 24px;
	text-align: center;
}

.rag-spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid rgba(201, 168, 76, 0.25);
	border-top-color: var(--rag-gold);
	animation: rag-spin 0.9s linear infinite;
}

@keyframes rag-spin { to { transform: rotate(360deg); } }

.rag-loading-text {
	font-size: 14px;
	color: var(--rag-offwhite);
	margin: 0;
}

.rag-result-error {
	padding: 40px 28px;
	text-align: center;
	font-size: 15px;
	color: #e7b7a8;
	line-height: 1.6;
}

.rag-result-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 20px;
}

.rag-result-actions[hidden] { display: none; }

.rag-result-download {
	font-size: 13px;
	color: rgba(212, 212, 204, 0.7);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rag-result-download:hover { color: var(--rag-gold-light); }

@media (prefers-reduced-motion: reduce) {
	.rag-spinner { animation-duration: 2s; }
	.rag-tee, .rag-drop { transition: none; }
}
