/* ========================================
   CART SYSTEM STYLES
   Matching Sickboy design aesthetic
   ======================================== */

/* Cart Icon Container */
.cart-icon-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.cart-icon {
    width: 40px;
    height: 40px;
    background: black;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Cart Counter Badge */
.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid black;
}

/* Cart Dropdown */
.cart-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: black;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.cart-dropdown.show {
    display: flex;
}

/* Cart Header */
.cart-header {
    padding: 1rem;
    border-bottom: 2px solid white;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

/* Cart Empty Message */
.cart-empty {
    padding: 2rem;
    color: white;
    text-align: center;
    display: none;
}

/* Cart Items Container */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 300px;
}

.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: #333;
}

.cart-items::-webkit-scrollbar-thumb {
    background: white;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
    position: relative;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-item-name {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.cart-item-price {
    color: white;
    font-size: 0.85rem;
}

/* Quantity Controls */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: white;
    color: black;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #ddd;
    transform: scale(1.1);
}

.cart-item-quantity span {
    color: white;
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

/* Remove Button */
.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: red;
    transform: scale(1.2);
}

/* Bundle Suggestion */
.cart-bundle-suggestion {
    background: #222;
    border: 2px solid #ffd700;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.bundle-text {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.bundle-add-btn {
    background: #ffd700;
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.bundle-add-btn:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

/* Cart Total */
.cart-total {
    padding: 1rem;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* Checkout Button */
.cart-checkout-btn {
    background: black;
    color: white;
    border: 2px solid white;
    padding: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cart-checkout-btn:hover {
    background: white;
    color: black;
    transform: scale(1.02);
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: white;
    color: black;
    border: 2px solid black;
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.add-to-cart-btn:hover {
    background: black;
    color: white;
    border-color: white;
    transform: scale(1.05);
}

.add-to-cart-btn.disabled {
    background: #666;
    color: #ccc;
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: black;
    color: white;
    padding: 1rem 1.5rem;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cart-icon-container {
        top: 10px;
        right: 10px;
    }

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

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

    .cart-dropdown {
        top: 55px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 350px;
    }

    .cart-notification {
        top: 55px;
        right: 10px;
        left: 10px;
        width: auto;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
}
