/**
 * Verdeno Garden Header Icons Enhancement
 * Bigger icons and better styling for cart/wishlist
 * 
 * @version 1.0.0
 */

/* ========================================
   HEADER ICON ADJUSTMENTS
======================================== */
.de-icon-counter {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s ease;
}

.de-icon-counter:hover {
    transform: scale(1.1);
}

/* Make icons bigger */
.de-icon-counter img {
    width: 28px !important;
    height: 28px !important;
    transition: all 0.3s ease;
}

/* Counter badge styling */
.de-icon-counter .d-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Hide counter when zero */
.de-icon-counter .d-counter.empty,
.de-icon-counter .d-counter:empty,
.de-icon-counter .d-counter:contains("0") {
    display: none;
}

/* Show counter when has items */
.de-icon-counter .d-counter.has-items {
    display: flex !important;
}

/* Wishlist specific styling */
.de-icon-counter.wishlist-icon .d-counter {
    background: linear-gradient(135deg, #ec407a 0%, #e91e63 100%);
}

/* Hover effects */
.de-icon-counter:hover .d-counter {
    transform: scale(1.2);
}

/* Pulse animation for new items */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.de-icon-counter .d-counter.pulse {
    animation: pulse 1s;
}

/* Bounce animation for cart */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-10px); 
    }
    60% { 
        transform: translateY(-5px); 
    }
}

#btn-cart.bounce {
    animation: bounce 0.6s ease;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .de-icon-counter img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .de-icon-counter .d-counter {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }
}