/* Cart functionality styles */

.cart-badge {
    display: none;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    text-align: center;
    line-height: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
    position: absolute;
    top: -4px;
    left: -8px;
}

.cart-badge.active {
    display: block;
}

.cart-link {
    position: relative;
    display: inline-block;
}

.btn-add-to-cart {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-add-to-cart:hover:not(:disabled) {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.btn-add-to-cart:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-cart-quantity {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-cart-quantity:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.quantity-selector label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background-color: #ecf0f1;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: #d5dbdb;
}

.qty-input {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 1rem;
    padding: 0.5rem;
}

.qty-input:focus {
    outline: none;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-table thead {
    background-color: #f5f7fa;
    border-bottom: 2px solid #ecf0f1;
}

.cart-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
}

.cart-item-dates {
    font-size: 0.9rem;
    color: #7f8c8d;
}

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

.cart-qty-btn {
    background-color: #ecf0f1;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.cart-qty-btn:hover {
    background-color: #d5dbdb;
}

.cart-qty-input {
    width: 45px;
    text-align: center;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 0.35rem;
    font-size: 0.9rem;
}

.cart-remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

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

.cart-summary {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-left: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.cart-summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-summary-row.total .price {
    color: #27ae60;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.date-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.date-input {
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
}
