* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.cart-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.cart-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-header h1 i {
    color: #667eea;
}

.cart-count {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1rem;
    color: #e74c3c;
    font-weight: 500;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.25rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #667eea;
    color: white;
}

.qty-input {
    width: 60px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.item-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    min-width: 120px;
    text-align: right;
}

.item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: #fee;
    color: #e74c3c;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.item-remove:hover {
    background: #e74c3c;
    color: white;
}

/* Cart Summary */
.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1.05rem;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 1rem 0;
}

.total-row {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    padding: 1rem 0;
}

.total-price {
    color: #e74c3c;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-continue {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: white;
    color: #667eea;
    text-align: center;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: #f8f9fa;
}

/* Empty Cart */
.cart-empty {
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.cart-empty i {
    font-size: 5rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.cart-empty p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-shop-now {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-shop-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-header h1 {
        font-size: 1.5rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .item-image {
        width: 80px;
        height: 80px;
    }

    .item-quantity,
    .item-total {
        grid-column: 2;
    }

    .item-remove {
        grid-column: 2;
        justify-self: end;
    }

    .item-quantity {
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 0 1rem;
    }

    .cart-header,
    .cart-item,
    .cart-summary {
        padding: 1rem;
    }

    .cart-header h1 {
        font-size: 1.3rem;
    }
}
