/* ============================================================
   Radiant HCP — wholesale storefront
   Layered on the shared design system: evergreen ink, porcelain,
   radiant amber. No new palette — only new components.
   ============================================================ */

.shop {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  column-gap: 2.4rem;
  row-gap: 1.4rem;
  align-items: start;
}

/* Search sits above the filter rail on desktop, and stays on top of the page
   on mobile — it must never hide behind the Filters button. */
@media (min-width: 981px) {
  /* Row 1 is exactly the search box; row 2 takes the rest. Without the explicit
     rows the tall grid column (which spans both) inflates row 1 and leaves a
     dead gap under the search. */
  .shop { grid-template-rows: auto 1fr; }
  .shop-search { grid-column: 1; grid-row: 1; }
  .shop-side   { grid-column: 1; grid-row: 2; }
  .shop-main   { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------------------------------------------------------- sidebar */
.shop-side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.shop-side__block { display: grid; gap: .7rem; }

.shop-side__h {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.shop-side__sub {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: -.35rem 0 0;
}

.shop-side__clear {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.shop-side__clear:hover { color: var(--amber-deep); }

/* search */
.shop-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .62rem .9rem;
  transition: border-color .18s, box-shadow .18s;
}
.shop-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 89, 79, .13);
}
.shop-search svg { width: 16px; height: 16px; color: var(--ink-soft); flex: none; }
.shop-search input {
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: .88rem;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.shop-search input::placeholder { color: #93a4a0; }

/* format picker */
.fmt-opts { display: grid; gap: .5rem; }

.fmt-opt {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  text-align: left;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .72rem .8rem;
  cursor: pointer;
  font: inherit;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.fmt-opt:hover { border-color: rgba(22, 89, 79, .4); }
.fmt-opt.is-on {
  border-color: var(--teal);
  background: rgba(220, 231, 226, .38);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.fmt-opt__dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid #b6c5c0;
  flex: none;
  margin-top: 2px;
  position: relative;
  transition: border-color .18s;
}
.fmt-opt.is-on .fmt-opt__dot { border-color: var(--teal); }
.fmt-opt.is-on .fmt-opt__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--teal);
}

.fmt-opt__tx { display: grid; gap: 1px; }
.fmt-opt__tx b { font-size: .87rem; font-weight: 620; color: var(--ink); }
.fmt-opt__tx small { font-size: .76rem; line-height: 1.45; color: var(--ink-soft); }

/* category filters */
.filter-list { display: grid; gap: 1px; }

.filter-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: .87rem;
  color: var(--ink);
  background: none;
  border: 0;
  font: inherit;
  width: 100%;
  text-align: left;
  transition: background .15s;
}
.filter-row:hover { background: rgba(220, 231, 226, .5); }

.filter-row__box {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid #b6c5c0;
  flex: none;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s;
}
.filter-row.is-on .filter-row__box {
  background: var(--teal);
  border-color: var(--teal);
}
.filter-row__box svg { width: 10px; height: 10px; color: #fff; opacity: 0; }
.filter-row.is-on .filter-row__box svg { opacity: 1; }

.filter-row__n {
  margin-left: auto;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.filter-row__swatch {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--cat, var(--teal));
}

/* ---------------------------------------------------------- main */
.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.shop-head h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0 0 .15rem;
  line-height: 1.15;
}
.shop-count { font-size: .84rem; color: var(--ink-soft); }

.shop-sort {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.shop-sort select {
  font: inherit;
  font-size: .85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 2rem .5rem .85rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a54' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 13px;
}
.shop-sort select:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.1rem;
}

/* ---------------------------------------------------------- product card */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  padding: 0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 89, 79, .32);
}
.pcard:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pcard.is-cmp { border-color: var(--amber-deep); box-shadow: inset 0 0 0 1px var(--amber-deep); }

.pcard__art {
  position: relative;
  height: 148px;
  display: grid;
  place-items: center;
  background: linear-gradient(170deg, var(--porcelain), #eef2ee);
  border-bottom: 1px solid var(--line);
}
.pcard__art img {
  max-height: 116px;
  max-width: 74%;
  object-fit: contain;
  /* Some source photos ship with an opaque white background instead of alpha.
     Against the light art panel, multiply drops it out so the grid looks even.
     No drop-shadow: it would trace a rectangle around those opaque images. */
  mix-blend-mode: multiply;
}

.pcard__badge {
  position: absolute;
  top: .6rem; left: .6rem;
  background: var(--ink);
  color: #fff;
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .55rem;
  border-radius: 999px;
  /* The product photo carries a drop-shadow filter, which gives it its own
     stacking context — without this the opaque-background shots paint over the
     badge. */
  z-index: 2;
}

.pcard__cmp {
  position: absolute;
  top: .55rem; right: .55rem;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  transition: background .16s, color .16s, border-color .16s;
}
.pcard__cmp svg { width: 14px; height: 14px; }
.pcard__cmp:hover { border-color: var(--amber-deep); color: var(--amber-deep); }
.pcard__cmp.is-on { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; }

.pcard__body {
  padding: .8rem .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
}

.pcard__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .28rem; }
.pcard__tag {
  font-size: .61rem;
  font-weight: 680;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .22rem .45rem;
  border-radius: 5px;
  background: var(--sage);
  color: var(--ink-2);
}
.pcard__tag--pen { background: rgba(232, 163, 61, .2); color: var(--amber-deep); }

