/**
 * Mega Music Theme - Custom Styles
 *
 * Styles for shortcode output, custom components, and enhancements
 */

/* ============================================================
   GLOBAL ENHANCEMENTS
   ============================================================ */

::selection {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Smooth scroll */
html {
	scroll-behavior: smooth;
}

/* Fix WordPress constrained layout shrinking shortcode grids */
.wp-block-group-is-layout-constrained > .wp-block-shortcode,
.wp-block-group-is-layout-constrained > .wp-block-shortcode > *,
.is-layout-constrained > .wp-block-shortcode,
.is-layout-constrained > .wp-block-shortcode > * {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.mega-releases-grid,
.mega-mixes-list,
.mega-products-grid,
.mega-gigs-list {
	max-width: 100% !important;
	width: 100% !important;
}

/* Ensure featured images in grids don't break layout */
.mega-release-cover img,
.mega-product-image img,
.mega-mix-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}

/* Prevent constrained layout from setting max-width on grid children */
.mega-releases-grid > *,
.mega-mixes-list > *,
.mega-products-grid > *,
.mega-gigs-list > * {
	max-width: none !important;
}

/* ============================================================
   RELEASES GRID
   ============================================================ */

.mega-releases-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.5rem;
	margin-top: 2rem;
	align-items: start;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.mega-releases-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 500px) {
	.mega-releases-grid {
		grid-template-columns: 1fr !important;
		max-width: 350px;
		margin-left: auto;
		margin-right: auto;
	}
}

.mega-release-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background: var(--wp--preset--color--surface-raised);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	width: 100%;
	min-width: 0;
}

.mega-release-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.mega-release-cover {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--wp--preset--color--border);
	width: 100%;
}

.mega-release-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.mega-release-card:hover .mega-release-cover img {
	transform: scale(1.05);
}

.mega-release-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--border) 100%);
}

.mega-release-info {
	padding: 1rem;
}

.mega-release-info h3 {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--white);
	margin: 0.25rem 0;
	line-height: 1.3;
}

.mega-release-type {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.mega-release-date {
	font-size: 0.8rem;
	color: var(--wp--preset--color--text-muted);
}

.mega-release-card-wrap {
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mega-release-card-wrap:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.mega-genre-tag {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--text-muted);
	background: var(--wp--preset--color--border);
	border-radius: 3px;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.mega-genre-tag:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

/* ============================================================
   GIGS LIST
   ============================================================ */

.mega-gigs-list {
	margin-top: 2rem;
}

.mega-gig-item {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.25rem 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: background 0.2s ease;
	text-decoration: none;
	color: inherit;
	border-radius: 4px;
}

.mega-gig-item:first-child {
	border-top: 1px solid var(--wp--preset--color--border);
}

.mega-gig-item:hover {
	background: rgba(139, 92, 246, 0.05);
	text-decoration: none;
	color: inherit;
}

.mega-gig-date {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	min-width: 120px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.mega-gig-info {
	flex: 1;
}

.mega-gig-info h3 {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--wp--preset--color--white);
	margin: 0;
}

.mega-gig-venue {
	font-size: 0.9rem;
	color: var(--wp--preset--color--text-muted);
	margin: 0.2rem 0 0;
}

.mega-gig-time {
	font-size: 0.8rem;
	color: var(--wp--preset--color--text-muted);
	margin: 0.15rem 0 0;
}

.mega-gig-tickets {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.mega-no-events {
	text-align: center;
	color: var(--wp--preset--color--text-muted);
	padding: 2rem 0;
	font-style: italic;
}

@media (max-width: 600px) {
	.mega-gig-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.mega-gig-date {
		min-width: auto;
	}
}

/* ============================================================
   MIXES LIST
   ============================================================ */

.mega-mixes-list {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.5rem;
	margin-top: 2rem;
	align-items: start;
	width: 100%;
}

@media (max-width: 900px) {
	.mega-mixes-list {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 500px) {
	.mega-mixes-list {
		grid-template-columns: 1fr !important;
	}
}

.mega-mix-item {
	display: flex;
	gap: 1rem;
	background: var(--wp--preset--color--surface-raised);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease;
	width: 100%;
	min-width: 0;
}

.mega-mix-item:hover {
	transform: translateY(-2px);
}

.mega-mix-thumb {
	width: 120px;
	min-height: 120px;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--wp--preset--color--border);
}

.mega-mix-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mega-mix-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--wp--preset--color--primary-dark) 0%, var(--wp--preset--color--surface) 100%);
}

