/* Modern Shopping Website Banner Styles */

/* Base Banner Styles */
.hero-banner-section {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	min-height: 300px; /* Fallback minimum height */
	/* background: linear-gradient(135deg, #e6e9e9, #f15e22); Fallback background */
}

.hero-banner-container {
	position: relative;
	height: 500px;
	overflow: hidden;
	background: inherit; /* Inherit fallback background */
}

.hero-banner-slider {
	position: relative;
	width: 100%;
	height: 100%;
}

.hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 1 !important; /* Force always visible */
	z-index: 1;
	transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
	opacity: 1 !important;
	z-index: 2;
}

/* Alternative class for background images */
.bg-image {
	background-attachment: scroll;
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
}

/* Fallback slide styling */
.fallback-slide {
	background: linear-gradient(135deg, 
		#005a4a 0%, 
		#f15e22 50%, 
		#ffae11 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fallback-slide::before {
	content: "Myanmar Mart";
	color: white;
	font-size: 4rem;
	font-weight: 800;
	text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
	z-index: 5;
	position: relative;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, 
		rgba(0, 90, 74, 0.8) 0%, 
		rgba(241, 94, 34, 0.7) 50%, 
		rgba(255, 174, 17, 0.6) 100%);
	z-index: 3;
}

/* Content Overlay */
.hero-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	z-index: 4;
	color: white;
	padding: 0 2rem;
}

