/* ==========================================================================
   PETBUCKET STOREFRONT — clone of petbucket.com.au

   Brand palette extracted from the live site stylesheet (Theme-2020):
     #567BDA  primary blue   (links, CTAs, accents, hover bg #3961c8)
     #84AD08  buybox border / placeholder divider green
     #85AE07  floating sticky-bar olive green
     #90B520  "You Save $X" savings text green
     #92A48A  variant pill checked sage green
     #658600  above-variant text deep green
     #ED5A70  free-shipping ribbon hot-pink
     #F19133  rating-bar fill / orange star color
     #606060  primary text gray
     #878787  section title bar text
     #F3F3F3  section title bar bg (Q&A / Reviews tabs)
     #e9e9e9  section title bar border
     #FAFAFA  variants box / "All reviews/Q&A" buttons bg
     #EFEFEF  variant pill unchecked bg
     #EDEDED  hairlines / gallery card border
     #f2f2f2  review distribution bar TRACK
     #aaa     strikethrough retail / quantity input border
     #ed5a70  free-shipping ribbon hot pink

   Body font is Roboto (Google Fonts) loaded immediately below.

   This file is layered AFTER the bundled default theme.css so the brand
   tokens + bespoke section markup win without re-deriving primitives like
   product cards or form inputs.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --pb-blue:       #567BDA;
  --pb-blue-dark:  #3961c8;

  /* Greens — the legacy theme uses FOUR slightly different greens; we
   * keep them distinct rather than collapsing because each carries a
   * specific UI meaning. */
  --pb-green:           #84AD08;  /* buybox border */
  --pb-green-floating:  #85AE07;  /* floating sticky buy bar background */
  --pb-green-savings:   #90B520;  /* "You Save $X" copy */
  --pb-green-checked:   #92A48A;  /* variant pill checked bg (sage) */
  --pb-green-deep:      #658600;  /* above-variant text */

  /* Accents */
  --pb-pink:        #ED5A70;     /* free-shipping ribbon */
  --pb-orange:      #F19133;     /* rating bars + stars */

  /* Greys */
  --pb-text:        #606060;     /* body text + headlines */
  --pb-text-dark:   #2c2c2c;     /* extra-dark accent (rarely used) */
  --pb-text-muted:  #878787;     /* section title bar text */
  --pb-text-fade:   #aaa;        /* strikethrough retail price + qty input border */

  /* Surfaces */
  --pb-canvas:      #FAFAFA;     /* variants box + "view all" buttons */
  --pb-band:        #EFEFEF;     /* unchecked variant pill bg */
  --pb-band-title:  #F3F3F3;     /* Q&A / Reviews title bar bg */
  --pb-hairline:    #EDEDED;     /* gallery card border + dividers */
  --pb-band-border: #e9e9e9;     /* Q&A / Reviews title bar border */
  --pb-border:      #e1e1e1;
  --pb-bar-track:   #f2f2f2;     /* review distribution bar empty track */
  --pb-danger:      #FF0000;
  --pb-show-more-bg:     #eee;   /* show more / less button bg */
  --pb-show-more-border: #ccc;   /* show more / less button border */

  /* Override the bundled brand vars so any default-theme component that
     paints itself with --color-brand re-skins to Petbucket without a
     separate rewrite. */
  --color-brand:          var(--pb-blue);
  --color-brand-dark:     var(--pb-blue-dark);
  --color-brand-contrast: #ffffff;
  --color-text:           var(--pb-text);
  --color-muted:          var(--pb-text);
  --font-sans:            'Roboto', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display:         var(--font-sans);
  /* Live petbucket.com.au layout reference:
       #divHeader (outer wrapper) ........ 1300px max
       .CenterSection (inner content) .... 1218px rendered
       Topbar (locale / currency) ........ 1260px max
     We use a single --container shared by header, sub-nav, footer
     and account pages. Inner pages free to clamp themselves further
     (e.g. legal copy at 720px). */
  --container:            1300px;
  --container-narrow:     1218px;
  --container-topbar:     1260px;
}

/* Body — legacy uses Roboto 14 / 1.5 line-height, body color #606060. */
body {
  font-family: var(--font-sans);
  color: var(--pb-text);
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}

/* Anchor links pick up the brand blue everywhere. */
a { color: var(--pb-blue); }
a:hover { color: var(--pb-blue-dark); }

/* Skip-to-content link — visible only on focus, hops to the main
   landmark. Required for keyboard navigation past the header. */
.pb-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pb-blue);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 4px 0;
}
.pb-skip-link:focus {
  left: 0;
  outline: 3px solid #fff;
  outline-offset: -2px;
}

/* Global focus ring — the default-theme stylesheet sometimes wins
   the cascade and removes outlines, so set the brand-blue ring here
   with high specificity for any interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--pb-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Don't show focus on programmatically-focused elements (e.g. main
   landmark after the skip link). */
[tabindex="-1"]:focus { outline: none; }

/* Hide the bundled-default header so only the Petbucket header is shown
   if anything ever tries to render it. */
.site-header { display: none; }

/* The default theme.css ships a `.section-header` flex rule for its
   own homepage section-heading element. Liquid's section tag wraps
   each rendered section in `<div class="shopify-section section-{{ name }}">`,
   so the bundled rule accidentally turns the wrapper around our header
   into a flex container that puts utility-bar + header element side by
   side. Force block on every Petbucket section wrapper, with high enough
   specificity to win against the inherited `.section-header` rule. */
div.shopify-section,
div.shopify-section.section-header,
div.shopify-section.section-footer { display: block; padding: 0; margin: 0; }

/* ===== Layout primitives ===== */
.pb-container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ==========================================================================
   Utility bar
   ========================================================================== */
.pb-utility-bar {
  background: var(--pb-canvas);
  border-bottom: 1px solid var(--pb-hairline);
  font-size: 12px;
  color: var(--pb-text);
}
.pb-utility-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pb-utility-bar__pitches,
.pb-utility-bar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.pb-utility-bar__pitches li,
.pb-utility-bar__links li {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.pb-utility-bar__pitches img { display: inline-block; vertical-align: middle; }
.pb-utility-bar__links a { color: var(--pb-text); text-decoration: none; }
.pb-utility-bar__links a:hover { color: var(--pb-blue); }
.pb-utility-bar__lang { color: var(--pb-text); }

/* ==========================================================================
   Main header
   ========================================================================== */
.pb-header {
  background: #fff;
  border-bottom: 1px solid var(--pb-hairline);
  position: sticky;
  top: 0;
  z-index: 50;
}
.pb-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 18px;
}
.pb-logo img { display: block; max-height: 56px; width: auto; }

.pb-search {
  display: flex;
  align-items: center;
  border: 2px solid var(--pb-blue);
  border-radius: 4px;
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
}
.pb-search input[type="search"] {
  flex: 1;
  border: 0;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--pb-text-dark);
  outline: none;
  background: transparent;
}
.pb-search button {
  background: var(--pb-blue);
  color: #fff;
  border: 0;
  padding: 0 14px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pb-search button:hover { background: var(--pb-blue-dark); }
.pb-search button .icon { color: #fff; }

.pb-header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--pb-text);
  font-size: 13px;
}
.pb-header__phone strong { display: block; color: var(--pb-text-dark); font-size: 15px; line-height: 1.1; }
.pb-header__phone-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }

.pb-header__action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  text-decoration: none;
  color: var(--pb-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  position: relative;
}
.pb-header__action img,
.pb-header__action .icon { width: 22px; height: 22px; }
.pb-header__action span { line-height: 1; }
.pb-header__action:hover { color: var(--pb-blue); }

.pb-header__cart-count {
  position: absolute;
  top: -2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--pb-blue);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pb-header__cart-count.is-empty { display: none; }

.pb-header__trade-chip {
  position: absolute;
  top: -4px;
  right: -8px;
  padding: 1px 5px;
  background: var(--pb-green);
  color: #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 14px;
}

/* ==========================================================================
   Sub-nav strip
   ========================================================================== */
.pb-subnav {
  background: var(--pb-blue);
  color: #fff;
}
.pb-subnav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
}
.pb-subnav__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.pb-subnav__cat { position: relative; }
.pb-subnav__cat-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.pb-subnav__cat--has-children .pb-subnav__cat-link::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 120ms ease;
}
.pb-subnav__cat-link:hover,
.pb-subnav__cat-link.is-active {
  background: var(--pb-blue-dark);
  color: #fff;
}
.pb-subnav__cat:hover .pb-subnav__cat-link::after { transform: rotate(-135deg) translateY(-1px); }

