/* Cart styles */
.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cart-icon {
    color: white;
    font-size: 1.5rem;
    display: flex;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4d4d;
    color: white;
    font-size: 12px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cart-modal-content {
    background-color: #fff;
    margin: 10vh auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.close-cart {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.cart-items-list {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-name {
    font-weight: 500;
}

.cart-item-price {
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 10px;
}

.remove-item-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.cart-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cart-total-section {
    font-weight: bold;
    font-size: 18px;
}

.clear-cart-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Cart Icon */
.cart-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Add to cart confirmation */
.add-to-cart-btn.added,
.add-to-cart-btn-plp.added {
    background-color: #4caf50;
    color: white;
}

/* Cart item image */
.cart-item-image {
    margin-right: 15px;
}

.cart-item-image img {
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Cart action buttons */
.cart-action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.view-basket-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Updated cart item layout */
.cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
