/* Essential Shopping Cart Styles */

/* Add to Cart Button Styles */
.add-to-cart-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn:disabled {
    background: #6b7280;
    cursor: default;
    transform: none;
}

.add-to-cart-btn .icon {
    font-size: 16px;
}

/* Ensure inline cart icon badge aligns with text */
.add-to-cart-btn .cart-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #1e40af;
    font-size: 12px;
    line-height: 1;
}

/* State when an item has been added */
.add-to-cart-btn.added {
    background: #059669 !important;
    cursor: default;
}

/* Cart Page Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

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

.cart-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-year {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 2px;
}

.cart-item-price {
    font-weight: 600;
    color: #059669;
    font-size: 14px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quantity Controls */
.cart-quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.cart-quantity-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.cart-quantity {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: #374151;
}

/* Remove Button */
.cart-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cart-remove-btn:hover {
    background-color: #fef2f2;
}