.pb-subnav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--pb-hairline);
  border-top: 3px solid var(--pb-blue);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  z-index: 40;
}
.pb-subnav__cat:hover .pb-subnav__panel,
.pb-subnav__cat:focus-within .pb-subnav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pb-subnav__panel ul { list-style: none; margin: 0; padding: 0; }
.pb-subnav__panel a {
  display: block;
  padding: 8px 16px;
  color: var(--pb-text-dark);
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.pb-subnav__panel a:hover {
  color: var(--pb-blue);
  background: var(--pb-canvas);
  border-left-color: var(--pb-blue);
}

/* Featured brands strip on the right of the sub-nav */
.pb-subnav__brands {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.pb-subnav__brands-label { white-space: nowrap; }
.pb-subnav__brands ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.pb-subnav__brands a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding: 6px 0;
}
.pb-subnav__brands a:hover { border-bottom-color: #fff; }

/* Mobile collapse */
@media (max-width: 880px) {
  .pb-utility-bar__inner { font-size: 11px; gap: 8px; }
  .pb-utility-bar__pitches li:nth-child(2) { display: none; }
  .pb-header__inner { grid-template-columns: auto 1fr auto; }
  .pb-header__phone { display: none; }
  .pb-search { order: 4; grid-column: 1 / -1; max-width: 100%; }
  .pb-subnav__inner { gap: 0; }
  /* Allow horizontal scroll for the category strip on narrow screens
     but hide the scrollbar so the row reads as a clean swipe surface
     (matches the live site UX). Scrolling still works via touch /
     trackpad / arrow keys. */
  .pb-subnav__cats {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* legacy IE/Edge */
  }
  .pb-subnav__cats::-webkit-scrollbar { display: none; } /* WebKit/Blink */
  .pb-subnav__cat-link { padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .pb-subnav__brands { display: none; }
}

/* ==========================================================================
   Mobile menu drawer  (<=880px)
   Slide-in left drawer triggered by .pb-header__hamburger. Mirrors the
   cart-drawer pattern: fixed full-viewport wrapper, semi-transparent
   backdrop, off-canvas panel that slides in via transform when the
   wrapper gets `.is-open`. JS lives in pb-bundle.js.
   ========================================================================== */
.pb-header__hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-right: 4px;
  cursor: pointer;
  color: var(--color-text, #222);
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
}
.pb-header__hamburger:hover { background: rgba(0, 0, 0, 0.04); }
.pb-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.pb-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.pb-mobile-menu[hidden] { display: none; }
.pb-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 250ms ease;
}
.pb-mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85vw;
  max-width: 360px;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 250ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.pb-mobile-menu.is-open .pb-mobile-menu__backdrop { opacity: 1; }
.pb-mobile-menu.is-open .pb-mobile-menu__panel { transform: translateX(0); }
body.pb-mobile-menu-open { overflow: hidden; }

.pb-mobile-menu__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f3;
  background: #f7f8fa;
}
.pb-mobile-menu__account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.pb-mobile-menu__account img { flex-shrink: 0; }
.pb-mobile-menu__account-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
  font-size: 13px;
}
.pb-mobile-menu__account-text strong { font-weight: 600; color: #222; }
.pb-mobile-menu__account-text strong a {
  color: var(--pb-blue, #4063c5);
  text-decoration: none;
}
.pb-mobile-menu__account-text span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #555;
}
.pb-mobile-menu__account-text a {
  color: var(--pb-blue, #4063c5);
  text-decoration: none;
}
.pb-mobile-menu__account-text a:hover { text-decoration: underline; }
.pb-mobile-menu__sep { color: #bbb; }
.pb-mobile-menu__logout {
  display: inline;
  margin: 0;
  padding: 0;
}
.pb-mobile-menu__logout button {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--pb-green, #6ea71d);
  cursor: pointer;
  text-decoration: none;
}
.pb-mobile-menu__logout button:hover { text-decoration: underline; }
.pb-mobile-menu__close {
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}
.pb-mobile-menu__close:hover { background: rgba(0, 0, 0, 0.06); color: #222; }

.pb-mobile-menu__nav { padding: 4px 0 24px; }
.pb-mm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-mm-row {
  border-bottom: 1px solid #eef0f3;
}
.pb-mm-row > a,
.pb-mm-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.pb-mm-row > a:hover,
.pb-mm-toggle:hover { background: #f7f8fa; }
.pb-mm-toggle__title { flex: 1; }
.pb-mm-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: transform 200ms ease;
}
.pb-mm-toggle[aria-expanded="true"] .pb-mm-chev {
  transform: rotate(180deg);
  color: #222;
}
.pb-mm-panel { background: #fafbfc; }
.pb-mm-panel[hidden] { display: none; }
.pb-mm-panel > ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.pb-mm-panel > ul > li > a {
  display: block;
  padding: 11px 16px 11px 32px;
  font-size: 14px;
  color: var(--pb-blue, #4063c5);
  text-decoration: none;
}
.pb-mm-panel > ul > li > a:hover { background: #eef2fa; }
.pb-mm-shop-all {
  font-weight: 600;
  color: #222 !important;
}

.pb-mm-brands-grid {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pb-mm-brands-grid li { margin: 0; }
.pb-mm-brands-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 999px;
  text-decoration: none;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.pb-mm-brands-grid a > * {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 60%;
}
.pb-mm-brands-grid a:hover {
  border-color: #cfd7e3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.pb-mm-brands-grid img {
  width: auto;
  height: auto;
  object-fit: contain;
}
.pb-mm-brands-grid__text { padding: 0 4px; line-height: 1.2; }
.pb-mm-all-brands {
  display: block;
  padding: 10px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pb-blue, #4063c5);
  text-decoration: none;
}
.pb-mm-all-brands:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .pb-header__hamburger { display: inline-flex; }
  .pb-header__inner { grid-template-columns: auto auto 1fr auto auto; }
}
@media (min-width: 881px) {
  .pb-mobile-menu,
  .pb-header__hamburger { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.pb-hero {
  background:
    linear-gradient(135deg, rgba(86, 123, 218, 0.92), rgba(57, 97, 200, 0.95)),
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 16px;
}
.pb-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.pb-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.pb-hero__subtitle {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.pb-hero__ctas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pb-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid #fff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 150ms ease, transform 150ms ease;
}
.pb-hero__cta:hover {
  background: #fff;
  color: var(--pb-blue-dark);
  transform: translateY(-1px);
}
.pb-hero__cta:hover img { filter: brightness(0.4); }
.pb-hero__cta img { transition: filter 150ms ease; }

/* ==========================================================================
   Reviews band
   ========================================================================== */
.pb-reviews-band {
  background: var(--pb-canvas);
  border-bottom: 1px solid var(--pb-hairline);
  padding: 24px 16px;
}
.pb-reviews-band__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.pb-reviews-band__logo {
  width: 78px;
  height: auto;
  flex-shrink: 0;
}
.pb-reviews-band__text {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  color: var(--pb-text-dark);
  flex-wrap: wrap;
}
.pb-reviews-band__count,
.pb-reviews-band__rating {
  font-size: 28px;
  font-weight: 700;
  color: var(--pb-blue);
  display: inline-block;
  margin-right: 6px;
}
.pb-reviews-band__rating { color: var(--pb-green); }
/* Numeric rating value (e.g. "4.97") sits flush before the star bar
 * by default — give it a small gap so it reads as "4.97 ★★★★★". */
.pb-reviews-band__rating .pb-stars__value { margin-right: 6px; }
.pb-reviews-band__text em { color: var(--pb-text); font-style: italic; }
.pb-reviews-band__button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--pb-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 120ms ease;
}
.pb-reviews-band__button:hover { background: var(--pb-blue-dark); color: #fff; }

/* ==========================================================================
   Popular brands strip
   ========================================================================== */
.pb-popular-brands {
  padding: 36px 16px;
  background: #fff;
}
.pb-popular-brands__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.pb-popular-brands__title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  color: var(--pb-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pb-popular-brands__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--pb-blue);
  margin: 10px auto 0;
}
.pb-popular-brands__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 720px) {
  .pb-popular-brands__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .pb-popular-brands__grid { grid-template-columns: repeat(6, 1fr); }
}
.pb-popular-brands__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 12px 16px;
  border: 1px solid var(--pb-hairline);
  border-radius: 6px;
  background: #fff;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.pb-popular-brands__tile:hover {
  border-color: var(--pb-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(86, 123, 218, 0.12);
}
.pb-popular-brands__tile img { max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.pb-popular-brands__name { font-weight: 600; color: var(--pb-text-dark); }

/* ==========================================================================
   Featured products row
   ========================================================================== */
.pb-featured-products {
  padding: 36px 16px 56px;
  background: var(--pb-canvas);
}
.pb-featured-products__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.pb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}
.pb-section-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin: 0;
  color: var(--pb-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pb-section-head__link { color: var(--pb-blue); font-weight: 600; text-decoration: none; }
.pb-section-head__link:hover { color: var(--pb-blue-dark); }

.pb-product-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Fluid column count: 5 cards across the 1314px PDP cap with a
   * 240px floor so cards never balloon — narrower viewports just
   * show fewer cards at the same physical size. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.pb-footer { background: #2c2c2c; color: #d8d8d8; }
.pb-footer__promise {
  background: var(--pb-blue);
  color: #fff;
  padding: 20px 16px;
}
.pb-footer__promise-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: center;
}
@media (min-width: 720px) {
  .pb-footer__promise-inner { grid-template-columns: repeat(3, 1fr); text-align: left; }
}
.pb-footer__promise-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 720px) {
  .pb-footer__promise-inner > div { justify-content: flex-start; }
}
.pb-footer__promise-inner img { width: 32px; height: 32px; flex-shrink: 0; }
.pb-footer__promise-inner strong { font-weight: 600; font-size: 15px; display: block; }
.pb-footer__promise-inner span { font-size: 13px; opacity: 0.92; display: block; width: 100%; }

.pb-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) { .pb-footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pb-footer__inner { grid-template-columns: repeat(4, 1fr); } }

.pb-footer__col h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pb-footer__col ul { list-style: none; margin: 0; padding: 0; }
.pb-footer__col li { margin: 0 0 9px; }
.pb-footer__col a {
  color: #d8d8d8;
  text-decoration: none;
  font-size: 14px;
  transition: color 120ms ease;
}
.pb-footer__col a:hover { color: #fff; text-decoration: underline; }

.pb-footer__bottom { background: #1f1f1f; padding: 18px 16px; }
.pb-footer__bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pb-footer__social { display: flex; gap: 10px; align-items: center; }
.pb-footer__social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 120ms ease;
}
.pb-footer__social a:hover { background: var(--pb-blue); color: #fff; }
.pb-footer__copy { margin: 0; font-size: 13px; color: #999; }

/* ==========================================================================
   Hide bundled-default sections we replace so the home stays Petbucket-only
   ========================================================================== */
.shopify-section.section-trust-badges,
.shopify-section.section-collection-list,
.shopify-section.section-image-with-text,
.shopify-section.section-newsletter,
.shopify-section.section-featured-collection,
.shopify-section.section-announcement-bar { display: none; }

/* ==========================================================================
   Category detail page
   ========================================================================== */
.pb-collection {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.pb-breadcrumb {
  font-size: 13px;
  color: var(--pb-text);
  margin-bottom: 16px;
}
.pb-breadcrumb a { color: var(--pb-blue); text-decoration: none; }
.pb-breadcrumb a:hover { text-decoration: underline; }
.pb-breadcrumb__current { color: var(--pb-text-dark); font-weight: 600; }
.pb-breadcrumb span[aria-hidden] { margin: 0 6px; color: var(--pb-text); }

.pb-subcat-strip {
  margin-bottom: 24px;
  border: 1px solid var(--pb-hairline);
  border-radius: 6px;
  background: #fff;
  padding: 16px;
}
.pb-subcat-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pb-subcat-strip__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pb-text-dark);
  margin: 0;
}
.pb-subcat-strip__skip {
  color: var(--pb-blue);
  font-size: 13px;
  text-decoration: none;
}
.pb-subcat-strip__skip:hover { text-decoration: underline; }
.pb-subcat-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .pb-subcat-strip ul { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .pb-subcat-strip ul { grid-template-columns: repeat(6, 1fr); } }
.pb-subcat-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  color: var(--pb-text-dark);
  transition: border-color 120ms ease, transform 120ms ease;
}
.pb-subcat-strip a:hover {
  border-color: var(--pb-blue);
  transform: translateY(-2px);
}
.pb-subcat-strip img,
.pb-subcat-strip__placeholder {
  width: 100%;
  height: 80px;
  object-fit: contain;
  background: var(--pb-canvas);
  border-radius: 4px;
}
.pb-subcat-strip span {
  font-size: 13px;
  font-weight: 500;
}

.pb-collection__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .pb-collection__body { grid-template-columns: 240px 1fr; }
}

/* Sidebar */
.pb-sidebar { display: flex; flex-direction: column; gap: 20px; }
.pb-filter-box {
  background: #fff;
  border: 1px solid var(--pb-hairline);
  border-radius: 6px;
  overflow: hidden;
}
.pb-filter-box__title {
  background: var(--pb-blue);
  color: #fff;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pb-filter-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 360px;
  overflow-y: auto;
}
.pb-filter-list li { font-size: 13px; }
.pb-filter-list a {
  display: block;
  padding: 6px 14px;
  color: var(--pb-text-dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 120ms ease;
}
.pb-filter-list a:hover {
  background: var(--pb-canvas);
  color: var(--pb-blue);
}
.pb-filter-list .is-active > a {
  background: var(--pb-canvas);
  color: var(--pb-blue);
  font-weight: 700;
  border-left-color: var(--pb-blue);
}

/* Header / toolbar / pager */
.pb-collection-head { margin-bottom: 18px; }
.pb-collection-head__title {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 6px;
  color: var(--pb-text-dark);
}
.pb-collection-head__desc { color: var(--pb-text); font-size: 14px; line-height: 1.5; }

.pb-collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--pb-hairline);
  border-bottom: 1px solid var(--pb-hairline);
  margin-bottom: 16px;
}
.pb-collection-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pb-collection-toolbar__count {
  margin: 0;
  color: var(--pb-text);
  font-size: 13px;
}
.pb-collection-toolbar__clear {
  color: var(--pb-blue);
  font-size: 13px;
  text-decoration: none;
}
.pb-collection-toolbar__clear:hover { text-decoration: underline; }
.pb-collection-toolbar__sort label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--pb-text); }
.pb-collection-toolbar__sort select {
  border: 1px solid var(--pb-border);
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
  background: #fff;
}
.pb-collection-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.pb-collection-active-filters__label {
  color: var(--pb-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pb-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--pb-hairline);
  border-radius: 999px;
  background: var(--pb-canvas);
  color: var(--pb-text-dark);
  font-size: 13px;
}

.pb-empty {
  padding: 48px;
  text-align: center;
  color: var(--pb-text);
  background: var(--pb-canvas);
  border-radius: 6px;
  border: 1px dashed var(--pb-border);
}

.pb-pager { margin-top: 32px; text-align: center; }
.pb-pager ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pb-pager li a,
.pb-pager li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--pb-border);
  color: var(--pb-text-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.pb-pager li a:hover { border-color: var(--pb-blue); color: var(--pb-blue); }
.pb-pager li.is-current span { background: var(--pb-blue); color: #fff; border-color: var(--pb-blue); }

/* ==========================================================================
   Product grid + card
   ========================================================================== */
.pb-product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Same fluid rule as .pb-product-row — five cards on a 1314px cap
   * (≈ 252px each), fewer on narrower viewports. The 240px floor is
   * the smallest card width we accept before dropping a column. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.pb-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pb-hairline);
  border-radius: 4px;
  padding: 12px;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  position: relative;
}
.pb-card:hover {
  border-color: var(--pb-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(86, 123, 218, 0.12);
}
.pb-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  background: var(--pb-canvas);
  border-radius: 4px;
  overflow: hidden;
}
.pb-card__thumb img,
.pb-card__thumb-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pb-card__sale-ribbon,
.pb-card__new-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  border-radius: 999px;
  z-index: 2;
}
.pb-card__sale-ribbon { background: var(--pb-danger); }
.pb-card__new-ribbon  { background: var(--pb-green); }

.pb-card__brand {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pb-blue);
  margin-bottom: 4px;
  text-decoration: none;
}
.pb-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.pb-card__title a { color: var(--pb-text-dark); text-decoration: none; }
.pb-card__title a:hover { color: var(--pb-blue); }

