.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
	font-size: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f5f7fa;
}

.suggestion-item .suggestion-text {
    font-weight: 500;
    color: #1e293b;
}

.suggestion-item .suggestion-category {
    font-size: 11px;
    color: #f57c00;
    margin-top: 4px;
}

.suggestion-loading {
    padding: 16px;
    text-align: center;
    color: #888;
}

.search-loading {
    position: relative;
}

.search-loading .search-btn i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f5f7fa;
}

.suggestion-item .suggestion-text {
    font-weight: 500;
    color: #1e293b;
}

.suggestion-item .suggestion-category {
    font-size: 11px;
    color: #f57c00;
    margin-top: 4px;
}

.suggestion-loading {
    padding: 16px;
    text-align: center;
    color: #888; 
}

.search-status {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff3e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #f57c00;
    margin-top: 4px;
    display: none;
    z-index: 999;
}

.search-status.show {
    display: block;
}

.search-loading .search-btn i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-highlight {
    background-color: #fff3cd;
    font-weight: 600;
}

.cart-badge {
	cursor: pointer;
}

.shop-header .breadcrumb {
    font-size: 14px;
}

.login-link:hover i {
	color: white;
}

.billing-section i {
	background: none;
}

.cart-headline h1 {
    font-size: 32px;
    font-weight: 600;
    color: #303f9f;
    border-left: 8px solid #f57c00;
    padding-left: 24px;
    letter-spacing: -0.02em;
}

.product-img-placeholder { 
	width: 100%;
    padding: 10px;              /* minimum 10px margin from edges */
    box-sizing: border-box;     /* ensures padding doesn't overflow */
	aspect-ratio: 1 / 1;  
	background: #fff;
}

.product-img-placeholder img { 
	width: 100%;
    aspect-ratio: 1 / 1;        /* forces square */
    object-fit: contain;          /* prevents distortion */
    display: block; 
	border-radius: 18px;
}

.micro-product-content .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

