/* PetBoss UX effects — cart fly, hover, scroll, paw cursor, order celebration, birthday, quiz */

/* ========== Cart fly ========== */
.pb-cart-fly {
  position: fixed;
  z-index: 100000;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  background: #fff;
  will-change: transform, opacity;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.pb-cart-fly img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-cart-fly.is-done {
  opacity: 0;
  transform: scale(0.35) !important;
}

.shop-cart.is-pulse {
  animation: pb-cart-pulse 0.55s ease;
}

.shop-cart__badge.is-bump {
  animation: pb-badge-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pb-cart-pulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.12); }
  70% { transform: scale(0.96); }
}

@keyframes pb-badge-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ========== Product card hover (disabled) ========== */
@media (hover: hover) and (pointer: fine) {
  .shop-product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .shop-product-card:hover .shop-product-card__image,
  .shop-showcase-card:hover .shop-showcase-card__image {
    transform: none;
  }

  .shop-product-card__media::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-product-card,
  .shop-product-card__image,
  .shop-showcase-card__image {
    transition: none !important;
  }

  .shop-product-card:hover {
    transform: none;
  }

  .shop-product-card:hover .shop-product-card__image {
    transform: none;
  }
}

/* ========== Scroll reveal ========== */
html.pb-has-reveal .pb-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

html.pb-has-reveal .pb-reveal {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.pb-has-reveal .pb-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.pb-has-reveal .pb-reveal,
  html.pb-has-reveal .pb-reveal:not(.is-in) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========== Paw cursor ========== */
.pb-paw-print {
  position: fixed;
  z-index: 99990;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  color: rgba(196, 30, 58, 0.35);
  will-change: transform, opacity;
  transition: opacity 0.9s ease;
}

.pb-paw-print.is-show {
  opacity: 1;
}

.pb-paw-print.is-fade {
  opacity: 0;
}

.pb-paw-print svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ========== Order success celebration ========== */
.pb-order-celeb {
  position: relative;
  margin: 0 0 28px;
  padding: 36px 24px 28px;
  border-radius: 20px;
  background: linear-gradient(165deg, #fff7f8 0%, #ffffff 55%, #f7faf8 100%);
  border: 1px solid rgba(196, 30, 58, 0.12);
  text-align: center;
  overflow: hidden;
}

.pb-order-celeb__stage {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
}

.pb-order-celeb__box {
  position: absolute;
  inset: 28px 20px 12px;
  background: linear-gradient(145deg, #c41e3a, #9b1530);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(196, 30, 58, 0.28);
  transform-origin: center bottom;
  animation: pb-box-bounce 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.pb-order-celeb__lid {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  height: 22px;
  background: #e8a0ab;
  border-radius: 8px 8px 4px 4px;
  transform-origin: left center;
  animation: pb-lid-open 0.7s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pb-order-celeb__ribbon {
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 12px;
  width: 12px;
  margin-left: -6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  z-index: 1;
}

.pb-order-celeb__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pb-order-celeb__particle {
  position: absolute;
  left: 50%;
  top: 40%;
  font-size: 14px;
  opacity: 0;
  animation: pb-particle-burst 1.1s ease-out both;
}

.pb-order-celeb__title {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  color: #1a1a1a;
}

.pb-order-celeb__order {
  margin: 0 0 18px;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  color: #666;
}

.pb-order-celeb__order strong {
  color: #c41e3a;
}

.pb-order-celeb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pb-order-celeb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pb-order-celeb__btn--primary {
  background: #c41e3a;
  color: #fff;
}

.pb-order-celeb__btn--primary:hover {
  background: #a81830;
  transform: translateY(-1px);
}

.pb-order-celeb__btn--ghost {
  background: #fff;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.pb-order-celeb__btn--ghost:hover {
  border-color: rgba(196, 30, 58, 0.35);
  color: #c41e3a;
}

@keyframes pb-box-bounce {
  0% { transform: translateY(24px) scale(0.85); opacity: 0; }
  60% { transform: translateY(-6px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes pb-lid-open {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-48deg) translateY(-8px); }
}

@keyframes pb-particle-burst {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, -60px)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pb-order-celeb__box,
  .pb-order-celeb__lid,
  .pb-order-celeb__particle {
    animation: none !important;
  }

  .pb-order-celeb__lid {
    transform: rotate(-40deg);
  }

  .pb-order-celeb__particle {
    display: none;
  }
}

/* ========== Birthday banner ========== */
.pb-bday {
  margin: 16px 24px 0;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(196, 30, 58, 0.16);
  background: linear-gradient(120deg, #fff5f6, #ffffff 60%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.pb-bday--urgent {
  border-color: rgba(196, 30, 58, 0.4);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.1);
}

.pb-bday--today {
  background: linear-gradient(120deg, #ffe8ec, #fff8f0);
  animation: pb-bday-glow 2.4s ease-in-out infinite;
}

.pb-bday__copy {
  flex: 1 1 240px;
}

.pb-bday__title {
  margin: 0 0 4px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.pb-bday__text {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  color: #555;
}

.pb-bday__cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #c41e3a;
  color: #fff;
  text-decoration: none;
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.pb-bday__cta:hover {
  background: #a81830;
}

@keyframes pb-bday-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(196, 30, 58, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pb-bday--today {
    animation: none;
  }
}

/* ========== Gift wrap ========== */
.pb-gift {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fafafa;
}

.pb-gift__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
}

.pb-gift__check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #c41e3a;
}

.pb-gift__note-wrap {
  margin-top: 12px;
  display: none;
}

.pb-gift__note-wrap.is-open {
  display: block;
}

.pb-gift__note-wrap label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.pb-gift__note-wrap textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  resize: vertical;
}

.pb-gift__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #888;
}

.pb-gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.08);
  color: #c41e3a;
  font-size: 12px;
  font-weight: 700;
}

/* ========== Splash paw trail ========== */
.pb-splash__paws {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.pb-splash__paw {
  width: 14px;
  height: 14px;
  opacity: 0.2;
  color: #c41e3a;
  animation: pb-splash-paw 1.2s ease-in-out infinite;
}

.pb-splash__paw:nth-child(2) { animation-delay: 0.15s; }
.pb-splash__paw:nth-child(3) { animation-delay: 0.3s; }
.pb-splash__paw:nth-child(4) { animation-delay: 0.45s; }
.pb-splash__paw:nth-child(5) { animation-delay: 0.6s; }

@keyframes pb-splash-paw {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .pb-splash__paw {
    animation: none;
    opacity: 0.55;
  }
}

/* ========== Quiz ========== */
.pb-quiz {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.pb-quiz__hero {
  text-align: center;
  margin-bottom: 28px;
}

.pb-quiz__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c41e3a;
}

.pb-quiz__title {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #111;
}

.pb-quiz__lead {
  margin: 0 auto;
  max-width: 42ch;
  color: #666;
  font-family: "Barlow", sans-serif;
  line-height: 1.5;
}

.pb-quiz__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.pb-quiz__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pb-quiz__progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #f0f0f0;
  overflow: hidden;
}

.pb-quiz__progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c41e3a, #e85a70);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.pb-quiz__progress-text {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
}

