/* ==========================================================================
   Swadhan Sparkle Labs — Base Theme Styles
   Colors/fonts pull from CSS variables generated in functions.php
   (swadhan_generate_css_variables) — controlled entirely via Theme Options.
   ========================================================================== */

* { box-sizing: border-box; }

body {
	font-family: var(--swadhan-font-body);
	color: var(--swadhan-color-text);
	background: var(--swadhan-color-bg);
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--swadhan-font-heading);
}

a { color: inherit; text-decoration: none; }

.swadhan-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ============ TOP BAR ============ */
.swadhan-topbar {
	background: var(--swadhan-color-primary);
	color: #fff;
	font-size: 13px;
	padding: 6px 20px;
	text-align: center;
	overflow: hidden;
}
.swadhan-topbar-inner { display: flex; justify-content: center; align-items: center; }
.swadhan-topbar[data-mode="split"] .swadhan-topbar-inner { justify-content: space-between; }
.swadhan-topbar-rotator { position: relative; min-height: 18px; }
.swadhan-topbar-msg { display: inline-block; }

/* ============ MAIN BAR ============ */
.swadhan-mainbar {
	background: #fff;
	border-bottom: 1px solid var(--swadhan-color-border);
	padding: 14px 20px;
}
.swadhan-mainbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.swadhan-logo-img { max-height: 48px; width: auto; }
.swadhan-location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	background: var(--swadhan-color-bg);
	padding: 6px 12px;
	border-radius: 20px;
	cursor: pointer;
	white-space: nowrap;
}
.swadhan-search { flex: 1; min-width: 220px; position: relative; }
.swadhan-search form { display: flex; border: 1px solid var(--swadhan-color-border); border-radius: 24px; overflow: hidden; }
.swadhan-search input[type="search"] { flex: 1; border: none; padding: 10px 16px; outline: none; font-family: var(--swadhan-font-body); }
.swadhan-search button { border: none; background: var(--swadhan-color-primary); color: #fff; padding: 0 18px; cursor: pointer; }
.swadhan-search-suggestions {
	position: absolute; top: 100%; left: 0; right: 0; background: #fff;
	border: 1px solid var(--swadhan-color-border); border-top: none; z-index: 50; display: none;
	border-radius: 0 0 12px 12px; overflow: hidden;
}
.swadhan-mainbar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.swadhan-cart-count {
	background: var(--swadhan-color-accent); color: #fff; border-radius: 50%;
	font-size: 11px; padding: 1px 6px; margin-left: 4px;
}
.swadhan-more-dropdown { position: relative; }
.swadhan-more-menu {
	display: none; position: absolute; right: 0; top: 100%; background: #fff;
	border: 1px solid var(--swadhan-color-border); list-style: none; margin: 4px 0 0; padding: 8px 0;
	min-width: 220px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 60;
}
.swadhan-more-menu li a { display: block; padding: 8px 16px; font-size: 14px; }
.swadhan-more-menu li a:hover { background: var(--swadhan-color-bg); }
.swadhan-more-dropdown.open .swadhan-more-menu { display: block; }

/* ============ MENU BAR (Desktop/Tablet only) ============ */
.swadhan-menubar { background: var(--swadhan-color-secondary); display: block; }
.swadhan-menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 10px 20px; max-width: 1280px; margin: 0 auto; }
.swadhan-menu > li { position: relative; font-size: 14px; font-weight: 600; }

@media (max-width: 1024px) {
	.swadhan-menubar { display: none; } /* Menu Bar: desktop/tablet only per spec */
}

/* ============ FOOTER (Desktop/Tablet only) ============ */
.swadhan-footer { background: var(--swadhan-color-text); color: #fff; padding: 48px 20px 0; margin-top: 60px; }
.swadhan-footer-columns {
	max-width: 1280px; margin: 0 auto; display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px;
}
.swadhan-footer-col h4 { margin-top: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.swadhan-footer-links { list-style: none; margin: 0; padding: 0; }
.swadhan-footer-links li { margin-bottom: 8px; font-size: 14px; opacity: .85; }
.swadhan-footer-social { display: flex; gap: 12px; margin-top: 12px; }
.swadhan-social-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-block; }
.swadhan-footer-bottom {
	max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.15);
	padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	font-size: 13px; opacity: .8;
}

@media (max-width: 1024px) {
	.swadhan-footer { display: none; } /* Footer: desktop/tablet only per spec, mobile uses bottom nav */
}

/* ============ MOBILE BOTTOM NAV (dummy placeholder — finalize later) ============ */
.swadhan-mobile-bottomnav {
	display: none;
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
	background: #fff; border-top: 1px solid var(--swadhan-color-border);
	justify-content: space-around; align-items: center; padding: 6px 0;
}
.swadhan-bottomnav-item {
	display: flex; flex-direction: column; align-items: center; font-size: 11px;
	gap: 2px; position: relative; color: var(--swadhan-color-text);
}
.swadhan-bottomnav-icon { font-size: 20px; }
.swadhan-bottomnav-item .swadhan-cart-count { position: absolute; top: -4px; right: 6px; }

@media (max-width: 1024px) {
	.swadhan-mobile-bottomnav { display: flex; }
	body { padding-bottom: 60px; } /* prevent content hiding behind fixed nav */
}
