/* Navigation remains reachable without hiding purchase actions on narrow screens. */
:root { --aco-header-height:118px; }
html { scroll-padding-top:calc(var(--aco-header-height) + 16px); }
.site-header { position:fixed; top:0; left:0; right:0; width:100%; z-index:650; box-shadow:0 8px 24px rgba(16,36,69,.06); }
.cart-anchor { position:relative; flex-shrink:0; }
.cart-anchor .header-cart { min-height:44px; }
.header-cart.cart-highlight {
  outline:3px solid #ecd393;
  outline-offset:4px;
  background: var(--gold-light, #f7efd8);
  animation:aco-cart-pulse .75s ease-in-out 5;
}
.header-cart.cart-bounce { animation: aco-cart-bounce .7s ease 2, aco-cart-pulse .75s ease-in-out 5; }
.cart-cue {
  position:absolute;
  top:calc(100% + 22px);
  inset-inline-end:0;
  width:310px;
  max-width:calc(100vw - 30px);
  padding:18px 20px;
  background:#fff;
  color:#223f73;
  border:2px solid #c59e49;
  border-radius:14px;
  box-shadow:0 16px 40px rgba(16,36,69,.28);
  z-index:660;
  font-size:14px;
  line-height:1.9;
  opacity:0;
  transform:translateY(-10px) scale(.96);
  transition:opacity .28s ease, transform .28s ease;
}
.cart-cue.is-visible { opacity:1; transform:translateY(0) scale(1); }
.cart-cue:before { content:''; position:absolute; top:-8px; inset-inline-end:24px; width:14px; height:14px; background:#fff; border-top:2px solid #c59e49; border-left:2px solid #c59e49; transform:rotate(45deg); }
.cart-cue-arrow { position:absolute; top:-36px; inset-inline-end:18px; font-size:30px; font-weight:900; color:#c59e49; line-height:1; animation:aco-cue-nudge .9s ease-in-out infinite; }
.cart-cue strong,.cart-cue a { display:block; }
.cart-cue strong { display:flex; align-items:center; gap:8px; font-size:1rem; color:#17355a; }
.cart-cue strong .bi { color:#2f9e64; font-size:1.2rem; }
.cart-cue a { color:#223f73; margin-top:8px; text-decoration:underline; text-underline-offset:4px; font-weight:700; }
.cart-cue-close { background:none; border:0; color:#56647a; position:absolute; inset-inline-start:4px; top:2px; width:32px; height:32px; font-size:22px; }
@keyframes aco-cart-pulse { 50% { outline-color:transparent; background:#fff8e6; } }
@keyframes aco-cart-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-6px) scale(1.08); }
  55% { transform: translateY(0) scale(.96); }
  75% { transform: translateY(-3px) scale(1.04); }
}
@keyframes aco-cue-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.ops-editor input,.ops-editor select { min-width:0; }
.admin-panel video { max-height:260px; background:#f4f5f6; }
@media(max-width:575px){
  .cart-cue { position:fixed; top:calc(var(--aco-header-height) + 8px); inset-inline-end:16px; width:min(310px, calc(100vw - 24px)); }
  .cart-cue-arrow { display:none; }
  .cart-cue:before { display:none; }
  .site-header .topbar { gap:10px; }
}
@media(prefers-reduced-motion:reduce){
  .header-cart.cart-highlight,
  .header-cart.cart-bounce,
  .cart-cue-arrow { animation:none; }
  .cart-cue { transition:none; opacity:1; transform:none; }
}
