/* Barkly Fashion 2026 redesign — shared stylesheet for Home, About, Shop.
   Ported from design/styles.css in the design handoff. The PHP pages drop
   the Nicepage wb_* body chrome entirely, so this sheet styles a plain HTML
   document. Tokens live in :root. */

:root {
  --cream: #f4ead7;
  --cream-soft: #f9f1e0;
  --paper: #fbf6ec;
  --ink: #1f1a14;
  --ink-soft: #3a322a;
  --terracotta: #c75935;
  --scarlet: #b13128;
  --scarlet-deep: #8a221b;
  --olive: #6b6238;
  --forest: #2d3d2a;
  --gold: #b8893a;
  --rule: #d9c9a8;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  /* Fraunces (the variable serif) renders curly/twisted at display
   * sizes — disliked across the site. Use Cormorant Garamond for
   * everything serif now; one weight axis, much cleaner. */
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --maxw: 1320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}
.announce span { opacity: 0.9; }
.announce em {
  font-style: normal;
  color: var(--terracotta);
  margin: 0 10px;
  letter-spacing: 0.3em;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
  gap: 24px;
}
.nav-left, .nav-right {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-right { justify-content: flex-end; }
.nav a { position: relative; padding: 4px 0; }
.nav a:hover { color: var(--scarlet); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--scarlet);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.brand-logo {
  height: 56px;
  width: auto;
  mix-blend-mode: multiply;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--scarlet);
  font-weight: 600;
}
.eyebrow.muted { color: var(--olive); }

.h-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.h-display .it { font-style: italic; font-weight: 300; color: var(--scarlet-deep); }

.h-section {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-section .it { font-style: italic; color: var(--scarlet-deep); }

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all .2s ease;
}
.btn:hover { background: var(--scarlet); border-color: var(--scarlet); color: var(--cream); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.rule {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

/* decorative woven motif */
.weave {
  height: 14px;
  background:
    repeating-linear-gradient(45deg,
      var(--scarlet) 0 6px,
      transparent 6px 12px),
    repeating-linear-gradient(-45deg,
      var(--gold) 0 6px,
      transparent 6px 12px);
  background-color: var(--cream);
  opacity: 0.85;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 32px 32px;
  margin-top: 120px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 18px;
}
.site-footer .brand-name { color: var(--cream); font-size: 36px; }
.site-footer p { color: rgba(244,234,215,0.7); margin: 0 0 12px; max-width: 38ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: rgba(244,234,215,0.85); font-size: 14px; }
.site-footer ul a:hover { color: var(--terracotta); }
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.footer-social-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin-right: 6px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244,234,215,0.25);
  color: rgba(244,234,215,0.85);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social a:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(244,234,215,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,234,215,0.5);
}
.newsletter-form {
  display: flex;
  margin-top: 12px;
  border-bottom: 1px solid rgba(244,234,215,0.4);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cream);
  padding: 10px 0;
  font: inherit;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(244,234,215,0.5); }
.newsletter-form button {
  background: transparent;
  border: none;
  color: var(--terracotta);
  font: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 0;
}
.newsletter-form.is-done {
  color: var(--terracotta);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 0;
}

/* ---------- HOME ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 32px 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}
.hero-copy { padding-bottom: 24px; }
.hero-copy .h-display { margin-top: 24px; }
.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-meta .num {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--scarlet-deep);
  display: block;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream);
  overflow: hidden;
  margin: 0;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-image .stamp {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--paper);
  padding: 14px 18px;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-image .stamp strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
  color: var(--scarlet-deep);
}

/* marquee */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--cream-soft);
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: scroll 40s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink-soft);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot {
  width: 8px; height: 8px;
  background: var(--scarlet);
  border-radius: 50%;
  display: inline-block;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* collection grid */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
}
.section-head .h-section { max-width: 14ch; }
.section-head .lede { max-width: 42ch; margin: 0; }