.pb-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pb-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--pb-danger);
}
.pb-card__compare {
  font-size: 13px;
  color: var(--pb-text);
  text-decoration: line-through;
}
.pb-card__save {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--pb-green);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pb-card__cta {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 7px 12px;
  background: var(--pb-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border-radius: 4px;
  transition: background 120ms ease;
}
.pb-card__cta:hover { background: var(--pb-blue-dark); color: #fff; }

/* ==========================================================================
   Brand detail page (extends pb-collection)
   ========================================================================== */
.pb-brand-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--pb-canvas) 0%, #fff 100%);
  border: 1px solid var(--pb-hairline);
  border-radius: 6px;
  flex-wrap: wrap;
}
.pb-brand-banner__logo {
  max-width: 200px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.pb-brand-banner__copy {
  flex: 1;
  min-width: 240px;
}
.pb-brand-banner__title {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 0 0 8px;
  color: var(--pb-text-dark);
}
.pb-brand-banner__desc {
  color: var(--pb-text);
  font-size: 14px;
  line-height: 1.5;
}
.pb-brand-banner__desc p { margin: 0 0 6px; }

/* ==========================================================================
   Product detail page
   ========================================================================== */
.pb-product { max-width: var(--container); margin: 0 auto; padding: 18px 16px 48px; }

/* ==========================================================================
   Mobile sticky buy-bar + variant modal (<880px)
   ========================================================================== */
/* Buy-bar pinned to the top of the scrolling content. Above the
   header on the way in (z-index above sticky header). Desktop hides
   it via the media query below. */
/* Sticky top buy-bar. Hidden by default; the inline JS at the bottom of
   main-product.liquid toggles `is-visible` once the desktop buybox
   scrolls out of view via IntersectionObserver. That keeps the bar
   from cannibalising the page on widths where the desktop buybox
   would otherwise still be visible. */
/* Floating sticky buy bar — direct port of legacy `.floating-buy-wrapper`:
 *   position: fixed; top:0; left:0; right:0; z-index:999
 *   background:#85AE07 (olive — distinct from the buybox border green)
 *   padding:6px 10px
 *   color:#fff
 *
 * Inner cluster (.pb-mobile-buybar__inner) is centred at max-width:1260px,
 * containing the price (24px white) + Add-to-Cart pill (#567BDA, 3px radius,
 * 16px text, with cart icon).
 *
 * The IntersectionObserver in main-product.liquid toggles `.is-visible`
 * once the desktop buybox scrolls out of view. */
.pb-mobile-buybar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 6px 10px;
  background: var(--pb-green-floating);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  transition: transform 180ms ease;
}
.pb-mobile-buybar.is-visible {
  display: flex;
  transform: translateY(0);
}
.pb-mobile-buybar__price {
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  padding: 0 15px 0 0;
  line-height: 35px;
}
.pb-mobile-buybar__add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pb-blue);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 15px 8px 12px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  font-family: var(--font-sans);
}
.pb-mobile-buybar__add:hover { background: var(--pb-blue-dark); }
.pb-mobile-buybar__add:disabled { opacity: 0.6; cursor: not-allowed; }

/* Variant modal */
.pb-mobile-modal {
  border: 0;
  border-radius: 8px;
  padding: 20px;
  width: min(360px, 92vw);
  background: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}
