/* AURELIA STUDIOS - Cart Page Specific Styles (assets/css/cart.css) */

.cart-page-layout {
    padding-top: 150px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 80px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.cart-items-section {
    flex: 2 1 60%;
    min-width: 400px;
}

.cart-summary-section {
    flex: 1 1 30%;
    min-width: 300px;
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--glass-border);
    height: fit-content; /* Only takes up necessary height */
    position: sticky;
    top: 100px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    color: var(--gold-accent);
}

/* Individual Cart Item Styling */
.cart-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}
.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex-grow: 1;
}
.item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.item-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.item-price {
    font-weight: bold;
    color: #fff;
}

.item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}
.item-quantity input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px 0;
}
.item-quantity button {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.item-quantity button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.item-remove {
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 20px;
    font-size: 1.1rem;
}
.item-remove:hover {
    color: var(--gold-accent);
}

/* Cart Summary Styling */
.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1rem;
}
.summary-line.total {
    font-size: 1.3rem;
    font-weight: bold;
    border-top: 1px solid var(--glass-border);
    margin-top: 15px;
    padding-top: 15px;
    color: var(--gold-accent);
}

.summary-section .btn-primary {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 15px;
}

/* Empty Cart State */
.empty-cart-message {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}
.empty-cart-message h3 {
    color: var(--gold-accent);
    margin-bottom: 20px;
}
.empty-cart-message a {
    margin-top: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .cart-page-layout {
        flex-direction: column;
        padding-top: 100px;
    }
    .cart-summary-section {
        position: relative;
        top: 0;
    }
    .cart-item {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .item-details {
        min-width: 150px;
    }
    .item-quantity {
        margin-right: auto;
    }
    .item-remove {
        order: 3; /* Move remove icon down on mobile */
        margin: 0;
    }
}