.mega-mix-info {
	padding: 1rem 1rem 1rem 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mega-mix-info h3 {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 1rem;
	font-weight: 600;
	margin: 0.25rem 0;
	line-height: 1.3;
}

.mega-mix-info h3 a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.mega-mix-info h3 a:hover {
	color: var(--wp--preset--color--primary);
}

.mega-mix-type {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.mega-mix-duration {
	font-size: 0.8rem;
	color: var(--wp--preset--color--text-muted);
}

/* ============================================================
   PRESS KIT / BIO
   ============================================================ */

.mega-press-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.mega-stat-item {
	text-align: center;
	padding: 1.5rem;
	background: var(--wp--preset--color--surface-raised);
	border-radius: 8px;
}

.mega-stat-number {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 2rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	line-height: 1;
}

.mega-stat-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--text-muted);
	margin-top: 0.5rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mega-release-card,
.mega-gig-item,
.mega-mix-item {
	animation: fadeInUp 0.5s ease forwards;
}

/* Stagger animation for grid items */
.mega-releases-grid .mega-release-card:nth-child(2),
.mega-mixes-list .mega-mix-item:nth-child(2) {
	animation-delay: 0.1s;
}

.mega-releases-grid .mega-release-card:nth-child(3),
.mega-mixes-list .mega-mix-item:nth-child(3) {
	animation-delay: 0.2s;
}

.mega-releases-grid .mega-release-card:nth-child(4),
.mega-mixes-list .mega-mix-item:nth-child(4) {
	animation-delay: 0.3s;
}

.mega-releases-grid .mega-release-card:nth-child(5) {
	animation-delay: 0.4s;
}

.mega-releases-grid .mega-release-card:nth-child(6) {
	animation-delay: 0.5s;
}

/* ============================================================
   EMBED RESPONSIVE
   ============================================================ */

.mega-embed-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.mega-embed-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* SoundCloud / Mixcloud specific */
.mega-embed-audio {
	padding-bottom: 166px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--background);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--border);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* ============================================================
   STREAMING LINKS
   ============================================================ */

.mega-stream-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem auto;
	max-width: 700px;
	padding: 0;
}

.mega-stream-links a.mega-stream-link,
a.mega-stream-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.4rem;
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	color: var(--wp--preset--color--white);
	text-decoration: none;
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	transition: all 0.2s ease;
	white-space: nowrap;
	line-height: 1;
}

.mega-stream-links a.mega-stream-link:hover,
a.mega-stream-link:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
	text-decoration: none;
}

.mega-stream-icon {
	font-size: 1.1rem;
	line-height: 1;
}

.mega-stream-label {
	line-height: 1;
}

/* ============================================================
   RELEASE DETAILS (meta info bar)
   ============================================================ */

.mega-release-details {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 2rem;
	padding: 1.25rem 1.5rem;
	margin: 0.75rem auto 0.5rem;
	max-width: 600px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	text-align: center;
}

.mega-detail-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
}

.mega-detail-label {
	display: block;
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--text-muted);
	font-weight: 600;
	line-height: 1;
}

.mega-detail-value {
	display: block;
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.8rem;
	color: var(--wp--preset--color--primary-light);
	font-weight: 600;
	line-height: 1.3;
}

.mega-detail-value a.mega-genre-link {
	color: var(--wp--preset--color--primary-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mega-detail-value a.mega-genre-link:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

/* ============================================================
   PURCHASE / DOWNLOAD SECTION
   ============================================================ */

.mega-purchase-section {
	margin: 2rem 0;
	display: flex;
	justify-content: center;
}

.mega-purchase-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 1.5rem 2rem;
	width: 100%;
	max-width: 500px;
	text-align: center;
}

.mega-purchase-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.mega-purchase-label {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--text-muted);
	font-weight: 600;
}

.mega-purchase-price {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--white);
}

.mega-purchase-actions {
	margin-bottom: 0.5rem;
}

