/* RMS Wishlist — matches site design tokens */
:root {
  --rms-wl-gold:   #C9A84C;
  --rms-wl-ink:    #0f0f0f;
  --rms-wl-cream:  #F5F2EC;
  --rms-wl-stone:  #6B6B5E;
  --rms-wl-line:   rgba(15, 15, 15, 0.10);
  --rms-wl-radius: 0;
}

/* ── Wishlist Button ── */
.rms-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rms-wl-stone);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  width: 100%;
  margin-top: 10px;
}

.rms-wishlist-btn svg {
  flex-shrink: 0;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rms-wishlist-btn:hover {
  color: var(--rms-wl-gold);
}

.rms-wishlist-btn:hover svg {
  stroke: var(--rms-wl-gold);
  transform: scale(1.12);
}

.rms-wishlist-btn.active {
  color: var(--rms-wl-gold);
}

.rms-wishlist-btn.active svg {
  fill: var(--rms-wl-gold);
  stroke: var(--rms-wl-gold);
}

/* Loop card button */
.rms-wishlist-btn--loop {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  justify-content: center;
  background: rgba(245, 242, 236, 0.92);
  border: 1px solid var(--rms-wl-line);
  backdrop-filter: blur(4px);
}

.rms-wishlist-btn--loop .rms-wishlist-btn__label {
  display: none;
}

/* Loading state */
.rms-wishlist-btn--loading {
  opacity: 0.5;
  pointer-events: none;
}

.rms-wishlist-btn--loading svg {
  animation: rms-wl-spin 0.6s linear infinite;
}

@keyframes rms-wl-spin {
  to { transform: rotate(360deg); }
}

/* ── Wishlist Page ── */
.rms-wishlist-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rms-wishlist-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--rms-wl-ink);
}

.rms-wishlist-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rms-wl-stone);
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--rms-wl-line);
  text-align: left;
  white-space: nowrap;
}

.rms-wishlist-table td {
  padding: 20px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--rms-wl-line);
}

.rms-wishlist-table__img {
  width: 80px;
}

.rms-wishlist-table__img img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.rms-wishlist-table__name a {
  font-weight: 600;
  color: var(--rms-wl-ink);
  text-decoration: none;
  transition: color 0.15s;
}

.rms-wishlist-table__name a:hover {
  color: var(--rms-wl-gold);
}

.rms-wishlist-variation {
  display: block;
  font-size: 12px;
  color: var(--rms-wl-stone);
  margin-top: 4px;
}

.rms-wishlist-table__price {
  font-weight: 700;
  white-space: nowrap;
}

.rms-in-stock {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #4a7c59;
}

.rms-out-of-stock {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--rms-wl-stone);
}

.rms-wishlist-atc {
  display: inline-block;
  padding: 10px 20px;
  background: var(--rms-wl-gold);
  color: var(--rms-wl-ink) !important;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1.5px solid var(--rms-wl-gold);
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.rms-wishlist-atc:hover {
  background: transparent;
  border-color: var(--rms-wl-ink);
  color: var(--rms-wl-ink) !important;
}

.rms-wishlist-remove {
  background: none;
  border: none;
  color: var(--rms-wl-stone);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.rms-wishlist-remove:hover {
  color: #c0392b;
}

/* ── Empty State ── */
.rms-wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px;
  text-align: center;
  color: var(--rms-wl-stone);
}

.rms-wishlist-empty svg {
  opacity: 0.25;
  margin-bottom: 24px;
}

.rms-wishlist-empty__title {
  font-family: 'Bebas Neue', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rms-wl-ink);
  margin: 0 0 10px;
}

.rms-wishlist-empty__sub {
  font-size: 14px;
  color: var(--rms-wl-stone);
  margin: 0 0 28px;
  max-width: 34ch;
}

.rms-wishlist-empty__cta {
  display: inline-block;
  padding: 13px 28px;
  background: var(--rms-wl-gold);
  color: var(--rms-wl-ink);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.rms-wishlist-empty__cta:hover { opacity: 0.85; }

/* ── Count badge ── */
.rms-wishlist-count {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  background: var(--rms-wl-gold);
  color: var(--rms-wl-ink);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  padding: 0 3px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .rms-wishlist-table__stock,
  .rms-wishlist-table__img { display: none; }

  .rms-wishlist-atc {
    padding: 8px 14px;
    font-size: 9px;
  }
}
