/* Pets Sparkle site-wide UX polish (v1) */

/* ---------- Shop: filter chips in one swipeable row on mobile ---------- */
@media (max-width: 760px) {
  body .ps-typechips {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px !important;
    margin-left: -16px !important; margin-right: -16px !important; padding: 2px 16px 6px !important;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  body .ps-typechips::-webkit-scrollbar { display: none; }
  body .ps-typechips a { flex: none !important; white-space: nowrap; scroll-snap-align: start; }
}

/* ---------- Product page ---------- */
@media (max-width: 760px) {
  body .ps-pdp-buy { display: flex !important; flex-direction: row !important; align-items: stretch; gap: 10px !important; }
  body .ps-pdp-buy .ps-qtybox { flex: none; width: 120px; }
  body .ps-pdp-buy .ps-pdp-add { flex: 1 1 auto; margin: 0 !important; display: flex; align-items: center; justify-content: center; }
  body .ps-tabs {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px !important;
    margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none;
  }
  body .ps-tabs::-webkit-scrollbar { display: none; }
  body .ps-tabs .ps-tab { flex: none !important; white-space: nowrap; }
}

/* Sticky add-to-cart bar (mobile) */
.ps-sticky-atc { display: none; }
@media (max-width: 760px) {
  .ps-sticky-atc {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #E7ECF7;
    box-shadow: 0 -8px 24px -12px rgba(21,24,28,.18);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .ps-sticky-atc.show { transform: translateY(0); }
  .ps-sticky-atc img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #F3F6FF; flex: none; }
  .ps-sticky-atc .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
  .ps-sticky-atc .tx b { font-size: 14px; font-weight: 700; color: #15181C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ps-sticky-atc .tx span { font-size: 13px; color: #5B616B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ps-sticky-atc button {
    flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 6px;
    background: #2455E8; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  }
  body.ps-has-sticky .ps-chat { bottom: 84px !important; }
}

/* ---------- Floating chat bubble: lighter footprint on phones ---------- */
@media (max-width: 760px) {
  body .ps-chat-fab { transform: scale(.86); transform-origin: bottom right; }
}

/* ---------- About page ---------- */
.ps-about { max-width: 1040px; margin: 0 auto; }
.ps-about h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 0 0 14px; color: #15181C; }
.ps-about h3 { font-size: 17px; margin: 0 0 6px; color: #15181C; }
.ps-about p { color: #4A4F58; line-height: 1.65; }
.ps-about-lead { font-size: clamp(18px, 1.7vw, 21px) !important; line-height: 1.55 !important; color: #2B3038 !important; text-align: center; max-width: 720px; margin: 0 auto 48px !important; }
.ps-about-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2455E8; margin-bottom: 10px; }
.ps-about-center { text-align: center; }
.ps-about-story { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: stretch; margin: 0 0 64px; }
.ps-about-mission { background: #2455E8; border-radius: 14px; padding: 32px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.ps-about-mission .ps-about-eyebrow { color: #BFD2FF; }
.ps-about-mission p { color: #fff !important; font-size: 17px; line-height: 1.6; margin: 0; font-weight: 500; }
.ps-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0 56px; }
.ps-about-card { border: 1px solid #E7ECF7; border-radius: 14px; padding: 22px; background: #fff; }
.ps-about-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 14px;
  background: linear-gradient(150deg, #5A86FF 0%, #2455E8 52%, #1B40C4 100%); box-shadow: 0 10px 20px -10px rgba(36,85,232,.6); }
.ps-about-card .ic svg { width: 22px; height: 22px; }
.ps-about-card p { font-size: 14.5px; margin: 0; }
.ps-about-aff { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #F4F7FF; border: 1px solid #E7ECF7; border-radius: 14px; padding: 24px 28px; margin: 0 0 56px; }
.ps-about-aff p { margin: 0; }
.ps-about-cta { text-align: center; padding: 8px 0 12px; }
.ps-about-cta p { margin: 0 0 20px; }
.ps-about-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.ps-about-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 6px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.ps-about-btn.p { background: #2455E8; color: #fff !important; }
.ps-about-btn.p:hover { background: #1B40C4; }
.ps-about-btn.s { background: #fff; color: #2455E8 !important; border: 1.5px solid #C9D6FA; }
.ps-about-btn.s:hover { border-color: #2455E8; }
@media (max-width: 900px) {
  .ps-about-story { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ps-about-grid { grid-template-columns: 1fr; }
  .ps-about-aff { flex-direction: column; align-items: flex-start; }
  .ps-about-btn { width: 100%; }
  .ps-about-mission { padding: 24px; }
}

/* ---------- Contact quick-help cards ---------- */
.ps-quickhelp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 32px; }
.ps-quickhelp a { display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 1px solid #E7ECF7; border-radius: 12px; text-decoration: none !important; background: #fff; transition: border-color .15s ease; }
.ps-quickhelp a:hover { border-color: #2455E8; }
.ps-quickhelp .ic { width: 38px; height: 38px; border-radius: 10px; background: #EEF3FF; color: #2455E8; display: grid; place-items: center; margin-bottom: 8px; }
.ps-quickhelp .ic svg { width: 20px; height: 20px; }
.ps-quickhelp b { color: #15181C; font-size: 15px; }
.ps-quickhelp a > span:last-child { color: #6A6F78; font-size: 13px; }
@media (max-width: 560px) { .ps-quickhelp { grid-template-columns: 1fr; gap: 8px; } .ps-quickhelp a { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; } .ps-quickhelp .ic { margin: 0; flex: none; } .ps-quickhelp a > span:last-child { display: none; } .ps-quickhelp a::after { content: "\203A"; margin-left: auto; color: #2455E8; font-size: 22px; line-height: 1; } }

/* Active filter chips in brand blue (never plain black) */
body .ps-typechips a.on { background: #2455E8 !important; border-color: #2455E8 !important; color: #fff !important; }

/* ---------- Footer social icons: equal tiles, equal glyph size ---------- */
body .ps-soc { display: flex !important; gap: 10px !important; }
body .ps-soc a {
  width: 42px !important; height: 42px !important; border-radius: 12px !important;
  display: grid !important; place-items: center !important; padding: 0 !important;
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.88) !important; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body .ps-soc a:hover { background: #2455E8 !important; border-color: #2455E8 !important; color: #fff !important; }
body .ps-soc a svg { width: 19px !important; height: 19px !important; display: block; }

/* ---------- Mobile menu: clean, aligned, no stray lines ---------- */
body .ps-mm { padding: 12px 20px 28px !important; }
body .ps-mm .top { display: flex !important; justify-content: flex-end; align-items: center; height: 44px; margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; }
body .ps-mm .top .ps-x {
  position: static !important; width: 40px !important; height: 40px !important; border-radius: 50% !important;
  background: #F4F6FB !important; border: 0 !important; box-shadow: none !important; font-size: 22px !important; color: #15181C !important;
  display: grid !important; place-items: center !important;
}
body .ps-mm .ps-msearch { margin: 0 0 14px !important; height: 48px; border-radius: 10px !important; overflow: hidden; }
body .ps-mm .ps-msearch input { height: 48px !important; font-size: 16px !important; border-radius: 10px 0 0 10px !important; }
body .ps-mm .ps-msearch button { height: 48px !important; width: 52px !important; border-radius: 0 10px 10px 0 !important; }
body .ps-mm > a, body .ps-mm .ps-acc-t {
  display: flex !important; align-items: center; justify-content: space-between; width: 100% !important;
  margin: 0 !important; padding: 15px 2px !important; box-sizing: border-box;
  font-size: 18px !important; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: -.01em;
  color: #15181C !important; text-decoration: none !important; text-align: left;
  background: none !important; border: 0 !important; border-bottom: 1px solid #EEF1F7 !important; border-radius: 0 !important; box-shadow: none !important;
}
body .ps-mm .ps-macc { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body .ps-mm .ps-acc-t svg { width: 18px !important; height: 18px !important; color: #6A6F78; transition: transform .2s ease; }
body .ps-mm .ps-macc.open .ps-acc-t svg { transform: rotate(180deg); color: #2455E8; }
body .ps-mm .ps-acc-b { padding: 4px 0 10px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #EEF1F7 !important; background: none !important; }
body .ps-mm .ps-acc-b a {
  display: block !important; padding: 10px 2px 10px 14px !important; margin: 0 !important;
  font-size: 15.5px !important; font-weight: 500 !important; color: #4A4F58 !important;
  border: 0 !important; text-decoration: none !important; background: none !important;
}
body .ps-mm .ps-acc-b a:hover, body .ps-mm .ps-acc-b a:active { color: #2455E8 !important; }
body .ps-mm .ps-macc.open .ps-acc-t { border-bottom-color: transparent !important; color: #2455E8 !important; }
body .ps-mm-social {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px !important;
  margin: 24px 0 0 !important; padding: 0 !important; border: 0 !important;
}
body .ps-mm-social::before, body .ps-mm-social::after { display: none !important; }
body .ps-mm .ps-mm-ic {
  display: flex !important; flex-direction: column; align-items: center; gap: 7px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 0 !important;
  font-size: 12px !important; font-weight: 600 !important; color: #4A4F58 !important; text-decoration: none !important; background: none !important;
}
body .ps-mm .ps-mm-ic svg {
  width: 46px !important; height: 46px !important; padding: 13px; box-sizing: border-box;
  border-radius: 14px; background: #F4F7FF; color: #2455E8 !important; display: block !important;
}
body .ps-mm .ps-mm-ic span { border: 0 !important; text-decoration: none !important; }
body .ps-mm .ps-acc-b { border-radius: 0 !important; box-shadow: none !important; }

/* ---------- Blog newsletter card: real photo + light brand panel ---------- */
body .ps-b3news {
  background: #E9EEF9 !important; background-image: none !important; color: #15181C !important;
  padding: 0 !important; border-radius: 16px !important; overflow: hidden !important; border: 0 !important; box-shadow: none !important;
  display: flex !important; flex-direction: column; align-self: start;
}
body .ps-b3news::before, body .ps-b3news::after { display: none !important; }
body .ps-b3news-photo { aspect-ratio: 16 / 10; overflow: hidden; background: #DCE5F7; }
body .ps-b3news-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
body .ps-b3news-body { padding: 26px 28px 28px; }
body .ps-b3news .eye { color: #2455E8 !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .12em !important; text-transform: uppercase; }
body .ps-b3news h2 { color: #0E3AA8 !important; font-size: clamp(24px, 2.2vw, 30px) !important; line-height: 1.15 !important; margin: 10px 0 10px !important; }
body .ps-b3news p { color: #4A4F58 !important; }
body .ps-b3news form { display: flex !important; flex-direction: column; gap: 10px !important; margin: 18px 0 12px !important; }
body .ps-b3news input[type=email] { background: #fff !important; border: 1px solid #D5DDEE !important; color: #15181C !important; border-radius: 8px !important; height: 50px; padding: 0 16px !important; width: 100%; box-sizing: border-box; }
body .ps-b3news button { height: 50px; border-radius: 8px !important; width: 100%; }
body .ps-b3news .ps-consent, body .ps-b3news .ps-consent label { color: #6A6F78 !important; font-size: 12.5px !important; }
body .ps-b3row h3 .ar { background: #2455E8 !important; color: #fff !important; }
