:root {
  color-scheme: light;
}

body {
  background-image:
    radial-gradient(circle at top, rgba(22,163,74,0.08), transparent 24%),
    linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.bottom-nav {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  margin: 0 auto;
  transform: none;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  width: calc(100% - 1.5rem);
  max-width: 72rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 38px;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px);
  z-index: 50;
}

.bottom-nav-link {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #64748b;
  transition: color 0.2s ease;
}

.bottom-nav-link:hover .icon-wrapper {
  background: #e2e8f0;
}

.bottom-nav-link:hover .nav-icon {
  color: #0f172a;
}

.bottom-nav-link.active {
  margin-top: -0.5rem;
}

.icon-wrapper {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.bottom-nav-link.active .icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #dcfce7;
}

.nav-icon {
  font-size: 1rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.bottom-nav-link.active .nav-icon {
  color: #15803D;
}

.nav-label {
  font-size: 0.625rem;
  line-height: 1;
  color: #64748b;
}

.bottom-nav-link.active .nav-label {
  color: #15803D;
  font-weight: 700;
}

.nav-underline {
  display: block;
  width: 2rem;
  height: 0.2rem;
  border-radius: 9999px;
  background: #15803D;
  margin-top: 0.15rem;
}

.nav-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #ffffff;
}

.wishlist-badge {
  background: #15803D;
  border: 1px solid #ffffff;
}

.cart-badge {
  background: linear-gradient(90deg, #ef4444, #f43f5e);
  border: 1px solid #ffffff;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.24);
}

.card-base {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: 0 22px 42px rgba(15,23,42,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.card-base:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15,23,42,0.12);
  border-color: rgba(16,185,129,0.18);
}

.card-base.card-promo {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border-color: rgba(255,255,255,0.36);
}

.card-base.card-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.32), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.card-base.card-promo .promo-badge {
  box-shadow: 0 12px 18px rgba(15,23,42,0.18);
}

.card-base button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.card-base button:hover {
  transform: translateY(-1px);
}

.card-base,
.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group,
div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200,
.limited-offer-banner {
  cursor: pointer;
  touch-action: manipulation;
  will-change: transform, box-shadow;
}

.card-base:active,
.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group:active,
div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200:active,
.limited-offer-banner:active {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15,23,42,0.12);
}

.limited-offer-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15,23,42,0.08);
}

.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border-color: rgba(148,163,184,0.14);
  box-shadow: 0 16px 28px rgba(15,23,42,0.06);
}

.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(15,23,42,0.1);
  border-color: rgba(16,185,129,0.18);
}

.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group .fa-heart {
  transition: color 0.2s ease;
}

.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group:hover .fa-heart {
  color: #ef4444;
}

.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group img {
  transition: transform 0.3s ease;
}

.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group:hover img {
  transform: translateY(-2px) scale(1.05);
}

div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200 {
  width: min(18rem, calc(100vw - 3rem));
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-color: rgba(148,163,184,0.16);
  box-shadow: 0 16px 28px rgba(15,23,42,0.06);
}

div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15,23,42,0.09);
}

div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200,
.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group,
.card-base {
  cursor: pointer;
  touch-action: manipulation;
  will-change: transform, box-shadow;
}

.card-base:active,
.bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group:active,
div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200:active {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15,23,42,0.12);
}

@media (hover: none) {
  .card-base:hover,
  .bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group:hover,
  div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200:hover {
    transform: none;
  }

  .card-base:active,
  .bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group:active,
  div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200:active {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(15,23,42,0.12);
  }
}

div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200 p {
  color: #475569;
}

div.flex-shrink-0.w-72.bg-slate-50.rounded-xl.p-4.border.border-slate-200 .fa-star {
  color: #f59e0b;
}

@media (min-width: 640px) {
  .bg-white.rounded-xl.p-2.border.border-slate-100.shadow-sm.flex.flex-col.justify-between.relative.group {
    min-height: 220px;
  }
}

.wishlist-card {
  position: relative;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 18px 42px rgba(15,23,42,0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wishlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(15,23,42,0.12);
  border-color: rgba(16,185,129,0.2);
}

.wishlist-card__image-wrap {
  position: relative;
  background: #f8fafc;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.wishlist-card__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(16,185,129,0.06), transparent 38%);
  pointer-events: none;
}

.wishlist-card__image {
  max-width: 170px;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.wishlist-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  background: #15803d;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wishlist-card__favorite {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.wishlist-card__favorite i {
  color: #dc2626;
}

.wishlist-card__favorite:hover {
  background: #fef2f2;
  transform: translateY(-1px);
}

.wishlist-card__content {
  padding: 1rem 1rem 1.25rem;
}

.wishlist-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.wishlist-card__meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}

.wishlist-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: #f59e0b;
  font-size: 0.75rem;
}

.wishlist-card__rating span {
  color: #64748b;
  font-size: 0.72rem;
}

.wishlist-card__footer {
  margin-top: 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.wishlist-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.wishlist-card__price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.wishlist-card__price-old {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.wishlist-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wishlist-card__trash {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wishlist-card__trash:hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .wishlist-card {
    border-radius: 22px;
  }

  .wishlist-card__image-wrap {
    min-height: 155px;
    padding: 0.75rem;
  }

  .wishlist-card__image {
    max-width: 130px;
    max-height: 130px;
  }

  .wishlist-card__badge {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.62rem;
  }

  .wishlist-card__favorite {
    width: 2.1rem;
    height: 2.1rem;
  }

  .wishlist-card__content {
    padding: 0.85rem 0.85rem 1rem;
  }

  .wishlist-card__title {
    font-size: 0.92rem;
  }

  .wishlist-card__meta {
    font-size: 0.68rem;
  }

  .wishlist-card__rating {
    margin-top: 0.7rem;
    font-size: 0.68rem;
    gap: 0.3rem;
  }

  .wishlist-card__price-current {
    font-size: 0.95rem;
  }

  .wishlist-card__price-old {
    font-size: 0.68rem;
  }

  .wishlist-card__actions {
    gap: 0.35rem;
  }

  .wishlist-card__actions button,
  .wishlist-card__trash {
    height: 2.1rem;
    padding: 0 0.75rem;
    font-size: 0.72rem;
  }
}
