/**
 * Shopping Cart Shortcode Styles
 * 
 * @package WooCommerce_Book_Fields
 */

/* Base cart icon styles */
.wcb-cart-icon {
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 17px;
}

.wcb-cart-icon:hover {
    /* transform: scale(1.05); */
}

.wcb-cart-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.wcb-cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* Icon styles */
.wcb-icon {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Size variations */
.wcb-cart-icon-small .wcb-icon {
    width: 20px;
    height: 20px;
}

.wcb-cart-icon-medium .wcb-icon {
    width: 24px;
    height: 24px;
}

.wcb-cart-icon-large .wcb-icon {
    width: 32px;
    height: 32px;
}

/* Cart count badge */
.wcb-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    padding: 0 4px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    transform: scale(1);
}

/* Hide count when empty */
.wcb-cart-count[data-count="0"] {
    opacity: 0;
    transform: scale(0);
}

/* Animation for count updates - DISABLED */
.wcb-cart-count.updating {
    /* animation: cartCountPulse 0.6s ease-in-out; */
}

@keyframes cartCountPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Hover effects - DISABLED */
.wcb-cart-icon:hover .wcb-cart-count {
    background: #c0392b;
    /* transform: scale(1.1); */
}

/* Color variations */
.wcb-cart-icon.primary {
    color: #3498db;
}

.wcb-cart-icon.secondary {
    color: #95a5a6;
}

.wcb-cart-icon.success {
    color: #27ae60;
}

.wcb-cart-icon.danger {
    color: #e74c3c;
}

.wcb-cart-icon.warning {
    color: #f39c12;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .wcb-cart-icon {
        color: #ecf0f1;
    }
    
    .wcb-cart-count {
        background: #e74c3c;
        color: white;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wcb-cart-icon-medium .wcb-icon {
        width: 20px;
        height: 20px;
    }
    
    .wcb-cart-icon-large .wcb-icon {
        width: 24px;
        height: 24px;
    }
    
    .wcb-cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

/* Loading state - DISABLED */
.wcb-cart-icon.loading .wcb-icon {
    /* animation: cartIconSpin 1s linear infinite; */
}

@keyframes cartIconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Accessibility */
.wcb-cart-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Screen reader only text */
.wcb-cart-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
