/* =========================================
   1. MODERN MARQUEE ANNOUNCEMENT BAR
   ========================================= */
.announcement-bar {
    background-color: #2c3e50; /* Dark Blue */
    color: #fff;
    overflow: hidden; /* Hides text when it scrolls off screen */
    white-space: nowrap; /* Prevents text from wrapping */
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;

     /* ADD THESE LINES TO FIX THE ISSUE */
    width: 100%;       /* Force full width */
    flex-shrink: 0;    /* Prevent it from being collapsed by the flex body */
}

.marquee-track {
    display: flex;
    gap: 50px;
    animation: scroll-left 25s linear infinite;
    padding-left: 100%; /* Start from far right */
}

.announcement-item {
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.announcement-item::after {
    content: "•";
    margin-left: 50px;
    color: #3498db;
}

.announcement-item:last-child::after {
    content: "";
    margin-left: 0;
}

.announcement-item a {
    color: #fff;
    text-decoration: none;
}

.announcement-item a:hover {
    color: #3498db;
    text-decoration: underline;
}

.announcement-bar:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   2. MAIN HEADER (GRID LAYOUT)
   ========================================= */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0;
}

.sticky-header {
    position: sticky;
     position: -webkit-sticky; /* For Safari compatibility */
    top: 0;
    z-index: 1000;
    width: 100%; /* Ensure it spans full width */
    background-color: #fff; /* Prevents see-through issues */
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    gap: 20px; /* Space between logo, search, and cart */
    height: 70px; /* Adjust based on logo size */
}

/* Left Side */
.nav-left {
    flex-shrink: 0;
}

.logo-img {
    height: 50px; /* Adjust based on your image */
    width: auto;
    display: block;
}

/* Center */
.nav-center {
    flex-grow: 1;
    max-width: 600px; /* Prevent it from getting too wide on huge screens */
    margin: 0 20px;
}

/* Search Input Styling (Shopify Style) */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #f4f4f5;
    transition: all 0.2s ease;
}

/* When user clicks search, make border darker */
.search-wrapper:focus-within {
    background: #fff;
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
}

.search-btn {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
}

.search-btn:hover {
    color: #000;
}

.brand {
    display: inline-block;
    text-decoration: none;
    border: none; 
}



/* Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Navigation Links (About, Contact) */
.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.nav-link:hover {
    color: #3498db;
}


.icon-wrapper {
    position: relative;
    font-size: 20px;
    color: #333;
}

/* =========================================
   3. CART ICON & BADGE
   ========================================= */
.cart-link {
    position: relative;
    color: #333;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.cart-link:hover i {
    color: #3498db;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}