* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.menu-toggle {
  display: none;
}

.links a,
.icons a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
}

.icons svg {
  width: 24px;
  height: 24px;
}

.shopping-cart {
  flex: 1;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
}

.cart-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-list {
  flex: 1;
}

.product-item {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  margin-right: 20px;
}

.product-image {
  width: 100px;
  height: 100px;
  margin-right: 25px;
  background-color: #f0f0f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-name {
  font-weight: 500;
  font-size: 24px;
}

.product-price {
  font-weight: bold;
  font-size: 24px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-btn {
  background-color: #f0f0f0;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity {
  font-size: 20px;
  width: 40px;
  text-align: center;
}

.cart-summary {
  background-color: #a8d5ff;
  border-radius: 20px;
  padding: 30px;
  position: relative;
}

.mascot {
  position: relative;
  height: 120px;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.mascot-image {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: -80px;
}

.mascot-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.summary-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.summary-options label {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  cursor: pointer;
  font-size: 20px;
}

.summary-options input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.total {
  font-weight: bold;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 28px;
}

.pay-button {
  width: 100%;
  padding: 20px;
  background-color: white;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 24px;
}

.pay-button:hover {
  background-color: #f0f0f0;
}

/* Estilos para carrito vacío y sin sesión */
.empty-cart-section,
.login-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  width: 100%;
}

.robot-mascot {
  flex-shrink: 0;
}

.robot-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.progress-card {
  background: linear-gradient(135deg, #a8d5ff 0%, #7cc7ff 100%);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  max-width: 500px;
  width: 100%;
}

.progress-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.progress-subtitle {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-card p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.progress-btn {
  background: white;
  color: #2c3e50;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.progress-btn.primary {
  background: #007bff;
  color: white;
}

.progress-btn.primary:hover {
  background: #0056b3;
}

.progress-btn.secondary {
  background: #6c757d;
  color: white;
}

.progress-btn.secondary:hover {
  background: #545b62;
}

.divider {
  display: flex;
  align-items: center;
  margin: 10px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.divider span {
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Responsive Design */
@media (min-width: 992px) {
  .cart-container {
    flex-direction: row;
  }

  .product-list {
    flex: 1;
    margin-right: 40px;
  }

  .cart-summary {
    width: 450px;
    align-self: flex-start;
  }
}

@media (max-width: 1024px) {
  .progress-container {
    flex-direction: column;
    gap: 30px;
  }

  .robot-image {
    width: 120px;
    height: 120px;
  }

  .progress-card {
    padding: 40px 30px;
  }

  .progress-subtitle {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .links,
  .icons {
    display: none;
  }

  .shopping-cart {
    padding: 30px 20px;
  }

  .title {
    font-size: 28px;
    text-align: center;
  }

  .product-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }

  .product-info {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .quantity-control {
    align-self: center;
  }

  .cart-summary {
    padding: 25px;
  }

  .mascot-image {
    width: 100px;
    height: 100px;
    top: -60px;
  }

  .summary-options label {
    font-size: 16px;
  }

  .total {
    font-size: 24px;
  }

  .pay-button {
    font-size: 20px;
    padding: 18px;
  }

  .progress-container {
    padding: 20px;
  }

  .robot-image {
    width: 100px;
    height: 100px;
  }

  .progress-card {
    padding: 30px 25px;
  }

  .progress-subtitle {
    font-size: 24px;
  }

  .progress-card p {
    font-size: 16px;
  }

  .progress-btn {
    padding: 12px 25px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .shopping-cart {
    padding: 20px 15px;
  }

  .title {
    font-size: 24px;
  }

  .product-item {
    padding: 15px;
  }

  .product-image {
    width: 80px;
    height: 80px;
  }

  .product-name {
    font-size: 18px;
  }

  .product-price {
    font-size: 18px;
  }

  .cart-summary {
    padding: 20px;
  }

  .mascot-image {
    width: 80px;
    height: 80px;
    top: -50px;
  }

  .summary-options label {
    font-size: 14px;
  }

  .total {
    font-size: 20px;
  }

  .pay-button {
    font-size: 18px;
    padding: 15px;
  }

  .empty-cart-section,
  .login-section {
    min-height: 50vh;
    padding: 20px 10px;
  }

  .robot-image {
    width: 80px;
    height: 80px;
  }

  .progress-card {
    padding: 25px 20px;
  }

  .progress-subtitle {
    font-size: 20px;
  }

  .progress-card p {
    font-size: 14px;
  }

  .progress-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