.pb-quiz__question {
  margin: 0 0 18px;
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  color: #1a1a1a;
}

.pb-quiz__options {
  display: grid;
  gap: 10px;
}

.pb-quiz__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fafafa;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pb-quiz__option:hover,
.pb-quiz__option:focus-visible {
  border-color: rgba(196, 30, 58, 0.4);
  background: rgba(196, 30, 58, 0.06);
  outline: none;
}

.pb-quiz__option:active {
  transform: scale(0.98);
}

.pb-quiz__result {
  text-align: center;
  display: none;
}

.pb-quiz__result.is-show {
  display: block;
  animation: pb-quiz-result-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pb-quiz__result-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
}

.pb-quiz__result-name {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  color: #c41e3a;
}

.pb-quiz__result-desc {
  margin: 0 auto 16px;
  max-width: 40ch;
  color: #555;
  line-height: 1.5;
}

.pb-quiz__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}

.pb-quiz__stat {
  padding: 12px 8px;
  border-radius: 12px;
  background: #f7f7f7;
}

.pb-quiz__stat strong {
  display: block;
  font-size: 18px;
  color: #111;
}

.pb-quiz__stat span {
  font-size: 11px;
  color: #888;
  font-weight: 600;
}

.pb-quiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pb-quiz__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.pb-quiz__btn--primary {
  background: #c41e3a;
  color: #fff;
}

.pb-quiz__btn--ghost {
  background: #fff;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

@keyframes pb-quiz-result-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .pb-quiz__stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-quiz__result.is-show,
  .pb-quiz__progress-fill {
    animation: none;
    transition: none;
  }
}

