:root {
  --bg-main: #0f2a23;
  --bg-deep: #0b1f1a;
  --gold: #c6a55c;
  --gold-light: #e0c27a;
  --text-main: #f5f5f5;
  --text-muted: #a8b3ae;
  --card: #102720;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ---- header (mirrors offers.css so the page reads as the same site) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 26, 0.92);
  border-bottom: 1px solid rgba(198, 165, 92, 0.25);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 112px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(79%) sepia(24%) saturate(553%) hue-rotate(356deg) brightness(90%) contrast(91%);
}
.header-right { display: flex; gap: 10px; align-items: center; }
.lang-select { position: relative; }
.lang-current,
.lang-option,
.btn {
  border-radius: 8px;
  border: 1px solid rgba(198, 165, 92, 0.45);
  background: transparent;
  color: var(--gold);
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.lang-current::after { content: "▾"; margin-left: 8px; font-size: 0.75rem; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(11, 31, 26, 0.98);
  border: 1px solid rgba(198, 165, 92, 0.25);
  border-radius: 8px;
  padding: 8px;
  z-index: 60;
}
.lang-menu.open { display: flex; }
.btn { display: inline-flex; align-items: center; text-decoration: none; }
.btn-outline:hover,
.lang-current:hover,
.lang-option:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-primary {
  background: var(--gold);
  color: #1b170d;
  border-color: transparent;
  font-weight: 700;
}
.btn-primary:hover { background: var(--gold-light); color: #1b170d; }

h1, h2, h3 { font-family: "Playfair Display", serif; margin: 0 0 10px; }
p { margin: 0; color: var(--text-muted); }

.main-content { padding: 22px 0 64px; }

.liked-page-head { margin: 4px 0 22px; }
.liked-page-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--text, #f4ead2);
}
.liked-page-sub { max-width: 720px; line-height: 1.5; }

/* ---- product grid (4-up desktop, 2-up mobile, matching the catalog) ---- */
.liked-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .liked-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .liked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.liked-card {
  position: relative;
  background: rgba(255, 251, 244, 0.97);
  color: #1b2822;
  border: 1px solid rgba(168, 134, 66, 0.26);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.liked-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  border-color: var(--gold);
}

.liked-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(15, 42, 35, 0.05);
  display: block;
}
.liked-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.liked-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: rgba(15, 42, 35, 0.4);
}

/* heart = remove from liked. Filled gold; on hover it reads as "unlike". */
.liked-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #d23b3b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, background 0.15s ease;
}
.liked-remove:hover { transform: scale(1.08); background: #fff; }

.liked-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.liked-context {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7873;
}
.liked-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f2a23;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.liked-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.liked-price { font-size: 1.12rem; font-weight: 800; color: #0f2a23; }
.liked-price-old { font-size: 0.9rem; color: #8a9590; text-decoration: line-through; }
.liked-discount {
  font-size: 11px;
  font-weight: 800;
  color: #b56a18;
  background: rgba(244, 173, 96, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.liked-view-btn {
  margin-top: 6px;
  text-align: center;
  background: #0f2a23;
  color: #f5f0e6;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(198, 165, 92, 0.4);
}

/* ---- empty + loading states ---- */
.liked-empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed rgba(198, 165, 92, 0.32);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.liked-empty-art { font-size: 3rem; color: var(--gold-light); line-height: 1; }
.liked-empty-title { color: var(--text, #f4ead2); margin: 0; }
.liked-empty-sub { max-width: 460px; line-height: 1.5; }
.liked-empty .btn-primary { margin-top: 6px; }

.liked-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--text-muted);
}
.liked-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(198, 165, 92, 0.3);
  border-top-color: var(--gold-light);
  animation: liked-spin 0.8s linear infinite;
}
@keyframes liked-spin { to { transform: rotate(360deg); } }

.bottom-back-btn {
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(198, 165, 92, 0.62);
  background: rgba(11, 31, 26, 0.94);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  z-index: 120;
}
.bottom-back-btn:hover { border-color: var(--gold-light); color: var(--gold); }
