/* ============================================
   NAV LOGO + ANNOUNCEMENT BAR - SHARED STYLES
   Enlarged logo with shrink-on-scroll behavior
   Mobile: wordmark fades in as logo shrinks
   ============================================ */

.nav { overflow: visible; }
.nav-inner { overflow: visible; }

.nav-logo {
  position: relative;
  z-index: 2;
}

.nav-logo-img {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  border: 2px solid var(--purple-dark);
  object-fit: cover;
  background: var(--void);
  box-shadow: 0 6px 20px rgba(194, 152, 47, 0.35);
  position: relative;
  z-index: 1001;
  transition: width 0.25s ease, height 0.25s ease, box-shadow 0.25s ease, border-width 0.25s ease;
}

.nav.scrolled .nav-logo-img {
  width: 44px;
  height: 44px;
  border-width: 1px;
  box-shadow: 0 2px 8px rgba(194, 152, 47, 0.2);
}

.nav-logo-text {
  transition: opacity 1s ease, max-width 0.7s ease;
}

/* Mobile: hide wordmark while logo is big, fade in when scrolled */
@media (max-width: 767px) {
  .nav-logo-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .nav.scrolled .nav-logo-text {
    opacity: 1;
    max-width: 200px;
  }
  .announcement { padding-left: 90px; }
}

/* Desktop: slightly larger logo, smaller shrink size */
@media (min-width: 1024px) {
  .nav-logo-img { width: 132px; height: 132px; }
  .nav.scrolled .nav-logo-img { width: 50px; height: 50px; }
}

/* ============================================
   WISHLIST BUTTON STATES
   Filled heart when product is already saved; moon
   stays as negative space via fill-rule:evenodd.
   ============================================ */
[data-wishlist-id].active svg,
.product-action-btn.active svg,
.gallery-wishlist.active svg {
  fill: var(--purple-light, #e7ce84);
  stroke: var(--purple-light, #e7ce84);
}
[data-wishlist-id].active,
.product-action-btn.active,
.gallery-wishlist.active {
  color: var(--purple-light, #e7ce84);
}

/* Make the wishlist icon render larger than the other action icons
   so the crescent-inside-heart detail is actually visible. */
.product-action-btn.wishlist-btn svg,
.product-action-btn[data-wishlist-id] svg {
  width: 22px !important;
  height: 22px !important;
}
.gallery-wishlist[data-wishlist-id] svg {
  width: 24px !important;
  height: 24px !important;
}

/* Account wishlist grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.wl-card {
  background: var(--smoke, #16221b);
  border: 1px solid rgba(194, 152, 47, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.wl-card:hover {
  border-color: rgba(216, 182, 90, 0.5);
  transform: translateY(-2px);
}
.wl-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--obsidian, #111a15);
  object-fit: cover;
  display: block;
}
.wl-card-body { padding: 12px 14px 16px; }
.wl-card-name {
  font-family: var(--font-gothic, Georgia, serif);
  font-size: 1rem;
  color: var(--moon, #f1efe6);
  margin-bottom: 4px;
}
.wl-card-meta {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mist, #6f8377);
  margin-bottom: 10px;
}
.wl-card-price {
  color: var(--purple-light, #e7ce84);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.wl-card-actions { display: flex; gap: 8px; }
.wl-btn {
  flex: 1;
  padding: 9px 12px;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
.wl-btn-primary {
  background: linear-gradient(135deg, var(--purple-dark, #8a6a1e), var(--purple-mid, #c2982f));
  border: none;
  color: var(--moon, #f1efe6);
}
.wl-btn-primary:hover { background: linear-gradient(135deg, var(--purple-mid, #c2982f), var(--purple-glow, #d8b65a)); }
.wl-btn-ghost {
  background: transparent;
  border: 1px solid var(--slate, #2c3d33);
  color: var(--fog, #9fb0a6);
}
.wl-btn-ghost:hover {
  border-color: var(--ember, #cf5f3f);
  color: var(--ember, #cf5f3f);
}

/* ============================================
   RECENTLY VIEWED STRIP (LT.recentlyViewed.render)
   ============================================ */
.rv-strip {
  margin: 1.5rem 0;
  background: rgba(14, 14, 17, 0.55);
  border: 1px solid rgba(194, 152, 47, 0.15);
  padding: 16px 18px;
}
.rv-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.rv-strip-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-glow, #d8b65a);
  font-weight: 600;
}
.rv-strip-clear {
  background: transparent;
  border: 1px solid transparent;
  color: var(--mist, #6f8377);
  font-family: var(--font-heading, sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
}
.rv-strip-clear:hover { color: var(--ember, #cf5f3f); }
.rv-strip-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.rv-strip-card {
  flex: 0 0 140px;
  background: var(--abyss, #0e1511);
  border: 1px solid rgba(194, 152, 47, 0.15);
  padding: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s;
}
.rv-strip-card:hover { border-color: var(--purple-mid, #c2982f); }
.rv-strip-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--obsidian, #111a15);
  display: block;
}
.rv-strip-name {
  font-family: var(--font-gothic, Georgia, serif);
  font-size: 0.85rem;
  color: var(--moon, #f1efe6);
  margin-top: 8px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv-strip-price {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.8rem;
  color: var(--purple-light, #e7ce84);
  margin-top: 4px;
}

/* Mobile-menu X close button (injected by /js/nav-logo.js) */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--slate, #2c3d33);
  border-radius: 50%;
  color: var(--fog, #9fb0a6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.mobile-menu-close:hover,
.mobile-menu-close:active {
  color: var(--moon, #f1efe6);
  border-color: var(--purple-glow, #d8b65a);
  transform: rotate(90deg);
}
.mobile-menu-close svg {
  width: 20px;
  height: 20px;
}