[data-theme="dark"] .pb-quiz__card,
[data-theme="dark"] .pb-gift,
[data-theme="dark"] .pb-order-celeb {
  background: #1a1d24;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pb-quiz__title,
[data-theme="dark"] .pb-quiz__question,
[data-theme="dark"] .pb-order-celeb__title,
[data-theme="dark"] .pb-bday__title {
  color: #f2f2f2;
}

[data-theme="dark"] .pb-quiz__option,
[data-theme="dark"] .pb-quiz__stat {
  background: #12151a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #ddd;
}

[data-theme="dark"] .pb-bday {
  background: linear-gradient(120deg, #2a1a1e, #1a1d24);
}

[data-theme="dark"] .pb-gift__note-wrap textarea {
  background: #12151a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #eee;
}

/* ── Product badges ── */
.shop-product-card__media,
.shop-showcase-card__media,
.product-page__media {
  position: relative;
}

.pb-product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 16px);
  pointer-events: none;
}

.pb-product-badges--detail {
  position: static;
  margin-bottom: 10px;
  pointer-events: auto;
}

.pb-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.94);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pb-product-badge__emoji {
  font-size: 11px;
  line-height: 1;
}

.pb-product-badge--hot { color: #b91c1c; border: 1px solid rgba(196, 30, 58, 0.2); }
.pb-product-badge--fresh { color: #0369a1; border: 1px solid rgba(3, 105, 161, 0.18); }
.pb-product-badge--brand { color: #c41e3a; border: 1px solid rgba(196, 30, 58, 0.22); }
.pb-product-badge--love { color: #be123c; border: 1px solid rgba(190, 18, 60, 0.18); }
.pb-product-badge--gold { color: #a16207; border: 1px solid rgba(161, 98, 7, 0.2); }
.pb-product-badge--deal { color: #c2410c; border: 1px solid rgba(194, 65, 12, 0.18); }
.pb-product-badge--campaign { color: #7c3aed; border: 1px solid rgba(124, 58, 237, 0.18); }
.pb-product-badge--urgent { color: #92400e; border: 1px solid rgba(146, 64, 14, 0.18); }
.pb-product-badge--more { background: rgba(26, 26, 26, 0.78); color: #fff; }

@media (hover: hover) {
  .pb-product-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-product-badge {
    transition: none;
  }
}

.product-page__badge--discount {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

.pb-admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pb-admin-badge-option {
  cursor: pointer;
}

.pb-admin-badge-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pb-admin-badge-option__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.pb-admin-badge-option input:checked + .pb-admin-badge-option__pill {
  border-color: #c41e3a;
  background: #fff5f6;
  color: #c41e3a;
}

/* ── Paw order tracking ── */
.pb-paw-track {
  position: relative;
  margin: 24px 0 28px;
  padding: 22px 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff9fa, #ffffff);
  border: 1px solid #f0e6e8;
  overflow: hidden;
}

.pb-paw-track__rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.pb-paw-track__step {
  flex: 1 0 88px;
  min-width: 72px;
  text-align: center;
  scroll-snap-align: start;
  animation: pbPawStepIn 0.45s ease both;
  animation-delay: calc(var(--step-i, 0) * 0.08s);
}

.pb-paw-track__node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.pb-paw-track__paw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  background: #fff;
  border: 2px solid #e8d8dc;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.08);
}

.pb-paw-track__step--done .pb-paw-track__paw {
  border-color: #c41e3a;
  background: #fff5f6;
}

.pb-paw-track__step--active .pb-paw-track__paw {
  border-color: #c41e3a;
  background: #c41e3a;
  color: #fff;
  animation: pbPawPulse 1.8s ease-in-out infinite;
}

.pb-paw-track__paw--ghost {
  opacity: 0.35;
  filter: grayscale(0.6);
  background: #fafafa;
}

.pb-paw-track__trail {
  position: absolute;
  top: 50%;
  left: calc(50% + 18px);
  width: calc(100% - 12px);
  height: 2px;
  transform: translateY(-50%);
  background: #ececec;
  pointer-events: none;
}

.pb-paw-track__trail--done {
  background: linear-gradient(90deg, #c41e3a, #e85d75);
}

.pb-paw-track__label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  line-height: 1.25;
}

.pb-paw-track__step--active .pb-paw-track__label {
  color: #c41e3a;
}

.pb-paw-track__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0e6e8;
}

.pb-paw-track__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  margin: 0 0 14px;
}

.pb-paw-track__details dt {
  font-size: 11px;
  color: #888;
  margin-bottom: 2px;
}

.pb-paw-track__details dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

.pb-paw-track__code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: #f5f5f5;
  border-radius: 4px;
}

.pb-paw-track__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #c41e3a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pb-paw-track__btn:hover {
  background: #a81832;
  transform: translateY(-1px);
}

.pb-paw-track--delivered .pb-paw-track__step--active .pb-paw-track__paw {
  animation: pbPawDelivered 0.9s ease both;
}

.pb-paw-track__celebrate {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.pb-paw-track__spark {
  position: absolute;
  font-size: 14px;
  animation: pbPawSpark 0.9s ease forwards;
}

.pb-paw-track--cancelled {
  background: #fafafa;
  border-color: #eee;
}

.pb-paw-track__cancelled {
  margin: 0;
  color: #888;
  font-weight: 600;
}

@keyframes pbPawStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pbPawPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(196, 30, 58, 0); }
}

@keyframes pbPawDelivered {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes pbPawSpark {
  from { opacity: 0; transform: translate(0, 0) scale(0.6); }
  60% { opacity: 1; }
  to { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -40px)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pb-paw-track__step,
  .pb-paw-track__step--active .pb-paw-track__paw,
  .pb-paw-track--delivered .pb-paw-track__step--active .pb-paw-track__paw,
  .pb-paw-track__spark,
  .pb-paw-track__btn {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .pb-paw-track__rail {
    padding-inline: 4px;
  }
  .pb-paw-track__step {
    flex-basis: 78px;
  }
}

/* ── Cart drawer enhancements ── */
.shop-cart-drawer {
  width: min(430px, 94vw) !important;
}

.shop-cart-drawer__head-text h2 {
  margin: 0;
  font-size: 17px;
}

.shop-cart-drawer__count {
  margin: 4px 0 0;
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.shop-cart-drawer__empty-state {
  text-align: center;
  padding: 28px 12px 16px;
}

.shop-cart-drawer__empty-paw {
  font-size: 36px;
  margin-bottom: 10px;
  animation: pbEmptyPaw 2.4s ease-in-out infinite;
}

.shop-cart-drawer__empty-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #222;
}

.shop-cart-drawer__empty-copy {
  font-size: 13px;
  color: #777;
  margin: 0 0 16px;
  line-height: 1.45;
}

.shop-cart-drawer__empty-btn {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: #c41e3a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.shop-cart-drawer__variant,
.shop-cart-drawer__unit {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.shop-cart-drawer__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.shop-cart-drawer__remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.shop-cart-drawer__remove:hover {
  background: #ffe8ec;
  color: #c41e3a;
}

.shop-cart-drawer__item.is-removing {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.shop-cart-drawer__free {
  margin-bottom: 12px;
}

.shop-cart-drawer__free-text {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #c41e3a;
}

.shop-cart-drawer__free-bar {
  height: 6px;
  border-radius: 999px;
  background: #f0e6e8;
  overflow: hidden;
}

.shop-cart-drawer__free-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c41e3a, #e85d75);
  transition: width 0.35s ease;
}

.shop-cart-drawer__breakdown {
  margin: 0 0 12px;
  font-size: 13px;
}

.shop-cart-drawer__breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.shop-cart-drawer__breakdown dt {
  color: #777;
  font-weight: 500;
}

.shop-cart-drawer__breakdown dd {
  margin: 0;
  font-weight: 600;
  color: #222;
}

.shop-cart-drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-cart-drawer__view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  color: #222 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.shop-cart-drawer__checkout {
  text-align: center;
}

body.cart-drawer-open {
  overflow: hidden;
}

@keyframes pbEmptyPaw {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .shop-cart-drawer__empty-paw,
  .shop-cart-drawer__free-fill,
  .shop-cart-drawer__item.is-removing {
    animation: none !important;
    transition: none !important;
  }
}

[data-theme="dark"] .pb-product-badge {
  background: rgba(26, 29, 36, 0.92);
  color: #f2f2f2;
}

[data-theme="dark"] .pb-paw-track {
  background: linear-gradient(145deg, #1a1d24, #12151a);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pb-paw-track__details dd,
[data-theme="dark"] .shop-cart-drawer__empty-title {
  color: #eee;
}
