/* Top Bar */
.top-bar {
    background-color: #006a4e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 15px;
    font-size: 0.9rem;
}
.top-bar-left a, .top-bar-right span {
    color: #fff;
    margin-right: 10px;
    text-decoration: none;
    font-size: 0.85rem;
}
.top-bar-left a:hover { text-decoration: underline; }

/* Navbar hover & animation */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ffc107;
    left: 0;
    bottom: 0;
    transition: 0.3s;
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown animation */
.dropdown-menu {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-menu {
    transform: translateY(0);
    opacity: 1;
    display: block;
}

/* Search bar */
.search-bar {
    max-width: 400px;
    width: 100%;
    position: relative;
}
.search-bar input {
    padding-right: 2.5rem;
    border-radius: 20px;
}
.search-bar button {
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    background: transparent;
    height: 100%;
    width: 2.5rem;
    color: #333;
}

/* Logo */
.navbar-brand img { height:50px; object-fit:cover; }

/* Dropdown item hover */
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #006a4e;
    transform: translateX(5px);
    transition: 0.3s;
}

/* Center search wrapper */
.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 400px;
}
@media(max-width:991px){
    .navbar-center {
        position: static;
        transform: none;
        width: 100%;
        margin: 10px 0;
    }
}
.category-box {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 2; /* Default for mobile */
}

/* Desktop */
@media (min-width: 768px) {
    .category-box {
        height: 350px !important;
        aspect-ratio: unset; /* Remove ratio on desktop */
    }
}
/* Product card hover */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Category section spacing */
h3 {
    font-size: 1.4rem;
    color:white;
}
 .cart-btn-fixed {
        position: fixed;
        right: 0px;
        top: 200px;
        z-index: 2000;
        background: #ffc107;
        color: #000;
        padding: 10px 14px;
        border-radius: 0px 50px 50px 0px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        font-weight: bold;
    }
    .cart-btn-fixed i {
        font-size: 20px;
    }
    .cart-count {
        background: red;
        color: #fff;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 12px;
        position: absolute;
        top: -5px;
        right: -5px;
    }