/*--------- Global Layouts Interface Styles (Navbar, Footer, Modals) ----------*/ 
/* Navigation Bar */ 
.main-navbar { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    background: rgba(255, 255, 255, 0.98); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; 
    padding: clamp(5px, 1vw, 10px) 0; 
}

.nav-container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 clamp(10px, 3vw, 15px); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.logo-container .logo { 
    width: clamp(45px, 7.5vw, 75px); 
    height: auto; 
    object-fit: contain; 
    border-radius: clamp(8px, 1.5vw, 12px); 
}

.menu-container { 
    flex-grow: 1; 
    display: flex; 
    justify-content: center; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    gap: clamp(10px, 2vw, 25px); 
    align-items: center; 
}

.nav-item a { 
    text-decoration: none; 
    color: var(--dark-coffee, #3e2723); 
    font-weight: 600; 
    font-size: clamp(0.85rem, 1.2vw, 1rem); 
    transition: color 0.3s ease; 
    padding: clamp(4px, 1vw, 5px) clamp(8px, 1.5vw, 10px); 
}

.nav-item a:hover, .nav-item a:focus { 
    color: var(--primary-brown, #8d6e63); 
    outline: none; 
}

/* Default hidden close button */ 
.exit-menu-btn { 
    display: none; 
}

.nav-icons { 
    flex: 0 0 auto; 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    gap: clamp(10px, 2vw, 25px); 
}

.icon-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}

/* Base icon sizing for wishlist and account */ 
.icon-wrapper img { 
    width: clamp(24px, 3vw, 30px); 
    height: clamp(24px, 3vw, 30px); 
    object-fit: contain; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Specifically scale up the cart icon */ 
.icon-wrapper img.cartpic { 
    width: clamp(30px, 3.8vw, 36px); 
    height: clamp(30px, 3.8vw, 36px); 
}

.icon-wrapper:hover img, .icon-wrapper:focus img { 
    transform: scale(1.15); 
    outline: none; 
}

.avatar-icon { 
    border: 2px solid #28a745; 
    border-radius: 50%; 
}

.cart-quantity { 
    position: absolute; 
    top: -8px; 
    right: -10px; 
    background: #dc3545; 
    color: white; 
    font-size: clamp(0.65rem, 1vw, 0.75rem); 
    font-weight: 700; 
    padding: 2px 6px; 
    border-radius: 50px; 
    border: 2px solid white; 
}

.menu-icon { 
    display: none; 
    width: clamp(25px, 4vw, 30px); 
    margin-left: clamp(10px, 2vw, 20px); 
    cursor: pointer; 
    transition: transform 0.3s ease; 
}

/* Departments Dropdown Attached to Navbar (Desktop Default) */ 
.departments-dropdown { 
    display: none; 
    background: var(--dark-coffee, #3e2723); 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    z-index: 999; 
    padding: clamp(15px, 3vw, 20px) 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

.dropdown-close-wrapper { 
    max-width: 1200px; 
    margin: 0 auto clamp(10px, 2vw, 15px) auto; 
    padding: 0 clamp(10px, 3vw, 15px); 
    display: flex; 
    justify-content: flex-end; 
}

.dropdown-close-btn { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
    background: rgba(255, 255, 255, 0.1); 
    color: #dc3545; 
    border-radius: 50%; 
    font-size: 1.2rem; 
    text-decoration: none; 
    transition: transform 0.3s, background 0.3s, color 0.3s; 
}

.dropdown-close-btn:hover, .dropdown-close-btn:focus { 
    background: #dc3545; 
    color: white; 
    transform: rotate(90deg); 
    outline: none; 
}

.departments-list { 
    list-style: none; 
    padding: 0 clamp(10px, 3vw, 15px); 
    margin: 0 auto; 
    max-width: 1200px; 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 25vw, 200px), 1fr)); 
    gap: clamp(10px, 2vw, 15px); 
}

.departments-list li a { 
    color: white; 
    text-decoration: none; 
    font-size: clamp(0.85rem, 1.5vw, 0.95rem); 
    transition: color 0.3s, padding-left 0.3s; 
    display: block; 
    padding: clamp(6px, 1vw, 8px) 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

.departments-list li a:hover, .departments-list li a:focus { 
    color: var(--primary-brown, #8d6e63); 
    padding-left: 5px; 
    outline: none; 
}

/* Mobile Menu & Interactive Dropdown Fixes */ 
@media (max-width: 992px) {     
    #menucontainer.menu-container { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 100vw; 
        height: 100vh; 
        background: rgba(255, 255, 255, 0.95); 
        backdrop-filter: blur(15px); 
        -webkit-backdrop-filter: blur(15px); 
        display: flex; 
        flex-direction: column; 
        align-items: stretch; 
        justify-content: flex-start; 
        padding-top: clamp(60px, 8vw, 70px); 
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
        z-index: 1001; 
    }     

    #menucontainer.menu-container.active { 
        right: 0; 
    }     

    #menucontainer .nav-links { 
        display: flex; 
        flex-direction: column; 
        align-items: stretch; 
        padding: 0 clamp(20px, 4vw, 30px); 
        width: 100%; 
        gap: 0; 
    }     

    .nav-item { 
        width: 100%; 
        border-bottom: 1px solid rgba(141, 110, 99, 0.15); 
    }     

    .nav-item:last-child { 
        border-bottom: none; 
    }     

    .nav-item a { 
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
        padding: clamp(15px, 3vw, 20px) 10px; 
        font-size: clamp(1.1rem, 2.5vw, 1.25rem); 
        color: var(--dark-coffee, #3e2723); 
        border-radius: 8px; 
        transition: background 0.3s, transform 0.3s; 
    }     

    .nav-item a:hover, .nav-item a:focus { 
        background: rgba(141, 110, 99, 0.08); 
        transform: translateX(5px); 
    }          

    .exit-menu-btn { 
        display: block; 
        position: absolute; 
        top: 15px; 
        right: 20px; 
        z-index: 1005; 
        border-bottom: none; 
    }     

    .exit-menu-btn a { 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        width: 40px; 
        height: 40px; 
        background: #f8f9fa; 
        color: #dc3545; 
        border-radius: 50%; 
        font-size: 1.2rem; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
        transition: transform 0.3s, background 0.3s, color 0.3s; 
        text-decoration: none; 
        padding: 0; 
    }     

    .exit-menu-btn a:hover { 
        background: #dc3545; 
        color: white; 
        transform: rotate(90deg); 
    }          

    .menu-icon { 
        display: block; 
    }     

    .departments-dropdown { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100vw; 
        height: 100vh; 
        max-height: 100vh; 
        z-index: 1010; 
        padding: 60px 15px 20px 15px; 
        overflow-y: auto; 
    }     

    .dropdown-close-wrapper { 
        position: absolute; 
        top: 15px; 
        right: 20px; 
        margin: 0; 
        padding: 0; 
    } 
}

/* Search Header */ 
.search-header { 
    background: var(--primary-brown, #8d6e63); 
    padding: clamp(15px, 3vw, 20px) 0; 
}

.search-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

.search-form { 
    position: relative; 
}

.search-input-group { 
    display: flex; 
    flex-direction: row; 
    align-items: stretch; 
    background: white; 
    border-radius: 50px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    width: 100%; 
}

.search-input { 
    flex-grow: 1; 
    border: none; 
    padding: clamp(10px, 2vw, 15px) clamp(15px, 3vw, 25px); 
    font-size: clamp(0.9rem, 1.5vw, 1rem); 
    outline: none; 
    min-width: 0; 
}

.search-btn { 
    background: var(--dark-coffee, #3e2723); 
    color: white; 
    border: none; 
    padding: 0 clamp(20px, 4vw, 30px); 
    font-weight: 700; 
    cursor: pointer; 
    transition: background 0.3s; 
    font-size: clamp(0.9rem, 1.5vw, 1rem); 
    white-space: nowrap; 
}

.search-btn:hover, .search-btn:focus { 
    background: #5d4037; 
    outline: none; 
}

/* Fully Responsive UI/UX Global Slideshow */ 
.global-slideshow-container { 
    width: clamp(300px, 100%, 1400px); 
    padding: clamp(15px, 3vw, 30px) clamp(10px, 3vw, 15px); 
    margin: 0 auto; 
    box-sizing: border-box; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.global-slideshow { 
    width: 100%; 
    position: relative; 
    border-radius: clamp(10px, 3vw, 20px); 
    overflow: hidden; 
    box-shadow: 0 8px 32px rgba(141, 110, 99, 0.2); 
    background: var(--dark-coffee, #3e2723); 
    aspect-ratio: 21 / 9; 
}

@media (max-width: 768px) {     
    .global-slideshow { 
        aspect-ratio: 16 / 9; 
    } 

    /* Footer centering fix */     
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }     

    .widget-title { 
        text-align: center; 
    }     

    .widget-list { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }          

    /* Search Bar inline fixing */     
    .searchProductsDiv { 
        flex-direction: row; 
        border-radius: 50px; 
        padding: clamp(6px, 1.5vw, 12px); 
    }     

    #searchButton { 
        width: auto; 
        border-radius: 40px; 
        margin-top: 0; 
        padding: clamp(10px, 2vw, 15px) clamp(15px, 4vw, 25px); 
    }     

    .search-input-group { 
        flex-direction: row; 
        align-items: stretch; 
    }     

    .search-input { 
        width: 100%; 
        min-width: 0; 
    }     

    .search-btn { 
        width: auto; 
        margin-top: 0; 
        padding: 0 clamp(15px, 3vw, 20px); 
    } 
}

.myslides { 
    display: none; 
    width: 100%; 
    height: 100%; 
}

.active-slide { 
    display: block; 
}

.slide-img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    display: block; 
    background-color: var(--pure-white, #ffffff); 
}

.slide-caption { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    text-align: center; 
    color: #f2f2f2; 
    font-size: clamp(0.9rem, 2vw, 1.25rem); 
    padding: clamp(15px, 3vw, 25px) 15px clamp(25px, 5vw, 35px); 
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.slide-control { 
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    padding: clamp(10px, 2vw, 15px) clamp(12px, 2.5vw, 18px); 
    color: white; 
    font-weight: bold; 
    font-size: clamp(1.2rem, 3vw, 1.8rem); 
    transition: 0.3s ease; 
    background: rgba(0,0,0,0.4); 
    text-decoration: none; 
    user-select: none; 
    border-radius: 5px; 
    z-index: 10; 
}

.slide-control:hover, .slide-control:focus { 
    background: var(--primary-brown, #8d6e63); 
    outline: none; 
}

.prev { 
    left: clamp(5px, 1vw, 10px); 
}

.next { 
    right: clamp(5px, 1vw, 10px); 
}

.fade { 
    animation: fadeEffect 1.5s; 
}

@keyframes fadeEffect { 
    from { opacity: 0.4 } 
    to { opacity: 1 } 
}

.slideshow-dots { 
    text-align: center; 
    position: absolute; 
    bottom: clamp(10px, 2vw, 15px); 
    width: 100%; 
    z-index: 5; 
}

.slide-dot { 
    cursor: pointer; 
    height: clamp(8px, 1.5vw, 12px); 
    width: clamp(8px, 1.5vw, 12px); 
    margin: 0 4px; 
    background-color: rgba(255, 255, 255, 0.5); 
    border-radius: 50%; 
    display: inline-block; 
    transition: background-color 0.6s ease, transform 0.3s ease; 
}

.slide-dot.active, .slide-dot:hover { 
    background-color: var(--primary-brown, #8d6e63); 
    transform: scale(1.2); 
}

/* Floating Action Buttons */ 
.fab-wrapper { 
    position: fixed; 
    bottom: clamp(20px, 4vw, 30px); 
    right: clamp(20px, 4vw, 30px); 
    display: flex; 
    flex-direction: column; 
    gap: clamp(10px, 2vw, 15px); 
    z-index: 1000; 
}

.fab-btn-container { 
    position: relative; 
}

.fab-btn { 
    width: clamp(50px, 8vw, 60px); 
    height: clamp(50px, 8vw, 60px); 
    border-radius: 50%; 
    background: white; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: transform 0.3s; 
    overflow: hidden; 
}

.fab-btn:hover, .fab-btn:focus { 
    transform: translateY(-5px); 
    outline: none; 
}

.fab-btn img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

#result-popup { 
    position: absolute; 
    right: clamp(60px, 10vw, 80px); 
    top: 50%; 
    transform: translateY(-50%); 
    background: var(--dark-coffee, #3e2723); 
    color: white; 
    padding: clamp(8px, 1.5vw, 10px) clamp(15px, 3vw, 20px); 
    border-radius: 8px; 
    font-size: clamp(0.8rem, 1.5vw, 0.9rem); 
    white-space: nowrap; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s; 
}

.fab-btn-container:hover #result-popup { 
    opacity: 1; 
}

/* Main Footer */ 
.main-footer { 
    background: var(--dark-coffee, #3e2723); 
    color: white; 
    padding: clamp(40px, 8vw, 60px) 0 clamp(15px, 3vw, 20px) 0; 
    margin-top: auto; 
}

.footer-top { 
    display: flex; 
    justify-content: center; 
    text-align: center; 
    margin-bottom: clamp(20px, 4vw, 30px); 
}

.footer-logo { 
    width: clamp(100px, 15vw, 160px); 
    margin-bottom: clamp(10px, 2vw, 15px); 
}

.brand-tagline { 
    color: #d7ccc8; 
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); 
    margin: 0; 
}

.footer-divider { 
    border-color: rgba(255,255,255,0.1); 
    margin: 0 0 clamp(25px, 5vw, 40px) 0; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 25vw, 200px), 1fr)); 
    gap: clamp(20px, 4vw, 30px); 
    margin-bottom: clamp(25px, 5vw, 40px); 
}

.widget-title { 
    color: var(--primary-brown, #8d6e63); 
    font-size: clamp(1.1rem, 2vw, 1.25rem); 
    font-weight: 700; 
    margin-bottom: clamp(15px, 3vw, 20px); 
}

.widget-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.widget-list li { 
    margin-bottom: clamp(8px, 1.5vw, 12px); 
}

.widget-list a { 
    color: #d7ccc8; 
    text-decoration: none; 
    transition: color 0.3s; 
    font-size: clamp(0.85rem, 1.5vw, 0.95rem); 
}

.widget-list a:hover, .widget-list a:focus { 
    color: white; 
    outline: none; 
}

.btn-app-download { 
    display: inline-block; 
    background: var(--primary-brown, #8d6e63); 
    color: white !important; 
    padding: clamp(8px, 1.5vw, 10px) clamp(15px, 3vw, 20px); 
    border-radius: 5px; 
    font-weight: 600; 
    border: 1px solid transparent; 
}

.btn-app-download:hover, .btn-app-download:focus { 
    background: transparent; 
    border-color: var(--primary-brown, #8d6e63); 
    outline: none; 
}

.social-links a i { 
    margin-right: 8px; 
    width: 20px; 
    text-align: center; 
}

.footer-bottom { 
    text-align: center; 
    padding-top: clamp(15px, 3vw, 20px); 
    border-top: 1px solid rgba(255,255,255,0.1); 
    color: #d7ccc8; 
    font-size: clamp(0.8rem, 1.2vw, 0.9rem); 
}

.developer-link { 
    color: #ffc107; 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-block; 
    margin-top: 10px; 
    transition: color 0.3s; 
}

.developer-link:hover, .developer-link:focus { 
    color: #fff; 
    outline: none; 
}