.product-card .product-title {
	display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

@media screen and (min-width: 860px) {
	.nav-links {
		display: flex;
		gap: 32px;
		font-weight: 500;
		font-size: 13px;
		margin: 10px 0 15px;
		padding: 0 5px;
		flex-wrap: wrap;
	}

	.nav-links a {
		text-decoration: none;
		color: #1e293b;
		font-weight: 500;
		border-bottom: 2px solid transparent;
		padding: 8px 0 4px;
		transition: all 0.2s ease;
		position: relative;
	}
}

@media screen and (max-width: 720px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.access-links a {
	color: white;
}

/* Improved responsive navigation */
.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: inherit; 
	padding: 12px 0 20px;
	flex-wrap: wrap;
	row-gap: 12px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon { max-height: 32px; font-size: 32px; color: #303f9f; filter: drop-shadow(0 4px 6px rgba(48,63,159,0.2)); }
.logo-text { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; background: linear-gradient(130deg, #303f9f 20%, #5c6bc0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-row {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 12px;
	background: rgba(48,63,159,0.05);
	padding: 6px 16px;
	border-radius: 40px;
	backdrop-filter: blur(4px);
}
.contact-row i { color: #303f9f; width: 18px; }
.contact-row span { font-weight: 500; }
.nav-links { display: flex; gap: 24px; font-weight: 500; font-size: 13px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: #1e293b; font-weight: 500; border-bottom: 2px solid transparent; padding-bottom: 4px; }
.nav-links a:hover { border-bottom-color: #303f9f; }
/* Icon group - prevent overflow */
.icon-group {
	display: flex;
	gap: 15px;
	font-size: 16px;
	color: #303f9f;
	align-items: center;
	position: relative;
	flex-shrink: 1;
	min-width: 0; /* Allows flex items to shrink below content size */
	max-width: 100%;
} 

.nav-links a.active {
	border-bottom-color:#303f9f; 
	color:#303f9f;
}

/* Search container - flexible */
.search-container {
	position: relative;
	margin-right: 5px;
	flex: 0 1 auto;
	min-width: 40px; /* Collapses to icon only on smallest screens */
	max-width: 250px;
	transition: all 0.3s ease;
}

.search-form {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 40px;
	border: 1px solid rgba(48, 63, 159, 0.2);
	overflow: hidden;
	transition: all 0.3s ease;
	width: 100%;
}

.search-input {
	flex: 1;
	border: none;
	padding: 8px 12px;
	font-size: 12px;
	font-family: 'Poppins', sans-serif;
	background: transparent;
	outline: none;
	color: #212121;
	min-width: 0; /* Allows input to shrink */
	width: 100%;
}

.search-input::placeholder {
	color: #888;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-btn {
	background: transparent;
	border: none;
	padding: 8px 10px;
	cursor: pointer;
	color: #303f9f;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.search-btn:hover {
	color: #f57c00;
}

/* User icon and cart */
.icon-group > i, .icon-group .cart-badge {
	flex-shrink: 0;
}

.cart-total {
	font-size: 11px;
	background: #303f9f;
	color: white;
	padding: 2px 8px;
	border-radius: 40px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Responsive adjustments for icon-group */
@media screen and (max-width: 860px) {
	.icon-group {
		gap: 12px;
		margin-left: auto;
		max-width: 60%; /* Prevents taking too much space */
	}
	
	.search-container {
		max-width: 180px;
	}
}

@media screen and (max-width: 720px) {
	.top-bar {
		flex-wrap: wrap;
	}
	
	.logo-area {
		flex: 0 0 auto;
	}
	
	.icon-group {
		margin-left: 0;
		width: auto;
		flex: 1 1 auto;
		justify-content: flex-end;
	}
}

@media screen and (max-width: 580px) {
	.icon-group {
		width: 100%;
		justify-content: space-between;
		margin-top: 10px;
		gap: 8px;
		max-width: 100%;
	}
	
	.search-container {
		flex: 1 1 auto;
		margin-right: 5px;
		min-width: 120px;
		max-width: none;
	}
	
	.search-form {
		width: 100%;
	}
	
	.search-input {
		padding: 8px 10px;
		font-size: 12px;
	}
	
	.cart-total {
		font-size: 10px;
		padding: 2px 6px;
	}
}

@media screen and (max-width: 420px) {
	.icon-group {
		gap: 5px;
	}
	
	.search-container {
		min-width: 100px;
	}
	
	.search-input {
		padding: 8px 6px;
		font-size: 11px;
	}
	
	.search-input::placeholder {
		font-size: 10px;
	}
	
	.search-btn {
		padding: 8px 6px;
	}
}

@media screen and (max-width: 320px) {
	.search-container {
		min-width: 80px;
	}
	
	.search-input {
		padding: 8px 4px;
	}
	
	.search-btn {
		padding: 8px 4px;
	}
}
.cart-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.cart-count {
	position: absolute;
	top: -10px;
	right: -12px;
	background: #c62828;
	color: white;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 30px;
	line-height: 1;
}
.cart-total {
	font-size: 11px;
	background: #303f9f;
	color: white;
	padding: 2px 8px;
	border-radius: 40px;
	margin-left: 4px;
	white-space: nowrap;
}

.top-nav-container {
	width: 100%;
	margin-bottom: 20px;
	position: relative;
	z-index: 0;
}

.top-nav-container.active {
    z-index: 99999;
}

.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: inherit;
	padding: 12px 0 20px;
	flex-wrap: wrap;
	row-gap: 15px;
	position: relative;
}

/* Contact row improvements */
.contact-row {
	display: flex;
	align-items: center;
	gap: 25px;
	font-size: 12px;
	background: rgba(48,63,159,0.05);
	padding: 8px;
	border-radius: 40px;
	backdrop-filter: blur(4px);
	flex-wrap: wrap;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.contact-item i { 
	color: #303f9f; 
	width: 16px;
	font-size: 12px;
}

.login-link {
	color: #303f9f;
	text-decoration: none;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: rgba(48,63,159,0.1);
	border-radius: 30px;
	transition: all 0.2s ease;
}

.login-link:hover {
	background: #303f9f;
	color: white;
}

/* Mobile toggle button */
.mobile-toggle {
	display: none;
	font-size: 24px;
	color: #303f9f;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

/* Navigation links */
.nav-links { 
	display: flex; 
	gap: 32px; 
	font-weight: 500; 
	font-size: 13px; 
	margin: 10px 0 15px;
	padding: 0 5px;
	flex-wrap: wrap;
}

.nav-links a { 
	text-decoration: none; 
	color: #1e293b; 
	font-weight: 500; 
	border-bottom: 2px solid transparent; 
	padding: 8px 0 4px; 
	transition: all 0.2s ease;
	position: relative;
}

.nav-links a:hover { 
	border-bottom-color: #303f9f; 
	color: #303f9f;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: #303f9f;
	transition: width 0.2s ease;
}

.nav-links a:hover::after {
	width: 100%;
}

/* Responsive breakpoints for navigation */
@media screen and (max-width: 1024px) {
	.contact-row {
		gap: 15px;
		padding: 8px 15px;
	}
	
	.contact-item span {
		font-size: 11px;
	}
}

@media screen and (max-width: 860px) {
	.mobile-toggle {
		display: block;
		order: 3;
	}
	
	.top-bar {
		position: relative;
	}
	
	.contact-row {
		display: none;
		width: 100%;
		order: 4;
		margin-top: 15px;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 15px;
		background: rgba(255,255,255,0.95);
		backdrop-filter: blur(10px);
		border-radius: 20px;
		box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	}
	
	.contact-row.show {
		display: flex;
	}
	
	.contact-item {
		width: 100%;
		white-space: normal;
		word-break: break-word;
	}
	
	.login-link {
		width: 100%;
		justify-content: center;
	}
	
	.nav-links {
		display: none;
		width: 100%;
		flex-direction: column;
		gap: 15px;
		padding: 20px;
		background: rgba(255,255,255,0.95);
		backdrop-filter: blur(10px);
		border-radius: 20px;
		margin-top: 10px;
		box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	}
	
	.nav-links.show {
		display: flex;
	}
	
	.nav-links a {
		padding: 12px 15px;
		border-radius: 12px;
		background: rgba(48,63,159,0.03);
		width: 100%;
		text-align: left;
	}
	
	.nav-links a:hover {
		background: rgba(48,63,159,0.1);
		border-bottom-color: transparent;
	}
	
	.nav-links a::after {
		display: none;
	}
	
	.icon-group {
		margin-left: auto;
	}
}

@media screen and (max-width: 580px) {
	.top-bar {
		flex-wrap: wrap;
	}
	
	.logo-area {
		width: auto;
	}
	
	.icon-group {
		gap: 12px;
		margin-right: 10px;
	}
	
	.cart-total {
		font-size: 10px;
		padding: 2px 6px;
	}
	
	.logo-text {
		font-size: 18px;
	}
	
	.logo-icon {
		font-size: 28px;
		max-height: 28px; 
	}
}

@media screen and (max-width: 380px) {
	.icon-group {
		gap: 8px;
	}
	
	.logo-text {
		font-size: 16px;
	}
}

/* Enhanced Newsletter Section - Fully Responsive */
.newsletter-section {
	background: linear-gradient(135deg, rgba(48,63,159,0.05) 0%, rgba(48,63,159,0.02) 100%);
	border-radius: 48px;
	padding: 48px;
	margin: 48px 0;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.8);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.newsletter-content {
	flex: 1;
	max-width: 600px;
	z-index: 2;
}

.newsletter-section h3 {
	font-size: clamp(20px, 4vw, 28px);
	font-weight: 600;
	color: #303f9f;
	margin-bottom: 8px;
	line-height: 1.3;
}

.newsletter-section p {
	font-size: clamp(12px, 3vw, 14px);
	color: #5e5e72;
	margin-bottom: 28px;
	line-height: 1.6;
}

.newsletter-form {
	width: 100%;
}

.form-group {
	display: flex;
	gap: 12px;
	width: 100%;
	flex-wrap: wrap;
}

.newsletter-input {
	flex: 1;
	min-width: 200px;
	padding: 16px 24px;
	border: 2px solid rgba(48,63,159,0.15);
	border-radius: 60px;
	background: rgba(255,255,255,0.9);
	font-size: clamp(13px, 3vw, 15px);
	font-family: 'Poppins', sans-serif;
	outline: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.newsletter-input:focus {
	border-color: #303f9f;
	background: white;
	box-shadow: 0 8px 20px rgba(48,63,159,0.15);
	transform: translateY(-2px);
}

.newsletter-input:hover {
	border-color: rgba(48,63,159,0.3);
}

.newsletter-btn {
	background: #303f9f;
	color: white;
	border: none;
	padding: 16px 36px;
	border-radius: 60px;
	font-size: clamp(13px, 3vw, 15px);
	font-weight: 500;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all 0.3s ease;
	box-shadow: 0 8px 20px rgba(48,63,159,0.3);
	position: relative;
	overflow: hidden;
}

.newsletter-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.newsletter-btn:hover::before {
	width: 300px;
	height: 300px;
}

.newsletter-btn:hover {
	background: #3949ab;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(48,63,159,0.4);
}

.newsletter-btn:active {
	transform: translateY(0);
}

.btn-icon {
	font-size: 14px;
	transition: transform 0.3s ease;
}

.newsletter-btn:hover .btn-icon {
	transform: translateX(5px);
}

.form-message {
	margin-top: 12px;
	font-size: 12px;
	min-height: 20px;
	color: #2e7d32;
	transition: all 0.3s ease;
}

.newsletter-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	color: #888;
	font-size: 12px;
}

.newsletter-footer i {
	color: #f57c00;
	font-size: 14px;
}

.newsletter-decoration {
	display: flex;
	gap: 20px;
	font-size: 48px;
	color: rgba(48,63,159,0.1);
	z-index: 1;
}

.newsletter-decoration i {
	animation: float 3s ease-in-out infinite;
}

.newsletter-decoration i:nth-child(2) {
	animation-delay: 0.5s;
}

.newsletter-decoration i:nth-child(3) {
	animation-delay: 1s;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* Success/Error message styles */
.form-message.success {
	color: #2e7d32;
	background: rgba(46,125,50,0.1);
	padding: 8px 16px;
	border-radius: 40px;
}

.form-message.error {
	color: #c62828;
	background: rgba(198,40,40,0.1);
	padding: 8px 16px;
	border-radius: 40px;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
	.newsletter-section {
		padding: 40px 32px;
	}
	
	.newsletter-decoration {
		font-size: 40px;
		gap: 16px;
	}
}

@media screen and (max-width: 860px) {
	.newsletter-section {
		flex-direction: column;
		text-align: center;
		padding: 40px 24px;
		gap: 20px;
	}
	
	.newsletter-content {
		max-width: 100%;
	}
	
	.newsletter-footer {
		justify-content: center;
	}
	
	.newsletter-decoration {
		display: none; /* Hide decorative elements on mobile */
	}
}

@media screen and (max-width: 720px) {
	.newsletter-section {
		padding: 32px 20px;
		border-radius: 36px;
	}
	
	.form-group {
		flex-direction: column;
		gap: 12px;
	}
	
	.newsletter-input {
		width: 100%;
		padding: 14px 20px;
		text-align: center;
	}
	
	.newsletter-btn {
		width: 100%;
		justify-content: center;
		padding: 14px 28px;
	}
	
	.newsletter-btn:hover {
		transform: translateY(-1px);
	}
}

@media screen and (max-width: 480px) {
	.newsletter-section {
		padding: 28px 16px;
		margin: 32px 0;
		border-radius: 28px;
	}
	
	.newsletter-section h3 {
		font-size: 20px;
	}
	
	.newsletter-section p {
		font-size: 12px;
		margin-bottom: 20px;
	}
	
	.newsletter-input {
		padding: 12px 16px;
		font-size: 13px;
	}
	
	.newsletter-btn {
		padding: 12px 20px;
		font-size: 13px;
	}
	
	.btn-text {
		display: inline-block;
	}
	
	.newsletter-footer {
		flex-direction: column;
		gap: 4px;
	}
	
	.newsletter-footer i {
		font-size: 12px;
	}
}

@media screen and (max-width: 320px) {
	.newsletter-section {
		padding: 20px 12px;
	}
	
	.newsletter-section h3 {
		font-size: 18px;
	}
	
	.btn-text {
		font-size: 12px;
	}
	
	.newsletter-btn {
		padding: 10px 16px;
	}
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
	.newsletter-btn:hover {
		transform: none;
		background: #303f9f;
	}
	
	.newsletter-btn:active {
		background: #3949ab;
		transform: scale(0.98);
	}
	
	.newsletter-input {
		font-size: 16px; /* Prevents zoom on iOS */
	}
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
	.newsletter-section {
		background: linear-gradient(135deg, rgba(48,63,159,0.15) 0%, rgba(48,63,159,0.05) 100%);
	}
	
	.newsletter-input {
		background: rgba(30,30,47,0.9);
		border-color: rgba(255,255,255,0.1);
		color: #fff;
	}
	
	.newsletter-input:focus {
		background: #1e1e2f;
	}
	
	.newsletter-section p {
		color: #a0a0b0;
	}
}

/* Loading state */
.newsletter-btn.loading {
	pointer-events: none;
	opacity: 0.7;
}

.newsletter-btn.loading .btn-icon {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* RTL support (if needed) */
[dir="rtl"] .newsletter-btn:hover .btn-icon {
	transform: translateX(-5px);
}

/* footer */
.site-footer { margin-top: 64px; background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.8); border-radius: 48px 48px 24px 24px; padding: 48px 40px 32px; box-shadow: 0 -10px 30px -10px rgba(48,63,159,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 30px; }
.footer-col p { font-size: 12px; color: #2c3e50; margin: 16px 0 12px; line-height: 1.6; }
.footer-col h5 { font-size: 13px; font-weight: 600; color: #303f9f; margin-bottom: 20px; letter-spacing: 0.3px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; font-size: 12px; }
.footer-col a { text-decoration: none; color: #374151; border-bottom: 1px dotted transparent; }
.footer-col a:hover { color: #303f9f; border-bottom-color: #f57c00; }
.social-links { display: flex; gap: 20px; font-size: 20px; color: #303f9f; margin-top: 20px; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(48,63,159,0.2); margin-top: 40px; padding-top: 24px; font-size: 11px; color: #5e5e72; }

.alert-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 400px;
}
.custom-alert {
	background: white;
	backdrop-filter: blur(10px);
	border-left: 4px solid var(--primary);
	border-radius: 12px;
	padding: 16px 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: flex-start;
	gap: 12px;
	animation: slideIn 0.3s ease;
	position: relative;
}
.custom-alert.success { border-left-color: var(--green); }
.custom-alert.error { border-left-color: var(--red); }
.custom-alert.warning { border-left-color: var(--orange); }
.alert-icon { width: 24px; height: 24px; flex-shrink: 0; }
.alert-content { flex: 1; }
.alert-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--black); }
.alert-message { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.alert-close {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 16px;
	padding: 0 4px;
}
@keyframes slideIn {
	from { transform: translateX(100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}
@media screen and (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
	.ai-hero { flex-direction: column; text-align: center; padding: 40px 24px; }
	.contact-row { gap: 15px; padding: 8px 15px; }
}
@media screen and (max-width: 860px) {
	.newsletter-section { flex-direction: column; text-align: center; padding: 40px 24px; gap: 20px; }
	.newsletter-decoration { display: none; }
	.mobile-toggle { display: block; order: 3; }
	.contact-row { display: none; width: 100%; order: 4; margin-top: 15px; flex-direction: column; align-items: flex-start; gap: 12px; background: rgba(255,255,255,0.95); border-radius: 20px; padding: 15px; }
	.contact-row.show { display: flex; }
}
@media screen and (max-width: 720px) {
	.wrapper { padding: 16px; }
	.ai-response-container { padding: 10px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 580px) {
	.icon-group { width: 100%; justify-content: space-between; margin-top: 10px; gap: 8px; max-width: 100%; }
	.search-container { flex: 1 1 auto; margin-right: 5px; min-width: 120px; }
	.submit-btn { width: 100%; justify-content: center; }
}
@media screen and (max-width: 480px) {
	.footer-grid { grid-template-columns: 1fr; }
	.solution-step { flex-direction: column; align-items: flex-start; }
	.solution-step::before { margin-bottom: 8px; }
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px !important;
    border-radius: 40px;
    background: #303f9f;
    transition: all 0.2s ease;
}

.user-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f57c00;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.user-dropdown-trigger .fa-chevron-down {
    font-size: 10px;
    color: white;
    transition: transform 0.2s ease;
}

.user-dropdown-trigger.active .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 16px;
    background: #f8f9fa;
    text-align: center;
}

.dropdown-header strong {
    display: block;
    color: #1e1e2f;
    font-size: 14px;
    margin-bottom: 4px;
}

.dropdown-header small {
    color: #5e5e72;
    font-size: 11px;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1e1e2f;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item i {
    width: 18px;
    color: #5e5e72;
}

.dropdown-item.logout-item {
    color: #c62828;
}

.dropdown-item.logout-item i {
    color: #c62828;
}

/* Header User Icon Link */
.user-icon-link {
    color: #303f9f;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.user-icon-link:hover {
    opacity: 0.8;
}

.header-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 860px) {
    .user-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .user-dropdown-trigger {
        justify-content: space-between;
        width: 100%;
    }
}

/* Dark mode adjustments for dropdown */
@media (prefers-color-scheme: dark) {
    .user-dropdown-menu {
        background: #2d2d3f;
    }
    
    .dropdown-header {
        background: #252535;
    }
    
    .dropdown-header strong {
        color: white;
    }
    
    .dropdown-header small {
        color: #a0a0b0;
    }
    
    .dropdown-divider {
        background: #3d3d4f;
    }
    
    .dropdown-item {
        color: white;
    }
    
    .dropdown-item:hover {
        background: #3d3d4f;
    }
}