@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

:root {
	/* Bold Candy Store Colors */
	--color-blue: #1a3cb0;
	--color-blue-dark: #0f2580;
	--color-blue-light: #2850d4;
	--color-red: #e52535;
	--color-red-dark: #c41e2c;
	--color-white: #ffffff;
	--color-off-white: #f8f9fa;
	--color-gray-50: #f9fafb;
	--color-gray-100: #f3f4f6;
	--color-gray-200: #e5e7eb;
	--color-gray-300: #d1d5db;
	--color-gray-400: #9ca3af;
	--color-gray-500: #6b7280;
	--color-gray-600: #4b5563;
	--color-gray-700: #374151;
	--color-gray-800: #1f2937;
	--color-gray-900: #111827;
	--color-yellow: #fbbf24;
	--color-green: #10b981;
	--color-orange: #f97316;

	/* Semantic */
	--bg-primary: var(--color-white);
	--bg-secondary: var(--color-gray-50);
	--bg-card: var(--color-white);
	--bg-hero: var(--color-blue);

	--text-primary: var(--color-gray-900);
	--text-secondary: var(--color-gray-600);
	--text-muted: var(--color-gray-400);

	--accent-primary: var(--color-red);
	--accent-secondary: var(--color-blue);
	--accent-highlight: var(--color-yellow);

	/* Typography */
	--font-display: 'Bebas Neue', sans-serif;
	--font-heading: 'Oswald', sans-serif;
	--font-body: 'Inter', sans-serif;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

	/* Legacy compat aliases */
	--retro-cream: var(--color-off-white);
	--retro-orange: var(--color-orange);
	--retro-red: var(--color-red);
	--retro-yellow: var(--color-yellow);
	--retro-teal: var(--color-blue);
	--retro-navy: var(--color-blue-dark);
	--retro-brown: var(--color-gray-600);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-body);
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-primary);
	text-transform: uppercase;
}

a {
	color: var(--accent-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-red-dark);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	font-family: var(--font-body);
	cursor: pointer;
	border: none;
	outline: none;
}

.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Primary Button */
.retro-button {
	background: var(--color-red);
	color: white;
	padding: 0.875rem 2rem;
	border: none;
	border-radius: 6px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.2s ease;
	display: inline-block;
	box-shadow: var(--shadow-md);
}

.retro-button:hover {
	background: var(--color-red-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-lg);
	color: white;
}

.retro-button:active {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.retro-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Secondary Button */
.btn-secondary {
	background: var(--color-blue);
	color: white;
	padding: 0.875rem 2rem;
	border: none;
	border-radius: 6px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.2s ease;
	display: inline-block;
}

.btn-secondary:hover {
	background: var(--color-blue-dark);
	color: white;
}

/* Price Tag */
.price-tag {
	background: var(--color-gray-50);
	border: 2px solid var(--color-gray-200);
	border-radius: 8px;
	padding: 0.5rem 1rem;
	display: inline-block;
}

.price-tag .price {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	color: var(--text-primary);
	font-weight: 700;
}

.price-tag .was {
	font-size: 0.875rem;
	color: var(--text-muted);
	text-decoration: line-through;
}

/* Starburst Badge */
.starburst {
	position: relative;
	display: inline-block;
	padding: 0.375rem 0.75rem;
	background: var(--color-red);
	color: white;
	font-weight: 700;
	font-family: var(--font-heading);
	font-size: 0.8rem;
	text-transform: uppercase;
	border-radius: 4px;
}

/* Card Styles */
.card {
	background: var(--bg-card);
	border: 1px solid var(--color-gray-200);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s ease;
	box-shadow: var(--shadow-sm);
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.mt-1 {
	margin-top: 0.25rem;
}

.mt-2 {
	margin-top: 0.5rem;
}

.mt-4 {
	margin-top: 1rem;
}

.mt-8 {
	margin-top: 2rem;
}

.mb-1 {
	margin-bottom: 0.25rem;
}

.mb-2 {
	margin-bottom: 0.5rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

.mb-8 {
	margin-bottom: 2rem;
}

.p-2 {
	padding: 0.5rem;
}

.p-4 {
	padding: 1rem;
}

.p-8 {
	padding: 2rem;
}

.grid {
	display: grid;
}

.grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.grid-cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.grid-cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.gap-4 {
	gap: 1rem;
}

.gap-6 {
	gap: 1.5rem;
}

.gap-8 {
	gap: 2rem;
}

/* Loading Spinner */
.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid var(--color-gray-200);
	border-top-color: var(--color-blue);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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