/* ================================= 
   CART ICON STYLES
==================================== */

.cart-icon {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem;
}

.cart-icon:hover {
    color: #4ad2e2;
}

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

@media (max-width: 767px) {
    .cart-icon {
        margin-left: 250px; /* Adjust this value as needed */
    }
}

@media (min-width: 980px) {
    .cart-icon {
        margin-right: 250px; /* Adjust this value as needed */
    }
}

/* ================================= 
   SIDE CART STYLES
==================================== */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px; /* Initially hidden */
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1200;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

/* Cart Header */
.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.cart-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    line-height: 1;
    margin-right: 1rem;
}

/* Cart Body */
.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty-message {
    text-align: center;
    color: #64748b;
    margin-top: 3rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #4ad2e2;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

/* More specific selector for the remove button */
.cart-item-quantity .remove-btn {
    background: none !important;
    border: none !important;
    color: #94a3b8; /* A neutral gray color */
    font-size: 1rem; /* Adjusted for better alignment */
    cursor: pointer;
    margin-left: auto; /* Pushes the button to the far right */
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.cart-item-quantity .remove-btn:hover {
    color: #4ad2e2; /* Theme color on hover */
}

.item-quantity {
    font-weight: 500;
}

/* Cart Footer */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #4ad2e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
