* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: #f5f5f5;
}

nav {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  letter-spacing: 3px;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff6b35;
}

.cart-icon,
.user-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b35;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.cart-page {
  padding: 3rem 5%;
  min-height: 70vh;
}

.back-btn {
  background: #1e3c72;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  margin-bottom: 2rem;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.back-btn:hover {
  background: #2a5298;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1e3c72;
}

.cart-container {
  max-width: 1000px;
  margin: 0 auto;
}

.cart-items {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

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

.item-details {
  flex: 1;
}

.item-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1e3c72;
  margin-bottom: 0.5rem;
}

.item-quantity {
  color: #666;
  font-size: 0.9rem;
}

.item-price {
  font-size: 1.3rem;
  color: #ff6b35;
  font-weight: bold;
  margin-right: 1rem;
}

.remove-btn {
  background: #ff3b3b;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.remove-btn:hover {
  background: #e63232;
}

.cart-summary {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.summary-row:last-child {
  border-bottom: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e3c72;
  margin-top: 1rem;
}

.checkout-btn {
  width: 100%;
  background: #ff6b35;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s;
}

.checkout-btn:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-cart h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #666;
}

.empty-cart p {
  color: #999;
  margin-bottom: 2rem;
}

.shop-now-btn {
  background: #1e3c72;
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.shop-now-btn:hover {
  background: #ff6b35;
}

footer {
  background: #1e3c72;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}
