* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: #111;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
}

.nav-left, .nav-right {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-left a, .nav-right a {
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.nav-left a:hover, .nav-right a:hover {
  opacity: 0.6;
}

.nav-left a.active, .nav-right a.active {
  font-weight: 600;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: #111;
  letter-spacing: 3px;
  font-weight: 600;
  z-index: 1001;
}

/* Cart Container */
.cart-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 40px 160px;
  min-height: 100vh;
}

/* Cart Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.cart-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #111;
}

.back-link {
  font-size: 13px;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.6;
}

/* Cart Content */
.cart-content {
  margin-bottom: 40px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e5e5;
}

.item-image {
  flex: 0 0 120px;
  height: 120px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-name {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  margin-bottom: 5px;
}

.item-color {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.qty-label {
  font-size: 13px;
  color: #666;
  margin-right: 5px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  border-color: #111;
  background-color: #f5f5f5;
}

.qty-value {
  font-size: 14px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.item-price {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.price-amount {
  font-size: 16px;
  font-weight: 500;
  color: #111;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: #111;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.shop-link {
  display: inline-block;
  padding: 14px 30px;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background-color 0.2s ease;
}

.shop-link:hover {
  background-color: #333;
}

/* Cart Summary (Sticky Bottom) */
.cart-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 25px 40px;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cart-summary .summary-row {
  max-width: 800px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #111;
}

.summary-value {
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.checkout-btn {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
  padding: 18px;
  background-color: #111;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkout-btn:hover {
  background-color: #333;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.close-popup:hover {
  color: #111;
}

.popup-content h2 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 500;
  color: #111;
}

.popup-content p {
  color: #111;
  margin: 12px 0;
  font-size: 14px;
}

.vipps-info {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 !important;
  color: #111;
}

.vipps-instructions {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px !important;
}

.thanks {
  margin-top: 25px !important;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-left, .nav-right {
    gap: 15px;
  }

  .nav-left a, .nav-right a {
    font-size: 11px;
  }

  .logo {
    font-size: 14px;
  }

  .cart-container {
    padding: 100px 20px 180px;
  }

  .cart-header {
    margin-bottom: 30px;
  }

  .cart-title {
    font-size: 16px;
  }

  .back-link {
    font-size: 12px;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 15px;
  }

  .item-image {
    flex: 0 0 100px;
    height: 100px;
  }

  .item-details {
    flex: 1;
    min-width: 150px;
  }

  .item-name {
    font-size: 14px;
  }

  .item-price {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cart-summary {
    padding: 20px;
  }

  .checkout-btn {
    padding: 16px;
    font-size: 13px;
  }
}