.pb-mobile-modal::backdrop { background: rgba(0, 0, 0, 0.5); }
.pb-mobile-modal__close-form { margin: 0; }
.pb-mobile-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--pb-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--pb-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pb-mobile-modal__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 28px 16px 0;
  color: var(--pb-text-dark);
}
.pb-mobile-modal__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.pb-mobile-modal__product-title {
  font-size: 14px;
  color: var(--pb-text-dark);
  flex: 1;
}
.pb-mobile-modal__product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--pb-text-dark);
  white-space: nowrap;
}
.pb-mobile-modal__image {
  display: block;
  margin: 0 auto 16px;
  max-width: 200px;
  height: auto;
}
.pb-mobile-modal__variants {
  background: var(--pb-canvas);
  border: 1px solid var(--pb-hairline);
  border-radius: 6px;
  padding: 14px;
  margin: 0 0 16px;
}
.pb-mobile-modal__variants legend {
  font-weight: 700;
  font-size: 14px;
  color: var(--pb-text-dark);
  padding: 0 4px;
}
.pb-mobile-modal__variants ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pb-mobile-modal__variants label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--pb-text-dark);
  cursor: pointer;
}
.pb-mobile-modal__variants input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pb-blue);
}
.pb-mobile-modal__submit {
  width: 100%;
  background: var(--pb-blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pb-mobile-modal__submit:hover { background: var(--pb-blue-dark); }
.pb-mobile-modal__submit:disabled { background: #b8c0c8; cursor: not-allowed; }

/* ==========================================================================
   end mobile buy-bar
   ========================================================================== */

/* Title row above the grid — legacy:
 *   `.detailTop` (no border, margin-bottom: 5px)
 *   `.product-title` (a <div>): font-size:24px !important, font-weight:normal !important
 *   `.detailMeta` (flex row): rating sprite + "X customer reviews" + "X answered questions"
 * The links inside the meta row are #567BDA on hover-underline.
 *
 * We render the title as <h1> (good SEO) but match the visual to the
 * legacy <div>: 24px / weight 400 / #606060 / margin-bottom 5px.
 */
.pb-product-titlerow {
  margin: 4px 0 18px;
  max-width: var(--pb-pdp-cap, 1314px);
  margin-left: auto;
  margin-right: auto;
}
.pb-product-titlerow__title {
  font-size: 24px;
  font-weight: normal;
  margin: 0 0 5px;
  color: var(--pb-text);
  line-height: 1.25;
}
@media (max-width: 640px) {
  .pb-product-titlerow__title { font-size: 22px; }
}
.pb-product-titlerow__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.pb-product-titlerow__rating,
.pb-product-titlerow__qa {
  color: var(--pb-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pb-product-titlerow__rating:hover,
.pb-product-titlerow__qa:hover { color: var(--pb-blue); text-decoration: underline; }
.pb-product-titlerow__rating .pb-stars { color: var(--pb-orange); font-size: 18px; }
.pb-product-titlerow__count { font-weight: 400; }
.pb-product-titlerow__sep { color: var(--pb-text); opacity: 0.5; }

/* Star rating widget — legacy uses an image sprite (Theme-2020/stars.png).
 * Without the asset we render unicode stars in the brand orange. The
 * `.pb-stars` selector is used in title row + each individual review card. */
.pb-stars { color: var(--pb-orange); letter-spacing: 1px; }

/* PDP top fold — flat 3-sibling grid (gallery / centre / buybox) so we
 * can drive the responsive cascade with grid-template-areas without
 * touching markup. Order priorities:
 *
 *   ≥1024px:  3 columns — gallery (left), description (centre), buybox
 *             (right, sticky). Direct visual port of legacy 45/22/30.
 *   720-1023: 2 columns — gallery (left) + buybox (right) on row 1,
 *             description full-width on row 2. Description "drops down"
 *             so it stops squeezing.
 *   <720px:   single column stacked in this order: gallery → buybox →
 *             centre. Buybox sits directly under the picture so the
 *             customer can buy before scrolling past the long copy.
 *
 * The `--pb-pdp-cap` variable matches the legacy
 * `.CenterSection .ProductDetail .wWrapperOut max-width:1314px`.
 */
:root {
  --pb-pdp-cap: 1314px;
}
.pb-product__top {
  display: grid;
  grid-template-columns: 1fr;
  /* Default (mobile <720) — single column, ordered by area:
   *   gallery / buybox / centre */
  grid-template-areas:
    "gallery"
    "buybox"
    "centre";
  gap: 24px;
  margin: 0 auto 36px;
  max-width: var(--pb-pdp-cap);
  align-items: start;
}
.pb-product__top > .pb-product-gallery { grid-area: gallery; }
.pb-product__top > .pb-product-buybox  { grid-area: buybox; }
.pb-product__top > .pb-product-centre  { grid-area: centre; }

/* Tablet — gallery + buybox side-by-side on row 1, description below. */
@media (min-width: 720px) {
  .pb-product__top {
    grid-template-columns: 1fr 320px;
    grid-template-areas:
      "gallery buybox"
      "centre  centre";
    column-gap: 24px;
    row-gap: 28px;
  }
}

/* Desktop — gallery + description share the remaining width, buybox
 * holds a FIXED track so it never squashes as the viewport narrows.
 * Reference width is 360px (matches the legacy column proportion at
 * 1314px cap and stays comfortable for the price block + CTA at any
 * width down to the tablet breakpoint). The two flexible tracks use
 * `minmax(0, 1fr)` so long content doesn't force the buybox tighter. */
@media (min-width: 1024px) {
  .pb-product__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 360px;
    grid-template-areas: "gallery centre buybox";
    column-gap: 28px;
  }
  .pb-product__top > .pb-product-centre {
    /* The 28px column-gap is the only breathing room between text and
     * the gallery / buybox cards — no extra internal padding needed. */
    padding: 0;
  }
}

/* Gallery — direct port of legacy `.productGallery .image-gallery > .slide-container-h > div:first-of-type`:
 *   background: #FFFFFF
 *   border:     1px solid #EDEDED
 *   padding:    30px (square corners — radius 0)
 *   text-align: center
 *   width:      100% (within the 45% gallery column)
 * Native asset is 350×350; the 30px padding + 1px border yields a ~412px card.
 */
.pb-product-gallery { width: 100%; max-width: 412px; margin-left: auto; margin-right: auto; }
.pb-product-gallery__main {
  background: #fff;
  border: 1px solid var(--pb-hairline);
  border-radius: 0;
  padding: 30px;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.pb-product-gallery__thumbs { max-width: 412px; }

/* Centre column — italic lead, Type/SKU/Brand spec line, full
   description, secure-logo strip, award badges. */
.pb-product-centre {
  color: var(--pb-text-dark);
  font-size: 14px;
  line-height: 1.55;
  /* Critical: keep the grid item from overflowing its track when the
     content has long inline tokens (URLs, brand names, etc.). Without
     `min-width: 0` the implicit `min-width: min-content` lets the
     column expand into the buybox's lane and the description visually
     hides behind the sticky buybox. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.pb-product-centre img,
.pb-product-centre table { max-width: 100%; height: auto; }
.pb-product-centre__lead {
  font-style: italic;
  color: var(--pb-text-dark);
  font-size: 16px;
  margin: 0 0 12px;
}
.pb-product-centre__specs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--pb-text);
}
.pb-product-centre__specs strong { color: var(--pb-text-dark); font-weight: 600; }
.pb-product-centre__desc { color: var(--pb-text); font-size: 14px; line-height: 21px; }
.pb-product-centre__desc ul { padding-left: 22px; margin: 8px 0; }
.pb-product-centre__desc li { margin: 4px 0; }

/* Description "Show more / Show less" toggle — direct port of legacy
 * `#truncate` / `#restore` pill button:
 *   display:inline-block;
 *   background-color:#eee;
 *   padding:6px 15px;
 *   color:#567BDA;
 *   border:1px solid #ccc;
 *   border-radius:3px;
 *   margin-top:20px;
 * Hover bg: #fff. CSS-only toggle via hidden checkbox + sibling
 * combinator (no JS needed). */
.pb-desc-toggle { margin: 20px 0 14px; }
.pb-desc-toggle__input { position: absolute; opacity: 0; pointer-events: none; }
.pb-desc-toggle__content {
  max-height: 320px;
  overflow: hidden;
  position: relative;
  transition: max-height 240ms ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.pb-desc-toggle__input:checked ~ .pb-desc-toggle__content {
  max-height: 6000px;
  -webkit-mask-image: none;
          mask-image: none;
}
.pb-show-more {
  display: inline-block;
  margin: 20px 0 0;
  padding: 6px 15px;
  background: var(--pb-show-more-bg);
  color: var(--pb-blue);
  border: 1px solid var(--pb-show-more-border);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 21px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.pb-show-more:hover { background: #fff; }
.pb-show-more__less { display: none; }
.pb-desc-toggle__input:checked ~ .pb-show-more .pb-show-more__more { display: none; }
.pb-desc-toggle__input:checked ~ .pb-show-more .pb-show-more__less { display: inline; }
.pb-product-centre__secure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--pb-hairline);
}
.pb-product-centre__secure img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}
.pb-product-centre__secure img:hover { opacity: 1; }
.pb-product-centre__awards {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.pb-product-centre__awards img { max-height: 96px; width: auto; }

/* Below-fold bands (Q&A, Recommended, Reviews) — direct port of the
 * legacy `.questions-title` / `.reviews-title` pseudo-tab look:
 *   background: #F3F3F3
 *   border:     1px solid #e9e9e9
 *   border-radius: 5px 5px 0 0   (top-rounded only — sits on the
 *                                  content like a tab)
 *   padding:    10px 10px 10px 20px
 *   color:      #878787 (Q&A) / #606060 (Reviews — slightly darker)
 *   font-size:  24px
 *   max-width:  950px (legacy `.detailBottom .questions-title`)
 *   margin-top: 40px (Reviews adds extra gap above)
 *
 * The `.pb-product-band__head` is the shared header rendered on each
 * `<section class="pb-product-band">` (Q&A, Reviews, Recommended).
 * The "Ask a question" / "Write a review" pill sits on the right.
 */
.pb-product-band {
  margin-top: 30px;
  padding-top: 0;
  border-top: 0;
  /* Match the .pb-product__top cap so every PDP section — top trio,
   * Q&A, recommendations, reviews — spans the same width. The legacy
   * 950px cap squished the lower bands into the centre of the page;
   * the screenshot the merchant approved has every section flush to
   * the same gutter as the top row. */
  max-width: var(--pb-pdp-cap, 1314px);
  margin-left: auto;
  margin-right: auto;
}
/* Reviews band gets extra breathing room above (legacy +40px). */
.pb-product-band#reviews { margin-top: 40px; }
.pb-product-band__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--pb-band-title);
  border: 1px solid var(--pb-band-border);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  padding: 10px 10px 10px 20px;
  margin-bottom: 0;
  position: relative;
  overflow: visible;
}
.pb-product-band__head::before { content: none; } /* drop the legacy blue stripe accent */
.pb-product-band__head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--pb-text-muted);
  line-height: 1.25;
  letter-spacing: 0;
}
/* Reviews title is slightly darker per legacy. */
.pb-product-band#reviews .pb-product-band__head h2 { color: var(--pb-text); }
@media (max-width: 640px) {
  .pb-product-band__head h2 { font-size: 20px; }
}

/* The "Ask a Question" / "Write a Review" trigger button on the right
 * of each tab — legacy uses a small white pill with #ccc border. */
.pb-product-band__head .pb-button--ghost,
.pb-product-band__head .pb-button {
  border-radius: 3px;
  background: #fff;
  border: 1px solid #ccc;
  color: var(--pb-text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 15px;
  text-decoration: none;
  font-family: var(--font-sans);
  transition: background 120ms ease, color 120ms ease;
}
.pb-product-band__head .pb-button--ghost:hover,
.pb-product-band__head .pb-button:hover {
  background: var(--pb-blue);
  color: #fff;
  border-color: var(--pb-blue);
}
.pb-product-gallery__main img,
.pb-product-gallery__placeholder {
  width: 100%;
  height: 100%;
  max-width: 350px;
  max-height: 350px;
  object-fit: contain;
  background: #fff;
}
/* Thumbnail strip — legacy: row of 72×72 cells, each holding a 50×50
 * thumbnail centered with 10px padding + 1px #EDEDED border + white
 * background. Strip sits BELOW the main image, centred via flex.
 * Hidden below 960px (mobile uses single image only). */
.pb-product-gallery__thumbs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pb-product-gallery__thumbs li {
  width: 72px;
  height: 72px;
}
.pb-product-gallery__thumbs button {
  width: 72px;
  height: 72px;
  padding: 10px;
  border: 1px solid var(--pb-hairline);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pb-product-gallery__thumbs button:hover,
.pb-product-gallery__thumbs button.is-active { border-color: var(--pb-blue); }
.pb-product-gallery__thumbs img { width: 50px; height: 50px; object-fit: contain; display: block; }
@media (max-width: 960px) {
  .pb-product-gallery__thumbs { display: none; }
}

/* Buybox — direct visual port of the legacy `.productBuyBox`.
 *   border  : 1px solid #84AD08 (Petbucket green)
 *   bg      : #fff
 *   padding : 25px (legacy 25px square)
 *   radius  : 0  (legacy has no rounded corners)
 *   sticky  : position:sticky; top:10px on desktop ≥960
 */
.pb-product-buybox {
  background: #fff;
  border: 1px solid var(--pb-green);
  border-radius: 0;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  position: relative;
}
@media (min-width: 960px) {
  .pb-product-buybox {
    position: sticky;
    top: 10px;
    align-self: start;
  }
}

/* Free-shipping ribbon — full-width band that bleeds over the box's
 * 25px padding via negative margins (legacy `margin:-26px -26px 20px`).
 * Coral background `#ed5a70` with white left-aligned 18px text and a
 * bundled icon to the left. Square corners — no radius (it's a flush
 * top band, not a pill).
 */
.pb-product-buybox__shipping {
  background: #ed5a70;
  color: #fff;
  font-weight: 500;
  padding: 8px 5px 7px 40px;
  margin: -26px -26px 20px;
  border-radius: 0;
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
  background-image: url('/petbucket-assets/icon-free-shipping-top.png');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 24px auto;
}
.pb-product-buybox__brand {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pb-blue);
  text-decoration: none;
}
.pb-product-buybox__title {
  font-size: clamp(20px, 2vw, 24px);
  margin: 0;
  color: var(--pb-text-dark);
  line-height: 1.25;
}
.pb-product-buybox__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pb-text);
  text-decoration: none;
}
.pb-product-buybox__rating:hover { color: var(--pb-blue); }

.pb-product-buybox__prices { display: flex; flex-direction: column; gap: 4px; }
.pb-product-buybox__retail {
  /* Legacy: 18px / weight 300 / #aaa / strikethrough. */
  font-size: 18px;
  font-weight: 300;
  text-decoration: line-through;
  color: #aaa;
  line-height: 135%;
}
.pb-product-buybox__our {
  /* Legacy: 36px / weight 500 / #606060 (body grey, NOT red) / line-height 42px. */
  font-size: 36px;
  font-weight: 500;
  color: var(--pb-text);
  line-height: 42px;
}
.pb-product-buybox__save {
  /* Legacy: 18px / lighter-green #90b520 / NOT bold. */
  color: #90b520;
  font-weight: 400;
  font-size: 18px;
}
.pb-product-buybox__short { color: var(--pb-text); font-size: 14px; line-height: 1.5; }

/* Hairline divider used between buy-box sections (after the price
   block, separating loyalty / S&S / CTA). Matches the screenshot's
   thin gray rule. */
.pb-product-buybox__divider {
  border: 0;
  height: 1px;
  background: var(--pb-hairline);
  margin: 4px 0 0;
}

/* Per-product disclaimer — short asterisked note under the Add to
   Cart button (legacy field `out_of_stock_message` reused for "*NO
   PRESCRIPTION needed for this item." style copy on Petbucket). */
.pb-product-buybox__disclaimer {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--pb-text);
  margin: 4px 0 0;
}

/* Variant group + Schedule & Save — direct port of legacy `.variants`:
 *   bg      : #FAFAFA  (--pb-canvas)
 *   border  : 1px solid #ededed (--pb-hairline)
 *   padding : 15px
 *   heading : first <p> bolded, plain text — no accent color
 *
 * Each option is a `<label>` row with the plan name + an inline
 * surcharge in parentheses (e.g. "Every 3 months (-$2.20)"). No
 * pill background or selected-state border on the visible row —
 * the native radio dot is the indicator (legacy parity).
 */
.pb-product-variant-group,
.pb-product-schedule-save {
  background: var(--pb-canvas);
  border: 1px solid var(--pb-hairline);
  border-radius: 0;
  padding: 12px;
  margin: 0 0 12px;
}
.pb-product-variant-group legend,
.pb-product-schedule-save legend {
  font-weight: 700;
  font-size: 14px;
  color: var(--pb-text-dark);
  padding: 0;
  margin-bottom: 8px;
  float: none;
}
/* Schedule & Save / variant rows — direct port of the legacy `labelauty`
 * jQuery pill widget:
 *   .variantsAsRadioButton input[type=radio] { display:none }
 *   input + label {
 *     display:block;       (full-row)
 *     box-sizing:border-box;
 *     min-width:170px;
 *     margin:3px 0;
 *     padding:10px;
 *     background:#efefef;  (unchecked)
 *     color:#b3b3b3;
 *     border-radius:3px;
 *     font-size:13px;
 *     cursor:pointer;
 *   }
 *   input:checked + label { background:#92a48a; color:#fff; }
 *
 * The radio itself is hidden; the visible affordance is the entire
 * label cell. Hover darkens the unchecked bg slightly.
 */
.pb-variant-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-variant-pill__input {
  /* Hide the native radio — the wrapping label IS the affordance. */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pb-variant-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 170px;
  margin: 0;
  padding: 10px;
  background: var(--pb-band);
  color: #b3b3b3;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
  user-select: none;
  transition: background 120ms ease, color 120ms ease;
}
.pb-variant-pill:hover { background: #eaeaea; color: #a7a7a7; }

/* Checked state — the sibling input is :checked, paint the pill sage green. */
.pb-variant-pill__input:checked + .pb-variant-pill {
  background: var(--pb-green-checked);
  color: #fff;
}
.pb-variant-pill__input:checked + .pb-variant-pill .pb-variant-pill__surcharge {
  color: #fff;
  opacity: 0.92;
}

.pb-variant-pill__label { font-weight: 400; flex: 0 1 auto; }
.pb-variant-pill__surcharge {
  /* Surcharge sits inline next to the label, no pill background. */
  background: transparent;
  color: inherit;
  padding: 0 0 0 4px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0.85;
}
.pb-variant-pill__input:focus-visible + .pb-variant-pill {
  outline: 2px solid var(--pb-blue);
  outline-offset: 2px;
}

/* Disabled / unavailable */
.pb-variant-pill.is-unavailable,
.pb-variant-pill__input:disabled + .pb-variant-pill {
  opacity: 0.55;
  cursor: not-allowed;
}
.pb-variant-pill__oos {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pb-danger);
}

.pb-product-buybox__cta {
  display: grid;
  /* Legacy: qty cell is 65px wide; the button takes the rest. */
  grid-template-columns: 65px 1fr;
  gap: 8px;
  align-items: center;
}
.pb-product-buybox__after-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.pb-product-buybox__qty { display: flex; align-items: center; margin: 0; }
.pb-product-buybox__qty span {
  /* Hide the inline "Qty" label — the legacy buybox doesn't show it
   * (the input alone is the affordance). Keep the markup for a11y. */
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.pb-product-buybox__qty input {
  /* Legacy: 60×43px, 1px solid #aaa, radius 4px, 16px text, padding 5px. */
  width: 60px;
  height: 43px;
  text-align: center;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 16px;
  padding: 5px;
}
.pb-product-buybox__add {
  /* Add-to-Cart pill — text + emoji icon centred, no background-image
   * sprite (the legacy fade-out icon was visually competing with the
   * inline emoji). Larger text per merchant request.
   *   bg      : #567BDA
   *   border  : 1px solid #567BDA
   *   color   : #fff
   *   font    : Roboto 20px / weight 500
   *   padding : 14px 16px (symmetric, content centred)
   *   radius  : 4px
   *   width   : 100%
   */
  background: var(--pb-blue);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 14px 16px;
  height: auto;
  border: 1px solid var(--pb-blue);
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 120ms ease, border-color 120ms ease;
}
.pb-product-buybox__add:hover {
  background-color: var(--pb-blue-dark);
  border-color: var(--pb-blue-dark);
}
.pb-product-buybox__add:disabled {
  background-color: #b8c0c8;
  border-color: #b8c0c8;
  cursor: not-allowed;
}

.pb-product-buybox__pitches {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--pb-hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--pb-text);
}

/* Loyalty row — star badge on the left, big bold points count, "Learn
   more" link on the right. Sits between the divider (above) and the
   Schedule & Save card (below). No borders of its own — the divider
   handles the visual break, matching the reference screenshot. */
.pb-product-buybox__rewards {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 2px;
  text-decoration: none;
  color: var(--pb-text-dark);
  font-size: 14px;
}
.pb-product-buybox__rewards-badge { width: 36px; height: auto; flex-shrink: 0; }
.pb-product-buybox__rewards img { width: 28px; height: auto; flex-shrink: 0; }
.pb-product-buybox__rewards strong { font-weight: 700; color: var(--pb-text-dark); }
.pb-product-buybox__rewards-count { color: var(--pb-text-dark); font-size: 16px; }
.pb-product-buybox__rewards-count strong { font-size: 16px; line-height: 1; font-weight: 700; }
.pb-product-buybox__rewards-link {
  margin-left: auto;
  color: var(--pb-blue);
  font-size: 14px;
  font-weight: 500;
}
.pb-product-buybox__rewards:hover .pb-product-buybox__rewards-link { color: var(--pb-blue-dark); text-decoration: underline; }

/* Schedule & Save checked state — petbucket green with white text.
   The global pill rule (`.pb-variant-pill__input:checked + …`) already
   paints sage green; this scoped rule swaps it for the deeper brand
   green used elsewhere on the PDP ("You Save", new-product ribbon)
   so the selected cadence reads as the same affirmative green. */
.pb-product-schedule-save .pb-variant-pill__input:checked + .pb-variant-pill {
  background: var(--pb-green);
  color: #fff;
}
.pb-product-schedule-save .pb-variant-pill__input:checked + .pb-variant-pill .pb-variant-pill__surcharge {
  color: #fff;
  opacity: 0.92;
}

/* Variant fieldset header — bold title (with ? tooltip) on the left,
   "Cancel anytime" on the right. The fieldset's own <legend> is
   visually-hidden for a11y. */
.pb-variant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pb-variant-header__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--pb-text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pb-variant-header__hint {
  font-size: 12px;
  color: var(--pb-text);
}

/* Tooltip — `<details>` with a small ? trigger; popover floats above the
   trigger when open. Click anywhere else closes via clicking the
   summary again (native details behaviour). */
.pb-variant-tooltip {
  display: inline-block;
  position: relative;
}
.pb-variant-tooltip > summary {
  list-style: none;
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pb-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 120ms ease;
}
.pb-variant-tooltip > summary::-webkit-details-marker { display: none; }
.pb-variant-tooltip > summary:hover { background: var(--pb-blue-dark); }
.pb-variant-tooltip[open] > summary {
  background: var(--pb-blue-dark);
  outline: 2px solid var(--pb-blue);
  outline-offset: 2px;
}
.pb-variant-tooltip__pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 10px 12px;
  background: var(--pb-text-dark);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  z-index: 20;
}
.pb-variant-tooltip__pop strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}
.pb-variant-tooltip__pop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--pb-text-dark);
}

