﻿:root {
  --ink: #0b1f2a;
  --ocean: #007a96;
  --ocean-dark: #005c72;
  --mint: #d6f2f0;
  --sun: #ffb454;
  --sand: #f6efe6;
  --cream: #fff7ef;
  --shadow: 0 18px 40px rgba(3, 35, 46, 0.12);
  --ring: 0 0 0 3px rgba(0, 122, 150, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e9f7f8 0%, transparent 55%),
    radial-gradient(circle at 85% 10%, #fff2df 0%, transparent 50%),
    linear-gradient(160deg, #f7fafc 0%, #f1f5f9 100%);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 122, 150, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: auto auto -18vh -12vw;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 180, 84, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container.cart-shell {
  max-width: 1100px;
  padding: 48px 20px 80px;
  position: relative;
  z-index: 1;
}

h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cart-item {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(12, 60, 72, 0.08);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 0.6s ease both;
}

.cart-item:nth-child(2) { animation-delay: 0.05s; }
.cart-item:nth-child(3) { animation-delay: 0.1s; }
.cart-item:nth-child(4) { animation-delay: 0.15s; }

.cart-item img,
.cart-image.placeholder {
  width: 96px;
  height: 96px;
  border-radius: 18px;
}

.cart-item img {
  object-fit: cover;
  border: 1px solid rgba(11, 31, 42, 0.08);
}

.cart-image.placeholder {
  display: grid;
  place-items: center;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 2rem;
  color: #0f3b4a;
  background: linear-gradient(140deg, #e6f5f6, #fff5e8);
  border: 1px dashed rgba(0, 92, 114, 0.2);
}

.cart-info h3 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
}

.cart-info p {
  color: rgba(11, 31, 42, 0.7);
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.remove-btn {
  background: #fff0f0;
  color: #b3261e;
  border: 1px solid rgba(179, 38, 30, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.remove-btn:hover {
  transform: translateY(-1px);
  background: #ffe6e6;
  box-shadow: 0 10px 22px rgba(179, 38, 30, 0.2);
}

.remove-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-continue {
  background: linear-gradient(135deg, var(--ocean), var(--ocean-dark));
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  margin-top: 24px;
  box-shadow: 0 18px 34px rgba(0, 122, 150, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-continue:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(0, 122, 150, 0.32);
  text-decoration: none;
}

.btn-continue:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.cart-shell .btn-continue {
  margin-left: auto;
  margin-right: auto;
}

.cart-empty {
  background: var(--cream);
  border: 1px dashed rgba(11, 31, 42, 0.2);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cart-empty h4 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cart-empty p {
  margin: 0 0 18px;
  color: rgba(11, 31, 42, 0.7);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-box {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0fbff;
  border: 1px solid #d5eef7;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 163, 200, 0.2);
}

.cart-box span {
  background: var(--ocean);
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  position: absolute;
  top: -8px;
  right: -8px;
}

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

@media (max-width: 900px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .remove-btn {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}

@media (max-width: 640px) {
  .container.cart-shell {
    padding: 32px 16px 56px;
  }

  h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .cart-item {
    grid-template-columns: 1fr;
    padding: 18px;
    text-align: left;
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(3, 35, 46, 0.16);
  }

  .cart-item img,
  .cart-image.placeholder {
    width: 100%;
    height: 180px;
  }

  .cart-info {
    padding: 4px 2px 0;
  }

  .cart-info h3 {
    font-size: 1.1rem;
  }

  .btn-continue {
    width: 100%;
  }

  .remove-btn {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
  }
}

@media (max-width: 420px) {
  .cart-item img,
  .cart-image.placeholder {
    height: 150px;
  }

  .cart-empty {
    padding: 28px 20px;
  }
}
