/* ==========================================================================
   Dom-Detal — product page, favourites, 410 page (product.css)
   Builds on base.css tokens and components (.btn, .qty, .fav-btn, .specs,
   .benefits, .chips, .modal, .product-rail). Mobile-first.

   1. Layout          5. Benefits & help     9.  Lightbox
   2. Gallery         6. Sections            10. Quick order
   3. Summary/codes   7. Rails               11. Discontinued (410)
   4. Buy box         8. Sticky buy bar /    12. Favourites
                         desktop buy card
   ========================================================================== */

/* 1. Layout ================================================================ */
.product { padding-top: 6px; }
.product__top { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.product__media, .product__summary { min-width: 0; }
@media (min-width: 768px) {
  .product__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
@media (min-width: 1024px) {
  .product__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
  .product__media { position: sticky; top: 86px; }
}
@media (min-width: 1280px) {
  .product__top { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 56px; }
}

.product__body { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(20px, 1rem + 2vw, 48px); }
.product__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1024px) {
  .product__body { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .product__aside { position: sticky; top: 86px; }
}
@media (min-width: 1280px) { .product__body { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }

/* 2. Gallery =============================================================== */
.pgallery { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.pgallery__stage {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff;
  margin-inline: calc(var(--gutter) * -1);
}
@media (min-width: 640px) {
  .pgallery__stage { margin-inline: 0; border: 1px solid var(--c-line); border-radius: var(--r-xl); }
}
.pgallery__viewport {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  touch-action: pan-y pinch-zoom; cursor: zoom-in;
  -webkit-user-select: none; user-select: none;
}
.pgallery__viewport:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--c-focus); }
.pgallery__track {
  display: flex; height: 100%; margin: 0; padding: 0; list-style: none;
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}
.pgallery__track.is-dragging { transition: none; cursor: grabbing; }
.pgallery__slide { flex: 0 0 100%; min-width: 0; height: 100%; display: grid; place-items: center; padding: 5%; }
.pgallery__img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.pgallery__noimg {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px;
  color: var(--c-ink-300); background: var(--c-surface-2); border-radius: var(--r-lg);
  font-size: var(--fs-sm); font-weight: 600;
}
.pgallery__noimg .icon { --icon-size: 64px; }
.pgallery__noimg span { color: var(--c-ink-500); }
.pgallery__badge { position: absolute; top: 14px; left: 14px; z-index: 2; pointer-events: none; }
.pgallery__zoom { position: absolute; top: 10px; right: 10px; z-index: 2; --ib-size: 40px; }
.pgallery__zoom .icon { --icon-size: 20px; }
.pgallery__nav { position: absolute; top: 50%; z-index: 2; margin-top: -22px; opacity: 0; transition: opacity var(--dur) var(--ease), background-color var(--dur-fast) var(--ease); }
.pgallery__nav--prev { left: 12px; }
.pgallery__nav--next { right: 12px; }
.pgallery__nav:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: hover) {
  .pgallery__stage:hover .pgallery__nav, .pgallery__nav:focus-visible { opacity: 1; }
}
@media (hover: none) { .pgallery__nav { display: none; } }
.pgallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pgallery__dot { width: 6px; height: 6px; border-radius: 3px; background: var(--c-ink-200); transition: width var(--dur) var(--ease-out), background-color var(--dur) var(--ease); }
.pgallery__dot.is-active { width: 18px; background: var(--c-primary); }
.pgallery__counter {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.pgallery__thumbs { display: none; }
@media (min-width: 640px) {
  .pgallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .pgallery__thumbs::-webkit-scrollbar { display: none; }
}
.pgallery__thumb {
  flex: none; width: 68px; height: 68px; padding: 4px;
  border: 1.5px solid var(--c-line); border-radius: var(--r-md); background: #fff;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pgallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pgallery__thumb:hover { border-color: var(--c-ink-300); }
.pgallery__thumb.is-active { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.pgallery__thumb:focus-visible { outline: none; box-shadow: var(--ring); }
@media (min-width: 1024px) {
  .pgallery--multi { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .pgallery--multi .pgallery__thumbs { order: -1; flex-direction: column; overflow: hidden auto; max-height: 100%; align-self: start; }
  .pgallery__thumb { width: 72px; height: 72px; }
  .pgallery__dots { display: none; }
}

/* 3. Summary & codes ======================================================= */
.product__summary { display: flex; flex-direction: column; gap: 14px; }
.product__brand {
  align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--r-full); background: var(--c-primary-50); color: var(--c-primary);
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color var(--dur-fast) var(--ease);
}
.product__brand:hover { background: var(--c-primary-100); }
/* Aftermarket part: the vendor is the appliance brand, not the maker ("Для техніки Indesit"). */
.product__brand--for { gap: .35em; background: var(--c-ink-50); color: var(--c-ink-700); }
.product__brand--for:hover { background: var(--c-ink-100); }
.product__brand-pre { font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--c-ink-500); }
.product__title { font-size: clamp(1.375rem, 1.08rem + 1.15vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.pcodes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -2px; }
.pcode {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface);
  font-size: var(--fs-sm); color: var(--c-ink-500); line-height: 1.2;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.pcode__value { font-weight: 650; color: var(--c-ink); font-variant-numeric: tabular-nums; word-break: break-all; }
.pcode__icon { --icon-size: 16px; color: var(--c-ink-400); transition: color var(--dur-fast) var(--ease); }
.pcode:hover { border-color: var(--c-primary-200); background: var(--c-primary-50); }
.pcode:hover .pcode__icon { color: var(--c-primary); }
.pcode:focus-visible { outline: none; box-shadow: var(--ring); }
.pcode.is-copied { border-color: var(--c-success); background: var(--c-success-50); }
.pcode.is-copied .pcode__icon { color: var(--c-success-ink); }

/* 4. Buy box =============================================================== */
.pbuy {
  display: flex; flex-direction: column; gap: 16px;
  padding: 18px; border-radius: var(--r-xl);
  background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--sh-sm);
}
@media (min-width: 1024px) { .pbuy { padding: 22px 24px; } }
.pbuy__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.pbuy__price .price-box { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pbuy__price .price--lg { font-size: clamp(1.875rem, 1.5rem + 1.3vw, 2.5rem); line-height: 1.05; }
.pbuy__price .price-old { font-size: var(--fs-md); }
.pbuy__actions { display: flex; gap: 10px; }
.pbuy__qty { flex: none; height: 52px; border-radius: 14px; }
.pbuy__qty button { width: 42px; }
.pbuy__qty input { width: 40px; font-size: var(--fs-md); }
.pbuy__cart { flex: 1; min-width: 0; }
.pbuy__cart .icon { --icon-size: 22px; }
.pbuy__more { display: flex; gap: 10px; }
.pbuy__quick { flex: 1; min-width: 0; --btn-h: 48px; }
.pbuy__quick .icon { color: var(--c-accent-ink); }
.pbuy__ask { flex: 1; min-width: 0; }
.pbuy__out { display: flex; flex-direction: column; gap: 14px; }
.pbuy__out-text { font-size: var(--fs-sm); color: var(--c-ink-600); line-height: 1.55; }
.pbuy--out .price { color: var(--c-ink-600); }

.fav-btn--wide {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  width: auto; height: 48px; padding: 0 16px; border-radius: var(--r-md);
  background: var(--c-surface); border: 1.5px solid var(--c-line-strong); box-shadow: none;
  font-size: var(--fs-sm); font-weight: 650; color: var(--c-ink-700); white-space: nowrap;
}
.pbuy__ask + .fav-btn--wide { height: 52px; border-radius: 14px; }
@media (max-width: 479.98px) {
  /* Phones: the out-of-stock CTA takes the full row so «Запитати про наявність» stays on one line. */
  .pbuy__out .pbuy__more { flex-direction: column; }
  .pbuy__ask { flex: none; width: 100%; }
  .pbuy__ask + .fav-btn--wide { width: 100%; height: 46px; padding: 0 16px; border-radius: var(--r-md); }
  .pbuy__ask + .fav-btn--wide [data-fav-text] { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (max-width: 359.98px) {
  .pbuy__ask { --btn-px: 14px; font-size: var(--fs-base); }
}
.fav-btn--wide:hover { background: var(--c-danger-50); border-color: #F5C2BD; }
.fav-btn--wide[aria-pressed="true"] { background: var(--c-danger-50); border-color: #F5C2BD; color: var(--c-danger); }
.fav-btn--wide .icon { --icon-size: 20px; }
@media (max-width: 379.98px) {
  .fav-btn--wide { width: 48px; padding: 0; }
  .fav-btn--wide [data-fav-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* 5. Benefits & help ======================================================= */
.pbenefits { padding: 2px 16px; border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line); }
.pbenefits > li + li { border-top: 1px dashed var(--c-line); }
.benefits--compact.pbenefits .benefit { gap: 12px; padding: 11px 0; border-bottom: 0; color: inherit; }
.pbenefits .icon-tile { --tile: 36px; border-radius: 10px; }
.pbenefits__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pbenefits .benefit__title { font-size: var(--fs-sm); transition: color var(--dur-fast) var(--ease); }
.pbenefits .benefit__text { font-size: var(--fs-xs); margin-top: 1px; }
.pbenefits__arrow { --icon-size: 18px; color: var(--c-ink-300); transition: transform var(--dur) var(--ease-out), color var(--dur-fast) var(--ease); }
.pbenefits .benefit:hover .benefit__title { color: var(--c-primary); }
.pbenefits .benefit:hover .pbenefits__arrow { color: var(--c-primary); transform: translateX(3px); }
.pbenefits .benefit:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.phelp {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--c-accent-50) 0%, #fff 62%);
  border: 1px solid var(--c-accent-100);
}
.phelp::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 164, 27, .18), rgba(255, 164, 27, 0) 70%);
}
.phelp__icon { --tile: 44px; background: #fff; box-shadow: var(--sh-xs); }
.phelp__title { font-size: var(--fs-lg); margin-top: 4px; }
.phelp__text { font-size: var(--fs-sm); color: var(--c-ink-600); line-height: 1.55; }
.phelp__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.phelp__messengers { display: flex; flex-wrap: wrap; gap: 8px; }

/* 6. Sections ============================================================== */
.psection {
  padding: clamp(18px, .9rem + 1.2vw, 28px);
  border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line);
  scroll-margin-top: 96px;
}
.psection__title { font-size: var(--fs-xl); margin-bottom: 10px; }
.psection__lead { font-size: var(--fs-sm); color: var(--c-ink-600); margin-bottom: 12px; }
.psection__note { display: flex; gap: 8px; margin-top: 14px; font-size: var(--fs-xs); line-height: 1.5; color: var(--c-ink-500); }
.psection__note .icon { --icon-size: 16px; color: var(--c-primary); margin-top: 1px; }
.psection__note a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.psection .specs th { width: 48%; }
@media (min-width: 640px) { .psection .specs th { width: 40%; } }
.pcompat { list-style: none; padding: 0; }
.pcompat .chip { font-weight: 650; }
.pdescr { max-width: 75ch; }

/* 7. Rails ================================================================= */
.prail { padding-bottom: 0; }
.prail .section-head { align-items: center; }
.prail__head-end { display: flex; align-items: center; gap: 14px; flex: none; }
.prail__ctrls { display: none; gap: 6px; }
@media (hover: hover) and (min-width: 1024px) {
  .prail__ctrls:not([hidden]) { display: flex; }
}
.prail__ctrls .icon-btn:disabled { opacity: .4; pointer-events: none; }

/* 8. Sticky buy bar (phones / tablets) ===================================== */
.buybar {
  position: fixed; left: 0; right: 0; z-index: calc(var(--z-tabbar) - 1);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -6px 22px rgba(11, 18, 32, .08);
  transform: translateY(calc(100% + var(--tabbar-h) + var(--safe-bottom)));
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
}
.buybar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.buybar__inner { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-block: 8px; }
.buybar__info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.buybar__name { font-size: var(--fs-xs); color: var(--c-ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buybar__btn { flex: none; --btn-h: 46px; min-width: 132px; }
@media (max-width: 1023.98px) {
  body.page-product { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 64px); }
  body.page-product--gone { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }
  body.has-buybar .toast-stack { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 76px); }
}
@media (min-width: 1024px) { .buybar { display: none; } }

/* Desktop: the sticky aside repeats price + «Купити» once the buy box scrolls away. */
.pside { display: none; }
@media (min-width: 1024px) {
  .product__aside { display: flex; flex-direction: column; gap: 16px; }
  .pside {
    display: flex; flex-direction: column; gap: 12px;
    padding: 18px; border-radius: var(--r-xl);
    background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--sh-sm);
  }
}
.pside__product { display: flex; align-items: center; gap: 12px; }
.pside__thumb {
  flex: none; width: 56px; height: 56px; padding: 3px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; object-fit: contain;
}
.pside__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pside__name {
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; color: var(--c-ink-700);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pside__info .stock { font-size: var(--fs-xs); }
.pside__price .price-box { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.pside__price .price { font-size: var(--fs-2xl); line-height: 1.1; }
.pside--out .pside__price .price { color: var(--c-ink-600); }
.pside__quick { --btn-h: 44px; }
.pside__quick .icon { color: var(--c-accent-ink); }

/* 9. Lightbox (DD.openModal with className "modal--lightbox") ============== */
.modal.modal--lightbox { padding: 0; align-items: stretch; }
.modal--lightbox .modal__backdrop { background: rgba(255, 255, 255, .9); }
.modal--lightbox .modal__dialog {
  width: 100%; max-width: none; height: 100%; max-height: none;
  padding: 0; border-radius: 0; background: #fff; box-shadow: none; overflow: hidden;
  animation: dd-fade-in var(--dur) var(--ease) both;
}
.modal--lightbox .modal__dialog::before { display: none; }
.modal--lightbox.is-closing .modal__dialog { animation: dd-fade-out var(--dur) var(--ease) both; }
.modal--lightbox .modal__close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; z-index: 5; background: var(--c-ink-100); }
.modal--lightbox .modal__close:hover { background: var(--c-ink-200); }
.modal--lightbox .modal__body { height: 100%; }
.lightbox { display: flex; flex-direction: column; height: 100%; }
.lightbox__stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  touch-action: none; cursor: zoom-in; -webkit-user-select: none; user-select: none;
}
.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__stage.is-panning { cursor: grabbing; }
.lightbox__img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  transform-origin: 50% 50%; will-change: transform;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease);
  -webkit-user-drag: none; pointer-events: none;
}
.lightbox__img.is-gesture { transition: opacity var(--dur) var(--ease); }
.lightbox__img.is-loading { opacity: .25; }
.lightbox__nav { position: absolute; top: 50%; z-index: 3; margin-top: -22px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (hover: none) and (max-width: 767.98px) { .lightbox__nav { display: none; } }
.lightbox__bar {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 8px 16px; border-top: 1px solid var(--c-line);
}
.lightbox__counter { min-width: 52px; text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink-600); font-variant-numeric: tabular-nums; }
.lightbox__zoom { display: flex; gap: 6px; }
.lightbox__zoom .icon-btn { background: var(--c-ink-100); }
.lightbox__zoom .icon-btn:hover { background: var(--c-ink-200); }
.lightbox__hint { font-size: var(--fs-xs); color: var(--c-ink-400); }
@media (max-width: 479.98px) { .lightbox__hint { display: none; } }
.lightbox__thumbs {
  flex: none; display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 0 16px calc(12px + var(--safe-bottom));
}
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs .pgallery__thumb { width: 56px; height: 56px; }

/* 10. Quick order ========================================================== */
.qo__product { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 18px; border-radius: var(--r-md); background: var(--c-ink-50); }
.qo__thumb { flex: none; width: 56px; height: 56px; padding: 3px; border-radius: var(--r-sm); background: #fff; object-fit: contain; }
.qo__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qo__name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qo__price { font-size: var(--fs-sm); color: var(--c-ink-600); font-variant-numeric: tabular-nums; }
.qo .form-grid { margin-bottom: 16px; }
.qo__error { margin-bottom: 14px; }
.qo__note { margin-top: 12px; font-size: var(--fs-xs); color: var(--c-ink-500); text-align: center; line-height: 1.5; }
.qo__note a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.qo-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; text-align: center; }
.qo-done .modal__title { padding-right: 0; margin-top: 6px; }
.qo-done .modal__text { margin-bottom: 10px; }
.qo-done__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--c-success-50); color: var(--c-success-ink); }
.qo-done__icon .icon { --icon-size: 36px; }
.qo-done__number { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.01em; }

