/**
 * SkinClub Floating Cart Styles
 * Brand Colors: Pink #D89CA1, Black #000000, Gray #AAAAAA, White #FFFFFF
 */

/* ============================================
   FLOATING CART BUTTON
   ============================================ */

.skinclub-floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.floating-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60px;
    height: 60px;
    background: #D89CA1 !important; /* SkinClub Pink */
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.floating-cart-button:hover,
.floating-cart-button:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(216, 156, 161, 0.4);
    background: #c88b90 !important; /* Slightly darker pink on hover */
    text-decoration: none !important;
}

.floating-cart-button:active {
    transform: scale(1.05);
}

/* Cart Icon */
.cart-icon {
    color: #FFFFFF;
    stroke: #FFFFFF;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #000000 !important; /* Black badge */
    color: #FFFFFF !important;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Hide badge when cart is empty */
.cart-count[data-count="0"] {
    display: none;
}

/* Animation when count changes */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.cart-count.updated {
    animation: badge-pulse 0.3s ease;
}

/* Mobile adjustments - smaller size */
@media (max-width: 767px) {
    .skinclub-floating-cart {
        bottom: 80px; /* Position above burger menu area */
        right: 15px;
    }

    .floating-cart-button {
        width: 50px;
        height: 50px;
    }

    .cart-icon {
        width: 20px;
        height: 20px;
    }

    .cart-count {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
        line-height: 20px;
        top: -4px;
        right: -4px;
    }
}

/* Accessibility */
.floating-cart-button:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Prevent theme overrides */
.floating-cart-button,
.floating-cart-button:hover,
.floating-cart-button:focus,
.floating-cart-button:active,
.floating-cart-button:visited {
    color: #FFFFFF !important;
    text-decoration: none !important;
    border: none !important;
}