.mega-purchase-btn {
	display: inline-block;
	padding: 0.75rem 2.5rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.mega-purchase-btn:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.mega-purchase-btn.mega-purchased {
	background: var(--wp--preset--color--accent);
}

.mega-purchase-btn.mega-purchased:hover {
	background: #0891b2;
	box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

/* Variable pricing / format options */
.mega-purchase-formats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.mega-format-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.mega-format-option:hover {
	border-color: var(--wp--preset--color--primary);
	background: rgba(139, 92, 246, 0.1);
}

.mega-format-name {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

.mega-format-price {
	font-size: 0.8rem;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* ============================================================
   GIG DETAILS CARD (single gig page)
   ============================================================ */

.mega-gig-details-card {
	max-width: 600px;
	margin: 0 auto;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 1.5rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mega-gig-details-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.mega-gig-detail {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.mega-gig-detail-full {
	flex: 1 1 100%;
}

.mega-gig-detail-label {
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--text-muted);
	font-weight: 600;
	line-height: 1;
}

.mega-gig-detail-value {
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.9rem;
	color: var(--wp--preset--color--white);
	font-weight: 600;
	line-height: 1.3;
}

.mega-gig-price-value {
	color: var(--wp--preset--color--primary-light);
}

.mega-gig-address-link {
	color: var(--wp--preset--color--primary-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mega-gig-address-link:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

.mega-gig-action-row {
	align-items: center;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.mega-gig-ticket-btn {
	display: inline-block;
	margin-left: auto;
	padding: 0.7rem 2rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.mega-gig-ticket-btn:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

@media (max-width: 500px) {
	.mega-gig-details-card {
		padding: 1.25rem;
	}

	.mega-gig-action-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.mega-gig-ticket-btn {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}

/* ============================================================
   MIX DOWNLOAD BUTTON
   ============================================================ */

.mega-mix-download {
	text-align: center;
	margin: 1rem 0 0.5rem;
}

.mega-mix-download-btn {
	display: inline-block;
	padding: 0.7rem 2rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.mega-mix-download-btn:hover {
	background: #0891b2;
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

/* ============================================================
   FORM STYLES (WPForms, CF7, Gravity Forms, generic)
   ============================================================ */

/* Generic inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
textarea,
select {
	background: var(--wp--preset--color--surface-raised) !important;
	color: var(--wp--preset--color--text) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 6px !important;
	padding: 0.75rem 1rem !important;
	font-family: var(--wp--preset--font-family--inter) !important;
	font-size: 0.9rem !important;
	transition: border-color 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--primary) !important;
	outline: none !important;
	box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}

::placeholder {
	color: var(--wp--preset--color--text-muted) !important;
	opacity: 1;
}

/* Labels */
label,
.wpforms-field-label,
.gfield_label,
.wpcf7-form label {
	color: var(--wp--preset--color--text) !important;
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Sub-labels (like First / Last under name fields) */
.wpforms-field-sublabel,
.gfield_description,
.wpcf7-form .description {
	color: var(--wp--preset--color--text-muted) !important;
	font-size: 0.75rem;
}

/* Required asterisk */
.wpforms-required-label,
.gfield_required {
	color: var(--wp--preset--color--primary) !important;
}

/* Submit buttons */
button[type="submit"],
input[type="submit"],
.wpforms-submit,
.wpcf7-submit,
.gform_button {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--white) !important;
	border: none !important;
	padding: 0.75rem 2rem !important;
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.2s ease !important;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.wpforms-submit:hover,
.wpcf7-submit:hover,
.gform_button:hover {
	background: var(--wp--preset--color--primary-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* WPForms specific */
.wpforms-container .wpforms-field {
	padding: 0.5rem 0;
}

.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select {
	background: var(--wp--preset--color--surface-raised) !important;
	color: var(--wp--preset--color--text) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
}

/* Contact Form 7 specific */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
	background: var(--wp--preset--color--surface-raised) !important;
	color: var(--wp--preset--color--text) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
}

/* Confirmation / error messages */
.wpforms-confirmation-container-full,
.wpcf7-response-output {
	background: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--text) !important;
	border: 1px solid var(--wp--preset--color--primary) !important;
	border-radius: 6px;
	padding: 1rem;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */

.mega-products-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.5rem;
	margin-top: 2rem;
	align-items: start;
	width: 100%;
}

@media (max-width: 900px) {
	.mega-products-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 500px) {
	.mega-products-grid {
		grid-template-columns: 1fr !important;
		max-width: 350px;
		margin-left: auto;
		margin-right: auto;
	}
}

.mega-product-card {
	display: flex;
	flex-direction: column;
	position: relative;
	text-decoration: none;
	background: var(--wp--preset--color--surface-raised);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	width: 100%;
	min-width: 0;
}

.mega-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
	text-decoration: none;
}

.mega-product-image {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--wp--preset--color--border);
}

.mega-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.mega-product-card:hover .mega-product-image img {
	transform: scale(1.05);
}

.mega-product-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--border) 100%);
}

.mega-product-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	padding: 0.3rem 0.75rem;
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 4px;
	z-index: 1;
}

.mega-badge-soldout {
	background: #dc2626;
	color: #fff;
}

.mega-badge-preorder {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

.mega-product-info {
	padding: 1rem;
}

.mega-product-info h3 {
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--white);
	margin: 0.25rem 0;
	line-height: 1.3;
}

.mega-product-category {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.mega-product-pricing {
	margin-top: 0.4rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mega-product-price {
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary-light);
}

.mega-product-original-price {
	font-size: 0.85rem;
	color: var(--wp--preset--color--text-muted);
	text-decoration: line-through;
}

.mega-product-sale-price {
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #ef4444;
}

/* ============================================================
   SINGLE PRODUCT DETAILS
   ============================================================ */

.mega-product-details-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.mega-product-detail-price {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.25rem;
}

.mega-price-main {
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--white);
}

.mega-price-original {
	font-size: 1.1rem;
	color: var(--wp--preset--color--text-muted);
	text-decoration: line-through;
}

.mega-price-sale {
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: #ef4444;
}

.mega-product-detail-meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.mega-product-buy-btn {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.85rem 2.5rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-align: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.mega-product-buy-btn:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.mega-product-buy-btn.mega-btn-disabled {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-muted);
	cursor: not-allowed;
	pointer-events: none;
}

/* ============================================================
   NEWSLETTER / MAILPOET FORM OVERRIDES
   ============================================================ */

.mailpoet_form .mailpoet_text_label,
.mailpoet_form .mailpoet_textarea_label {
	color: var(--wp--preset--color--text) !important;
}

.mailpoet_form input[type="text"],
.mailpoet_form input[type="email"] {
	background: var(--wp--preset--color--surface-raised) !important;
	color: var(--wp--preset--color--text) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
}

.mailpoet_form input[type="submit"] {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--white) !important;
}

/* ============================================================
   LINK IN BIO PAGE
   ============================================================ */

.mega-link-bio {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 420px;
	margin: 0 auto;
	padding: 1rem 0;
}

.mega-link-bio-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 1rem;
	border: 2px solid var(--wp--preset--color--border);
}

.mega-link-bio-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mega-link-bio-title {
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--white);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
	text-align: center;
}

.mega-link-bio-tagline {
	font-size: 0.85rem;
	color: var(--wp--preset--color--text-muted);
	margin: 0.35rem 0 0;
	text-align: center;
	letter-spacing: 0.05em;
}

.mega-link-bio-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
	margin-top: 2rem;
}

.mega-link-bio-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.9rem 1.25rem;
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	color: var(--wp--preset--color--white);
	text-decoration: none;
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: all 0.2s ease;
	text-align: center;
}

.mega-link-bio-btn:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
	text-decoration: none;
}

.mega-link-bio-icon {
	font-size: 1.15rem;
	line-height: 1;
}

.mega-link-bio-label {
	line-height: 1;
}

.mega-link-bio-home {
	margin-top: 2.5rem;
	font-size: 0.75rem;
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
	letter-spacing: 0.03em;
	transition: color 0.2s ease;
}

.mega-link-bio-home:hover {
	color: var(--wp--preset--color--primary);
}

/* ============================================================
   FRONT PAGE SECTION WRAPPERS
   ============================================================ */

.mega-fp-section {
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--30);
}

.mega-bg-surface {
	background: var(--wp--preset--color--surface);
}

.mega-bg-background {
	background: var(--wp--preset--color--background);
}

.mega-fp-section-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.mega-fp-section-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 0;
}

.mega-fp-section-title {
	font-family: 'Space Grotesk', var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--wp--preset--color--white);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
	line-height: 1.2;
}

.mega-fp-section-link {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.mega-fp-section-link:hover {
	color: var(--wp--preset--color--primary-light);
}
