:root {
  --primary: #0f766e;
  --primary-dark: #0a5c56;
  --accent: #14b8a6;
  --background: #f8fafc;
  --surface: #ffffff;
  --ink: #102a2a;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 118, 110, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Manrope", Arial, sans-serif;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: calc(100% - 28px);
  max-width: 1280px;
  margin-inline: auto;
}

.wishlist-shell {
  padding-bottom: 45px;
}

.breadcrumb {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.breadcrumb svg {
  width: 12px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: #334155;
}

.wishlist-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 22px;
}

.wishlist-heading__eyebrow {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wishlist-heading h1 {
  margin: 5px 0 4px;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.04em;
}

.wishlist-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.wishlist-heading > a {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.wishlist-heading > a svg {
  width: 15px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wishlist-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(15, 118, 110, 0.07);
  transition: opacity 220ms ease, transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wishlist-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.11);
  transform: translateY(-3px);
}

.wishlist-card.is-removing {
  opacity: 0;
  transform: scale(0.95);
}

.wishlist-card__image {
  position: relative;
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(145deg, #f8fffd, #ecfdf9);
  border-bottom: 1px solid #edf7f5;
}

.wishlist-card__image > a {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.wishlist-card__image > a > svg {
  width: 75%;
  height: 75%;
}

.discount {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  padding: 4px 6px;
  color: #fff;
  background: #dc2626;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 800;
}

.remove-icon {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #dc2626;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #fecaca;
  border-radius: 9px;
  cursor: pointer;
}

.remove-icon:hover {
  color: #fff;
  background: #dc2626;
}

.remove-icon svg {
  width: 17px;
  fill: currentColor;
}

.wishlist-card__body {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 11px;
}

.brand-label {
  color: var(--primary);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wishlist-card h2 {
  min-height: 48px;
  margin: 5px 0 7px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.wishlist-card h2 a:hover {
  color: var(--primary);
}

.rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}

.rating span {
  color: #f59e0b;
  font-size: 8px;
  letter-spacing: -0.08em;
}

.rating small {
  color: var(--muted);
  font-size: 6px;
  font-weight: 600;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.price strong {
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
}

.price strong small {
  font-size: 6px;
}

.price del {
  color: #94a3b8;
  font-size: 7px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.badges span {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  color: var(--primary-dark);
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 5px;
  font-size: 5px;
  font-weight: 800;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.card-actions button {
  min-height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.add-cart {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.16);
}

.add-cart:hover {
  background: var(--primary-dark);
}

.add-cart.is-added {
  color: #15803d;
  background: #f0fdf4;
  border-color: #86efac;
  box-shadow: none;
}

.remove-text {
  color: #b91c1c;
  background: #fff7f7;
  border: 1px solid #fecaca;
}

.wishlist-empty {
  padding: 55px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(15, 118, 110, 0.07);
  text-align: center;
}

.wishlist-empty__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  color: var(--primary);
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 50%;
}

.wishlist-empty__icon svg {
  width: 34px;
}

.wishlist-empty h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.wishlist-empty p {
  max-width: 410px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
}

.wishlist-empty > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #fff;
  background: var(--primary);
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
  font-size: 9px;
  font-weight: 800;
}

.wishlist-assurance {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.wishlist-assurance > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.wishlist-assurance svg {
  width: 20px;
  color: var(--primary);
}

.wishlist-assurance strong {
  font-size: 8px;
}

.wishlist-assurance small {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 6px;
  font-weight: 600;
}

.wishlist-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 22px;
  max-width: calc(100% - 30px);
  padding: 11px 16px;
  color: #fff;
  background: #102a2a;
  border-radius: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.wishlist-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 620px) {
  .container {
    width: calc(100% - 40px);
  }

  .wishlist-heading > a {
    display: inline-flex;
  }

  .wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .wishlist-card__image {
    min-height: 190px;
  }

  .wishlist-card__body {
    padding: 14px;
  }

  .wishlist-card h2 {
    min-height: 45px;
    font-size: 13px;
  }

  .brand-label,
  .rating small,
  .price strong small {
    font-size: 7px;
  }

  .rating span {
    font-size: 10px;
  }

  .price strong {
    font-size: 18px;
  }

  .badges span {
    min-height: 22px;
    padding-inline: 7px;
    font-size: 6px;
  }

  .card-actions {
    grid-template-columns: 1fr auto;
  }

  .card-actions button {
    min-height: 42px;
    padding-inline: 13px;
  }

  .wishlist-assurance {
    grid-template-columns: repeat(3, 1fr);
  }

  .wishlist-assurance > span {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .wishlist-assurance small {
    margin-inline-start: 0;
  }
}

@media (min-width: 980px) {
  .wishlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
  }

  .wishlist-card__image {
    min-height: 210px;
  }

  .wishlist-card__body {
    padding: 16px;
  }

  .wishlist-card h2 {
    min-height: 48px;
    font-size: 14px;
  }

  .rating span {
    font-size: 12px;
  }

  .rating small {
    font-size: 9px;
  }

  .price strong {
    font-size: 20px;
  }

  .price del {
    font-size: 9px;
  }

  .badges span {
    font-size: 7px;
  }

  .card-actions button {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 18px);
  }

  .wishlist-grid {
    gap: 7px;
  }

  .wishlist-card__image {
    min-height: 124px;
  }

  .wishlist-card__body {
    padding: 9px;
  }

  .wishlist-card h2 {
    min-height: 45px;
    font-size: 9px;
  }

  .badges {
    display: grid;
  }

  .badges span {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
