/* ========================================= */
/* SWASTIK FURNITURES - 5-LAKH BASE SYSTEM   */
/* ========================================= */

:root {
    --accent-color: #e67e22; /* Premium warm amber */
    --accent-hover: #d67118;
    --text-dark: #111111;
    --text-muted: #666666;
    --bg-light: #fdfdfd;
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; 
}

/* Global Link Reset (Fixes random underlines) */
a {
    text-decoration: none;
}

/* Custom Selection Highlight */
::selection {
    background: var(--accent-color);
    color: #fff;
}

/* ========================================= */
/* 1. THE LUXURY GLASSMORPHIC HEADER         */
/* ========================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 85px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Brand Logo --- */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.shop-name-text {
    font-family: var(--font-family-headings);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* --- Search Bar Pill --- */
.search-bar {
    flex: 0 1 350px;
    margin: 0 2rem;
    position: relative; 
}

.search-bar form {
    display: flex;
    background: #f4f4f4;
    border-radius: 30px;
    /* OVERFLOW HIDDEN REMOVED SO DROPDOWN CAN ESCAPE */
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.search-bar form:focus-within {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    outline: none;
}

.search-bar button {
    padding: 0 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-bar button:hover {
    color: var(--accent-color);
}

/* --- PREMIUM LIVE SEARCH SUGGESTIONS --- */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    z-index: 1000;
    display: none;
    transform-origin: top center;
    animation: dropIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none !important;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: rgba(230, 126, 34, 0.05); padding-left: 25px; }

.suggestion-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    background: #f4f4f4;
}

.suggestion-info { display: flex; flex-direction: column; }
.suggestion-name { font-family: var(--font-family-headings); font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; text-decoration: none !important; }
.suggestion-meta { font-size: 0.75rem; color: var(--text-muted); text-decoration: none !important; }
.no-suggestions { padding: 20px; text-align: center; color: #888; font-size: 0.9rem; font-style: italic; }


/* --- Navigation Links --- */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-links li { position: relative; }

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background-color: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a:hover { color: var(--accent-color); }

/* --- Premium Dropdown Menu --- */
.dropdown { position: relative; }
.dropdown-content {
    position: absolute;
    top: 130%; 
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    min-width: 240px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.dropdown::before { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 30px; }
.dropdown:hover .dropdown-content {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0); top: 100%; 
}

.dropdown-content a { padding: 12px 25px; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; transition: all 0.3s ease; }
.dropdown-content a::after { display: none; }
.dropdown-content a:hover { background-color: rgba(230, 126, 34, 0.05); color: var(--text-dark); padding-left: 32px; }

/* --- Cart Badge Notification --- */
.cart-badge {
    background: linear-gradient(135deg, #111, #333);
    color: white; font-size: 0.75rem; font-weight: 800;
    padding: 2px 8px; border-radius: 20px; margin-left: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* ========================================= */
/* HEADER OVERLAP PREVENTION                 */
/* ========================================= */
.product-details-container {
    margin-top: 100px;
}
@media (max-width: 768px) {
    .product-details-container { margin-top: 90px; }
}


/* ========================================= */
/* 2. THE EDITORIAL DARK FOOTER              */
/* ========================================= */

footer {
    background-color: #111111; 
    color: #f4f4f4;
    padding: 6rem 2rem 0 2rem;
    position: relative;
    border-top: 1px solid #eaeaea;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-column h3 { font-family: var(--font-family-headings); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; color: #ffffff; letter-spacing: 0.5px; }
.footer-column p { color: #aaaaaa; line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; font-weight: 300; }

.social-links { display: flex; gap: 15px; margin-top: 2rem; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
    border-radius: 50%; text-decoration: none; font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.social-links a:hover { background: var(--accent-color); border-color: var(--accent-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3); }

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #aaaaaa; text-decoration: none; font-size: 0.95rem; font-weight: 300; transition: all 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); }

.footer-contact p { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact i { color: var(--accent-color); font-size: 1.2rem; margin-top: 2px; }

.get-directions-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 1.5rem;
    padding: 12px 24px; background: #fff; color: #111; font-family: var(--font-family-headings);
    font-weight: 700; font-size: 0.9rem; text-decoration: none; border-radius: 30px; transition: all 0.3s ease;
}
.get-directions-btn:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); }
.get-directions-btn:hover i { color: #fff !important; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 2rem; text-align: center; }
.footer-bottom p { color: #777; font-size: 0.9rem; margin: 0; }


/* ========================================= */
/* 3. GLOBAL FLOATING FABs (WA & CART)       */
/* ========================================= */

.whatsapp-fab {
    position: fixed; bottom: 30px; right: 30px; background-color: #25D366; color: white;
    width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); z-index: 9999;
    text-decoration: none; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); animation: pulseGlow 2s infinite;
}
.whatsapp-fab:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6); animation: none; }

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- MISSING FLOATING CART BUTTON STYLES --- */
.floating-cart-btn {
    position: fixed; 
    bottom: 110px; /* Sits right above WhatsApp */
    right: 30px; 
    background-color: #111; 
    color: white; 
    width: 65px; 
    height: 65px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    z-index: 9998; 
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.floating-cart-btn:hover { 
    transform: scale(1.1); 
    background-color: var(--accent-color); 
    color: #fff;
}

.floating-cart-btn.pop { animation: cartPop 0.3s ease-out; }

@keyframes cartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.float-badge {
    position: absolute; top: -2px; right: -2px; background: #CC0C39; color: white;
    font-size: 0.75rem; font-weight: 800; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: 2px solid #111;
}

.loader-spinner { border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* ========================================= */
/* 4. MOBILE RESPONSIVENESS                  */
/* ========================================= */

#search-icon, .hamburger, .search-container { display: none; }

@media (max-width: 1024px) {
    .nav-links { gap: 1.5rem; }
    .search-bar { margin: 0 1rem; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    nav { height: 75px; padding: 0 1.5rem; }
    .nav-links, .search-bar { display: none; }
    
    #search-icon, .hamburger {
        display: block; font-size: 1.8rem; cursor: pointer; color: var(--text-dark); margin-left: 15px;
    }
    
    .logo img { height: 38px; }
    .shop-name-text { font-size: 1.2rem; }
    
    /* MOBILE NAVIGATION TOGGLE */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        gap: 1.5rem;
        align-items: flex-start;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links a { font-size: 1.2rem; width: 100%; }
    .dropdown { width: 100%; }
    
    /* Mobile Dropdown Fix */
    .dropdown-content {
        position: static; transform: none; box-shadow: none; background: transparent;
        border: none; padding: 0 0 0 1rem; margin-top: 10px; display: none;
        opacity: 1; visibility: visible;
    }
    
    .dropdown.mobile-open .dropdown-content {
        display: flex; flex-direction: column;
    }
    
    /* Mobile Search Reveal */
    .search-container {
        position: absolute; top: 75px; left: 0; width: 100%;
        background: #fff; padding: 1rem 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        display: none;
    }
    .search-container.active { display: block; }
    
    .search-container form { position: relative; } /* Ensure suggestions anchor here */
    .search-container input {
        width: 100%; padding: 14px 20px; border-radius: 30px;
        border: 1px solid #eaeaea; background: #f9f9f9;
        font-family: inherit; outline: none;
    }
    
    .search-suggestions { top: calc(100% - 5px); border-radius: 0 0 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    
    footer { padding: 4rem 1.5rem 0 1.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
    
    /* Stack Mobile FABs perfectly */
    .whatsapp-fab { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 1.8rem; }
    .floating-cart-btn { bottom: 90px; right: 20px; width: 55px; height: 55px; font-size: 1.5rem; }
}