/**
 * Cart Styles
 * Styles for cart notifications and cart count badge
 */

/* Cart Count Badge */
.minicart-btn,
.wishlist-btn {
    position: relative !important;
    display: inline-block;
}

.minicart-count,
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b6b;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    min-width: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Wishlist count badge - positioned exactly like cart count */
.wishlist-btn .wishlist-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background-color: #ff6b6b;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    min-width: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
}

.minicart-count:empty,
.cart-count:empty {
    display: none;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    font-size: 14px;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification-success {
    background-color: #28a745;
}

.cart-notification-error {
    background-color: #dc3545;
}

.cart-notification-info {
    background-color: #17a2b8;
}

/* Mini Cart Empty State */
.minicart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #777;
}

.minicart-empty p {
    margin: 0;
    font-size: 14px;
}

/* Cart Item Remove Button */
.cart-item-remove {
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #dc3545;
}

/* Customization Character Counter */
#customization-char-count.text-danger {
    color: #dc3545;
    font-weight: bold;
}

/* Wishlist Active State */
.qty-wishlist_btn.in-wishlist.active i.ion-android-favorite,
.wishlist-btn.in-wishlist.active i.ion-android-favorite {
    color: #ff6b6b;
}

.qty-wishlist_btn.in-wishlist.active:hover i.ion-android-favorite,
.wishlist-btn.in-wishlist.active:hover i.ion-android-favorite {
    color: #ff5252;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .cart-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

