/* --- Global Reset & Colors --- */
:root {
    --primary-color: #0097b2;     /* Teal/Dark Cyan - Main page background */
    --secondary-color: #f7f7f7;
    --text-color: #333;           /* General text color */
    --light-bg: #fff;             /* White content boxes */
    --old-price-color: #999;
    --discount-color: #ff4500;    /* Red/Orange for discounts */
    --navbar-bg: #000000;         /* Black background for navbar */
    --navbar-text: #ffffff;       /* White text for navbar */
    --search-color: #007bff;      /* Search button blue */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ------------------------------------------------ */
/* ====== UNIFIED NAVIGATION BAR STYLES ====== */
/* ------------------------------------------------ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Increased vertical padding for a taller bar */
    padding: 20px 40px; 
    background-color: var(--navbar-bg); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px; 
    width: auto; 
    margin-right: 10px;
    border-radius: 50%; 
}

.brand {
    font-size: 24px;
    color: var(--navbar-text); 
    font-weight: bold;
    margin: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--navbar-text); 
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li.active-link a { 
    color: #ffd700; 
}

.nav-right {
    display: flex;
    align-items: center;
}

.logout-btn {
    text-decoration: none;
    color: var(--text-color); 
    background-color: var(--light-bg); 
    border: 1px solid var(--text-color);
    padding: 5px 15px; 
    border-radius: 5px; 
    margin-right: 15px; 
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #ffd700;
    color: var(--text-color);
}

.login-icon {
    font-size: 20px; 
    color: var(--navbar-text); 
    cursor: pointer;
}

/* ====== DROPDOWN MENU ====== */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light-bg);
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 10;
    padding: 0; 
}

.nav-links li.dropdown .dropdown-menu li {
    list-style: none;
    margin: 0; 
}

.nav-links li.dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color); 
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
}

.nav-links li.dropdown .dropdown-menu li a:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.nav-links li.dropdown:hover .dropdown-menu {
    display: block;
}


/* ------------------------------------------------ */
/* ====== REMAINDER OF HOME.CSS (LAYOUT STYLES) ====== */
/* ------------------------------------------------ */

/* Center the search bar */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.center-search input {
    padding: 15px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.center-search button {
    padding: 15px 15px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.center-search button i {
    margin-right: 5px;
}

.center-search button:hover {
    background-color: #0056b3;
}


/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    width: 90%;
    gap: 40px;
}

.banner-left img,
.banner-right img {
    width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-text {
    text-align: center;
    max-width: 500px;
    color: black; /* Applies to H2 */
}

.hero-text h2 {
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 18px;
    color: #fff; /* Light white for contrast against the video background */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* ===== DEALS SECTION ===== */
.deals {
    padding: 20px 50px;
    margin-top: 40px;
    color: white;
    border-radius: 12px 12px 0 0;
}

/* Header row: deals title on left, button on right */
.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.deals-header h3 {
    font-size: 24px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deals-header h3 i {
    color: #ff6600;
    font-size: 24px;
}

.wishlist-btn {
    background: white;
    color: var(--primary-color);
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.wishlist-btn:hover {
    background: #ffd700;
    color: #000;
}

/* Deals grid layout */
.deal-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Deal item box style */
.deal-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    width: 160px;
    height: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.deal-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.deal-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.deal-item p {
    color: #333;
    font-size: 13px;
    margin-top: 4px;
}

.discount {
    color: #ff4747;
    font-weight: 600;
}
/* -------------------- FOOTER STYLES -------------------- */
        .main-footer {
            background-color: var(--upsi-dark);
            color: #ccc;
            padding-top: 3rem;
        }
        .footer-content {
            display: flex;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem 2rem;
            gap: 2rem;
        }
        .footer-logo-brand, .footer-links, .footer-contact {
            flex: 1;
            min-width: 200px;
        }
        .footer-logo-brand .brand {
            color: #0097b2;;
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }
        .footer-logo-brand p {
            font-size: 0.9rem;
            color: #999;
        }
        .footer-links h5, .footer-contact h5 {
            color: #0097b2;
            font-size: 1.25rem;
            border-bottom: 2px solid var(--upsi-blue);
            padding-bottom: 0.25rem;
            margin-bottom: 1.5rem;
            display: inline-block;
        }
        .footer-contact p {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }
        .footer-contact i {
            color: var(--upsi-blue);
        }

        /* Icon List (Quick Links) - UPDATED FOR 4-COLUMN LAYOUT */
        .icon-list {
            list-style: none;
            padding: 0;
            display: flex;
            flex-wrap: wrap; 
            gap: 1rem; /* Spacing between icons */
            margin-top: 1rem;
            justify-content: flex-start;
        }
        
        /* Enforce 4 items per row by setting width on the list item (li) */
        .icon-list li {
            /* (100% - 3 gaps of 1rem) / 4 items = the item width */
            width: calc((100% - 3rem) / 4); 
            display: flex; 
            justify-content: center; /* Center the link button */
            align-items: center;
            min-width: 2.5rem; 
        }

        /* Circular button styling remains on the anchor tag (a) */
        .icon-list li a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 3rem; /* Slightly larger targets */
            height: 3rem;
            font-size: 1.5rem; /* Slightly larger icons */
            
            color: #ccc;
            border-radius: 50%; /* Circular shape */
            transition: color 0.2s, background-color 0.2s;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .icon-list li a:hover {
            color: var(--upsi-blue);
            background-color:  #ffd700;
            border-color: var(--upsi-blue);
        }

        /* Social Icons */
        .social-icons {
            margin-top: 1rem;
            display: flex;
            gap: 1rem;
        }
        .social-icon {
            color: #ccc;
            font-size: 1.5rem;
            transition: color 0.2s;
        }
        .social-icon:hover {
            color: white;
        }

        .footer-bottom {
            background-color: rgba(0, 0, 0, 0.2);
            text-align: center;
            padding: 1rem;
            border-top: 1px solid #333;
        }
        .footer-bottom p {
            margin: 0;
            font-size: 0.8rem;
            color: #999;
        }

        /* -------------------- RESPONSIVENESS -------------------- */
        @media (max-width: 900px) {
            .hero {
                flex-direction: column;
                min-height: auto;
                padding: 1.5rem;
            }
            .banner-left, .banner-right {
                display: none; /* Hide images on smaller screens */
            }
            .hero-text {
                flex-basis: 100%;
                padding: 0;
            }
            .navbar {
                flex-wrap: wrap;
                padding: 1rem;
            }
            .nav-links {
                display: none; /* Hide main links on mobile, rely on dropdown */
                width: 100%;
                order: 3;
            }
            .nav-right {
                margin-left: auto;
            }
            .footer-content {
                flex-direction: column;
                text-align: center;
                gap: 3rem;
            }
            /* Adjust icon list layout for small screens to ensure readability */
            .footer-links .icon-list {
                justify-content: center;
            }
            
            /* On mobile, revert to a 3-column or fluid layout to prevent squishing */
            .icon-list li {
                 width: calc((100% - 2rem) / 3); /* Fallback to 3 columns on mobile */
            }
            
            .footer-logo-brand, .footer-links, .footer-contact {
                min-width: 100%;
            }
        }
  