/*
Theme Name: GameOnGlow Pro
Theme URI: https://gameonglow.com
Author: GameOnGlow
Author URI: https://gameonglow.com
Description: Modern dark theme with WooCommerce. Features: Buy Now buttons, fixed product gallery (no image overlap), parent-child variations, newsletter popup, and cart fixes. Optimized for conversions with clean UX.
Version: 1.6.11
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gameonglow-pro
Tags: block-patterns, block-styles, custom-colors, custom-menu, custom-logo, e-commerce, editor-style, full-site-editing, one-column, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
*/

/**
 * Core Styles
 * Following a mobile-first approach with clean, performant CSS
 */

/* CSS Reset & Base */
* {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	width: 100%;
}

body {
	margin: 0;
	padding: 0;
	background: #121212;
	color: #E0E0E0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}

a {
	color: #B8FF00;
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: #d4ff4d;
}

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

/* Glassmorphism Utilities */
.glass-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(184, 255, 0, 0.2);
	border-radius: 12px;
	transition: all 0.3s ease;
}

.glass-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(184, 255, 0, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(184, 255, 0, 0.1);
}

/* General Glass Effect Class - Used throughout site */
.has-glass-effect {
	background: linear-gradient(
		175deg,
		rgba(9, 12, 15, 0.96) 0%,
		rgba(9, 12, 15, 0.94) 55%,
		rgba(9, 12, 15, 0.9) 100%
	);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(184, 255, 0, 0.32);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.3),
		0 1px 0 rgba(184, 255, 0, 0.1) inset;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-glass-effect:hover {
	background: linear-gradient(
		175deg,
		rgba(9, 12, 15, 0.98) 0%,
		rgba(9, 12, 15, 0.96) 55%,
		rgba(9, 12, 15, 0.92) 100%
	);
	border-color: rgba(184, 255, 0, 0.45);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.4),
		0 0 20px rgba(184, 255, 0, 0.15),
		0 1px 0 rgba(184, 255, 0, 0.2) inset;
}

