/* TEMPORARILY DISABLED - uncomment when Stripe checkout is fixed */
.cart-icon,
.cart-drawer,
.cart-overlay,
.add-to-cart-btn {
    display: none !important;
}

/* Cart Icon in Header */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    transition: transform 0.2s ease;
}

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

.cart-icon.cart-added {
    animation: cart-bounce 0.3s ease;
}

@keyframes cart-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary, #FFD93D);
    color: var(--color-black, #000);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--color-black, #0a0a0a);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white, #fff);
}

.cart-close {
    background: none;
    border: none;
    color: var(--color-white, #fff);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cart-close:hover {
    opacity: 1;
}

/* Cart Items Container */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white, #fff);
}

.cart-item-price {
    font-size: 13px;
    color: var(--color-grey, #888);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    color: var(--color-white, #fff);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--color-white, #fff);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-grey, #888);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

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

/* Empty Cart State */
.cart-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--color-grey, #888);
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty-text {
    font-size: 16px;
}

/* Cart Footer */
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-subtotal-label {
    font-size: 16px;
    color: var(--color-white, #fff);
}

.cart-subtotal-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white, #fff);
}

.cart-vat-note {
    font-size: 12px;
    color: var(--color-grey, #888);
    margin-bottom: 16px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--color-primary, #FFD93D);
    color: var(--color-black, #000);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-checkout-btn:hover:not(:disabled) {
    background: #ffe566;
    transform: translateY(-1px);
}

.cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-secure-note {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-grey, #888);
}

/* Add to Cart Button */
.add-to-cart-btn {
    padding: 14px 28px;
    background: var(--color-primary, #FFD93D);
    color: var(--color-black, #000);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #ffe566;
    transform: translateY(-2px);
}

.add-to-cart-btn.crayola {
    background: var(--color-crayola, #FF6B6B);
    color: var(--color-white, #fff);
}

.add-to-cart-btn.crayola:hover {
    background: #ff8585;
}

.add-to-cart-btn.sunglow {
    background: var(--color-sunglow, #FFD93D);
    color: var(--color-black, #000);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
    }

    .cart-item {
        grid-template-columns: 50px 1fr;
        gap: 8px;
    }

    .cart-item-quantity {
        grid-column: 2;
    }

    .cart-item-remove {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .cart-item {
        position: relative;
        padding-right: 32px;
    }
}