.collection {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.collection-card {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  display: block;
}
.collection-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.collection-card:hover img { transform: scale(1.04); }
.collection-card .info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 22px 22px;
  /* darker, deeper gradient so labels stay legible on any photo */
  background: linear-gradient(to top,
    rgba(20,16,12,0.92) 0%,
    rgba(20,16,12,0.78) 35%,
    rgba(20,16,12,0.35) 70%,
    rgba(20,16,12,0.0) 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.collection-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
  color: #fff;
}
.collection-card .tag {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* lifted to a brighter peach + shadow so the brand orange reads
   * even when the photo behind it is bright white fur */
  color: #ffb68c;
  margin-bottom: 6px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 0 1px rgba(0,0,0,0.5);
}
/* the small uppercase label on the right side of feature cards */
.collection-card .info > span {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.collection-card.feature { grid-row: span 2; aspect-ratio: 4/5; }
.collection-card:not(.feature) { aspect-ratio: 1/1.05; }

/* story split */
.story {
  background: var(--cream);
  padding: 0;
  margin-top: 64px;
}
.story-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.story-img {
  aspect-ratio: 4/5;
  overflow: hidden;     /* never bleed into adjacent column */
}
.story-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.story-copy {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.story-copy .pull {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  color: var(--scarlet-deep);
  border-left: 2px solid var(--scarlet);
  padding-left: 20px;
  margin: 8px 0;
}
.story-copy ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 14px;
}
.story-copy li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  align-items: start;
}
.story-copy li::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--scarlet);
  margin-top: 11px;
}

/* lookbook strip */
.lookbook {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
}
.lookbook-img {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}
.lookbook-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* keep dogs' faces in frame — favor upper portion of portrait sources */
  object-position: center 25%;
  filter: saturate(1.05);
}
.lookbook-img .label {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--paper);
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- ABOUT ---------- */
.about-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px 64px;
  text-align: center;
}
.about-hero .eyebrow { display: block; margin-bottom: 24px; }
.about-hero .h-display { max-width: 16ch; margin: 0 auto; }
.about-hero .lede {
  max-width: 56ch;
  margin: 32px auto 0;
  text-align: center;
}

.about-banner {
  max-width: var(--maxw);
  margin: 0 auto 0;
  padding: 0 32px;
}
.about-banner-img {
  /* 21/9 was too cinematic for portrait phone photos — dog head + paws
   * got chopped. 3/2 is friendlier; lets a vertical source breathe. */
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
  background: var(--ink);
}
.about-banner-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* favor the upper portion of the source — that's where the dog's face
   * lives in vertical photos. */
  object-position: center 25%;
}

.values {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 96px;
}
.values-list { display: grid; gap: 48px; }
.value {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.value:last-child { border-bottom: none; }
.value .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 56px;
  color: var(--scarlet-deep);
  line-height: 1;
}
.value h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.value p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.craft {
  background: var(--ink);
  color: var(--cream);
  padding: 96px 32px;
}
.craft-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.craft .h-section { color: var(--cream); }
.craft .h-section .it { color: var(--terracotta); }
.craft .lede { color: rgba(244,234,215,0.75); }
.craft-img {
  /* 1/1 chopped tall portrait sources. 4/5 leaves room for the dog's
   * head while still feeling like a polished portrait crop. */
  aspect-ratio: 4/5;
  overflow: hidden;
}
.craft-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.spec {
  border-top: 1px solid rgba(244,234,215,0.2);
  padding-top: 16px;
}
.spec .k {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.spec .v {
  font-family: var(--display);
  font-size: 22px;
  color: var(--cream);
}

/* ---------- SHOP ---------- */
.shop-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.shop-head .h-display { font-size: clamp(40px, 5vw, 80px); }
.shop-head .lede { max-width: 42ch; }

.shop-toolbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filter {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  font: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all .15s ease;
}
.filter:hover { color: var(--ink); }
.filter.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.shop-toolbar .right { display: flex; gap: 24px; align-items: center; color: var(--ink-soft); }

.products {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 32px 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}
.product { position: relative; }
.product-media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
}
.product-media:focus-visible { outline: 2px solid var(--scarlet); outline-offset: 2px; }
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, opacity .3s ease;
}
.product:hover .product-media img { transform: scale(1.03); }
.product-media .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--paper);
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.product-media .badge.hot { background: var(--scarlet); color: var(--cream); }

