/* =========================================
   GLOBAL STYLES (global.css)
   ========================================= */

:root {
    /* Theme Colors - Changed to Blue for Arushi Traders */
    --primary: #007BFF;         /* Main Blue */
    --primary-hover: #0056b3;   /* Darker Blue for hover states */
    --text-dark: #333333;       /* Main Text */
    --text-light: #666666;      /* Paragraphs */
    --bg-light: #f4f6f9;        /* Light Grey Background */
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* =========================================
   HEADER / NAVBAR STYLES
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span span {
    color: var(--primary);
    font-style: normal;
}

/* Navigation Links */
.nav-center ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-center ul li a {
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
    color: var(--text-dark);
}

.nav-center ul li a:hover,
.nav-center ul li a.active {
    color: var(--primary);
}

.mobile-admin-link {
    display: none;
}

/* Right Side Icons (Admin & Cart) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-admin-btn {
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s;
}

.desktop-admin-btn:hover {
    color: var(--primary-hover);
}

.cart-btn {
    position: relative;
    font-size: 24px;
    color: var(--text-dark);
    transition: 0.3s;
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 5% 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-col p {
    color: #b3c0cc;
    font-size: 0.95rem;
}

.footer-col a {
    display: block;
    color: #b3c0cc;
    margin-bottom: 10px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #888;
    font-size: 0.9rem;
    gap: 15px;
}

/* =========================================
   WHATSAPP FLOAT ICON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: 0.3s transform;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    color: white;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
.mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .desktop-admin-btn {
        display: none; /* Hide admin text on mobile header, show in menu */
    }

    /* Side Menu Design for Mobile */
    .nav-center {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        transition: 0.4s ease-in-out;
        z-index: 1001;
    }

    .nav-center.active {
        left: 0;
    }

    .mobile-header {
        display: flex;
    }

    .nav-center ul {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .nav-center ul li a {
        font-size: 1.1rem;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-admin-link {
        display: block;
        margin-top: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float span {
        display: none; /* Only show icon on mobile */
    }
    .whatsapp-float {
        padding: 15px;
        border-radius: 50%;
    }
}
