/* Shopping Cart Styles */
.cart-section {
    padding: 3rem 0;
    background-color: #fcfbfe;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

.cart-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: none;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3ecfc;
}

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

@media (max-width: 576px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    .cart-item-image-wrapper {
        grid-row: span 2;
    }
    .cart-item-actions {
        grid-column: span 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed #f3ecfc;
        padding-top: 0.75rem;
    }
}

.cart-item-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f0ff;
    border: 1px solid #e9dffd;
    position: relative;
}

@media (max-width: 576px) {
    .cart-item-image-wrapper {
        width: 80px;
        height: 80px;
    }
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #b56bff;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.cart-item-title:hover {
    color: var(--primary);
    text-decoration: none;
}

.cart-item-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #b56bff;
    letter-spacing: 0.5px;
}

.cart-item-price {
    font-weight: 600;
    color: #6c757d;
}

/* Quantity controls styling */
.quantity-form {
    display: inline-flex;
    align-items: center;
}

.quantity-picker {
    display: flex;
    align-items: center;
    border: 2px solid #e0d5f0;
    border-radius: 50px;
    background: #fff;
    overflow: hidden;
}

.quantity-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #5a4b6e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #f3ecfc;
    color: var(--primary);
}

.quantity-input {
    width: 40px;
    border: none;
    text-align: center;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
    background: transparent;
    padding: 0 !important;
    margin: 0 !important;
}

.quantity-input:focus {
    outline: none;
    box-shadow: none;
}

/* Hide spin buttons */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.cart-item-subtotal {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 90px;
    text-align: right;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #a493b8;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Order Summary */
.summary-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: none;
    position: sticky;
    top: 2rem;
}

.summary-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f3ecfc;
    padding-bottom: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #6c757d;
}

.summary-row.total {
    margin-top: 1.5rem;
    border-top: 1px solid #f3ecfc;
    padding-top: 1.5rem;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.35rem;
}

.summary-row.total .total-price {
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #BC9257 0%, #B58646 100%);
    color: white;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 146, 87, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 146, 87, 0.6);
    color: white;
}

.continue-shopping-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.continue-shopping-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Empty Cart Design */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(181, 107, 255, 0.2));
}

.empty-cart h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.empty-cart p {
    color: #6c757d;
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

.browse-rentals-btn {
    background: var(--primary);
    color: white;
    padding: 0.85rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(181, 107, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.browse-rentals-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 107, 255, 0.5);
    text-decoration: none;
}
