/* ======================== CART DROPDOWN - SIMPLE STYLES ======================== */

/* Cart overlay */
#cartOverlay {
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* Cart dropdown - ensure inline styles work */
.cart-dropdown {
    position: fixed !important;
    background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 100%);
    border: 2px solid #9d4edd;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(157, 78, 221, 0.3);
    flex-direction: column;
    z-index: 10001 !important;
    max-height: 500px;
    overflow: hidden;
    width: 350px;
    top: 60px;
    right: 15px;
    left: auto;
}

/* Explicitly allow display: flex from inline styles */
.cart-dropdown[style*="display: flex"] {
    display: flex !important;
}

/* Explicitly allow display: none from inline styles */
.cart-dropdown[style*="display: none"] {
    display: none !important;
}

/* Mobile responsive positioning */
@media (max-width: 768px) {
    .cart-dropdown {
        width: calc(100vw - 30px);
        max-width: 350px;
        right: 15px;
        left: 15px;
        top: 60px;
    }
}

@media (max-width: 480px) {
    .cart-dropdown {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        max-height: 60vh;
    }
}

/* Always show close button */
.cart-close-btn {
    display: inline-block !important;
}

.cart-dropdown #cartItemsContainer {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 0;
}

/* Scrollbar styling for cart items */
.cart-dropdown #cartItemsContainer::-webkit-scrollbar {
    width: 6px;
}

.cart-dropdown #cartItemsContainer::-webkit-scrollbar-track {
    background: rgba(157, 78, 221, 0.1);
}

.cart-dropdown #cartItemsContainer::-webkit-scrollbar-thumb {
    background: #9d4edd;
    border-radius: 3px;
}

.cart-dropdown #cartItemsContainer::-webkit-scrollbar-thumb:hover {
    background: #bb86fc;
}

/* Cart item styling */
.cart-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 13px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: #bb86fc;
    margin-bottom: 4px;
    word-break: break-word;
}

.cart-item-price {
    color: #9d4edd;
    font-size: 12px;
}

.cart-item-remove {
    background: #ff4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

/* Empty cart message */
.cart-empty-message {
    padding: 30px 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Cart footer buttons */
.cart-dropdown-footer {
    padding: 12px 15px;
    border-top: 1px solid rgba(157, 78, 221, 0.3);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cart-dropdown-footer button,
.cart-dropdown-footer a {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-dropdown-footer button {
    background: #ff4444;
    color: white;
}

.cart-dropdown-footer button:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

.cart-dropdown-footer a {
    background: #9d4edd;
    color: white;
}

.cart-dropdown-footer a:hover {
    background: #bb86fc;
    transform: translateY(-2px);
}
