/* Cart Icon and Dropdown Styles */
.cart-icon, .nav-cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* By default, cart dropdown is hidden */
.cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 320px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 15px;
    z-index: 9999;
    margin-top: 5px;
}

/* Show cart dropdown when it has .show class */
.cart-dropdown.show,
.cart-dropdown.active {
    display: block !important;
}

.cart-items {
    max-height: 320px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 15px 0;
    color: #6c757d;
}

.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px;
}

.cart-item-price {
    font-size: 13px;
    color: #6c7ae0;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    width: 20px;
    height: 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.quantity-input {
    width: 30px;
    height: 20px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.cart-item-remove {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #dc3545;
    padding: 0 5px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-weight: 600;
    border-top: 1px solid #eee;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-actions a {
    width: 100%;
    text-align: center;
} 