/* =========================================================
   KUMIRU LAYOUT - WORKING HAMBURGER MENU
   ========================================================= */

#page-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid var(--border);
}

#header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--header-height);
	position: relative;
}

#brand-logo {
	flex-shrink: 0;
}

.h-logo p {
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	font-weight: 800;
	color: var(--accent);
	line-height: 1.1;
	white-space: nowrap;
	font-family: "Montserrat", sans-serif;
	letter-spacing: -0.01em;
}

/* ========== NAVIGATION - DESKTOP ========== */
#navbar {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-links ul {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	padding: 4px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
}

.navigation a {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-light);
	padding: 8px 16px;
	border-radius: var(--radius-full);
	transition: all var(--transition);
	font-family: "Inter", sans-serif;
}

.navigation a:hover {
	color: var(--text);
	background: var(--bg);
}

.navigation a.active {
	color: var(--text);
	background: var(--bg);
	box-shadow: var(--shadow-sm);
}

/* Message badge */
.navigation {
	position: relative;
}

.nav-message-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--radius-full);
	background: #dc2626;
	color: white;
	font-size: 0.65rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ========== RIGHT ACTION BUTTONS ========== */
#nav-action {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.cart {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	border: 1.5px solid var(--border);
	transition: all var(--transition);
}

.cart:hover {
	border-color: var(--text);
	background: var(--surface);
}

#cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--radius-full);
	background: var(--accent);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.profile-avatar-link {
	width: 42px;
	height: 42px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	border: 1.5px solid var(--border);
	overflow: hidden;
	transition: all var(--transition);
}

.profile-avatar-link:hover {
	border-color: var(--text);
	background: var(--surface);
}

.profile-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-avatar-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
	font-family: "Montserrat", sans-serif;
	text-transform: uppercase;
}

#login-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: var(--radius-full);
	background: var(--accent);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	font-family: "Inter", sans-serif;
	transition: all var(--transition);
}

#login-btn:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* ========== HAMBURGER MENU BUTTON ========== */
.hamburger-menu {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	background: #ffffff;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all var(--transition);
	flex-shrink: 0;
	order: 1;
}

.hamburger-menu:hover {
	border-color: var(--text);
	background: var(--surface);
}

.hamburger-menu span {
	width: 20px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
	opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ========== MOBILE STYLES ========== */
/* ========== MOBILE STYLES - RIGHT SIDE MENU ========== */
@media (max-width: 1024px) {
	.hamburger-menu {
		display: flex;
	}

	#navbar {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 80%;
		max-width: 320px;
		height: calc(100vh - var(--header-height));
		background: var(--bg);
		transition: right 0.3s ease;
		z-index: 999;
		overflow-y: auto;
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	}

	#navbar.open {
		right: 0;
		left: auto;
	}

	.nav-links {
		width: 100%;
		padding: 20px;
	}

	.nav-links ul {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		background: transparent;
		border: none;
		padding: 0;
	}

	.navigation {
		width: 100%;
	}

	.navigation a {
		display: block;
		padding: 14px 16px;
		width: 100%;
		text-align: left;
		border-radius: var(--radius-md);
	}

	/* Overlay when menu is open */
	body.menu-open::after {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 998;
	}
}

/* Tablet and smaller */
@media (max-width: 768px) {
	#header-container {
		gap: 10px;
		justify-content: end;
	}

	#nav-action {
		gap: 6px;
	}

	#brand-logo {
		position: absolute;
		left: 20px;
		top: 50%;
		transform: translateY(-50%);
	}

	.hamburger-menu {
		padding-right: 8px;
	}

	.cart,
	.profile-avatar-link,
	.hamburger-menu {
		width: 38px;
		height: 38px;
	}

	#login-btn {
		padding: 7px 14px;
		font-size: 0.8rem;
	}
}

@media (max-width: 480px) {
	#header-container {
		gap: 8px;
	}

	.cart,
	.hamburger-menu,
	.customer-notification-btn {
		width: 20px;
		height: 20px;
	}

	#login-btn {
		padding: 6px 12px;
		font-size: 0.75rem;
	}
}

/* ========== FOOTER (unchanged, keep your existing footer styles) ========== */
#page-footer {
	background: #111111;
	color: #ffffff;
}

.quick-links-container {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	width: min(100% - 32px, var(--container));
	padding: 48px 0 32px;
	margin-inline: auto;
}

.footer-logo {
	display: none;
}

.footer-brand p {
	margin: 0;
}

.footer-brand .f-sub-header {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 8px;
	font-family: "Montserrat", sans-serif;
}

