/* Half Nester store cart widget: floating button + slide-in drawer. Store-scoped. */
.hn-cart-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--sage); color: #fff; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); display: grid; place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.hn-cart-fab:hover { background: var(--sage-dark); transform: translateY(-2px); }
.hn-cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--terracotta); color: #fff; border-radius: 10px;
  font: 600 .72rem/20px var(--font-body); text-align: center;
}
.hn-cart-backdrop {
  position: fixed; inset: 0; background: rgba(12,12,12,.4); z-index: 210;
  opacity: 0; visibility: hidden; transition: .2s;
}
.hn-cart-backdrop.show { opacity: 1; visibility: visible; }
.hn-cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 92vw); z-index: 220;
  background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.18);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease;
}
.hn-cart-drawer.show { transform: translateX(0); }
.hn-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }
.hn-cart-head strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--slate); }
.hn-cart-x { background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.hn-cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.hn-cart-empty { color: var(--muted); text-align: center; margin-top: 2rem; }
.hn-cart-row { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.hn-cart-row img { width: 56px; height: 56px; object-fit: contain; background: var(--cream-2); border-radius: 8px; flex-shrink: 0; }
.hn-cart-info { flex: 1; min-width: 0; }
.hn-cart-name { font-size: .92rem; color: var(--slate); font-weight: 600; line-height: 1.35; }
.hn-cart-price { color: var(--terracotta); font-family: var(--font-accent); font-weight: 600; font-size: .9rem; margin: .15rem 0 .4rem; }
.hn-cart-qty { display: flex; align-items: center; gap: .5rem; }
.hn-cart-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--slate); }
.hn-cart-qty button:hover { background: var(--cream); }
.hn-cart-qty span { min-width: 1.4rem; text-align: center; font-weight: 600; }
.hn-cart-remove { margin-left: auto; width: auto !important; padding: 0 .5rem; font-size: .8rem !important; color: var(--muted) !important; border: none !important; }
.hn-cart-remove:hover { color: var(--terracotta) !important; background: none !important; }
.hn-cart-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.3rem; }
.hn-cart-sub { display: flex; justify-content: space-between; font-weight: 600; color: var(--slate); font-size: 1.1rem; }
.hn-cart-note { font-size: .82rem; color: var(--muted); margin: .4rem 0 1rem; }
.hn-cart-checkout[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) { .hn-cart-fab { right: 16px; bottom: 16px; } }