/* ===== SLEEK HEADER WITH GREEN GLASSMORPHISM ===== */
.site-header-bar {
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
	background: linear-gradient(
		175deg,
		rgba(9, 12, 15, 0.96) 0%,
		rgba(9, 12, 15, 0.94) 55%,
		rgba(9, 12, 15, 0.9) 100%
	) !important;
	border-bottom: 1px solid rgba(184, 255, 0, 0.32) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
	backdrop-filter: blur(18px) saturate(160%) !important;
	-webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

.site-header-bar,
.site-header-bar:hover {
	transform: none !important;
}

.site-header-bar .wp-block-site-title,
.site-header-bar .wp-block-site-tagline,
.site-header-bar .wp-block-navigation {
	color: rgba(255, 255, 255, 0.92) !important;
	margin: 0 !important;
}

.site-header-bar .wp-block-site-title {
	line-height: 1.2 !important;
}

.site-header-bar .wp-block-site-tagline {
	line-height: 1.2 !important;
}

.site-header-bar .wp-block-navigation__container {
  gap: 0.4rem !important;
}

/* Navigation Items with Green Glassmorphism - Ultra Compact */
.site-header-bar .wp-block-navigation-item__content {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.15rem 0.5rem !important;
  font-size: 0.8rem !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

@media (max-width: 768px){
	.site-header-bar .wp-block-navigation-item__content {
		padding: 0.12rem 0.4rem !important;
		font-size: 0.75rem !important;
	}
}

/* SUPER COMPACT HEADER - v1.5.22 - AGGRESSIVE REDUCTION */
.site-header-bar {
	min-height: 44px;
	height: auto;
	padding: 0.3rem 1rem;
	align-items: center !important;
	background: #050505;
	border: 1px solid rgba(184, 255, 0, 0.12);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
@media (max-width: 1024px){
	.site-header-bar {
		padding: 0.25rem 0.85rem;
		min-height: 40px;
	}
}
@media (max-width: 768px){
	.site-header-bar {
		min-height: 38px;
		padding: 0.2rem 0.65rem;
	}
}
@media (max-width: 480px){
	.site-header-bar {
		min-height: 36px;
		padding: 0.18rem 0.5rem;
	}
}

/* SUPER COMPACT logo, title, and tagline - v1.5.22 */
.site-header-bar .wp-block-site-logo img {
	max-width: 34px !important;
	height: auto !important;
}

.site-header-bar .wp-block-site-title {
	font-size: 0.88rem !important;
	line-height: 1.05 !important;
	font-weight: 700 !important;
}

.site-header-bar .wp-block-site-tagline {
	font-size: 0.58rem !important;
	line-height: 1.05 !important;
}

.site-header-bar .wp-block-navigation {
	font-size: 0.78rem !important;
}

@media (max-width: 768px){
	.site-header-bar .wp-block-site-logo img {
		max-width: 28px !important;
	}
	.site-header-bar .wp-block-site-title {
		font-size: 0.8rem !important;
	}
	.site-header-bar .wp-block-site-tagline {
		font-size: 0.52rem !important;
	}
}

@media (max-width: 480px){
	.site-header-bar .wp-block-site-logo img {
		max-width: 24px !important;
	}
	.site-header-bar .wp-block-site-title {
		font-size: 0.72rem !important;
	}
	.site-header-bar .wp-block-site-tagline {
		display: none !important;
	}
}

/* SUPER COMPACT account icon - v1.5.22 */
.site-header-bar .wc-block-customer-account__account-link {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

@media (max-width: 768px){
	.site-header-bar .wc-block-customer-account__account-link {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 480px){
	.site-header-bar .wc-block-customer-account__account-link {
		width: 22px;
		height: 22px;
	}
}

.site-header-bar .wp-block-navigation-item__content:hover,
.site-header-bar .wp-block-navigation-item__content:focus-visible {
	background: linear-gradient(
		145deg,
		rgba(184, 255, 0, 0.28) 0%,
		rgba(184, 255, 0, 0.12) 100%
	) !important;
	color: #d5ff8f !important;
	border: 1px solid rgba(184, 255, 0, 0.65) !important;
	box-shadow:
		0 0 0 1px rgba(184, 255, 0, 0.45),
		0 10px 24px rgba(184, 255, 0, 0.2) !important;
}

/* Active Navigation Items */
.site-header-bar .wp-block-navigation-item__content[aria-current="page"],
.site-header-bar .wp-block-navigation-item__content[aria-current="true"],
.site-header-bar .wp-block-navigation-item__content.is-active,
.site-header-bar .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	background: linear-gradient(
		145deg,
		rgba(184, 255, 0, 0.22) 0%,
		rgba(184, 255, 0, 0.08) 100%
	) !important;
	color: #d5ff8f !important;
	border: 1px solid rgba(184, 255, 0, 0.85) !important;
	box-shadow:
		0 0 0 1px rgba(184, 255, 0, 0.45),
		0 12px 28px rgba(184, 255, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Mobile Menu Toggle */
.site-header-bar .wp-block-navigation__responsive-container-close,
.site-header-bar .wp-block-navigation__responsive-container-open {
	color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(9, 12, 15, 0.65) !important;
    border: 1px solid rgba(184, 255, 0, 0.35) !important;
    border-radius: 12px !important;
    padding: 4px !important;
}

/* ===== FULL-PAGE MOBILE MENU - v1.5.24 - COMPLETE OVERLAY ===== */

/* Desktop navigation - normal display */
@media (min-width: 783px) {
	.site-header-bar .wp-block-navigation__responsive-container {
		display: block !important;
		position: static !important;
		background: transparent !important;
	}
}

/* Mobile full-page overlay menu */
@media (max-width: 782px) {
	/* CRITICAL: Allow menu to break out of header container */
	.site-header-bar {
		position: relative;
		z-index: 100;
		overflow: visible !important; /* Allow fixed child to escape */
	}

	/* Lock body scroll when mobile menu is open */
	body:has(.wp-block-navigation__responsive-container.is-menu-open),
	html:has(.wp-block-navigation__responsive-container.is-menu-open) {
		overflow: hidden !important;
		position: fixed !important;
		width: 100% !important;
	}

	/* Hamburger button styling */
	.site-header-bar .wp-block-navigation__responsive-container-open {
		padding: 6px 8px !important;
		background: transparent !important;
		border: 1px solid rgba(184, 255, 0, 0.3) !important;
		border-radius: 6px !important;
		color: #B8FF00 !important;
		transition: all 0.2s ease !important;
	}

	.site-header-bar .wp-block-navigation__responsive-container-open:hover {
		background: rgba(184, 255, 0, 0.12) !important;
		border-color: rgba(184, 255, 0, 0.6) !important;
	}

	/* FULL-PAGE overlay container - BREAKS OUT OF ALL PARENTS */
	.site-header-bar .wp-block-navigation__responsive-container {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100vw !important;
		height: 100vh !important;
		height: 100dvh !important;
		margin: 0 !important;
		background: linear-gradient(
			180deg,
			rgba(18, 18, 18, 0.98) 0%,
			rgba(12, 12, 12, 0.98) 100%
		) !important;
		backdrop-filter: blur(20px) saturate(150%) !important;
		-webkit-backdrop-filter: blur(20px) saturate(150%) !important;
		opacity: 0 !important;
		visibility: hidden !important;
		transform: scale(0.95) !important;
		transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		            visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		z-index: 999999 !important; /* Very high z-index to ensure it's on top */
		overflow-y: auto !important;
		padding: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	/* When menu is open */
	.site-header-bar .wp-block-navigation__responsive-container.is-menu-open {
		opacity: 1 !important;
		visibility: visible !important;
		transform: scale(1) !important;
	}

	/* Close button (X) - positioned in top-right */
	.site-header-bar .wp-block-navigation__responsive-close {
		position: fixed !important;
		top: 20px !important;
		right: 20px !important;
		padding: 10px !important;
		background: rgba(184, 255, 0, 0.1) !important;
		border: 1px solid rgba(184, 255, 0, 0.35) !important;
		border-radius: 8px !important;
		color: #B8FF00 !important;
		font-size: 20px !important;
		line-height: 1 !important;
		z-index: 1000000 !important; /* Above menu overlay */
		transition: all 0.2s ease !important;
	}

	.site-header-bar .wp-block-navigation__responsive-close:hover {
		background: rgba(184, 255, 0, 0.2) !important;
		border-color: rgba(184, 255, 0, 0.6) !important;
		transform: rotate(90deg) !important;
	}

	/* Menu content wrapper - centered */
	.site-header-bar .wp-block-navigation__responsive-container-content {
		width: 100% !important;
		max-width: 480px !important;
		padding: 80px 32px 40px 32px !important;
		margin: 0 auto !important;
	}

	/* Navigation items container */
	.site-header-bar .wp-block-navigation__responsive-container .wp-block-navigation__container {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 8px !important;
		padding: 0 !important;
	}

	/* Individual menu items */
	.site-header-bar .wp-block-navigation-item {
		margin: 0 !important;
		width: 100% !important;
	}

	.site-header-bar .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		padding: 18px 24px !important;
		font-size: 1.1rem !important;
		font-weight: 600 !important;
		color: rgba(255, 255, 255, 0.92) !important;
		background: rgba(255, 255, 255, 0.04) !important;
		border: 1px solid rgba(255, 255, 255, 0.08) !important;
		border-radius: 12px !important;
		text-decoration: none !important;
		text-align: center !important;
		writing-mode: horizontal-tb !important;
		text-orientation: mixed !important;
		transform: none !important;
		transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
		letter-spacing: 0.3px !important;
	}

	.site-header-bar .wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover,
	.site-header-bar .wp-block-navigation__responsive-container .wp-block-navigation-item__content:focus {
		background: linear-gradient(
			135deg,
			rgba(184, 255, 0, 0.18) 0%,
			rgba(184, 255, 0, 0.10) 100%
		) !important;
		border-color: rgba(184, 255, 0, 0.45) !important;
		color: #B8FF00 !important;
		transform: translateY(-2px) scale(1.02) !important;
		box-shadow: 0 8px 24px rgba(184, 255, 0, 0.25) !important;
	}

	/* Active/current menu item */
	.site-header-bar .wp-block-navigation__responsive-container .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
		background: linear-gradient(
			135deg,
			rgba(184, 255, 0, 0.22) 0%,
			rgba(184, 255, 0, 0.12) 100%
		) !important;
		border-color: rgba(184, 255, 0, 0.55) !important;
		color: #B8FF00 !important;
		font-weight: 700 !important;
		box-shadow: 0 4px 16px rgba(184, 255, 0, 0.2) !important;
	}

	/* Submenu styling if present */
	.site-header-bar .wp-block-navigation__responsive-container .wp-block-navigation__submenu-container {
		background: rgba(0, 0, 0, 0.4) !important;
		border: 1px solid rgba(184, 255, 0, 0.2) !important;
		border-radius: 10px !important;
		padding: 12px !important;
		margin-top: 8px !important;
	}

	.site-header-bar .wp-block-navigation__responsive-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-size: 0.95rem !important;
		padding: 14px 20px !important;
		font-weight: 500 !important;
	}

	/* Smooth scroll for long menus */
	.site-header-bar .wp-block-navigation__responsive-container {
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}
}

/* ===== END FULL-PAGE MOBILE MENU v1.5.24 ===== */

.site-header-bar .site-header-navigation {
	display: inline-flex;
	align-items: center;
	gap: 1.1rem;
}

.site-header-bar .wp-block-group > .site-header-navigation + .site-header-account,
.site-header-bar .wp-block-group > .site-header-account + .site-header-minicart {
	margin-left: 0.75rem;
}

/* Customer Account Icon */
.site-header-bar .wp-block-woocommerce-customer-account {
	display: flex;
	align-items: center;
}

/* Removed duplicate - account link sizing is defined above in ultra-compact section */

.site-header-bar .wc-block-customer-account__account-link:hover,
.site-header-bar .wc-block-customer-account__account-link:focus-visible {
	border-color: rgba(184, 255, 0, 0.85);
	background: linear-gradient(145deg, rgba(184, 255, 0, 0.32), rgba(184, 255, 0, 0.12));
	box-shadow:
		0 0 0 1px rgba(184, 255, 0, 0.55),
		0 14px 26px rgba(184, 255, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Mini Cart Styling */
.site-header-bar .wc-block-mini-cart__amount,
.site-header-bar .wp-block-woocommerce-mini-cart,
.site-header-bar .wc-block-mini-cart {
	color: #fff !important;
}

.site-header-bar .wc-block-mini-cart__badge {
	background: #B8FF00 !important;
	color: #000 !important;
	font-weight: 800 !important;
	font-size: 0.7rem !important;
	min-width: 18px !important;
	height: 18px !important;
	line-height: 18px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(0,0,0,0.35) !important;
}

.site-header-bar .wc-block-mini-cart__badge--hidden {
	display: none !important;
}

/* Removed old mobile header optimization - replaced with ultra-compact version above */

/* Legacy glass-header class support */
.glass-header {
	background: linear-gradient(
		175deg,
		rgba(9, 12, 15, 0.96) 0%,
		rgba(9, 12, 15, 0.94) 55%,
		rgba(9, 12, 15, 0.9) 100%
	) !important;
	border-bottom: 1px solid rgba(184, 255, 0, 0.32) !important;
}

/* Product Card Enhanced Styling */
.product-card-enhanced {
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.product-card-enhanced::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(145deg, rgba(184, 255, 0, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.product-card-enhanced:hover::before {
	opacity: 1;
}

.product-card-enhanced:hover {
	transform: translateY(-8px);
	border-color: rgba(184, 255, 0, 0.5) !important;
	box-shadow: 0 16px 48px rgba(184, 255, 0, 0.2);
}

/* WooCommerce Product Grid */
.woocommerce ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 640px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

.woocommerce ul.products li.product {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(184, 255, 0, 0.2);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.woocommerce ul.products li.product:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(184, 255, 0, 0.4);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(184, 255, 0, 0.15);
}

.woocommerce ul.products li.product img {
	border-radius: 8px;
	margin-bottom: 16px;
	transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
	transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: #E0E0E0;
	font-size: 18px;
	font-weight: 600;
	margin: 12px 0;
}

.woocommerce ul.products li.product .price {
	color: #B8FF00;
	font-size: 20px;
	font-weight: 700;
	margin: 8px 0;
}

.woocommerce ul.products li.product .price del {
	color: #888;
	font-size: 16px;
	opacity: 0.7;
}

/* WooCommerce Buttons - Green Full Width */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.added_to_cart,
.woocommerce .single_add_to_cart_button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: #B8FF00;
	color: #121212;
	border: none;
	border-radius: 8px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-block;
	text-align: center;
	width: 100%;
	box-shadow: 0 4px 16px rgba(184, 255, 0, 0.3);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.added_to_cart:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: #d4ff4d;
	color: #121212;
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(184, 255, 0, 0.5);
}

/* Single Product Page */
.woocommerce div.product {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(184, 255, 0, 0.2);
	border-radius: 12px;
	padding: 32px;
	margin-bottom: 40px;
}

.woocommerce div.product .product_title {
	color: #B8FF00;
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 16px;
}

.woocommerce div.product p.price {
	color: #B8FF00;
	font-size: 28px;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: #E0E0E0;
	line-height: 1.8;
	margin: 20px 0;
}

/* Product Gallery - Removed to prevent conflicts with WooCommerce gallery */

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(184, 255, 0, 0.1);
	border-radius: 12px;
	padding: 24px;
	margin-top: 32px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	list-style: none;
	padding: 0;
	margin: 0 0 24px 0;
	display: flex;
	gap: 16px;
	border-bottom: 1px solid rgba(184, 255, 0, 0.2);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: #888;
	padding: 12px 20px;
	display: block;
	font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: #B8FF00;
	border-bottom: 2px solid #B8FF00;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
	margin: 40px 0;
	text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-flex;
	gap: 8px;
}

.woocommerce nav.woocommerce-pagination ul li {
	margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: block;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(184, 255, 0, 0.2);
	border-radius: 6px;
	color: #E0E0E0;
	transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: #B8FF00;
	color: #121212;
	border-color: #B8FF00;
}

/* Cart & Checkout */
.woocommerce table.shop_table {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(184, 255, 0, 0.2);
	border-radius: 12px;
	width: 100%;
	margin-bottom: 24px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 16px;
	color: #E0E0E0;
	border-bottom: 1px solid rgba(184, 255, 0, 0.1);
}

.woocommerce table.shop_table th {
	color: #B8FF00;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
}

/* Mini Cart */
.woocommerce-mini-cart {
	background: rgba(18, 18, 18, 0.95);
	padding: 20px;
	border-radius: 12px;
	border: 1px solid rgba(184, 255, 0, 0.2);
}

.woocommerce-mini-cart-item {
	border-bottom: 1px solid rgba(184, 255, 0, 0.1);
	padding: 12px 0;
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(184, 255, 0, 0.2);
	border-radius: 6px;
	color: #E0E0E0;
	padding: 12px 16px;
	width: 100%;
	transition: all 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: #B8FF00;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(184, 255, 0, 0.1);
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: rgba(184, 255, 0, 0.1);
	border-left: 4px solid #B8FF00;
	color: #E0E0E0;
	padding: 16px 20px;
	border-radius: 6px;
	margin-bottom: 24px;
}

.woocommerce-error {
	background: rgba(255, 0, 0, 0.1);
	border-left-color: #ff4444;
}

/* Responsive Typography */
@media (max-width: 768px) {
	.woocommerce div.product .product_title {
		font-size: 24px;
	}

	.woocommerce div.product p.price {
		font-size: 22px;
	}

	.woocommerce div.product {
		padding: 20px;
	}
}

/* Quantity Inputs */
.woocommerce .quantity input.qty {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(184, 255, 0, 0.2);
	border-radius: 6px;
	color: #E0E0E0;
	padding: 8px 12px;
	width: 60px;
	text-align: center;
}

/* Sale Badge */
.woocommerce span.onsale {
	background: #B8FF00;
	color: #121212;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Star Ratings */
.woocommerce .star-rating {
	color: #B8FF00;
}

.woocommerce .star-rating::before {
	color: rgba(184, 255, 0, 0.2);
}

/* Loading State */
.woocommerce .blockUI.blockOverlay {
	background: rgba(18, 18, 18, 0.7) !important;
}

/* Accessibility */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #B8FF00;
	color: #121212;
	clip: auto !important;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Print Styles */
@media print {
	body {
		background: white;
		color: black;
	}
}

/* Fix overflow issues - v1.1 */
.wp-site-blocks,
.wp-block-group,
.alignfull,
.alignwide {
	max-width: 100vw;
	overflow-x: hidden;
}

.wp-block-group__inner-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== MOBILE HOMEPAGE SPACING OPTIMIZATION - v1.5.21 ===== */
@media (max-width: 768px) {
	/* Reduce excessive padding on all sections */
	.wp-block-group {
		padding-top: clamp(24px, 5vw, 48px) !important;
		padding-bottom: clamp(24px, 5vw, 48px) !important;
	}

	/* Tighter spacing for hero/header sections */
	main > .wp-block-group:first-of-type {
		padding-top: 32px !important;
	}

	/* Reduce margins between sections */
	.wp-block-group + .wp-block-group {
		margin-top: 0 !important;
	}

	/* Compact headings on mobile */
	h1, h2 {
		font-size: clamp(28px, 7vw, 48px) !important;
		margin-bottom: 16px !important;
	}

	h3 {
		font-size: clamp(20px, 5vw, 28px) !important;
	}

	/* Reduce button padding on mobile */
	.wp-block-button__link {
		padding: 12px 24px !important;
	}
}

@media (max-width: 480px) {
	/* Extra tight spacing for small phones */
	.wp-block-group {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	main {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}
}

/* ===== WOOCOMMERCE BLOCK VISIBILITY FIXES - v1.5.21 ===== */
/* Ensure WooCommerce blocks are visible and properly displayed */

/* Product Image Gallery Block - Simplified to prevent conflicts */
.wp-block-woocommerce-product-image-gallery,
.wc-block-product-image-gallery,
.woocommerce-product-gallery {
	display: block;
	visibility: visible;
	opacity: 1;
}

/* Add to Cart Form Block */
.wp-block-woocommerce-add-to-cart-form,
.wc-block-add-to-cart-form,
.woocommerce-variation-add-to-cart,
form.cart {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.single_add_to_cart_button,
.wc-block-components-product-button__button {
	display: inline-block !important;
	visibility: visible !important;
}

/* Product Price Block */
.wp-block-woocommerce-product-price,
.wc-block-components-product-price,
.woocommerce-Price-amount,
p.price {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Product Title */
.wp-block-post-title,
.woocommerce-loop-product__title,
.product_title {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Product Collection & Query Blocks */
.wp-block-woocommerce-product-collection,
.wp-block-woocommerce-product-template,
.wc-block-grid__products,
ul.products {
	display: grid !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Individual Product Items */
.wc-block-grid__product,
li.product {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
}

/* Product Details/Tabs */
.wp-block-woocommerce-product-details,
.woocommerce-tabs,
.wc-tabs {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Product Meta */
.wp-block-woocommerce-product-meta,
.product_meta {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Related Products */
.wp-block-woocommerce-related-products,
.related.products {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Product Rating */
.wp-block-woocommerce-product-rating,
.woocommerce-product-rating,
.star-rating {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Removed - was conflicting with WooCommerce gallery */

/* Breadcrumbs */
.wp-block-woocommerce-breadcrumbs,
.woocommerce-breadcrumb {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Ensure all WooCommerce containers are visible */
.woocommerce,
.woocommerce-page,
.single-product div.product,
.archive.woocommerce {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Removed - was conflicting with WooCommerce gallery */

/* Fix any z-index issues */
.woocommerce-product-gallery,
.wp-block-woocommerce-product-image-gallery {
	z-index: 1;
	position: relative;
}

/* ===== END FIXES v1.5.21 ===== */

/* ===== PRODUCT GALLERY FIXES - v1.6.7 ===== */
/* Minimal styling - let WooCommerce handle gallery functionality */

/* SALE badge positioning */
.single-product .onsale {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 999 !important;
	background: #B8FF00;
	color: #121212;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
}

/* Ensure SALE badge stays on top of gallery images */
.woocommerce-product-gallery {
	position: relative;
	z-index: 1;
}

.woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper {
	position: relative;
	z-index: 1;
}

.woocommerce span.onsale,
span.onsale {
	z-index: 999 !important;
}

/* Hide trust badges below gallery - v1.6.9 */
.single-product .wp-block-column .glass-card:has(p:contains("100% Authentic")) {
	display: none !important;
}

/* Alternative selector - hide any glass-card below gallery with trust badges */
.single-product .wp-block-columns > .wp-block-column:first-child .glass-card {
	display: none !important;
}

/* Product gallery container */
.woocommerce-product-gallery {
	margin-bottom: 24px;
}

/* Main product image - just basic border styling */
.woocommerce-product-gallery__image img {
	border-radius: 12px;
}

/* Thumbnails styling */
.woocommerce-product-gallery .flex-control-thumbs {
	margin-top: 16px;
	display: flex;
	gap: 10px;
}

.woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 calc(25% - 8px);
}

.woocommerce-product-gallery .flex-control-thumbs li img {
	border: 2px solid rgba(184, 255, 0, 0.3);
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.7;
	transition: all 0.2s;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: rgba(184, 255, 0, 0.7);
}

.woocommerce-product-gallery .flex-control-thumbs li.flex-active-slide img {
	opacity: 1;
	border-color: #B8FF00;
	box-shadow: 0 0 8px rgba(184, 255, 0, 0.4);
}

/* ===== BUY NOW BUTTON STYLES - v1.6.3 ===== */

/* Buy Now Button - Single Product Page */
.buy-now-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #B8FF00, #7FFF00);
	color: #121212;
	border: none;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 12px;
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 12px rgba(184, 255, 0, 0.3);
}

.buy-now-button:hover {
	background: linear-gradient(135deg, #7FFF00, #B8FF00);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(184, 255, 0, 0.5);
	color: #000;
}

.buy-now-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(184, 255, 0, 0.3);
}

.buy-now-button:disabled,
.buy-now-button.loading {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.buy-now-button.loading::after {
	content: '...';
	animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
	0%, 20% { content: '.'; }
	40% { content: '..'; }
	60%, 100% { content: '...'; }
}

/* Buy Now Button - Product Loop/Archive */
.buy-now-loop {
	width: 100%;
	margin-top: 8px;
	padding: 12px 24px;
	font-size: 14px;
}

/* Button Container on Product Pages */
form.cart .buy-now-button {
	margin-left: 0;
}

/* Stack buttons vertically on single product */
.single-product form.cart {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.single-product form.cart .quantity {
	margin-bottom: 0;
}

.single-product form.cart button[type="submit"],
.single-product form.cart .buy-now-button {
	width: 100%;
}

/* Product Loop - Stack Add to Cart and Buy Now */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .buy-now-button {
	width: 100%;
	margin: 0;
}

.woocommerce ul.products li.product .buy-now-button {
	margin-top: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.buy-now-button {
		font-size: 15px;
		padding: 13px 28px;
	}

	.buy-now-loop {
		font-size: 13px;
		padding: 11px 20px;
	}
}

/* ===== END BUY NOW & GALLERY FIXES v1.6.3 ===== */

/* ===== ADDITIONAL FIXES v1.6.4 ===== */

/* Hide the "Continue Shopping" button until template cache clears */
.single-product .wp-block-group .wp-block-buttons a[href="/products/"],
.single-product .wp-block-group .wp-block-buttons a[href*="Continue Shopping"],
.single-product .wp-block-group > .wp-block-buttons {
	display: none !important;
}

/* Fix Buy Now button grid containment on product archive */
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: visible;
}

/* Product loop buttons - both Add to Cart and Buy Now */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .button.product_type_simple,
.woocommerce ul.products li.product .button.product_type_variable,
.woocommerce ul.products li.product .button.ajax_add_to_cart,
.woocommerce ul.products li.product .buy-now-button {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 8px !important;
	box-sizing: border-box !important;
	display: block !important;
	position: relative !important;
	left: 0 !important;
	right: 0 !important;
}

.woocommerce ul.products li.product .buy-now-button {
	margin-top: 0 !important;
}

/* Force buttons to stay inside product card */
.woocommerce ul.products li.product .buy-now-button.buy-now-loop {
	max-width: 100%;
	width: 100%;
	transform: none !important;
}

/* Parent-Child Variation Pills Styling */
.gog-variation-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 6px;
	align-items: center;
}

.gog-variation-pill {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(184, 255, 0, 0.45);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	background: rgba(0, 0, 0, 0.4);
	color: #dfff6e;
}

.gog-variation-pill:hover {
	background: rgba(184, 255, 0, 0.2);
	border-color: rgba(184, 255, 0, 0.8);
	color: #B8FF00;
	transform: translateY(-1px);
}

.gog-variation-pill.is-active {
	background: linear-gradient(135deg, #B8FF00, #63e313);
	color: #121212;
	border-color: #B8FF00;
	box-shadow: 0 2px 8px rgba(184, 255, 0, 0.3);
}

.gog-variation-pill.is-active:hover {
	background: linear-gradient(135deg, #63e313, #B8FF00);
}

/* ===== END ADDITIONAL FIXES v1.6.4 ===== */
