/* Cookie consent stays above bag drawer */
.after-cookie { z-index: 11000 !important; }

/* AFTER. visual polish — subtle, chill, reduced-motion aware */
/* Tap feedback (mobile + desktop) */
button:active:not(:disabled),
a.cover-cta:active,
a.cover-secondary:active,
a.hm-cta:active,
a.text-link:active,
.edit-card:active,
.finder-options button:active,
.finder-pick:active,
.scent-card .card-add:active,
.scent-card .card-detail:active,
.brand-scent-add:active,
.pack-start:active,
.copy-request:active,
.clear-request:active,
.share-order:active,
.menu-button:active,
.cover-choice:active,
.cover-arrow:active,
.filter:active,
.view-button:active,
.show-more:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.edit-card,
.finder-options button,
.finder-pick,
.scent-card .card-add,
.scent-card .card-detail,
.brand-scent-add,
.pack-start,
.copy-request,
.clear-request,
.share-order,
.cover-choice,
.cover-arrow,
.filter,
.view-button,
.show-more,
.hm-cta,
.cover-cta,
.cover-secondary {
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Hero scroll shine (pointer shine already in layers.css) */
.cover-art.is-scroll-lit::after {
  opacity: 0.32;
}
.cover-art.is-parallax {
  will-change: transform;
  transition: transform 0.12s linear;
}

/* Soft page settle — no hijack, just a calm enter */
html.after-ready body {
  animation: after-page-in 0.55s ease both;
}
@keyframes after-page-in {
  from { opacity: 0.001; }
  to { opacity: 1; }
}

/* Mobile bag drawer */
.order-bag-fab {
  display: none;
  position: fixed;
  z-index: 10050;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #2a2a28;
  border-radius: 999px;
  background: #111;
  color: #f4f2ee;
  font: 12px/1 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  align-items: center;
  gap: 10px;
}
.order-bag-fab[hidden] { display: none !important; }
.order-bag-fab .bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c38b71;
  color: #111;
  font: 11px/1 Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}
.order-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(10, 10, 10, 0.42);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.order-drawer-backdrop[hidden] { display: none !important; }
.order-panel .order-drawer-close {
  display: none;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #777770;
  background: transparent;
  color: #f4f2ee;
  font: 11px/1 "Courier New", monospace;
  letter-spacing: 0.1em;
  cursor: pointer;
}

@media (max-width: 980px) {
  .order-bag-fab { display: inline-flex; }
  body:has(.after-cookie) .order-bag-fab { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
  .order-drawer-backdrop:not([hidden]) { display: block; }
  body.order-drawer-open { overflow: hidden; }
  body.order-drawer-open .order-panel {
    position: fixed;
    z-index: 10070;
    inset: auto 0 0;
    top: 8svh;
    max-height: 92svh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 0, 0);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.35);
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .order-panel .order-drawer-close { display: inline-block; }
  body.order-drawer-open .order-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0a0a0a;
    padding-top: 8px;
    align-items: center;
  }
  /* Keep in-flow panel for SEO/layout; drawer mode only when open */
  .catalog-layout .order-panel {
    /* unchanged when closed — still visible below catalog */
  }
}

@media (prefers-reduced-motion: reduce) {
  html.after-ready body { animation: none; }
  .cover-art.is-parallax { transition: none !important; transform: none !important; }
  .cover-art.is-scroll-lit::after { opacity: 0 !important; }
  button:active:not(:disabled),
  a.cover-cta:active,
  a.cover-secondary:active,
  a.hm-cta:active,
  .edit-card:active,
  .finder-options button:active,
  .finder-pick:active,
  .scent-card .card-add:active,
  .scent-card .card-detail:active,
  .brand-scent-add:active,
  .pack-start:active,
  .copy-request:active,
  .clear-request:active,
  .share-order:active,
  .menu-button:active,
  .cover-choice:active,
  .cover-arrow:active,
  .filter:active,
  .view-button:active,
  .show-more:active {
    transform: none;
    opacity: 1;
  }
  .edit-card,
  .finder-options button,
  .finder-pick,
  .scent-card .card-add,
  .scent-card .card-detail,
  .brand-scent-add,
  .pack-start,
  .copy-request,
  .clear-request,
  .share-order,
  .cover-choice,
  .cover-arrow,
  .filter,
  .view-button,
  .show-more,
  .hm-cta,
  .cover-cta,
  .cover-secondary {
    transition: none !important;
  }
}