/* sr-only utility — keep an element accessible to assistive tech but
   visually hidden. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Secure-checkout trust badges + best-pet-store badge — sit at the
   bottom of the buybox like the live site. */
.pb-product-buybox__secure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--pb-hairline);
}
.pb-product-buybox__secure img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}
.pb-product-buybox__secure img:hover { opacity: 1; }

.pb-product-buybox__badge {
  text-align: center;
  padding-top: 6px;
}
.pb-product-buybox__badge img {
  max-width: 180px;
  height: auto;
  display: inline-block;
}

.pb-spec-table { width: 100%; border-collapse: collapse; }
.pb-spec-table th, .pb-spec-table td { padding: 8px 12px; border-bottom: 1px solid var(--pb-hairline); text-align: left; font-size: 14px; }
.pb-spec-table th { color: var(--pb-text); font-weight: 600; width: 200px; }

/* Reviews wrapper — sits inside the Q&A/Reviews "tab" header above.
 * Legacy renders the wrapper as plain content (no border, no bg) directly
 * under the gray-tab title. The summary card sits on the LEFT (~310px),
 * the review list sits on the RIGHT (60% column), and the footer/pagination
 * spans both. Below 1200px the grid collapses (`display:block`).
 */
.pb-reviews-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding: 20px;
  border: 1px solid var(--pb-band-border);
  border-top: 0;
}
@media (min-width: 1100px) {
  .pb-reviews-wrapper {
    grid-template-columns: 310px 1fr;
    align-items: start;
  }
}

/* Summary card — left column, white card with #EDEDED border. */
.pb-reviews-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--pb-hairline);
  border-radius: 0;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 310px;
}
.pb-reviews-summary__avg {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pb-reviews-summary__avg strong {
  font-size: 36px;
  line-height: 1;
  color: var(--pb-text);
  font-weight: 500;
}
.pb-reviews-summary__avg span { font-size: 14px; color: var(--pb-text); }
.pb-reviews-summary__avg .pb-stars { font-size: 22px; line-height: 1; }
.pb-reviews-summary__caption {
  margin: 0;
  font-size: 14px;
  color: var(--pb-blue);
  line-height: 1.4;
}
.pb-reviews-summary__share {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--pb-text);
  line-height: 1.4;
}

/* Distribution bars — legacy: 180px width, #f2f2f2 track, #f19133 fill. */
.pb-reviews-summary__dist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pb-reviews-summary__dist li {
  display: grid;
  grid-template-columns: 50px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--pb-text);
}
.pb-reviews-summary__star { color: var(--pb-blue); font-size: 14px; }
.pb-reviews-summary__bar {
  height: 12px;
  background: var(--pb-bar-track);
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  max-width: 180px;
}
.pb-reviews-summary__bar > span {
  display: block;
  height: 100%;
  background: var(--pb-orange);
}
.pb-reviews-summary__cnt { font-size: 14px; color: var(--pb-text); }

/* "Write a Review" trigger inside the summary card — full-width blue
 * button (legacy: 100% width inside the 310px card; #567BDA bg). */
.pb-reviews-summary .pb-write-form {
  margin-top: 6px;
  border-top: 0;
  padding-top: 0;
}
.pb-reviews-summary .pb-write-form > summary {
  list-style: none;
  display: block;
  width: 100%;
  background: var(--pb-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 15px;
  border-radius: 4px;
  border: 1px solid var(--pb-blue);
  text-align: center;
  cursor: pointer;
  font-family: var(--font-sans);
  box-sizing: border-box;
}
.pb-reviews-summary .pb-write-form > summary::-webkit-details-marker { display: none; }
.pb-reviews-summary .pb-write-form > summary:hover {
  background: var(--pb-blue-dark);
  border-color: var(--pb-blue-dark);
}

/* Review list — right column. Legacy: each review is a flex row with a
 * 50×50 colored circle on the left + content on the right. */
.pb-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pb-review {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--pb-hairline);
  align-items: flex-start;
}
.pb-review:first-child { padding-top: 4px; }
.pb-review:last-child { border-bottom: 0; }
/* Avatar — legacy: 50×50 circle, 3px solid #ddd border, white initials,
 * 24px font, 50px line-height (vertical centre), uppercase. The
 * background-color is set per-review via inline style="" so each
 * reviewer gets their own colour. */
.pb-review__avatar {
  width: 50px;
  height: 50px;
  border-radius: 72px;
  border: 3px solid #ddd;
  background: var(--pb-blue);
  color: #fff;
  display: inline-block;
  text-align: center;
  font-weight: 400;
  font-size: 24px;
  line-height: 50px;
  letter-spacing: 0;
  user-select: none;
  text-transform: uppercase;
  box-sizing: border-box;
}
.pb-review__body-wrap { min-width: 0; }
.pb-review__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pb-review__top .pb-stars { font-size: 16px; }
.pb-review__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--pb-text);
  line-height: 20px;
}
.pb-review__meta {
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--pb-text-fade);
  opacity: 0.9;
}
.pb-review__meta strong { color: var(--pb-text); font-weight: 600; }
.pb-review__sep { margin: 0 4px; opacity: 0.6; }
.pb-review__body {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--pb-text);
}

/* Q&A wrapper — legacy: white content area sitting BELOW the gray
 * title-tab, with side+bottom border connecting them visually.
 * The "Ask a Question" pill in the title tab + the question/answer
 * rows + the "1-5 of N Questions" footer all live inside this card. */
.pb-qa-wrapper {
  padding: 20px;
  border: 1px solid var(--pb-band-border);
  border-top: 0;
  background: #fff;
}
@media (max-width: 640px) {
  .pb-qa-wrapper { padding: 15px; }
}

/* Q&A band — matches petbucket.com.au row layout. */
.pb-qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pb-qa;
}
.pb-qa-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--pb-hairline);
}
.pb-qa-item:first-child { padding-top: 4px; }
.pb-qa-item:last-child { border-bottom: 0; }

.pb-qa-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.pb-qa-row:first-child { margin-top: 0; }
.pb-qa-row__label {
  font-weight: 700;
  font-size: 14px;
  color: var(--pb-text-dark);
  line-height: 1.5;
}
.pb-qa-row__label--answer { color: var(--pb-text); }