.product { min-width: 0; }
.product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}
.product-info h3 {
  /* Switched from Fraunces (--display) — its variable axis renders
   * swirly at 22px for product names. Cormorant Garamond at weight
   * 500 is cleaner, still elegant, and reads instantly. */
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0;
  letter-spacing: 0;
  line-height: 1.2;
}
.product-info .price {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.product-info .meta {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 4px;
}

/* sizes-strip */
.sizes-strip {
  background: var(--cream-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 32px;
  margin: 64px 0 0;
}
.sizes-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.size-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-grid .s {
  border: 1px solid var(--ink);
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero, .story-inner, .craft-inner, .values { grid-template-columns: 1fr; gap: 32px; }
  .story-copy { padding: 48px 32px; }
  .collection { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .collection-card.feature { grid-row: auto; aspect-ratio: 4/5; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookbook { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav { grid-template-columns: 1fr auto 1fr; padding: 14px 20px; }
  .nav-left, .nav-right { gap: 16px; font-size: 11px; }
}
@media (max-width: 640px) {
  .hero, .section, .shop-head, .shop-toolbar, .products, .about-hero, .values, .craft, .about-banner { padding-left: 18px; padding-right: 18px; }
  .collection { grid-template-columns: 1fr; }
  .products { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 14px; }
  .notify-form { padding: 12px; }
  .notify-form .row { flex-direction: column; gap: 8px; }
  .notify-form input { width: 100%; min-width: 0; }
  .notify-form button { width: 100%; }
  .product-info h3 { word-break: break-word; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav { grid-template-columns: 1fr auto 1fr; padding: 12px 16px; gap: 8px; }
  .nav-left, .nav-right { gap: 12px; font-size: 10px; letter-spacing: 0.12em; }
  .nav-left { justify-content: flex-start; }
  .brand-logo { height: 40px; }
  .brand-name { font-size: 22px; }
  .shop-head { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}

/* ---------- inline notify-me form ---------- */
.notify-form {
  margin-top: 14px;
  padding: 16px;
  background: rgba(122, 58, 42, 0.04);
  border: 1px solid rgba(122, 58, 42, 0.18);
  animation: notify-in 0.25s ease;
}
@keyframes notify-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notify-form label {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 12px;
}
.notify-form label em {
  font-style: italic;
  color: var(--ink);
}
.notify-form .row {
  display: flex;
  gap: 8px;
}
.notify-form input {
  flex: 1;
  min-width: 0;
  background: var(--cream);
  border: 1px solid rgba(31, 26, 20, 0.18);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
.notify-form input:focus {
  border-color: var(--ink);
}
.notify-form button {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.notify-form button:hover {
  background: var(--scarlet);
}
.notify-form button[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.notify-form .fineprint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 0;
}
.notify-form .err {
  margin-top: 10px;
  font-size: 12px;
  color: var(--scarlet-deep);
}
.notify-form .confirm {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--scarlet);
  padding: 4px 0;
  margin: 0;
}
.notify-form .confirm em {
  color: var(--ink);
}

/* ---------- TRY-ON / SIZE FINDER ---------- */
.sizefinder-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 80px;
}
.sizefinder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 48px;
  background: var(--cream-soft);
  border: 1px solid var(--rule);
}
.sf-fields { display: grid; gap: 20px; margin: 28px 0; }
.sf-label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.sf-label small { font-size: 10px; color: var(--olive); letter-spacing: 0.1em; }
.sf-input {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color .15s;
}
.sf-input:focus { border-color: var(--ink); }
.sf-result-wrap { display: flex; flex-direction: column; gap: 24px; }
.sf-badge-row { display: flex; align-items: flex-start; gap: 20px; }
.sf-size-badge {
  width: 72px; height: 72px;
  background: var(--scarlet);
  color: var(--cream);
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sf-measure-tip {
  padding: 14px;
  background: rgba(184,137,58,0.08);
  border-left: 2px solid var(--gold);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.sf-products-title {
  font-family: var(--display);
  font-size: 26px;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 24px;
}
.prod-recs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prod-rec {
  display: block;
  background: var(--cream);
  overflow: hidden;
  transition: box-shadow .2s;
}
.prod-rec:hover { box-shadow: 0 4px 20px rgba(31,26,20,0.12); }
.prod-rec img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .6s ease; }
.prod-rec:hover img { transform: scale(1.04); }
.prod-rec-info {
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: none;
}
.prod-rec-name {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  margin: 4px 0 3px;
  letter-spacing: -0.01em;
}
.prod-rec-size { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); }

/* SIZE CHART — inline (sits directly under the size finder form so XS/S/M/L
 * are explained where the buyer is reading them, not 600px below). */
.size-chart-inline {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.size-chart-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.size-chart-sub {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* Legacy standalone wrapper kept for any other page that uses it */
.size-chart-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 96px;
}
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--scarlet);
  text-align: left;
  padding: 12px 18px;
  border-bottom: 2px solid var(--rule);
}
.size-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  vertical-align: middle;
}
.size-table tr:hover td { background: var(--cream-soft); }
.size-table .s-label {
  font-family: var(--display);
  font-size: 24px;
  color: var(--scarlet-deep);
  font-style: italic;
  font-weight: 400;
}

/* FITTING ROOM */
.fitting-room-section {
  background: var(--ink);
  color: var(--cream);
  padding: 96px 32px;
  margin-top: 64px;
}
.fitting-room-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.fitting-room-section .h-section { color: var(--cream); }
.fitting-room-section .h-section .it { color: var(--terracotta); }
.fitting-room-section .lede { color: rgba(244,234,215,0.72); }
.fitting-room-section .eyebrow { color: var(--terracotta); }
.fit-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.fit-swatch {
  width: 56px; height: 56px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  padding: 0;
  transition: border-color .15s;
}
.fit-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fit-swatch.is-active { border-color: var(--terracotta); }
.fit-swatch:hover:not(.is-active) { border-color: rgba(244,234,215,0.35); }
.fitting-canvas-wrap { position: relative; }
#fit-canvas {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1/1;
  display: block;
  background: var(--cream-soft);
}
.fitting-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  /* The fit-stage now uses a dark background so the head doesn't get
   * cropped — bump placeholder contrast accordingly. */
  color: rgba(244,234,215,0.85);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  text-align: center;
  line-height: 1.5;
}
.fitting-placeholder > span:first-child {
  /* camera glyph */
  opacity: 0.7 !important;
  color: var(--terracotta);
}
.fitting-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- AI FITTING ROOM (states overlay on .fitting-canvas-wrap) ---------- */
/* HTML [hidden] must beat our display:flex on the state overlays */
.fit-stage [hidden],
.fitting-canvas-wrap [hidden] { display: none !important; }

.fit-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  /* portrait-friendly canvas — most phone dog photos are 3:4 / 4:5; this
   * shape minimizes letterboxing for them while staying tall enough that
   * landscape photos still get a sensible bottom area for the caption. */
  aspect-ratio: 4/5;
  background: var(--ink);
  overflow: hidden;
}
.fit-stage img.fit-stage-img {
  width: 100%; height: 100%;
  /* `contain` shows the FULL AI image — never crops the dog's head/feet.
   * Letterbox bars (cream/dark) appear if the photo is a different
   * aspect ratio than the canvas, but nothing important is hidden. */
  object-fit: contain;
  display: block;
}
.fit-loading, .fit-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 36px;
  background: var(--paper);
}
.fit-pulse {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--scarlet);
  opacity: 0.7;
  animation: fit-pulse 1.6s ease-in-out infinite;
}
@keyframes fit-pulse {
  0%   { transform: scale(0.85); opacity: 0.55; }
  50%  { transform: scale(1.1);  opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.55; }
}
.fit-loading-msg {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin: 6px 0 0;
  transition: opacity .25s ease;
}
.fit-error {
  background: var(--ink);
  color: var(--cream);
}
.fit-error-msg {
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(244,234,215,0.85);
  max-width: 36ch;
  margin: 0;
}

