/* ============================================
   HallalBD E-Commerce - Beautiful Header Design
   ============================================ */

:root {
	--primary-color: #0f4c2a;
	--primary-light: #22c55e;
	--accent-color: #f59e0b;
	--cream-bg: #f8faf9;
	--text-dark: #1a1a1a;
	--border-color: #e5e7eb;
}

/* ============================================
   HEADER STYLES
   ============================================ */

/* Top Bar */
.header-top-bar {
	letter-spacing: 0.5px;
	font-weight: 500;
}

.header-top-bar i {
	margin-right: 8px;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-3px);
	}
}

/* Main Header */
.site-header {
	background: white;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 100;
	border: none;
}

/* Navbar */
.navbar {
	padding: 1rem 0 !important;
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 20px;
	color: var(--primary-color) !important;
	margin: 0 !important;
	padding: 0 !important;
	transition: all 0.3s ease;
}

.navbar-brand:hover {
	transform: scale(1.05);
}

.navbar-brand img {
	max-height: 50px;
	width: auto;
	border-radius: 8px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(15, 76, 42, 0.1);
}

.navbar-brand:hover img {
	box-shadow: 0 4px 12px rgba(15, 76, 42, 0.2);
	transform: scale(1.05);
}

.navbar-brand span {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: white;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 800;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(15, 76, 42, 0.1);
}

.navbar-brand:hover span {
	box-shadow: 0 4px 12px rgba(15, 76, 42, 0.2);
	transform: scale(1.05);
}

/* Search Bar */
.navbar form {
	position: relative;
}

.navbar form input {
	border: 2px solid var(--border-color) !important;
	border-radius: 25px !important;
	padding: 10px 15px !important;
	font-size: 0.95rem !important;
	transition: all 0.3s ease !important;
	background-color: white !important;
}

