.product-card img {  object-fit: cover; }
.object-fit-cover { object-fit: cover; }
.site-header .navbar-brand { font-size: 1.4rem; }

/* --- Header icons (wishlist/cart) + mobile menu fixes --- */
.header-icons {
    gap: 0.5rem;
}
.header-icons .nav-icon-link {
    color: #212529;
    font-size: 1.1rem;
    padding: 0.25rem 0.4rem;
    line-height: 1;
    position: relative;
}
.header-icons .cart-count {
    font-size: 0.6rem;
    min-width: 1.1rem;
    height: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Keep the icon/toggler row from wrapping onto its own awkward line on very
   narrow screens, and make sure the collapsed menu takes the full width. */
@media (max-width: 991.98px) {
    .site-header .container {
        justify-content: space-between;
    }
    #mainNav {
        width: 100%;
    }
    #mainNav .navbar-nav .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Desktop category dropdown: scroll instead of growing unbounded if there are many categories */
.category-dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
    min-width: 220px;
}

/* Rotate the mobile "Categories" chevron when expanded */
[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
    transition: transform .2s ease;
}
[data-bs-toggle="collapse"] .bi-chevron-down {
    transition: transform .2s ease;
}