.pcard__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.pcard__mech {
  font-size: .77rem;
  line-height: 1.42;
  color: var(--ink-soft);
  margin: .1rem 0 0;
}

.pcard__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: .8rem;
}

.pcard__price { display: grid; gap: 0; line-height: 1.15; }
.pcard__price b {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 640;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pcard__price small { font-size: .68rem; color: var(--ink-soft); }
.pcard__price--ask b { font-size: .88rem; color: var(--teal); }

.pcard__add {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background .16s, color .16s, transform .16s;
}
.pcard__add:hover { background: var(--teal); color: #fff; transform: scale(1.08); }

/* empty state */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--ink-soft);
}
.shop-empty h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: .4rem; }

/* request card */
.pcard--ask {
  background: linear-gradient(180deg, #fbfcfb, var(--porcelain));
  border: 1.5px dashed rgba(14, 42, 38, .22);
  cursor: default;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.6rem 1.2rem;
  gap: .5rem;
}
.pcard--ask:hover { transform: none; box-shadow: none; border-color: rgba(14, 42, 38, .3); }
.pcard--ask h3 { font-family: var(--font-display); font-size: 1.02rem; margin: 0; }
.pcard--ask p { font-size: .8rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }

.shop-more-wrap { display: grid; place-items: center; padding: 2rem 0 .5rem; }

/* ---------------------------------------------------------- mobile filter button */
.shop-filterbtn {
  display: none;
  align-items: center;
  gap: .5rem;
  width: 100%;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .75rem 1rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 1.1rem;
}

/* ---------------------------------------------------------- modal */
.rx-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 42, 38, .58);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
  animation: rxfade .18s ease;
}
@keyframes rxfade { from { opacity: 0; } }

.rx-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  box-shadow: 0 24px 70px rgba(14, 42, 38, .3);
  animation: rxrise .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes rxrise { from { transform: translateY(14px); opacity: 0; } }

