@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0bc6eb;
  --secondary: #134872;
  --background-grad: linear-gradient(135deg, #4faaff 0%, #88e0fa 100%);
  --text-dark: #1a2940;
  --white: #ffffff;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  min-height: 100vh;
  background: var(--background-grad);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
  padding: 0 20px;
}

.logo img {
  height: 48px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(11, 198, 235, 0.08);
}

.cart-page {
  flex: 1;
  padding: 40px 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cart-container {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px -10px rgba(0, 80, 120, 0.15);
  animation: fadein 0.8s ease;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-container h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary);
  font-weight: 800;
  font-size: 32px;
}

.cart-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eef2f6;
  padding: 20px 0;
}

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

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 20px;
  background: #f8fbfe;
  padding: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.cart-item-meta {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 12px;
}

.cart-actions button {
  margin-right: 8px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: #edf8ff;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}

.cart-actions button:hover {
  background: var(--primary);
  color: #fff;
}

.cart-actions .remove-btn {
  background: #ffebeb;
  color: #ff4d4d;
}

.cart-actions .remove-btn:hover {
  background: #ff4d4d;
  color: #fff;
}

.cart-summary {
  margin-top: 30px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  border-top: 2px solid #eef2f6;
  padding-top: 20px;
}

.cart-summary button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 50px;
  background: #ff4d4d;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.cart-summary button:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 77, 77, 0.4);
}

footer {
  background: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #8898aa;
  margin-top: auto;
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 10px; }
  .nav-links { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .cart-container { padding: 20px; }
  .cart-item { flex-direction: column; text-align: center; }
  .cart-item-image { margin: 0 0 10px 0; }
  .cart-actions { display: flex; justify-content: center; gap: 8px; }
}

#cart-count {
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 14px;
  margin-left: 8px;
  font-weight: 700;
  display: inline-block;
  vertical-align: middle;
  min-width: 10px;
  text-align: center;
}
