/* Cart Page Styles */
.cart-page {
    padding: 40px 0 80px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

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

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.item-variant {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.item-price {
    font-size: 14px;
    color: #2C5F2D;
    font-weight: 500;
}

.item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-qty button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.item-qty span {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.item-total {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.item-remove {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.item-remove:hover {
    color: #c33;
}

/* Summary */
.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.summary-row.total {
    border-bottom: none;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #1a1a1a;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 16px;
    background: #2C5F2D;
    color: white;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin: 20px 0 10px;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #1e4520;
}

.btn-continue {
    display: block;
    width: 100%;
    padding: 12px;
    background: none;
    color: #666;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-continue:hover {
    border-color: #2C5F2D;
    color: #2C5F2D;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 15px;
    }
    
    .item-total,
    .item-remove {
        display: none;
    }
    
    .cart-summary {
        position: static;
    }
}