.pb-qa-row__body { font-size: 14px; line-height: 1.5; color: var(--pb-text-dark); }
.pb-qa-row__text { margin: 0; }
.pb-qa-row__by {
  margin: 4px 0 0;
  color: var(--pb-text);
  font-size: 13px;
}

.pb-qa__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pb-canvas);
  font-size: 13px;
  color: var(--pb-text);
  border-radius: 0 0 6px 6px;
  margin-top: 4px;
}
.pb-qa__footer a {
  color: var(--pb-blue);
  font-size: 18px;
  text-decoration: none;
  line-height: 1;
}
.pb-qa__footer a:hover { color: var(--pb-blue-dark); }

/* Reviews pagination footer — mirrors `.pb-qa__footer` (mid-tone grey
 * row sitting under the review list with the "1-10 of N Reviews" range
 * left and prev/next chevrons right). */
.pb-reviews__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pb-canvas);
  font-size: 13px;
  color: var(--pb-text);
  border-radius: 0 0 6px 6px;
  margin-top: 6px;
}
.pb-reviews__footer-links { display: inline-flex; align-items: center; gap: 14px; }
.pb-reviews__footer-links a {
  color: var(--pb-blue);
  font-size: 18px;
  text-decoration: none;
  line-height: 1;
}
.pb-reviews__footer-links a:hover { color: var(--pb-blue-dark); }

