.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1rem;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.product-img {
    width: 100%;
    height: 200px; /* desktop/taller for large screens */
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-overlay {
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.08);
    opacity:0;
    transition: opacity 0.3s;
}
.product-card:hover .product-overlay { opacity:1; }

.product-overlay .btn {
    background-color: rgba(0,0,0,0.6) !important;
    color: #fff !important;
    font-size:0.75rem;
    padding:0.2rem 0.4rem;
}

/* Tabs styling */
.nav-pills .nav-link.active { background-color:#f8f9fa; color:#000; border-radius:50px; }
.nav-pills .nav-link { color:#000; margin:0 0.2rem; }
.nav-pills .nav-link:hover { background-color:#e9ecef; }

/* Mobile optimization */
@media (max-width: 576px) {
    .product-img { height:130px; }
    .card-body { padding:0.25rem; }
    .card-title { font-size:0.8rem; }
    .product-overlay .btn { font-size:0.6rem; padding:0.1rem 0.25rem; }
    .badge { font-size:0.6rem; padding:0.12rem 0.25rem; }
}
.modern-dropdown-wrapper {
    position: relative;
}

.modern-dropdown-btn {
    background: linear-gradient(135deg, #00d084 0%, #1abc15 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.4);
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.modern-dropdown-btn:hover {
    background: linear-gradient(135deg, #1abc15 0%, #00d084 100%);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.6);
    transform: translateY(-2px);
    color: white;
}

.modern-dropdown-btn:focus {
    color: white;
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.6);
    outline: none;
}

.modern-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    background: white;
    animation: slideDown 0.3s ease;
    z-index: 1000;
    display: none;
}

.modern-dropdown-menu.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-menu-item-wrapper {
    position: relative;
}

.modern-menu-item-wrapper:hover > .modern-submenu {
    display: block;
}

.modern-dropdown-item {
    color: #333;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.modern-dropdown-item:hover {
    background-color: #f0fff7;
    border-left-color: #00d084;
    color: #00d084;
    padding-left: 25px;
}

.modern-dropdown-item .dot {
    width: 5px;
    height: 5px;
    background-color: #00d084;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

.modern-divider {
    margin: 8px 0;
    background-color: #e8e8f0;
    height: 1px;
}

.modern-submenu {
    position: absolute;
    top: 0;
    left: calc(100% + 5px);
    min-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1001;
    animation: slideRight 0.2s ease;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modern-submenu-item {
    color: #333;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.modern-submenu-item:hover {
    background-color: #f0fff7;
    border-left-color: #1abc15;
    color: #1abc15;
    padding-left: 25px;
}

.modern-submenu-item .dot {
    width: 5px;
    height: 5px;
    background-color: #1abc15;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}
