/* ============================================================
   AURA AVENUE — store.css
   Cart & wishlist drawers, bar icons, card action buttons.
   ============================================================ */

/* ---- Bar icons ---- */
.st-ico {
  position: relative; display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem; cursor: pointer;
  background: none; border: 1px solid var(--au-line-2); border-radius: 50%;
  color: var(--au-cream);
  transition: border-color 0.25s var(--au-ease), transform 0.25s var(--au-ease);
}
.st-ico:hover { border-color: var(--au-bronze); transform: translateY(-1px); }
.st-ico:active { transform: scale(0.92); }
.st-ico svg { width: 1.05rem; height: 1.05rem; }
.st-badge[hidden] { display: none; }
.st-badge {
  position: absolute; top: -0.3rem; right: -0.3rem;
  min-width: 1.1rem; height: 1.1rem; padding: 0 0.25rem;
  display: grid; place-items: center;
  background: var(--au-bronze); color: #fff; border-radius: 100px;
  font-size: 0.6rem; font-weight: 600; line-height: 1;
}
[data-theme="light"] .st-badge { color: #fff; }

/* ---- Card action buttons ---- */
.ct-card { position: relative; }
.ct-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ct-card__link:focus-visible { outline: 2px solid var(--au-bronze); outline-offset: 2px; }
.st-heart {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center; cursor: pointer;
  background: rgba(14,14,16,0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  color: #fff; transition: transform 0.2s var(--au-ease), background 0.2s var(--au-ease);
}
.st-heart:hover { transform: scale(1.12); }
.st-heart:active { transform: scale(0.9); }
.st-heart svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; transition: fill 0.2s var(--au-ease), color 0.2s var(--au-ease); }
.st-heart.is-on { background: var(--au-bronze); border-color: var(--au-bronze); }
.st-heart.is-on svg { fill: #fff; color: #fff; }
.st-add {
  position: relative; z-index: 2; cursor: pointer;
  padding: 0.45rem 0.9rem; border: 1px solid var(--au-bronze); border-radius: 100px;
  background: none; color: var(--au-bronze); font: inherit; font-size: 0.72rem; font-weight: 550;
  transition: background 0.2s var(--au-ease), color 0.2s var(--au-ease), transform 0.2s var(--au-ease);
  white-space: nowrap;
}
.st-add:hover { background: var(--au-bronze); color: #fff; }
.st-add:active { transform: scale(0.95); }

/* ---- Product page action row ---- */
.st-actions { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.st-actions .st-add { padding: 0.8rem 1rem; font-size: 0.8rem; text-align: center; border-radius: var(--au-r-md); }
.st-savebtn {
  cursor: pointer; padding: 0.8rem 1rem; border-radius: var(--au-r-md);
  background: none; border: 1px solid var(--au-line-2); color: var(--au-cream);
  font: inherit; font-size: 0.8rem; transition: border-color 0.2s var(--au-ease);
}
.st-savebtn:hover { border-color: var(--au-bronze); }
.st-savebtn.is-on { border-color: var(--au-bronze); color: var(--au-bronze); }

/* ---- Drawers ---- */
.st-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,9,0.6); backdrop-filter: blur(3px); }
.st-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(26rem, 92vw); display: flex; flex-direction: column;
  background: var(--au-panel); border-left: 1px solid var(--au-line-2);
  border-radius: var(--au-r-lg) 0 0 var(--au-r-lg);
  transform: translateX(105%); transition: transform 0.45s var(--au-ease);
  visibility: hidden;
}
.st-drawer.is-open { transform: translateX(0); visibility: visible; }
.st-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--au-line);
}
.st-drawer__title { font-family: var(--au-display); font-size: 1.5rem; margin: 0; }
.st-close {
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--au-line-2); border-radius: 50%;
  color: var(--au-cream); font-size: 1.1rem; line-height: 1;
}
.st-close:hover { border-color: var(--au-bronze); color: var(--au-bronze); }
.st-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.st-empty { color: var(--au-muted); font-size: 0.9rem; padding: 1.5rem 0; text-align: center; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.st-row {
  display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 0.8rem; align-items: start;
  padding: 0.7rem; background: var(--au-ink-2); border: 1px solid var(--au-line);
  border-radius: var(--au-r-md);
}
.st-row__img { width: 4.2rem; height: 3rem; object-fit: cover; border-radius: var(--au-r-sm); display: block; }
.st-row__img--ph { background: repeating-linear-gradient(135deg, rgba(176,141,87,0.12) 0 2px, transparent 2px 8px); }
.st-row__b { min-width: 0; }
.st-row__name { display: block; font-size: 0.84rem; font-weight: 550; color: var(--au-cream); text-decoration: none; line-height: 1.35; }
.st-row__name:hover { color: var(--au-bronze); }
.st-row__price { margin: 0.2rem 0 0.4rem; font-size: 0.78rem; color: var(--au-bronze); }
.st-row__price span { color: var(--au-muted); }
.st-qty { display: inline-flex; align-items: center; gap: 0.55rem; }
.st-qty button {
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--au-line-2); border-radius: 50%;
  color: var(--au-cream); font-size: 0.9rem; line-height: 1;
}
.st-qty button:hover { border-color: var(--au-bronze); }
.st-qty output { font-size: 0.82rem; min-width: 1ch; text-align: center; }
.st-mini {
  cursor: pointer; padding: 0.3rem 0.7rem; border-radius: 100px;
  background: none; border: 1px solid var(--au-bronze); color: var(--au-bronze);
  font: inherit; font-size: 0.68rem;
}
.st-mini:hover { background: var(--au-bronze); color: #fff; }
.st-x {
  cursor: pointer; width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--au-muted); font-size: 1rem;
}
.st-x:hover { color: var(--au-cream); background: var(--au-line); }
.st-drawer__foot { padding: 1.1rem 1.4rem; border-top: 1px solid var(--au-line); display: grid; gap: 0.7rem; }
.st-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; color: var(--au-muted); }
.st-total strong { font-family: var(--au-display); font-size: 1.5rem; color: var(--au-bronze); }
.st-note { display: block; font-size: 0.72rem; color: var(--au-muted); }
.st-go {
  cursor: pointer; padding: 0.95rem 1rem; text-align: center;
  background: var(--au-bronze); color: #fff; border: 0; border-radius: var(--au-r-md);
  font: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  transition: filter 0.2s var(--au-ease), transform 0.2s var(--au-ease);
}
.st-go:hover { background: var(--au-bronze-hi); }
.st-go:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) { .st-drawer, .st-heart, .st-add { transition: none; } }