.pb-write-form { margin-top: 18px; border-top: 1px solid var(--pb-hairline); padding-top: 18px; }
.pb-write-form summary { cursor: pointer; font-weight: 600; color: var(--pb-blue); }
.pb-write-form form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-width: 540px; }
.pb-write-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--pb-text-dark); }
.pb-write-form input,
.pb-write-form textarea,
.pb-write-form select { padding: 8px 10px; border: 1px solid var(--pb-border); border-radius: 4px; font-size: 14px; font-family: inherit; }
.pb-write-form textarea { resize: vertical; min-height: 80px; }
.pb-form-note { margin: 4px 0 0; font-size: 12px; color: var(--pb-text); }
.pb-button {
  display: inline-flex;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
  color: var(--pb-text-dark);
  align-self: flex-start;
}
.pb-button--primary { background: var(--pb-blue); color: #fff; }
.pb-button--primary:hover { background: var(--pb-blue-dark); }

.pb-empty--inline { padding: 24px 0; background: transparent; border: 0; text-align: left; }

/* ==========================================================================
   /account/* shell — sidebar + main column. Used by every customer-facing
   account page (dashboard, details, orders, subscriptions, cards, addresses).
   The sidebar lives in default-theme/snippets/account-shell.liquid.
   ========================================================================== */
.account-shell {
  /* Match the rest of petbucket.com.au — full-width container constrained
     by the same `--container` (1180px) variable used by the header,
     sub-nav and footer. The header / footer / utility-bar all stay at
     100% viewport width above and below; only the inner content here
     is centred. */
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem 16px 3rem;
  max-width: var(--container, 1180px);
  margin: 0 auto;
  /* Belt-and-braces against rogue inner overflow that would force the
     viewport wider than the device and trigger mobile zoom-out. */
  min-width: 0;
}
@media (min-width: 720px) {
  .account-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.account-shell__sidebar {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  align-self: start;
}
@media (min-width: 720px) {
  .account-shell__sidebar {
    position: sticky;
    top: 1rem;
  }
}
.account-shell__sidebar-head { margin-bottom: 1rem; }
.account-shell__sidebar-head h2 {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-muted, #6b7280);
}
.account-shell__greeting {
  margin: 0.25rem 0 0; font-size: 16px; font-weight: 600; color: var(--color-text, #111827);
}
.account-shell__nav ul { list-style: none; margin: 0; padding: 0; }
.account-shell__nav li { margin: 0; }
.account-shell__nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  margin: 0.15rem -0.25rem;
  border-radius: 6px;
  color: var(--color-text, #1f2937);
  text-decoration: none;
  font-size: 14px;
}
.account-shell__nav a:hover { background: #f3f4f6; }
.account-shell__nav a.is-active {
  background: var(--color-brand, #ff6b00);
  color: #fff;
  font-weight: 600;
}
.account-shell__credit {
  margin-top: 1rem; padding: 0.75rem 0.85rem;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 6px;
}
.account-shell__credit-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #065f46;
}
.account-shell__credit-amount { display: block; font-size: 18px; color: #065f46; }
.account-shell__logout { margin-top: 1.25rem; }
.account-shell__logout-btn {
  width: 100%; background: transparent;
  border: 1px solid var(--color-border, #d1d5db);
  color: var(--color-muted, #6b7280);
  padding: 0.5rem 0.75rem; border-radius: 6px;
  font-size: 13px; cursor: pointer;
}
.account-shell__logout-btn:hover { background: #f9fafb; color: var(--color-text); }

.account-shell__main {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 1.5rem;
  min-width: 0;
  /* Long product titles, URLs in attribution lines, etc. should wrap
     instead of pushing the page wider than the viewport. */
  overflow-wrap: anywhere;
}
.account-shell__page-head {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.account-shell__page-head h1 { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--color-text, #111827); }
.account-shell__page-sub { margin: 0.35rem 0 0; color: var(--color-muted, #6b7280); font-size: 14px; max-width: 560px; }
.account-shell__counter {
  display: inline-flex; align-items: baseline; gap: 0.25rem;
  background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe;
  border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 12px; font-weight: 600;
}
.account-shell__counter strong { font-size: 14px; }

.account-shell__flash {
  margin-bottom: 1rem; padding: 0.7rem 0.9rem;
  border-radius: 6px; font-size: 13px;
}
.account-shell__flash--ok    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.account-shell__flash--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Empty-state panels — used by every account page */
.account-empty {
  border: 1px dashed var(--color-border, #d1d5db);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-muted, #6b7280);
}
.account-empty h2 { margin: 0 0 0.5rem; font-size: 16px; color: var(--color-text, #111827); }
.account-empty p  { margin: 0 0 1rem; font-size: 14px; }

/* Buttons used inside the account shell */
.account-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem; border-radius: 6px;
  border: 1px solid var(--color-border, #d1d5db);
  background: #fff; color: var(--color-text, #1f2937);
  font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: none; line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.account-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.account-btn--primary {
  background: var(--color-brand, #ff6b00); border-color: var(--color-brand, #ff6b00);
  color: #fff;
}
.account-btn--primary:hover { background: var(--color-brand-dark, #e55c00); border-color: var(--color-brand-dark, #e55c00); color: #fff; }
.account-btn--ghost { background: #f9fafb; }
.account-btn--ghost:hover { background: #f3f4f6; }
.account-btn--danger-link {
  border-color: transparent; background: transparent; color: #b91c1c;
}
.account-btn--danger-link:hover { background: #fef2f2; color: #991b1b; border-color: transparent; }

/* Dashboard tiles */
.account-tiles {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 720px) { .account-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .account-tiles { grid-template-columns: repeat(3, 1fr); } }
.account-tile {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: var(--color-text, #1f2937);
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.account-tile:hover {
  border-color: var(--color-brand, #ff6b00);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}
.account-tile__count { font-size: 28px; font-weight: 700; line-height: 1; color: var(--color-text, #111827); }
.account-tile__label { font-size: 13px; font-weight: 600; color: var(--color-muted, #6b7280); text-transform: uppercase; letter-spacing: 0.04em; }
.account-tile__hint  { font-size: 12px; color: var(--color-muted, #9ca3af); }
.account-tile--credit { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.account-tile--credit .account-tile__count { color: #065f46; }
.account-tile--credit .account-tile__label { color: #047857; }
.account-tile--credit .account-tile__hint  { color: #047857; }

/* Generic card-row layout used by /account/cards + /account/addresses */
.card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem; align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
}
.card-row--default { border-color: var(--color-brand, #ff6b00); background: #fff7f0; }
.card-row__icon { font-size: 22px; line-height: 1; }
.card-row__body { min-width: 0; }
.card-row__label { display: block; font-weight: 600; font-size: 14px; }
.card-row__tag {
  display: inline-block; margin-left: 0.4rem;
  background: #d1fae5; color: #065f46;
  padding: 0.1rem 0.45rem; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  vertical-align: middle;
}
.card-row__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-size: 12px; color: var(--color-muted, #6b7280);
  margin-top: 0.2rem;
}
.card-row__actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* Subscription cards — /account/subscriptions */
.sub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.sub-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
}
.sub-card--cancelled { opacity: 0.65; }
.sub-card__thumb {
  width: 84px; height: 84px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sub-card__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sub-card__thumb-placeholder { font-size: 32px; opacity: 0.45; }

.sub-card__body { min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.sub-card__top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sub-card__title {
  margin: 0; font-size: 15px; font-weight: 700; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sub-card__title a { color: var(--color-text, #111827); text-decoration: none; }
.sub-card__title a:hover { text-decoration: underline; }
.sub-card__status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 999px;
}
.sub-card__status--active    { background: #d1fae5; color: #065f46; }
.sub-card__status--paused    { background: #fef9c3; color: #854d0e; }
.sub-card__status--cancelled { background: #fee2e2; color: #991b1b; }

.sub-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
}
.sub-card__meta dt {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-muted, #9ca3af);
}
.sub-card__meta dd { margin: 0.15rem 0 0; font-size: 14px; font-weight: 500; }
@media (max-width: 600px) { .sub-card__meta { grid-template-columns: 1fr; } }

.sub-card__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border, #e5e7eb);
}
.sub-card__action-group {
  display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; margin: 0;
}
.sub-card__action-label {
  font-size: 12px; font-weight: 600; color: var(--color-muted, #6b7280);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-right: 0.25rem;
}
.sub-card__reschedule { margin: 0; }
.sub-card__reschedule summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  cursor: pointer;
}
.sub-card__reschedule summary::-webkit-details-marker { display: none; }
.sub-card__reschedule[open] summary { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.sub-card__date-form {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end;
  margin-top: 0.6rem; padding: 0.6rem;
  background: #f9fafb; border: 1px solid var(--color-border, #e5e7eb); border-radius: 6px;
}
.sub-card__date-form label {
  display: flex; flex-direction: column; gap: 0.2rem; flex: 1 1 160px;
  min-width: 0;
  font-size: 12px; color: var(--color-muted, #6b7280);
}
.sub-card__date-form input[type="date"] {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--color-border, #d1d5db);
  border-radius: 6px; font-size: 14px;
  width: 100%; min-width: 0;
}
.sub-card__cancel { margin-left: auto; }
@media (max-width: 600px) {
  .sub-card { grid-template-columns: 1fr; }
  .sub-card__cancel { margin-left: 0; }
}

/* ==========================================================================
   /account/login + /account/register — direct port of the legacy
   Views/Member/SignIn.cshtml + SignUp.cshtml two-column layout. New
   customer pitch on the left, returning-customer form on the right;
   the register page reuses the same card style in a single column.
   ========================================================================== */
.pb-auth {
  max-width: var(--container, 1300px);
  margin: 0 auto;
  padding: 1.5rem 16px 3rem;
}
.pb-auth__header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.pb-auth__header h1 {
  margin: 0; font-size: 1.6rem; font-weight: 700;
  color: var(--pb-text-dark, #1a1a1a);
}
.pb-auth__header p {
  margin: 0.4rem 0 0; color: var(--pb-text, #606060); font-size: 14px;
}

.pb-auth__grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 880px; margin: 0 auto;
}
.pb-auth__grid--single { max-width: 480px; }
@media (min-width: 720px) {
  .pb-auth__grid:not(.pb-auth__grid--single) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pb-auth__card {
  background: #fff;
  border: 1px solid var(--pb-hairline, #e5e7eb);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.pb-auth__card-title {
  margin: 0; font-size: 1.05rem; font-weight: 700;
  color: var(--pb-text-dark, #1a1a1a);
}
.pb-auth__card-sub {
  margin: 0; color: var(--pb-text, #606060); font-size: 14px; line-height: 1.5;
}
.pb-auth__card-foot {
  margin: 0.25rem 0 0; color: var(--pb-text, #606060); font-size: 13px;
}
.pb-auth__card-foot a { color: var(--pb-blue, #567BDA); text-decoration: none; }
.pb-auth__card-foot a:hover { text-decoration: underline; }
.pb-auth__card-foot--actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pb-auth__error {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  padding: 0.6rem 0.75rem; border-radius: 6px; font-size: 13px;
}
.pb-auth__error a { color: inherit; text-decoration: underline; font-weight: 600; }

.pb-auth__form { display: flex; flex-direction: column; gap: 0.85rem; margin: 0; }
.pb-auth__form--register { gap: 0.95rem; }

.pb-auth__field { display: flex; flex-direction: column; gap: 0.3rem; }
.pb-auth__label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--pb-text-dark, #1a1a1a); text-transform: none;
}
.pb-auth__label em { color: var(--pb-danger, #c0392b); font-style: normal; }
.pb-auth__field input[type="email"],
.pb-auth__field input[type="text"],
.pb-auth__field input[type="password"] {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--pb-border, #d1d5db);
  border-radius: 6px;
  font-size: 14px; line-height: 1.4;
  background: #fff;
  width: 100%; min-width: 0;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.pb-auth__field input:focus {
  outline: none;
  border-color: var(--pb-blue, #567BDA);
  box-shadow: 0 0 0 3px rgba(86, 123, 218, 0.18);
}
.pb-auth__hint { font-size: 12px; color: var(--pb-text, #6b7280); }

.pb-auth__row-fields {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .pb-auth__row-fields { grid-template-columns: 1fr 1fr; } }

.pb-auth__row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.pb-auth__remember {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 13px; color: var(--pb-text-dark, #1a1a1a); cursor: pointer;
}
.pb-auth__forgot {
  font-size: 13px; color: var(--pb-blue, #567BDA); text-decoration: none;
}
.pb-auth__forgot:hover { text-decoration: underline; }

.pb-auth__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1rem; border: 1px solid transparent;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background 120ms ease, border-color 120ms ease;
}
.pb-auth__btn--primary {
  background: var(--pb-blue, #567BDA); border-color: var(--pb-blue, #567BDA);
  color: #fff;
}
.pb-auth__btn--primary:hover {
  background: var(--pb-blue-dark, #4368c2);
  border-color: var(--pb-blue-dark, #4368c2);
  color: #fff;
}
.pb-auth__btn--secondary {
  background: #fff; border-color: var(--pb-border, #d1d5db);
  color: var(--pb-text-dark, #1a1a1a);
}
.pb-auth__btn--secondary:hover {
  background: #f9fafb; border-color: #9ca3af;
}
.pb-auth__form--secondary { margin-top: 0.6rem; gap: 0; }
.pb-auth__inline-form {
  display: inline; margin: 0; padding: 0;
}
.pb-auth__link-btn {
  background: none; border: 0; padding: 0;
  color: var(--pb-blue, #567BDA);
  font: inherit; cursor: pointer; text-decoration: underline;
}
.pb-auth__link-btn:hover { color: var(--pb-blue-dark, #4368c2); }
.pb-auth__sub {
  margin: 0.4rem 0 0; color: var(--pb-text, #606060); font-size: 14px; line-height: 1.5;
}
.pb-auth__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--pb-blue, #567BDA);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pb-auth__status {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--pb-hairline, #e5e7eb);
  border-radius: 6px;
  background: var(--pb-canvas, #fafafa);
}
.pb-auth__email-pill {
  color: var(--pb-text-dark, #1a1a1a);
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}
.pb-auth__alt {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pb-auth__link-row {
  margin: 0;
  color: var(--pb-text, #606060);
  font-size: 13px;
}
.pb-auth__link-row a {
  color: var(--pb-blue, #567BDA);
  text-decoration: none;
}
.pb-auth__link-row a:hover { text-decoration: underline; }

.pb-search-page {
  max-width: var(--container, 1300px);
  margin: 0 auto;
  padding: 1.5rem 16px 3rem;
}
.pb-search-page__hero {
  background: #fff;
  border: 1px solid var(--pb-hairline);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.pb-search-page__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--pb-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pb-search-page__sub,
.pb-search-page__count {
  color: var(--pb-text);
  font-size: 14px;
}
.pb-search-page__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.pb-search-page__form input[type="search"] {
  flex: 1 1 280px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--pb-border);
  border-radius: 6px;
  font-size: 15px;
}
.pb-search-page__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pb-search-page__browse {
  color: var(--pb-blue);
  font-size: 14px;
  text-decoration: none;
}
.pb-search-page__browse:hover { text-decoration: underline; }
.pb-search-page__starter,
.pb-search-page__empty {
  background: var(--pb-canvas);
  border: 1px solid var(--pb-hairline);
  border-radius: 8px;
  padding: 24px;
}
.pb-search-page__starter h2,
.pb-search-page__empty h2 {
  margin: 0 0 10px;
  color: var(--pb-text-dark);
}
.pb-search-page__starter-links,
.pb-search-page__actions,
.pb-cart-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pb-search-page__starter-links {
  margin-top: 14px;
}
.pb-search-page__starter-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--pb-hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--pb-text-dark);
  font-size: 14px;
  text-decoration: none;
}
.pb-search-page__starter-links a:hover {
  border-color: var(--pb-blue);
  color: var(--pb-blue);
}
.pb-search-page__actions {
  margin-top: 16px;
}
.pb-search-page__results {
  margin-top: 8px;
}
.pb-cart-empty {
  color: var(--pb-text);
}
.pb-cart-empty h2 {
  margin: 0 0 8px;
  color: var(--pb-text-dark);
  font-size: clamp(24px, 3vw, 30px);
}
.pb-cart-empty__actions {
  justify-content: center;
  margin-top: 18px;
}
.pb-cart-empty__links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.pb-cart-empty__links a {
  color: var(--pb-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.pb-cart-empty__links a:hover { text-decoration: underline; }

/* Header live-search dropdown — overrides for `.ashop-search-results`,
   the panel injected by `lib/search-injection.ts` into every rendered
   page. The form ships with `overflow: hidden` to keep its rounded blue
   border tight around the input + button; the dropdown needs to escape
   that, so we flip the form to `overflow: visible` and round the button
   corners directly so the original look survives. The injection script
   sets `position: relative` on the form itself, so we only need the
   overflow + button-radius patch here.

   The injected panel structure:

     <div data-ashop-search-results class="ashop-search-results">
       <ul>
         <li><a href="/products/…">
           <img src="…" />
           <div class="ashop-search-meta">
             <div class="ashop-search-title">…<mark>nex</mark>…</div>
             <div class="ashop-search-sku">…</div>
           </div>
           <div class="ashop-search-price">…</div>
         </a></li>
       </ul>
       <a class="ashop-search-viewall" href="/search?q=…">View all results…</a>
     </div>

   We win specificity over the injected `<style>` (which uses
   single-class selectors) by qualifying every rule with `.pb-search`. */
.pb-search { overflow: visible; }
.pb-search button { border-radius: 0 2px 2px 0; }

/* Tiny "searching…" spinner. The injected runtime toggles `is-loading`
   on the results panel during the fetch; we surface that as a small
   spinner pinned at the left of the input as a leading indicator —
   away from the native search-input clear button on the right. The
   input always reserves left padding so the spinner has a fixed slot
   and the text doesn't reflow when it appears. Pure CSS via `:has()`
   — no markup change needed. */
.pb-search input[type="search"] { padding-left: 32px; }
.pb-search::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 12px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid var(--pb-blue);
  border-top-color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.pb-search:has(.ashop-search-results.is-loading)::after {
  opacity: 1;
  animation: pb-search-spin 0.7s linear infinite;
}
@keyframes pb-search-spin {
  to { transform: rotate(360deg); }
}

.pb-search .ashop-search-results {
  top: 100%;
  left: -2px;
  right: -2px;
  background: #fff;
  border: 1px solid #d8dde2;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  max-height: 70vh;
  overflow-y: auto;
  z-index: 60;
  min-width: 0;
  color: var(--pb-text-dark);
  font-size: 14px;
}
.pb-search .ashop-search-results ul {
  padding: 0;
  margin: 0;
}
.pb-search .ashop-search-results > ul > li + li {
  border-top: 1px solid #eef0f3;
}
.pb-search .ashop-search-results > ul > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
}
.pb-search .ashop-search-results > ul > li > a:hover,
.pb-search .ashop-search-results > ul > li[aria-selected="true"] > a {
  background: #f4f6fa;
}
.pb-search .ashop-search-results img,
.pb-search .ashop-search-results .ashop-search-thumb-empty {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 2px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef0f3;
}
.pb-search .ashop-search-results .ashop-search-thumb-empty {
  background: #f4f6fa;
}
.pb-search .ashop-search-meta {
  flex: 1 1 auto;
  min-width: 0;
}
.pb-search .ashop-search-title {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--pb-text-dark);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
.pb-search .ashop-search-title::before { content: '"'; }
.pb-search .ashop-search-title::after  { content: '"'; }
.pb-search .ashop-search-title mark {
  background: #fff176;
  color: inherit;
  padding: 0;
}

/* Reference dropdown shows just thumbnail + quoted title — hide the
   SKU and price columns the injected script also renders. The data
   still ships in the JSON for any other theme that wants it. */
.pb-search .ashop-search-sku,
.pb-search .ashop-search-price { display: none; }

.pb-search .ashop-search-empty {
  padding: 10px 12px;
  color: var(--pb-muted);
  font-style: italic;
  text-align: center;
  font-size: 13px;
}
.pb-search .ashop-search-viewall {
  border-top: 1px solid #eef0f3;
  padding: 8px 12px;
  color: var(--pb-blue);
  font-weight: 500;
  background: #fafbfd;
  font-size: 12px;
}
.pb-search .ashop-search-viewall:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .pb-search .ashop-search-results { left: 0; right: 0; }
}

/* ==========================================================================
   SITE PREFERENCES — header pill + first-visit modal

   The pill sits in the topbar (right-hand side, before the account links)
   showing "AU | EN | AUD" — country code, locale tag, display currency. It
   is a button so screen readers announce it, and so clicking it re-opens
   the same <dialog> the auto-open uses on first visit.
   ========================================================================== */

.pb-prefs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--pb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pb-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.pb-prefs-pill:hover,
.pb-prefs-pill:focus-visible {
  border-color: var(--pb-blue);
  color: var(--pb-blue);
  outline: none;
}

.pb-prefs-pill__sep {
  color: var(--pb-text-fade);
  font-weight: 400;
}

.pb-prefs-pill__icon {
  flex-shrink: 0;
  opacity: 0.75;
}

.pb-prefs-pill__value {
  display: inline-block;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────────
 * Site Preferences dialog — destination / language / currency.
 *
 * One layout, centred on both desktop and mobile (mobile only resizes
 * the card to ~90% viewport width). The close × in the top-right is
 * the only dismiss control — no Cancel button.
 *
 * The selects use a single-line BEM block (`.pb-prefs__select`) that
 * wraps the native control so we can paint the chevron consistently
 * across browsers. Native `<select>` chrome is hidden via
 * `appearance: none`.
 *
 * Class names use the `.pb-prefs__*` BEM convention; the legacy
 * `.pb-prefs-modal__*` names were retired with the redesign.
 * ───────────────────────────────────────────────────────────────────── */

.pb-prefs {
  width: 92%;
  max-width: 320px;
  margin: auto;
  padding: 16px 18px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--pb-text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 30px rgba(15, 23, 42, 0.12);
}

.pb-prefs::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.pb-prefs__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pb-text-muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.pb-prefs__close:hover,
.pb-prefs__close:focus-visible {
  color: var(--pb-text-dark);
  background: var(--pb-band);
  outline: none;
}

.pb-prefs__head { margin: 0 0 10px; padding-right: 24px; }

.pb-prefs__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pb-text-dark);
  letter-spacing: -0.005em;
}

.pb-prefs__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pb-prefs__field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0;
}

.pb-prefs__label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--pb-text-muted);
}

/* Wrapper that paints the chevron and owns the focus ring. The inner
   <select> is reset to a transparent control so the box style is
   consistent across Chromium / WebKit / Firefox. */
.pb-prefs__select {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--pb-border);
  border-radius: 7px;
  background: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.pb-prefs__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 7px;
  height: 7px;
  pointer-events: none;
  border-right: 1.5px solid var(--pb-text-muted);
  border-bottom: 1.5px solid var(--pb-text-muted);
  transform: translateY(-70%) rotate(45deg);
}
.pb-prefs__select:focus-within {
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px rgba(86, 123, 218, 0.18);
}
.pb-prefs__select > select {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 11px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--pb-text-dark);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.pb-prefs__select > select:focus { outline: none; }

.pb-prefs__footnote {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--pb-text-muted);
}

.pb-prefs__actions {
  display: flex;
  margin-top: 10px;
}

.pb-prefs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  padding: 0 16px;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.pb-prefs__btn--primary {
  background: var(--pb-blue);
  color: #fff;
}
.pb-prefs__btn--primary:hover  { background: var(--pb-blue-dark); }
.pb-prefs__btn--primary:disabled { opacity: 0.55; cursor: not-allowed; }
.pb-prefs__btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(86, 123, 218, 0.35);
}

/* Mobile keeps the same centred layout — just shrinks the card to a
   comfortable 90% of the viewport (a full-width sheet looked weird per
   user feedback) and bumps select / button heights for thumb reach.
   iOS auto-zooms on focus when the input font is below 16px, so we
   raise the select font on mobile only. */
@media (max-width: 480px) {
  .pb-prefs {
    width: 90%;
    max-width: 90%;
    padding: 16px 16px 14px;
  }
  .pb-prefs__form { gap: 7px; }
  .pb-prefs__select > select { height: 40px; font-size: 16px; }
  .pb-prefs__btn { height: 42px; font-size: 14px; }
}

/* ─────────────────────────────────────────────────────────────────────
 * Petbucket PDP recommendation carousel.
 *
 * Each .pb-product-carousel is a band heading + horizontally-scrolling
 * rail. Desktop shows 4 cards visible per page; the prev/next buttons
 * scroll the rail by one page (≈ 4 cards) via the [data-carousel-*]
 * controller in default-theme/assets/theme.js. Mobile/tablet drop to
 * 2 / 1 cards visible.
 * ───────────────────────────────────────────────────────────────────── */
.pb-product-carousel { position: relative; }

.pb-product-carousel__head {
  margin-bottom: 0.75rem;
}
.pb-product-carousel__head h2 { margin: 0; }

/* Viewport wrapper holds the rail + the two floating nav buttons.
   Buttons are positioned absolutely on the sides at ~30% from the
   top so they sit roughly over the centre of each card's image
   (the product "icon") rather than above or below the cards. */
.pb-product-carousel__viewport {
  position: relative;
}

.pb-product-carousel__btn {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--pb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pb-text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.pb-product-carousel__btn:hover {
  background: var(--pb-text-dark);
  border-color: var(--pb-text-dark);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.pb-product-carousel__btn:focus-visible { outline: 2px solid var(--pb-blue); outline-offset: 2px; }
.pb-product-carousel__btn[hidden] { display: none; }
.pb-product-carousel__btn--prev { left: -14px; }
.pb-product-carousel__btn--next { right: -14px; }

.pb-product-carousel__rail {
  display: grid;
  grid-auto-flow: column;
  /* Target FIVE cards per visible page at the cap, clamped so cards
   * stay between 180–260px. Narrower viewports drop cards from view
   * instead of stretching each card bigger. */
  grid-auto-columns: clamp(180px, calc((100% - 4rem) / 5), 260px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
}
.pb-product-carousel__rail::-webkit-scrollbar { display: none; }
.pb-product-carousel__slide {
  scroll-snap-align: start;
  min-width: 0;
  /* Stretch every slide to the row's tallest height — without this
   * the card with a SAVE-% badge that wraps to a 2nd row was taller
   * than its siblings, pushing its "View product" button below the
   * others. The .pb-card inside uses height: 100% to fill the slide
   * and margin-top: auto on the CTA pins it to the bottom. */
  display: flex;
  align-items: stretch;
}
.pb-product-carousel__slide > .pb-card { width: 100%; height: 100%; }

@media (max-width: 540px) {
  .pb-product-carousel__btn { width: 30px; height: 30px; }
  .pb-product-carousel__btn--prev { left: -8px; }
  .pb-product-carousel__btn--next { right: -8px; }
}

/* ─────────────────────────────────────────────────────────────────────
 * Frequently Bought Together band — visual: two product images joined
 * by a "+", a Total line, and an "Add all to cart" button. Clicking
 * the button intercepts the submit and opens the Schedule & Save
 * modal below if any item has S&S enabled.
 * ───────────────────────────────────────────────────────────────────── */
/* Inline bundle band — rendered INSIDE the gallery column directly
   under the product picture. Compact stacked layout: heading → two
   product images joined by "+" → Total + "Add all to cart" button →
   checkbox-bullet line list. Matches the reference screenshot where
   the bundle sits flush under the picture and never extends wider
   than the gallery image. */
.pb-product-bundle--inline {
  margin: 16px 0 8px;
}
.pb-product-bundle__heading {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pb-text-dark);
}
.pb-product-bundle .pb-bundle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.pb-product-bundle .pb-bundle__items {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.pb-product-bundle .pb-bundle__item { display: inline-flex; align-items: center; }
.pb-product-bundle .pb-bundle__item img {
  width: 88px;
  height: 88px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--pb-border);
}
.pb-product-bundle .pb-bundle__plus {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--pb-text-muted);
  font-weight: 300;
}
.pb-product-bundle .pb-bundle__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pb-product-bundle .pb-bundle__total { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.pb-product-bundle .pb-bundle__total-label { font-size: 14px; color: var(--pb-text); }
.pb-product-bundle .pb-bundle__total-value { font-size: 18px; font-weight: 700; color: var(--pb-danger); }
.pb-product-bundle .pb-bundle__btn {
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
}
.pb-product-bundle .pb-bundle__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--pb-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pb-product-bundle .pb-bundle__lines > li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.pb-product-bundle .pb-bundle__lines > li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--pb-blue);
  border-radius: 3px;
  position: relative;
}
.pb-product-bundle .pb-bundle__lines > li::after {
  content: "";
  position: absolute;
  margin-left: 3px;
  margin-top: -1px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  pointer-events: none;
}
.pb-product-bundle .pb-bundle__line-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pb-product-bundle .pb-bundle__line-price { font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────
 * Bundle Schedule & Save modal. Centred dialog, dimmed backdrop,
 * matches the site-preferences modal aesthetic so the storefront
 * has one coherent dialog style.
 * ───────────────────────────────────────────────────────────────────── */
.pb-bundle-modal {
  width: 92%;
  max-width: 560px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--pb-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 38px rgba(15, 23, 42, 0.18);
}
.pb-bundle-modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}
.pb-bundle-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 14px 18px;
  background: var(--pb-band-title);
  border-bottom: 1px solid var(--pb-band-border);
  border-radius: 12px 12px 0 0;
}
.pb-bundle-modal__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--pb-text-dark);
  line-height: 1.3;
}
.pb-bundle-modal__close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pb-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease, color 0.12s ease;
}
.pb-bundle-modal__close:hover,
.pb-bundle-modal__close:focus-visible {
  background: #fff;
  color: var(--pb-text-dark);
  outline: none;
}
.pb-bundle-modal__form { padding: 16px 18px 18px; }

.pb-bundle-modal__row { margin-bottom: 16px; }
.pb-bundle-modal__row:last-of-type { margin-bottom: 0; }
.pb-bundle-modal__row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 8px;
}
.pb-bundle-modal__row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pb-text-dark);
  flex: 1 1 auto;
}
.pb-bundle-modal__row-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--pb-text-dark);
  flex-shrink: 0;
}
.pb-bundle-modal__row-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  background: var(--pb-band-title);
  border-radius: 8px;
}
.pb-bundle-modal__row-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--pb-border);
}
.pb-bundle-modal__ss {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.pb-bundle-modal__ss legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--pb-text-dark);
  padding: 0;
  margin: 0 0 6px;
}
.pb-bundle-modal__opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 0;
  font-size: 13px;
  color: var(--pb-text);
  cursor: pointer;
}
.pb-bundle-modal__opt > input { accent-color: var(--pb-blue); }

.pb-bundle-modal__actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.pb-bundle-modal__btn { min-width: 220px; }

@media (max-width: 540px) {
  .pb-bundle-modal { width: 92%; }
  .pb-bundle-modal__head { padding: 12px 14px; }
  .pb-bundle-modal__head h2 { font-size: 15px; }
  .pb-bundle-modal__form { padding: 14px 14px 16px; }
  .pb-bundle-modal__row-body { grid-template-columns: 56px 1fr; padding: 8px 10px; }
  .pb-bundle-modal__row-img { width: 56px; height: 56px; }
  .pb-bundle-modal__btn { width: 100%; min-width: 0; }
}

/* Compact collapsed checkout sections — match system default. */
.sf-collapsed { padding: 0; }
.sf-step__section[data-state="collapsed"] { padding-top: 16px; padding-bottom: 16px; }
.sf-step__section[data-state="collapsed"] .sf-step__heading { margin-bottom: 6px; }

/* Compact payment-method spacing — match system default. */
.sf-payment-method { padding: 12px 18px; }
.sf-payment-method__panel { padding: 0 18px 12px; }
.sf-payment-method__panel-help { margin: 0 0 6px; }

/* ─────────────────────────────────────────────────────────────────────
 * Recently viewed — petbucket-flavoured overrides for the system band
 * rendered above the footer. Inherits structure from default theme.css
 * (.recently-viewed*) and only re-tones the typography + card chrome to
 * match petbucket's palette and the wider --container token.
 * ───────────────────────────────────────────────────────────────────── */
.recently-viewed__inner {
  max-width: var(--container);
  padding: 0 16px;
}
.recently-viewed__title {
  color: var(--pb-text-dark);
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.recently-viewed__card {
  border-color: var(--pb-grey-hairline, #ededed);
  border-radius: 6px;
  background: #fff;
  font-family: 'Roboto', system-ui, sans-serif;
}
.recently-viewed__name {
  color: var(--pb-blue);
  font-family: 'Roboto', system-ui, sans-serif;
}
.recently-viewed__price {
  color: var(--pb-text-dark);
  font-weight: 700;
}
.recently-viewed__compare {
  color: var(--pb-text-fade, #aaa);
}
.recently-viewed__nav {
  border-color: var(--pb-grey-hairline, #ededed);
  color: var(--pb-text-dark);
}
.recently-viewed__nav:hover {
  background: var(--pb-text-dark);
  color: #fff;
  border-color: var(--pb-text-dark);
}
