/*
 * KOSAR PREMIUM - THEME MAIN STYLES
 * Ultra Premium 3-Layer Header & Footer (Heavy E-Commerce Style)
 * Porto Shop 50 Standard
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

:root {
	--kosar-primary: #0052cc;
	--kosar-primary-hover: #0043a8;
	--kosar-secondary: #ff5722;
	--kosar-dark: #0f172a;
	--kosar-gray: #64748b;
	--kosar-light: #f8fafc;
	--kosar-border: #e2e8f0;
	--kosar-radius: 8px;
	--kosar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--kosar-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	--kosar-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	--inner-width: 1280px;
}

/* 1. Reset Global */
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #334155; line-height: 1.6; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--kosar-dark); font-weight: 700; margin: 0; }
a { color: inherit; text-decoration: none; transition: var(--kosar-transition); }
.kosar-container { max-width: var(--inner-width); margin: 0 auto; padding: 0 20px; }
.m-0 { margin: 0; }
.d-none { display: none; }
@media (min-width: 992px) { .d-lg-flex { display: flex; } }
@media (min-width: 1200px) { .d-xl-block { display: block; } }

/* 2. LAYER 1: TOP BAR */
.site-topbar { background: #0f172a; color: #94a3b8; font-size: 13px; padding: 12px 0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-right ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { color: #64748b; font-size: 14px; }
.topbar-social a:hover { color: #fff; }

/* 3. LAYER 2: MAIN HEADER (Logo - Search - Support - Icons) */
.site-header { background: #fff; padding: 25px 0; border-bottom: 1px solid var(--kosar-border); }
.header-middle-inner { 
	display: flex; 
	justify-content: space-between; 
	align-items: center; 
	gap: 40px; 
}

/* Logo Fixes (IMPORTANT) */
.site-branding { flex: 0 0 220px; max-width: 220px; }
.custom-logo-link img, .site-branding img { 
	max-width: 180px !important; 
	max-height: 55px !important; 
	width: auto !important; 
	height: auto !important; 
	display: block; 
}
.site-title { font-size: 28px; background: linear-gradient(135deg, var(--kosar-primary) 0%, #2563eb 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }

/* Advanced Search (Porto Look) */
.header-search-container { flex: 1; max-width: 650px; }
.kosar-search-form { 
	display: flex; border: 2px solid var(--kosar-primary); 
	border-radius: 50px; height: 50px; 
	overflow: hidden; background: #fff; 
	box-shadow: 0 4px 10px rgba(0, 82, 204, 0.05); 
}
.search-category-select { border-right: 1px solid var(--kosar-border); background: #f8fafc; }
.search-category-select select { border: none; background: transparent; padding: 0 20px; font-size: 14px; font-weight: 600; height: 100%; cursor: pointer; color: var(--kosar-dark); min-width: 160px; outline: none; }
.search-input-wrapper { display: flex; flex: 1; position: relative; }
.search-input-wrapper input { border: none; flex: 1; padding: 0 24px; font-size: 15px; outline: none; font-weight: 500; }
.search-submit { background: var(--kosar-primary); color: #fff; border: none; width: 65px; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.search-submit:hover { background: var(--kosar-primary-dark); }

/* Support & Icons */
.header-right-actions { display: flex; align-items: center; gap: 35px; }
.header-support { display: flex; align-items: center; gap: 15px; }
.support-icon { color: var(--kosar-primary); background: #f1f5f9; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.support-info { display: flex; flex-direction: column; }
.support-label { font-size: 11px; color: var(--kosar-gray); font-weight: 700; text-transform: uppercase; line-height: 1; margin-bottom: 4px; }
.support-number { font-size: 17px; font-weight: 800; color: var(--kosar-dark); line-height: 1; }

.header-icons { display: flex; align-items: center; gap: 15px; }
.header-action-icon { 
	color: var(--kosar-dark); width: 48px; height: 48px; 
	display: flex; align-items: center; justify-content: center; 
	background: #f8fafc; border-radius: 50%; border: 1px solid var(--kosar-border);
	position: relative;
}
.header-action-icon:hover { background: var(--kosar-primary); color: #fff; border-color: var(--kosar-primary); transform: translateY(-3px); }
.cart-count { position: absolute; top: -5px; right: -5px; background: var(--kosar-secondary); color: #fff; font-size: 11px; font-weight: 800; height: 18px; width: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* 4. LAYER 3: STICKY NAVIGATION BAR */
.header-navigation { background: #fff; border-bottom: 3px solid var(--kosar-primary); box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 999; }
.nav-inner { display: flex; align-items: center; gap: 30px; }

.categories-toggle { background: var(--kosar-primary); color: #fff; border: none; height: 62px; padding: 0 25px; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; letter-spacing: 1px; }
.main-nav-wrap { flex: 1; margin-left: 30px; }
.main-nav-wrap ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 35px; }
.main-nav-wrap ul li a { display: block; padding: 22px 0; font-weight: 700; font-size: 14px; color: var(--kosar-dark); text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.main-nav-wrap ul li a:hover { color: var(--kosar-primary); }
.main-nav-wrap ul li a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 3px; background: var(--kosar-secondary); transition: var(--kosar-transition); }
.main-nav-wrap ul li a:hover::after { width: 100%; }

/* 5. FRONT PAGE SECTIONS */
.kosar-main-hero { min-height: 500px; display: flex; align-items: center; background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=1920') center center; background-size: cover; position: relative; color: #fff; }
.kosar-main-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.95), transparent); z-index: 1; }
.hero-container { position: relative; z-index: 2; width: 100%; }
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 25px; }

/* Categories Grid */
.kosar-categories-section { padding: 100px 0; background: #f8fafc; }
.section-title { text-align: center; margin-bottom: 50px; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.category-card { position: relative; height: 350px; border-radius: 15px; overflow: hidden; box-shadow: var(--kosar-shadow); cursor: pointer; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.category-card:hover img { transform: scale(1.1); }

/* Responsive adjustments */
@media (max-width: 991px) {
	.header-middle-inner { flex-direction: column; text-align: center; gap: 20px; padding: 20px 0; }
	.header-search-container { order: 3; max-width: 100%; width: 100%; }
	.header-right-actions { justify-content: center; }
	.header-navigation { display: none; }
}