/* AI-picks swatch (sits at start of .fit-swatches) */
.fit-swatch-auto {
  background: linear-gradient(135deg, var(--scarlet) 0%, var(--terracotta) 100%);
  color: var(--cream);
}
.fit-swatch-auto img { display: none; }
.fit-swatch-auto.is-active { border-color: var(--cream); }
.fit-swatch-auto-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* Result caption (AI rationale, breed) — strong gradient + text shadow so it
 * stays legible over any AI-generated image, light or dark. */
.fit-result-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(to top, rgba(20,16,12,0.96) 0%, rgba(20,16,12,0.85) 55%, rgba(20,16,12,0.0) 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  font-weight: 500;
}
.fit-result-caption .ai-tag {
  display: inline-block;
  background: var(--scarlet);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  margin-right: 8px;
  vertical-align: 2px;
  text-shadow: none;
}
.fit-result-caption .reason {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: #fff;
  display: block;
  margin-top: 4px;
}
.fit-result-caption strong { color: #fff; font-weight: 700; }

/* Highlight the targeted product card when arriving from Try-On deep link */
.product:target {
  animation: barkly-target-pulse 2.4s ease-out;
  scroll-margin-top: 96px;
}
@keyframes barkly-target-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199,89,53,0); }
  20%  { box-shadow: 0 0 0 4px var(--terracotta); }
  100% { box-shadow: 0 0 0 0 rgba(199,89,53,0); }
}

