/* ==========================================================================
   GADGET5 — Homepage & Hero Showcase Stylesheet (Zero Red Cross Error)
   5-Color System: White #FFFFFF | Alice Blue #F0F8FF | Turquoise #40E0D0 | Slate #2F4F4F | Gold #FFCC33
   ========================================================================== */

/* 1. HERO SLIDER SHOWCASE */
.g5-hero {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 80vh;
	min-height: 360px;
	max-height: 880px;
	overflow: hidden;
	border-radius: 16px;
	margin: 0 auto 36px;
	background: #243C3C;
	contain: layout paint;
}

.g5-hero-track {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
	will-change: transform;
}

.g5-hero-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	background: #FFFFFF;
}

.g5-hero-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	background: #FFFFFF;
}

/* Deep Ambient Gradient Overlay for 100% Crisp Legibility */
.g5-hero-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	padding: 50px 32px 24px;
	width: 100%;
	background: linear-gradient(
		to top,
		rgba(31, 53, 53, 0.94) 0%,
		rgba(31, 53, 53, 0.72) 45%,
		rgba(31, 53, 53, 0.25) 75%,
		transparent 100%
	) !important;
	color: #FFFFFF;
	box-sizing: border-box;
}

.g5-hero-kicker,
.g5-hero-eyebrow {
	display: none !important;
}

/* Product Title — Pure Crisp White with Soft Shadow */
.g5-hero-title {
	font-size: clamp(20px, 2.5vw, 32px) !important;
	font-weight: 850 !important;
	line-height: 1.25 !important;
	margin: 0 0 8px !important;
	color: #FFFFFF !important;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	letter-spacing: -0.02em;
}

/* Price Row — Vivid High-Contrast Highlighting */
.g5-hero-price {
	font-size: 20px !important;
	font-weight: 900 !important;
	color: #40E0D0 !important;
	margin: 0 0 16px !important;
	display: flex !important;
	align-items: baseline !important;
	gap: 10px !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.g5-hero-price del {
	color: rgba(255, 255, 255, 0.65) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
}

.g5-hero-price ins {
	text-decoration: none !important;
	color: #40E0D0 !important;
}

/* Shop Now Button — Vivid Turquoise Pill with Sharp Slate Text */
.g5-hero-cta {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 32px !important;
	border-radius: 999px !important;
	background: #40E0D0 !important;
	color: #1A3030 !important;
	font-size: 15px !important;
	font-weight: 850 !important;
	letter-spacing: 0.02em !important;
	text-decoration: none !important;
	border: none !important;
	box-shadow: 0 8px 24px rgba(64, 224, 208, 0.45) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.g5-hero-cta:hover {
	background: #FFFFFF !important;
	color: #1A3030 !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(255, 255, 255, 0.35) !important;
}

/* Prev / Next Controls (Desktop) */
.g5-hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #FFFFFF;
	cursor: pointer;
	transition: all 0.2s ease;
}

.g5-hero-nav:hover {
	background: #40E0D0;
	color: #1A3030;
	border-color: #40E0D0;
	transform: translateY(-50%) scale(1.08);
}

.g5-hero-prev { left: 18px; }
.g5-hero-next { right: 18px; }

/* Dots Indicator */
.g5-hero-dots {
	position: absolute;
	bottom: 22px;
	right: 28px;
	z-index: 10;
	display: flex;
	gap: 8px;
}

.g5-hero-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.25s ease;
}

.g5-hero-dot.is-active {
	width: 24px;
	border-radius: 999px;
	background: #40E0D0;
}

/* Mobile Responsiveness (Strict 330px Height) */
@media (max-width: 768px) {
	.g5-hero {
		height: 340px;
		border-radius: 0 0 18px 18px;
		margin-bottom: 20px;
	}
	.g5-hero-overlay {
		padding: 30px 18px 16px;
	}
	.g5-hero-title {
		font-size: 16px !important;
		margin-bottom: 4px !important;
	}
	.g5-hero-price {
		font-size: 17px !important;
		margin-bottom: 10px !important;
	}
	.g5-hero-cta {
		height: 40px !important;
		min-height: 40px !important;
		padding: 0 24px !important;
		font-size: 13.5px !important;
	}
	.g5-hero-nav { display: none; }
	.g5-hero-dots {
		bottom: 16px;
		right: 18px;
	}
}

/* 2. SHOP / LATEST ARRIVALS GRID */
.g5-shop {
	width: 100%;
	padding: 20px 0 40px;
	content-visibility: auto;
	contain-intrinsic-size: 900px;
}

.g5-shop-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.g5-shop-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.g5-shop-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #2F4F4F;
	margin: 0;
}

.g5-shop-viewall {
	font-size: 0.9rem;
	font-weight: 600;
	color: #2F4F4F;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: color 0.2s ease;
}

.g5-shop-viewall:hover { color: #40E0D0; }

.g5-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 992px) {
	.g5-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
	.g5-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}