/* 11. Discontinued product (410) =========================================== */
.pgone {
  display: grid; gap: 24px; align-items: center; margin-top: 10px;
  padding: clamp(20px, 1rem + 2.4vw, 48px);
  border-radius: var(--r-2xl); background: var(--c-surface); border: 1px solid var(--c-line);
}
@media (min-width: 768px) { .pgone { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; } }
.pgone__media { width: 100%; max-width: 260px; margin-inline: auto; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: #fff; overflow: hidden; display: grid; place-items: center; }
.pgone__media img { width: 100%; height: 100%; object-fit: contain; opacity: .75; filter: grayscale(.5); }
.pgone__badge .icon { --icon-size: 14px; }
.pgone__title { font-size: var(--fs-3xl); margin-top: 12px; }
.pgone__name { margin-top: 8px; font-size: var(--fs-lg); font-weight: 600; color: var(--c-ink-700); line-height: 1.4; }
.pgone__codes { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: var(--fs-sm); color: var(--c-ink-500); }
.pgone__codes strong { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.pgone__text { margin-top: 14px; max-width: 62ch; color: var(--c-ink-600); }
.pgone__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 639.98px) { .pgone__actions .btn { width: 100%; } }

/* 12. Favourites =========================================================== */
.favpage__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.favpage__clear { color: var(--c-ink-600); }
.favpage__clear:hover { color: var(--c-danger); background: var(--c-danger-50); }
.favpage__error { margin-top: 16px; }
.favpage__error .link { font: inherit; font-weight: 700; text-decoration: underline; }
.pcard.is-removing { animation: pp-card-out .22s var(--ease) forwards; pointer-events: none; }
@keyframes pp-card-out { to { opacity: 0; transform: scale(.96); } }
