/* account.css — favorites hearts, Favorites view, sign-in window, account menu, toast.
   Flat colors only (no gradients), Dosis, same golds as the header. */

/* ---------- header: Favorites + Sign in ---------- */
.ss-acct { display: flex; align-items: center; gap: 18px; flex: none; order: 2; margin-left: auto; }
.ss-acct a, .ss-acct button {
  font-family: 'Dosis', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 1.6px;
  text-transform: uppercase; color: #fff; opacity: .9; text-decoration: none; white-space: nowrap;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent;
}
.ss-acct a:hover, .ss-acct button:hover { opacity: 1; }
.ss-acct a.on { opacity: 1; border-bottom-color: #fff; }
.ss-acct img { width: 30px; height: 30px; flex: none; }
.ss-acct .ss-count {
  min-width: 20px; height: 20px; border-radius: 999px; background: #fff; color: #8a6a33;
  font-size: 12px; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px; box-sizing: border-box;
}
.ss-acct .ss-count:empty { display: none; }
.ss-acct-btn {
  border: 1px solid rgba(255,255,255,.7) !important; border-radius: 999px !important;
  padding: 5px 14px !important;
}
/* logo + Favorites / Sign in on the first row, categories on the second */
.ss-top .ss-nav { order: 5; flex-basis: 100%; }
/* smaller screens: the slogan stays beside the logo when there's room (ss-tag-in);
   otherwise it sits on its own line right under the logo, above the categories */
.ss-top .ss-tagline-row { order: 3; padding: 0 !important; background: none !important; white-space: nowrap; flex: 1 1 auto; }
.ss-top .ss-break { display: none; order: 2; flex-basis: 100%; height: 0; }
@media (max-width: 900px) {
  /* slogan on its own line: logo / slogan + Favorites + Sign in / categories */
  .ss-top:not(.ss-tag-in) .ss-break { display: block; }
  .ss-top:not(.ss-tag-in) .ss-acct { order: 4; }
}
.ss-top.ss-tag-in .ss-tagline { display: inline-flex !important; }
.ss-top.ss-tag-in .ss-tagline-row { display: none !important; }
/* wide screens where everything fits: one row — logo · categories · Favorites / Sign in */
.ss-top.ss-one-row .ss-nav { order: 2; flex-basis: auto; flex-wrap: nowrap; margin-left: auto; }
.ss-top.ss-one-row .ss-acct { order: 3; margin-left: 0; }
@media (max-width: 900px) {
  .ss-acct { gap: 12px; }
  .ss-acct a, .ss-acct button { font-size: 13px; letter-spacing: 1px; }
  .ss-acct img { width: 24px; height: 24px; }
  .ss-acct .ss-fav-label { display: none; }
}

/* phones: everything centered and stacked — logo / slogan / Favorites + Sign in / categories */
@media (max-width: 600px) {
  .ss-top { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 8px; }
  .ss-top .ss-brand { justify-content: center; }
  .ss-top .ss-tagline { display: none !important; }
  .ss-top .ss-tagline-row { display: flex !important; justify-content: center; order: 3; flex: none; }
  .ss-top .ss-break { display: none !important; }
  .ss-top .ss-acct { order: 4; margin-left: 0; justify-content: center; gap: 20px; }
  .ss-acct .ss-fav-label { display: inline; }
  .ss-top .ss-nav { order: 5; }
}

/* ---------- heart on each product tile ---------- */
.cardGroup .column { position: relative; }
.ss-heart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid #ebe1cf;
  background: #fff; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s ease, transform .15s ease;
}
.ss-heart svg { width: 19px; height: 19px; display: block; }
.ss-heart path { fill: none; stroke: #b9a582; stroke-width: 2; stroke-linejoin: round; }
.ss-heart:hover { transform: scale(1.08); }
.ss-heart:hover path { stroke: #e0464e; }
.ss-heart.ss-on { opacity: 1; border-color: #f3c9cb; }
.ss-heart.ss-on path { fill: #e0464e; stroke: #e0464e; }
.cardGroup .column:hover .ss-heart, .ss-heart:focus-visible { opacity: 1; }
@media (hover: none) { .ss-heart { opacity: 1; } }   /* phones: always show it */
.ss-heart.ss-pop { animation: ss-pop .3s ease; }
@keyframes ss-pop { 50% { transform: scale(1.25); } }

/* heart inside the BUDGET / MID / PREMIUM popup */
.bp-box .ss-heart { opacity: 1; top: 12px; left: 12px; right: auto; }

/* ---------- Favorites view (frame.content.html?fav=1) ---------- */
.ss-fav-hide { display: none !important; }
.ss-fav-head {
  font-family: 'Dosis', sans-serif; text-align: center; padding: 26px 20px 4px; color: #5b4520;
}
.ss-fav-head h1 { font-size: 22px; letter-spacing: 3px; margin: 0 0 6px; font-weight: 700; }
.ss-fav-head p { margin: 0 auto; max-width: 520px; font-size: 15px; color: #8a6a33; letter-spacing: .4px; line-height: 1.5; }
.ss-fav-head button {
  margin-top: 12px; font-family: 'Dosis', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1.4px;
  background: #c79a4c; color: #fff; border: 0; border-radius: 999px; padding: 9px 20px; cursor: pointer;
}
.ss-fav-head button:hover { background: #b5893e; }
.ss-fav-empty { padding: 30px 20px 60px; }
.ss-fav-empty svg { width: 46px; height: 46px; }
.ss-fav-empty path { fill: none; stroke: #c79a4c; stroke-width: 1.6; }

/* ---------- sign-in window ---------- */
.ss-modal {
  position: fixed; inset: 0; z-index: 2000; background: rgba(40, 30, 15, .45);
  display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box;
}
.ss-modal.ss-open { display: flex; }
.ss-modal-box {
  position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 18px;
  padding: 30px 28px 24px; box-sizing: border-box; font-family: 'Dosis', sans-serif; text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.ss-modal-x {
  position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1;
  color: #b9a582; cursor: pointer;
}
.ss-modal-x:hover { color: #5b4520; }
.ss-modal h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: 2.5px; color: #5b4520; text-transform: uppercase; }
.ss-modal .ss-sub { margin: 0 0 18px; font-size: 14.5px; color: #8a6a33; line-height: 1.45; }
.ss-modal form { display: flex; flex-direction: column; gap: 10px; }
.ss-modal input {
  font-family: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid #e3d6bf; border-radius: 10px;
  background: #fbf8f3; color: #333; outline: none;
}
.ss-modal input:focus { border-color: #c79a4c; background: #fff; }
.ss-modal .ss-primary {
  font-family: inherit; font-weight: 700; font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase;
  background: #c79a4c; color: #fff; border: 0; border-radius: 10px; padding: 12px; cursor: pointer; margin-top: 4px;
}
.ss-modal .ss-primary:hover { background: #b5893e; }
.ss-modal .ss-primary:disabled { opacity: .6; cursor: wait; }
.ss-modal .ss-danger { background: #c4473f; }
.ss-modal .ss-danger:hover { background: #a93a33; }
.ss-modal .ss-err { color: #c4473f; font-size: 14px; min-height: 0; }
.ss-modal .ss-err:empty { display: none; }
.ss-modal .ss-ok { color: #3e7d4f; font-size: 14px; }
.ss-modal .ss-ok:empty { display: none; }
.ss-modal .ss-links { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ss-modal .ss-link {
  background: none; border: 0; font-family: inherit; font-size: 14px; color: #8a6a33; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; padding: 2px;
}
.ss-modal .ss-link:hover { color: #5b4520; }
.ss-modal .ss-email { font-size: 16px; color: #333; margin: 0 0 16px; word-break: break-all; }

/* ---------- toast ---------- */
.ss-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2100;
  background: #5b4520; color: #fff; font-family: 'Dosis', sans-serif; font-size: 15px; letter-spacing: .5px;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  max-width: calc(100vw - 40px); text-align: center; box-sizing: border-box;
}
.ss-toast[hidden] { display: none; }
.ss-toast button {
  background: none; border: 0; color: #f3d9a6; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: underline; margin-left: 6px; padding: 0;
}