.footer-brand .f-desc {
	color: #9ca3af;
	font-size: 0.875rem;
	line-height: 1.6;
}

.f-sub-header {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 16px;
	font-family: "Montserrat", sans-serif;
}

.f-desc,
.f-ql-section a {
	color: #9ca3af;
	font-size: 0.875rem;
}

.f-ql-section ul {
	list-style: none;
}

.f-ql-section li {
	margin-bottom: 10px;
}

.f-ql-section a {
	transition: color var(--transition);
	font-family: "Inter", sans-serif;
}

.f-ql-section a:hover {
	color: var(--accent);
}

.f-socmed-container {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.f-socmed-icon {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
}

.f-socmed-container a:hover .f-socmed-icon {
	transform: translateY(-2px);
}

.f-socmed-icon img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.copyright {
	text-align: center;
	padding: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.8rem;
	color: #6b7280;
	font-family: "Inter", sans-serif;
}

/* Footer responsive */
@media (max-width: 768px) {
	#page-footer.quick-links-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}
}

@media (max-width: 768px) {
	#header-container {
		gap: 10px;
	}

	#nav-action {
		gap: 6px;
	}

	.cart,
	.profile-avatar-link,
	.hamburger-menu {
		width: 38px;
		height: 38px;
	}

	#login-btn {
		padding: 7px 14px;
		font-size: 0.8rem;
	}

	.quick-links-container {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ========== RESPONSIVE UTILITY CLASSES ========== */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
}

/* ========== MOBILE MENU WITH PROFILE AT BOTTOM ========== */
@media (max-width: 1024px) {
    .nav-links ul {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: auto;
    }
    
    /* Push profile and logout to bottom */
    .nav-links ul .navigation:last-child,
    .nav-links ul .navigation:nth-last-child(2) {
        margin-top: auto;
    }
    
    /* Add separator above profile section */
    .navigation.mobile-only:first-of-type {
        border-top: 1px solid var(--border);
        margin-top: 20px;
        padding-top: 10px;
    }
    
    /* Style for logout link */
    .logout-mobile {
        color: var(--danger) !important;
    }
    
    .logout-mobile:hover {
        background: var(--danger-bg) !important;
        color: var(--danger) !important;
    }
}

/* ========== HEADER ICONS - COMPACT FIX ========== */
#nav-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#nav-action > *:not(#login-btn) {
	margin: 0 !important;
	padding: 0;
}

@media (max-width: 1024px) {
    #nav-action {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    #nav-action {
        gap: 0.5rem;
    }
}

/* ========== RESPONSIVE HERO SECTION ========== */
.hero-section,
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .hero-section {
        padding: 2rem 1rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .hero-grid {
        flex-direction: column;
    }
    
    .hero-copy {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        margin: 1rem 0;
    }
    
    .featured-collection {
        order: 3;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
}


@media (max-width: 1024px) and (min-width: 768px) {
    .gallery-grid,
    .shop-grid,
    .preview-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .gallery-grid,
    .shop-grid,
    .preview-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .card,
    .product-card,
    .gallery-item {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid,
    .shop-grid,
    .preview-grid,
    .product-grid {
        gap: 0.5rem;
    }
    
    .card,
    .product-card,
    .gallery-item {
        padding: 0.25rem;
    }
}

/* ========== RESPONSIVE SOCIAL/CONNECT SECTION ========== */
.social-links,
.social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 767px) {
    .social-links,
    .social-icons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* ========== RESPONSIVE SHOP ADD TO CART ========== */
.shop-item .add-to-cart-btn,
.product-card .add-to-cart-btn {
    display: inline-flex;
    width: auto;
}

@media (max-width: 768px) {
    .shop-item .add-to-cart-btn,
    .product-card .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== CARD HOVER EFFECTS ========== */
.card,
.product-card,
.gallery-item {
    transition: all 0.3s ease;
}

.card:hover,
.product-card:hover,
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* ========== NOTIFICATION SYSTEM CSS ========== */
/* Notification Badge */
#notification-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

#notification-badge:hover {
    border-color: var(--text);
    background: var(--surface);
}

.notification-badge .badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Notification Items */
.notification-item {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.info {
    border-left: 3px solid #3b82f6;
}

.notification-item.warning {
    border-left: 3px solid #f59e0b;
}

.notification-item.success {
    border-left: 3px solid #10b981;
}

.notification-message {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text);
}

.notification-time {
    font-size: 11px;
    color: #6b7280;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.loading-spinner {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Toast Notification */
.notification-toast {
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification-toast button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

/* Toast Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}