.hero-text-content {
	text-align: center;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.hero-title {
	font-size: 3.8rem;
	font-weight: 800;
	margin-bottom: 1.2rem;
	text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
	animation: fadeInUp 1.2s ease-out;
	line-height: 1.1;
	letter-spacing: -1px;
}

.hero-subtitle {
	font-size: 1.6rem;
	font-weight: 400;
	margin-bottom: 2.5rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
	animation: fadeInUp 1.2s ease-out 0.3s both;
	opacity: 0.95;
}

.hero-actions {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeInUp 1.2s ease-out 0.6s both;
}

/* Button Styles */
.hero-btn {
	padding: 16px 32px;
	border: none;
	border-radius: 50px;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	text-transform: uppercase;
	letter-spacing: 1.2px;
	position: relative;
	overflow: hidden;
	min-width: 160px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hero-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.6s;
}

.hero-btn:hover::before {
	left: 100%;
}

.hero-btn-primary {
	background: linear-gradient(45deg, #f15e22, #ff7f3f);
	color: white;
	box-shadow: 0 6px 20px rgba(241, 94, 34, 0.4);
}

.hero-btn-primary:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 10px 30px rgba(241, 94, 34, 0.6);
	background: linear-gradient(45deg, #e5541e, #f4733a);
}

.hero-btn-secondary {
	background: transparent;
	color: white;
	border: 3px solid white;
	backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
	background: white;
	color: #005a4a;
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Banner Indicators */
.hero-indicators {
	position: absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 5;
}

.indicator {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
}

.indicator.active {
	background: white;
	transform: scale(1.3);
	border-color: rgba(255, 255, 255, 0.5);
}

.indicator:hover {
	background: rgba(255, 255, 255, 0.9);
	transform: scale(1.1);
}

/* Search Modal */
.search-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
}

.search-modal-content {
	background-color: #ffffff;
	margin: 3% auto;
	padding: 0;
	border-radius: 20px;
	width: 90%;
	max-width: 650px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
	animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.search-header {
	background: linear-gradient(135deg, #005a4a, #00705a);
	color: white;
	padding: 25px 35px;
	position: relative;
}

.search-header h3 {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
}

.search-close {
	color: white;
	position: absolute;
	top: 20px;
	right: 25px;
	font-size: 32px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	transition: all 0.3s ease;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.search-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.search-form {
	padding: 35px;
	display: flex;
	gap: 15px;
	align-items: center;
}

.search-form input {
	flex: 1;
	padding: 18px 25px;
	border: 2px solid #e8e8e8;
	border-radius: 50px;
	font-size: 1.1rem;
	outline: none;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.search-form input:focus {
	border-color: #005a4a;
	background: white;
	box-shadow: 0 0 0 3px rgba(0, 90, 74, 0.1);
}

.search-form button {
	padding: 18px 25px;
	background: linear-gradient(45deg, #f15e22, #ff7f3f);
	color: white;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1.1rem;
	min-width: 60px;
}

.search-form button:hover {
	background: linear-gradient(45deg, #e5541e, #f4733a);
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(241, 94, 34, 0.4);
}

.quick-categories {
	padding: 0 35px 35px;
}

.quick-categories h4 {
	color: #333;
	margin-bottom: 20px;
	font-size: 1.2rem;
	font-weight: 600;
}

.category-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.category-tag {
	background: linear-gradient(45deg, #f8f9fa, #e9ecef);
	color: #005a4a;
	padding: 12px 20px;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 0.95rem;
	font-weight: 500;
	border: 2px solid transparent;
}

.category-tag:hover {
	background: linear-gradient(45deg, #005a4a, #00705a);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 90, 74, 0.3);
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-60px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Mobile First Responsive Design */
@media (max-width: 1200px) {
	.hero-title {
		font-size: 3.2rem;
	}
	
	.hero-subtitle {
		font-size: 1.4rem;
	}
}

@media (max-width: 992px) {
	.hero-banner-container {
		height: 400px;
	}
	
	.hero-title {
		font-size: 2.8rem;
	}
	
	.hero-subtitle {
		font-size: 1.3rem;
		margin-bottom: 2rem;
	}
	
	.hero-actions {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	
	.hero-btn {
		padding: 14px 28px;
		font-size: 1rem;
		min-width: 140px;
	}
	
	.hero-content {
		padding: 0 1.5rem;
	}
}

@media (max-width: 768px) {
	.hero-banner-container {
		height: 350px;
	}
	
	.hero-title {
		font-size: 2.4rem;
		margin-bottom: 1rem;
	}
	
	.hero-subtitle {
		font-size: 1.1rem;
		margin-bottom: 1.5rem;
	}
	
	.hero-btn {
		padding: 12px 24px;
		font-size: 0.95rem;
		min-width: 120px;
	}
	
	.search-modal-content {
		margin: 5% auto;
		width: 95%;
	}
	
	.search-form {
		padding: 25px;
		flex-direction: column;
		gap: 15px;
	}
	
	.search-form input,
	.search-form button {
		width: 100%;
	}
	
	.category-tags {
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.hero-banner-container {
		height: 300px;
	}
	
	.hero-title {
		font-size: 2rem;
		letter-spacing: -0.5px;
	}
	
	.hero-subtitle {
		font-size: 1rem;
		margin-bottom: 1.2rem;
	}
	
	.hero-btn {
		padding: 10px 20px;
		font-size: 0.9rem;
		min-width: 100px;
	}
	
	.hero-content {
		padding: 0 1rem;
	}
	
	.search-modal-content {
		margin: 10% auto;
		border-radius: 15px;
	}
	
	.search-header {
		padding: 20px 25px;
	}
	
	.search-header h3 {
		font-size: 1.4rem;
	}
	
	.search-form {
		padding: 20px;
	}
	
	.quick-categories {
		padding: 0 20px 25px;
	}
	
	.category-tag {
		padding: 10px 16px;
		font-size: 0.9rem;
	}
	
	.hero-indicators {
		bottom: 15px;
	}
	
	.indicator {
		width: 10px;
		height: 10px;
	}
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.hero-slide {
		background-size: contain;
		image-rendering: -webkit-optimize-contrast;
		image-rendering: crisp-edges;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.search-modal-content {
		background-color: #1a1a1a;
		color: white;
	}
	
	.search-form input {
		background: #2a2a2a;
		border-color: #444;
		color: white;
	}
	
	.search-form input:focus {
		border-color: #005a4a;
		background: #333;
	}
	
	.category-tag {
		background: linear-gradient(45deg, #2a2a2a, #333);
		color: #e0e0e0;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.hero-slide {
		transition: none;
	}
	
	.hero-title,
	.hero-subtitle,
	.hero-actions {
		animation: none;
	}
	
	.hero-btn,
	.indicator,
	.category-tag {
		transition: none;
	}
}