.navbar form input:focus {
	border-color: var(--primary-light) !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.navbar form button {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: none !important;
	border: none !important;
	color: var(--primary-color);
	cursor: pointer;
	padding: 0 10px !important;
	transition: all 0.3s ease;
}

.navbar form button:hover {
	color: var(--primary-light);
	transform: translateY(-50%) scale(1.2);
}

/* Navigation Links */
.nav-link {
	color: var(--text-dark) !important;
	transition: all 0.3s ease !important;
	padding: 0.5rem 1rem !important;
	font-size: 0.95rem !important;
	font-weight: 500;
	position: relative;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
	transition: all 0.3s ease;
	transform: translateX(-50%);
	border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
	width: 80%;
}

.nav-link:hover,
.nav-link.active {
	color: var(--primary-color) !important;
}

/* Dropdown Menu */
.dropdown-menu {
	background-color: var(--cream-bg);
	border: 2px solid var(--border-color);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	margin-top: 10px;
}

.dropdown-item {
	color: var(--text-dark);
	transition: all 0.3s ease;
	padding: 10px 20px;
	border-radius: 8px;
	margin: 5px 10px;
}

.dropdown-item:hover {
	background-color: var(--primary-light);
	color: white;
	transform: translateX(5px);
}

/* Navbar Toggler */
.navbar-toggler {
	border: none !important;
	padding: 0 !important;
	color: var(--primary-color);
	transition: all 0.3s ease;
}

.navbar-toggler:focus {
	box-shadow: none !important;
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
	border-radius: 6px;
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f4c2a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Icons */
.navbar .nav-link {
	padding: 0 !important;
	margin: 0 10px;
	font-size: 1.2rem;
	color: var(--primary-color) !important;
}

.navbar .nav-link:hover {
	color: var(--primary-light) !important;
}

.navbar .nav-link::after {
	display: none;
}

.navbar .badge {
	position: absolute;
	top: -8px;
	right: -8px;
	font-size: 0.7rem;
	padding: 2px 6px;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

/* Navigation Bar Background */
.navbar-collapse {
	background-color: var(--cream-bg);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	padding: 0;
}

/* Mobile Search */
.d-lg-none form {
	position: relative;
}

.d-lg-none input {
	padding: 10px 15px !important;
	border: 2px solid var(--border-color) !important;
	border-radius: 20px !important;
	font-size: 0.9rem !important;
	transition: all 0.3s ease !important;
}

.d-lg-none input:focus {
	border-color: var(--primary-light) !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.d-lg-none button {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: none !important;
	border: none !important;
	color: var(--primary-color);
	cursor: pointer;
	padding: 0 10px !important;
}

/* Mobile WhatsApp Bar */
.d-lg-none[style*="background: linear-gradient"] {
	animation: slideDown 0.5s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.d-lg-none[style*="background: linear-gradient"] a {
	transition: all 0.3s ease;
}

.d-lg-none[style*="background: linear-gradient"] a:hover {
	transform: scale(1.05);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
	.navbar {
		padding: 0.75rem 0 !important;
	}

	.navbar-brand {
		font-size: 18px;
	}

	.navbar-brand > div {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.nav-link {
		padding: 0.5rem 0 !important;
		font-size: 0.9rem !important;
	}

	.nav-link::after {
		display: none;
	}

	.navbar-collapse {
		padding: 10px 0;
	}
}

@media (max-width: 576px) {
	.navbar {
		padding: 0.5rem 0 !important;
	}

	.navbar-brand {
		font-size: 16px;
	}

	.navbar-brand > div {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}

	.nav-link {
		padding: 0.4rem 0 !important;
		font-size: 0.85rem !important;
		margin: 0 5px !important;
	}

	.navbar-toggler {
		padding: 0.2rem 0.3rem !important;
	}

	.header-top-bar {
		font-size: 0.75rem;
		padding: 6px 0 !important;
	}

	.d-lg-none form input {
		font-size: 0.85rem !important;
	}

	.whatsapp-btn {
		width: 50px !important;
		height: 50px !important;
		font-size: 24px !important;
		bottom: 15px !important;
		right: 15px !important;
	}
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: white;
	padding: 100px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.hero-section h1 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
	animation: slideInDown 0.8s ease;
}

.hero-section p {
	font-size: 1.25rem;
	margin-bottom: 30px;
	color: rgba(255, 255, 255, 0.95);
	position: relative;
	z-index: 1;
	animation: slideInUp 0.8s ease 0.2s both;
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.hero-section {
		padding: 60px 0;
	}

	.hero-section h1 {
		font-size: 2rem;
	}

	.hero-section p {
		font-size: 1rem;
	}
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card {
	background: white;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 15px;
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
	transform: translateY(-8px);
	border-color: var(--primary-light);
}

.product-card img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 15px;
	transition: all 0.3s ease;
}

.product-card:hover img {
	transform: scale(1.05);
}

.product-card h5 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 10px;
	min-height: 2.4rem;
	color: var(--text-dark);
}

.product-card h5 a {
	color: var(--text-dark);
	text-decoration: none;
	transition: color 0.3s ease;
}

.product-card h5 a:hover {
	color: var(--primary-color);
}

.product-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.product-rating {
	color: var(--accent-color);
	font-size: 0.9rem;
	margin-bottom: 10px;
}

.btn-add-cart {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: white;
	border: none;
	padding: 10px 15px;
	border-radius: 8px;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	margin-top: auto;
	font-weight: 600;
	cursor: pointer;
}

.btn-add-cart:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 16px rgba(15, 76, 42, 0.3);
}

/* ============================================
   TRUST INDICATORS
   ============================================ */

.trust-indicators {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	text-align: center;
	padding: 30px 0;
}

.trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transition: all 0.3s ease;
	padding: 20px;
	border-radius: 12px;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.trust-item i {
	font-size: 2.5rem;
	color: var(--primary-color);
	transition: all 0.3s ease;
}

.trust-item:hover i {
	color: var(--primary-light);
	transform: scale(1.1);
}

.trust-item span {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-dark);
}

@media (max-width: 576px) {
	.trust-indicators {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.trust-item {
		padding: 15px;
	}

	.trust-item i {
		font-size: 2rem;
	}

	.trust-item span {
		font-size: 0.9rem;
	}
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 30px;
	text-align: center;
	position: relative;
	padding-bottom: 15px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
	border-radius: 2px;
}

@media (max-width: 768px) {
	.section-title {
		font-size: 1.5rem;
		margin-bottom: 20px;
	}
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

@media (max-width: 768px) {
	.products-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 15px;
	}
}

@media (max-width: 576px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.product-card {
		padding: 10px;
	}

	.product-card img {
		height: 150px;
	}

	.product-card h5 {
		font-size: 0.9rem;
	}

	.product-price {
		font-size: 1rem;
	}
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: white;
	border: none;
}

.btn-primary:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 16px rgba(15, 76, 42, 0.3);
}

.btn-secondary {
	background-color: var(--primary-light);
	border-color: var(--primary-light);
	color: white;
}

.btn-secondary:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-outline {
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	background-color: transparent;
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
	background-color: var(--text-dark);
	color: white;
	padding: 40px 0 20px;
	margin-top: 60px;
}

.footer-section h5 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--primary-light);
}

.footer-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-section ul li {
	margin-bottom: 10px;
}

.footer-section ul li a {
	color: #ccc;
	text-decoration: none;
	transition: all 0.3s ease;
}

.footer-section ul li a:hover {
	color: var(--primary-light);
	transform: translateX(5px);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	margin-top: 20px;
	text-align: center;
	color: #999;
	font-size: 0.9rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
	text-align: center;
}

.mt-5 {
	margin-top: 3rem;
}

.mb-5 {
	margin-bottom: 3rem;
}

.py-5 {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

@media (max-width: 576px) {
	.py-5 {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
}