* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 40px;
}

.cart-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.cart-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
}

.product-count {
    color: #666;
    font-weight: 400;
}

.clear-cart {
    color: #ff4444;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-cart:hover {
    text-decoration: underline;
}

.cart-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 40px;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}

.table-header span {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.product-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 40px;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-image {
    width: 80px;
    height: 80px;
    background: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.product-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.product-details p {
    color: #666;
    font-size: 14px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #374151;
}

.quantity-btn:hover {
    background: #f9fafb;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 500;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    color: #cc0000;
}

.summary-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.promo-section {
    margin-bottom: 32px;
}

.promo-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.promo-input-group {
    display: flex;
    gap: 12px;
}

.promo-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
}

.promo-input::placeholder {
    color: #9ca3af;
}

.apply-btn {
    padding: 12px 24px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.apply-btn:hover {
    background: #333;
}

.order-summary {
    margin-bottom: 32px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.summary-label {
    color: #666;
    font-size: 16px;
}

.summary-value {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

.discount {
    color: #10b981;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #333;
}

.promo-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

.promo-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.promo-content p {
    color: #a0aec0;
    margin-bottom: 24px;
}

.shop-btn {
    padding: 12px 24px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.shop-btn:hover {
    background: white;
    color: #1a1a1a;
}

.promo-image {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .table-header,
    .product-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-info {
        grid-column: 1;
    }

    .quantity-controls {
        justify-self: start;
    }

    .promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .promo-input-group {
        flex-direction: column;
    }
}