/* ---------- CHATBOT WIDGET ---------- */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chat-toggle {
  width: 58px; height: 58px;
  background: var(--scarlet);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(31,26,20,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.chat-toggle:hover { background: var(--scarlet-deep); transform: scale(1.05); }
.chat-panel {
  width: 330px;
  max-height: 500px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 48px rgba(31,26,20,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] { display: none !important; }
.chat-header {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat-header-left { display: flex; flex-direction: column; gap: 2px; }
.chat-header-title { font-family: var(--display); font-style: italic; font-size: 16px; }
.chat-header-sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta); }
.chat-close {
  background: transparent; border: none; color: var(--cream);
  font-size: 20px; cursor: pointer; padding: 0 4px; opacity: 0.6; line-height: 1;
}
.chat-close:hover { opacity: 1; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 90%;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--cream);
  border: 1px solid var(--rule);
  align-self: flex-start;
  color: var(--ink);
}
.chat-msg.user {
  background: var(--ink);
  color: var(--cream);
  align-self: flex-end;
  font-family: var(--serif);
}
.chat-products { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.chat-product {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--cream-soft);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  transition: background .15s;
}
.chat-product:hover { background: var(--cream); }
.chat-product img { width: 40px; height: 40px; object-fit: cover; flex-shrink: 0; }
.chat-product-info { display: flex; flex-direction: column; gap: 2px; }
.chat-product-name { font-family: var(--display); font-size: 14px; color: var(--ink); }
.chat-product-size { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.chat-footer {
  border-top: 1px solid var(--rule);
  display: flex;
  flex-shrink: 0;
}
.chat-input-field {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  background: transparent;
  outline: none;
  color: var(--ink);
  min-width: 0;
}
.chat-input-field::placeholder { color: var(--rule); }
.chat-send {
  border: none;
  background: var(--scarlet);
  color: var(--cream);
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--scarlet-deep); }

/* ---------- responsive additions ---------- */
@media (max-width: 1024px) {
  .sizefinder { grid-template-columns: 1fr; gap: 36px; }
  .fitting-room-inner { grid-template-columns: 1fr; gap: 40px; }
  #fit-canvas { max-width: 480px; }
}
@media (max-width: 640px) {
  .fitting-room-section { padding: 64px 18px; }
  .sizefinder-wrap { padding-left: 18px; padding-right: 18px; }
  .sizefinder { padding: 24px 18px; }
  .prod-recs { grid-template-columns: repeat(2, 1fr); }
  .size-chart-wrap { padding-left: 18px; padding-right: 18px; overflow-x: auto; }
  .size-table { min-width: 560px; }
  .chat-panel { width: calc(100vw - 40px); max-width: 380px; }
}