.rx-close {
  position: absolute;
  top: .85rem; right: .85rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.rx-close:hover { background: var(--sage); }

.rx-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.7rem 1.8rem 1.3rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.rx-hero__art {
  height: 172px;
  display: grid;
  place-items: center;
  background: linear-gradient(170deg, var(--porcelain), #eef2ee);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.rx-hero__art img { max-height: 140px; max-width: 78%; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(14, 42, 38, .18)); }

.rx-hero h2 { font-size: 1.55rem; margin: .35rem 0 .2rem; line-height: 1.12; }
.rx-hero__mech { font-size: .9rem; color: var(--ink-soft); margin: 0 0 .7rem; }

.rx-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.rx-meta span {
  font-size: .72rem;
  font-weight: 600;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ink-2);
}

.rx-sec { padding: 1.5rem 1.8rem; border-bottom: 1px solid var(--line); }
.rx-sec:last-child { border-bottom: 0; }
.rx-sec h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0 0 .25rem;
}
.rx-sec__note { font-size: .8rem; color: var(--ink-soft); margin: 0 0 .9rem; line-height: 1.55; }

/* SKU table */
.sku-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sku-table th {
  text-align: left;
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 650;
  padding: 0 .6rem .5rem 0;
  border-bottom: 1px solid var(--line);
}
.sku-table td {
  padding: .62rem .6rem .62rem 0;
  border-bottom: 1px solid rgba(14, 42, 38, .07);
  vertical-align: middle;
}
.sku-table tr:last-child td { border-bottom: 0; }
.sku-table .num {
  font-variant-numeric: tabular-nums;
  font-weight: 640;
  color: var(--ink);
  white-space: nowrap;
}
.sku-table td:last-child, .sku-table th:last-child { text-align: right; padding-right: 0; }

.sku-add {
  border: 1px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  border-radius: 999px;
  font: inherit;
  font-size: .76rem;
  font-weight: 640;
  padding: .34rem .8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.sku-add:hover { background: var(--teal); color: #fff; }
.sku-add.is-in { background: var(--sage); border-color: var(--sage); color: var(--ink-2); }

/* tier table */
.tier-wrap { overflow-x: auto; }
.tier-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 460px; }
.tier-table th {
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 650;
  padding: .45rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.tier-table th:first-child, .tier-table td:first-child { text-align: left; }
.tier-table td {
  padding: .5rem;
  border-bottom: 1px solid rgba(14, 42, 38, .07);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tier-table tbody tr:hover { background: rgba(220, 231, 226, .35); }
.tier-table .best { color: var(--teal); font-weight: 680; }
.tier-table thead th:last-child { color: var(--teal); }

/* ---------------------------------------------------------- compare tray */
.cmp-tray {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  /* Slide-down distance is measured from the tray's own bottom edge, so a
     percentage alone stops hiding it once `bottom` is raised (see the 720px
     block). visibility is the guarantee; the transform is just the motion. */
  transform: translateX(-50%) translateY(140%);
  visibility: hidden;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: .6rem .7rem .6rem 1.25rem;
  box-shadow: 0 14px 40px rgba(14, 42, 38, .34);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), visibility 0s .28s;
  max-width: calc(100vw - 2rem);
}
.cmp-tray.is-up {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), visibility 0s;
}
.cmp-tray__n { font-size: .87rem; font-weight: 600; white-space: nowrap; }
.cmp-tray__n b { color: var(--amber); }
.cmp-tray button { border-radius: 999px; font: inherit; cursor: pointer; white-space: nowrap; }
.cmp-tray__go {
  background: var(--amber);
  color: var(--ink);
  border: 0;
  font-size: .84rem;
  font-weight: 680;
  padding: .52rem 1.1rem;
}
.cmp-tray__go:hover { background: #f2b45a; }
.cmp-tray__clr {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .8rem;
  padding: .5rem .3rem;
}
.cmp-tray__clr:hover { color: #fff; }

.cmp-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 520px; }
.cmp-table th, .cmp-table td {
  padding: .65rem .7rem;
  border-bottom: 1px solid rgba(14, 42, 38, .08);
  text-align: left;
  vertical-align: top;
}
.cmp-table thead th {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 620;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.cmp-table tbody th {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 650;
  white-space: nowrap;
  width: 130px;
}

/* ---------------------------------------------------------- order drawer */
.order-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 140;
  display: none;
  align-items: center;
  gap: .55rem;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.3rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 640;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(14, 42, 38, .3);
}
.order-fab.is-on { display: flex; }
.order-fab:hover { background: var(--ink-2); }
.order-fab__n {
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  min-width: 21px;
  padding: 0 .35rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--white);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(14, 42, 38, .22);
  animation: drslide .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes drslide { from { transform: translateX(100%); } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1.2rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1.1rem 1.3rem; background: var(--porcelain); }

.oline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem .7rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(14, 42, 38, .08);
}
.oline__name { font-weight: 640; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.oline__spec { font-size: .76rem; color: var(--ink-soft); }
.oline__price { font-variant-numeric: tabular-nums; font-weight: 640; white-space: nowrap; text-align: right; }
.oline__ctl { display: flex; align-items: center; gap: .35rem; grid-column: 1 / -1; margin-top: .35rem; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 27px; height: 27px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
}
.qty button:hover { background: var(--sage); }
.qty span {
  min-width: 30px;
  text-align: center;
  font-size: .82rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.oline__rm {
  margin-left: auto;
  background: none;
  border: 0;
  font: inherit;
  font-size: .76rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.oline__rm:hover { color: #b4432f; }

.otot { display: flex; justify-content: space-between; font-size: .87rem; margin-bottom: .35rem; color: var(--ink-soft); }
.otot--grand { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: .6rem 0 1rem; }
.otot--grand span:last-child { font-variant-numeric: tabular-nums; }

.drawer-empty { text-align: center; color: var(--ink-soft); padding: 3rem 1rem; font-size: .9rem; line-height: 1.6; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .shop { grid-template-columns: 1fr; row-gap: .9rem; }
  .shop-filterbtn { display: flex; }
  .shop-search { margin-bottom: 0; }
  .shop-side {
    position: static;
    display: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1.4rem;
  }
  .shop-side.is-open { display: grid; }
  .rx-hero { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 1.3rem 1.1rem; }
  .rx-hero__art { height: 150px; }
  .rx-sec { padding: 1.2rem 1.3rem; }
}

@media (max-width: 560px) {
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
  .pcard__art { height: 118px; }
  .pcard__art img { max-height: 92px; }
  .pcard__body { padding: .7rem .75rem .85rem; }
  .pcard__name { font-size: .93rem; }
  .pcard__mech { display: none; }
  .shop-head { align-items: flex-start; flex-direction: column; }
  .cmp-tray { padding-left: 1rem; gap: .5rem; }
  .cmp-tray__n { font-size: .8rem; }
  .sku-table { font-size: .8rem; }
}

/* Below 720px the site's own sticky .mobile-cta bar owns the bottom 74px.
   Stack above it: CTA bar -> compare tray -> order button. */
@media (max-width: 720px) {
  .cmp-tray  { bottom: calc(74px + .7rem); transform: translateX(-50%) translateY(320%); }
  .cmp-tray.is-up { transform: translateX(-50%) translateY(0); }
  .order-fab { bottom: calc(74px + .8rem); }
  body.has-tray .order-fab { bottom: calc(74px + 4.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .cmp-tray, .rx-modal, .rx-overlay, .drawer, .pcard__add { transition: none; animation: none; }
}
