:root {
    --primary: #ea580c;       /* Indian Baba Saffron Orange */
    --primary-dark: #c2410c;  /* Deep Spiritual Terracotta */
    --bg-color: #f8fafc;      /* Very Clean Off-White */
    --text-dark: #0f172a;     /* Absolute Slate Black */
    --white: #ffffff;
    --header-bg: #ffffff;     /* Bright Modern Header replacing dark */
}

* { box-sizing: border-box; }

html { font-size: 14px; } /* Global scaling down function */

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* BABA THEME HEADER (scrolls away) */
header {
    background: var(--header-bg);
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* STICKY SEARCH + NAV BAR */
.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0f172a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    overflow: visible;
}
.sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: visible;
}
.sticky-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sticky-brand img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    border: 1.5px solid #f97316;
}
.sticky-brand span { color: #f97316; }
.sticky-search {
    flex-grow: 1;
    position: relative;
    min-width: 0;
}
.sticky-input-row {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.sticky-input-row:focus-within { border-color: #f97316; }
.sticky-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
}
.sticky-search button {
    background: #ea580c;
    border: none;
    color: white;
    padding: 0 18px;
    font-weight: 900;
    font-size: 0.82rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}
.sticky-search button:hover { background: #c2410c; }
.sticky-wl-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: white;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.15);
    transition: 0.2s;
    position: relative;
    flex-shrink: 0;
}
.sticky-wl-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(249,115,22,0.5); }
.sticky-wl-icon { font-size: 1.1rem; line-height: 1; }
.sticky-wl-text { display: none; }
@media (min-width: 801px) { .sticky-wl-text { display: inline; } }

.menubar {
    background: #1e293b;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0 5%;
    font-size: 0.8rem;
    display: flex;
    gap: 15px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.menubar::-webkit-scrollbar { display: none; }
.menubar a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: color 0.2s;
}
.menubar a:hover { color: white; }
.menu-tool-link { color: #f97316 !important; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 5%;
    gap: 20px;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

#wishlist-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 900;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    transition: 0.2s;
    position: relative;
    flex-shrink: 0;
    background: white;
}
#wishlist-nav-btn:hover { background: #fff7ed; border-color: #fed7aa; }
.wl-nav-icon { font-size: 1.2rem; line-height: 1; }
.wl-nav-label { display: none; }
#wishlist-count-badge {
    display: none;
    position: absolute;
    top: -5px; right: -5px;
    background: #ea580c;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    width: 18px; height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
@media (min-width: 801px) { .wl-nav-label { display: inline; } }

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    height: 45px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}
.logo span { color: var(--primary); }

.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 20px;
}
.search-bar {
    display: flex;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    width: 100%;
    transition: all 0.2s ease;
    z-index: 101;
}
.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}
.search-bar input {
    border: none;
    background: transparent;
    padding: 12px 15px;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
}
.search-bar button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 25px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s ease;
}
.search-bar button:hover { background: var(--primary-dark); }

@media (max-width: 800px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 5%;
        gap: 10px;
    }
    .logo-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .search-container { margin: 0; max-width: 100%; }
    .logo { font-size: 1.6rem; }
    .menubar { justify-content: flex-start; padding: 0 15px; }
    .menubar a { padding: 10px 5px; font-size: 0.85rem; }
    .sticky-brand span:last-child { display: inline; }
    .sticky-brand { font-size: 0.82rem; gap: 5px; }
    .sticky-brand img { height: 22px; width: 22px; }
    .sticky-inner { gap: 8px; padding: 8px 3%; }
}
@media (min-width: 801px) {
    .wl-header-mobile { display: none !important; }
    header .nav-container { padding: 14px 5%; }
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #0f172a;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
    max-height: 480px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}
.sr-group-label {
    padding: 8px 14px 5px;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #475569;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
    outline: none;
}
.search-result-item:hover, .search-result-item.sr-focused {
    background: rgba(234,88,12,0.12);
    color: white;
}
.search-result-item img {
    width: 42px; height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.sr-img-placeholder {
    width: 42px; height: 42px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-name { font-weight: 800; font-size: 0.9rem; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.sr-price { font-size: 0.8rem; font-weight: 900; color: #f97316; margin-left: auto; white-space: nowrap; flex-shrink: 0; }

.sr-spinner {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 18px 14px;
    color: #64748b; font-size: 0.85rem; font-weight: 700;
}
.sr-spin { width: 18px; height: 18px; border: 2px solid #334155; border-top-color: #ea580c; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sr-empty { padding: 20px 14px; text-align: center; color: #475569; font-size: 0.88rem; font-weight: 600; }

.sr-footer {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    font-size: 0.82rem; font-weight: 800;
    color: #f97316; text-decoration: none;
    transition: background 0.15s;
    border-radius: 0 0 14px 14px;
}
.sr-footer:hover { background: rgba(234,88,12,0.1); color: white; }

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.footer {
    background: #ffffff;
    border-top: 1px solid #e1e8ed;
    padding: 60px 5% 30px;
    margin-top: 80px;
    color: #555;
    text-align: center;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: left;
}
.footer-col h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    font-weight: 800;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #666; text-decoration: none; transition: color 0.2s; font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #eee; padding-top: 25px; font-size: 0.85rem; }
