*{
  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;
  background: #f8f9fa;
}

.menu-toggle {
  display: none;
}

.links a,
.icons a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
}

.links a:hover,
.icons a:hover {
  color: #007bff;
}

.icons svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.icons a:hover svg {
  transform: scale(1.1);
}

.shopping-cart {
  flex: 1;
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

.cart-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-list {
  flex: 1;
}

/* Mejorado el diseño de las tarjetas de productos con sombras más elegantes y transiciones */
.product-item {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Mejorado el botón de eliminar con hover effect */
.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  margin-right: 24px;
  transition: all 0.3s ease;
  opacity: 0.6;
  padding: 8px;
  border-radius: 8px;
}

.delete-btn:hover {
  opacity: 1;
  background: #fee;
  transform: scale(1.1);
}

/* Mejorado el contenedor de imagen con sombra sutil */
.product-image {
  width: 120px;
  height: 120px;
  margin-right: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.product-item:hover .product-image {
  transform: scale(1.05);
}

.product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.product-name {
  font-weight: 600;
  font-size: 20px;
  color: #2c3e50;
  letter-spacing: -0.3px;
}

.product-price {
  font-weight: 700;
  font-size: 24px;
  color: #007bff;
  white-space: nowrap;
}

/* Mejorado el control de cantidad con botones más elegantes */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8f9fa;
  padding: 8px 16px;
  border-radius: 12px;
}

.quantity-btn {
  background: white;
  border: 1px solid #e9ecef;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #495057;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.quantity-btn:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity {
  font-size: 18px;
  font-weight: 600;
  width: 40px;
  text-align: center;
  color: #2c3e50;
}

/* Mejorado el resumen del carrito con diseño más limpio y elegante */
.cart-summary {
  background: linear-gradient(135deg, #a8d5ff 0%, #8ec5fc 100%);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: 0 8px 32px rgba(168, 213, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mascot {
  position: relative;
  height: 120px;
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

/* Mejorada la imagen de la mascota con sombra más elegante */
.mascot-image {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: -90px;
  border: 4px solid white;
  transition: transform 0.3s ease;
}

.mascot-image:hover {
  transform: scale(1.05) rotate(5deg);
}

.mascot-image img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
}

.summary-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

/* Mejoradas las opciones del resumen con mejor diseño */
.summary-options label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.8);
  padding: 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.summary-options label:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(4px);
}

.summary-options input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #007bff;
}

.total {
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 32px;
  color: #2c3e50;
  padding: 20px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

/* Mejorado el botón de pagar con diseño más elegante y hover effect */
.pay-button {
  width: 100%;
  padding: 20px;
  background: white;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  color: #2c3e50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.pay-button:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
}

.pay-button:active {
  transform: translateY(0);
}

/* 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: 60px 20px;
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  width: 100%;
}

.robot-mascot {
  flex-shrink: 0;
}

.robot-image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Mejorada la tarjeta de progreso con diseño más elegante */
.progress-card {
  background: linear-gradient(135deg, #a8d5ff 0%, #7cc7ff 100%);
  border-radius: 28px;
  padding: 60px 50px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  max-width: 550px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.progress-subtitle {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.5px;
}

.progress-card p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Mejorados los botones de progreso con diseño más elegante */
.progress-btn {
  background: white;
  color: #2c3e50;
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.3px;
}

.progress-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
}

.progress-btn:active {
  transform: translateY(-1px);
}

.progress-btn.primary {
  background: #007bff;
  color: white;
}

.progress-btn.primary:hover {
  background: #0056b3;
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
}

.progress-btn.secondary {
  background: #6c757d;
  color: white;
}

.progress-btn.secondary:hover {
  background: #545b62;
  box-shadow: 0 8px 32px rgba(108, 117, 125, 0.3);
}

.divider {
  display: flex;
  align-items: center;
  margin: 12px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.divider span {
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
}

/* Responsive Design */
@media (min-width: 992px) {
  .cart-container {
    flex-direction: row;
  }

  .product-list {
    flex: 1;
    margin-right: 40px;
  }

  .cart-summary {
    width: 480px;
    align-self: flex-start;
    position: sticky;
    top: 20px;
  }
}

@media (max-width: 1024px) {
  .progress-container {
    flex-direction: column;
    gap: 40px;
  }

  .robot-image {
    width: 140px;
    height: 140px;
  }

  .progress-card {
    padding: 50px 40px;
  }

  .progress-subtitle {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .links,
  .icons {
    display: none;
  }

  .shopping-cart {
    padding: 40px 20px;
  }

  .title {
    font-size: 32px;
    text-align: center;
  }

  .product-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .product-info {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .quantity-control {
    align-self: center;
  }

  .cart-summary {
    padding: 30px;
  }

  .mascot-image {
    width: 120px;
    height: 120px;
    top: -70px;
  }

  .summary-options label {
    font-size: 15px;
  }

  .total {
    font-size: 28px;
  }

  .pay-button {
    font-size: 18px;
    padding: 18px;
  }

  .progress-container {
    padding: 30px 20px;
  }

  .robot-image {
    width: 120px;
    height: 120px;
  }

  .progress-card {
    padding: 40px 30px;
  }

  .progress-subtitle {
    font-size: 28px;
  }

  .progress-card p {
    font-size: 16px;
  }

  .progress-btn {
    padding: 14px 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .shopping-cart {
    padding: 30px 16px;
  }

  .title {
    font-size: 28px;
  }

  .product-item {
    padding: 20px;
  }

  .product-image {
    width: 100px;
    height: 100px;
  }

  .product-name {
    font-size: 18px;
  }

  .product-price {
    font-size: 20px;
  }

  .cart-summary {
    padding: 24px;
  }

  .mascot-image {
    width: 100px;
    height: 100px;
    top: -60px;
  }

  .summary-options label {
    font-size: 14px;
    padding: 12px;
  }

  .total {
    font-size: 24px;
  }

  .pay-button {
    font-size: 17px;
    padding: 16px;
  }

  .empty-cart-section,
  .login-section {
    min-height: 50vh;
    padding: 30px 16px;
  }

  .robot-image {
    width: 100px;
    height: 100px;
  }

  .progress-card {
    padding: 35px 24px;
  }

  .progress-subtitle {
    font-size: 24px;
  }

  .progress-card p {
    font-size: 15px;
  }

  .progress-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}
