@font-face { font-family: Puppy Jost; src: url("assets/jost.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "PUFS New"; src: url("home-new/ресурсы/38ab589937e212ffa065749b.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PUFS New"; src: url("home-new/ресурсы/a0fe03b7ce6f04496f887694.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

body.post-type-archive-pufs_puppy, body.single-pufs_puppy { margin: 0; background: #826145; }
.puppy-page {
  --cream: #f7ecd8;
  --paper: #e5d5b8;
  --ink: #503b2a;
  --blue: #61839a;
  width: min(100%, 390px);
  min-height: 100vh;
  margin: auto;
  padding: 0 6px 12px;
  background: #63462e url("assets/catalog-background.png") center top / 100% auto repeat-y;
  color: var(--cream);
  font: 15px/1.25 "Puppy Jost", sans-serif;
}
.puppy-page *, .puppy-page { box-sizing: border-box; }
.puppy-page h1, .puppy-page h2, .puppy-facts dt { font-family: "PUFS New", sans-serif; font-weight: 400; margin: 0; }
.puppy-page a { color: inherit; }
.puppy-outline { color: var(--ink); -webkit-text-stroke: .17em var(--cream); paint-order: stroke fill; }
.puppy-nav { display: flex; align-items: center; gap: 12px; padding: 6px 10px; min-height: 42px; position: relative; z-index: 2; }
.puppy-nav > a:first-child { margin-right: auto; font-family: "PUFS New", sans-serif; text-decoration: none; }
.puppy-nav summary { font-size: 24px; cursor: pointer; list-style: none; }
.puppy-nav summary::-webkit-details-marker { display: none; }
.puppy-menu { position: absolute; right: 8px; top: 100%; display: grid; gap: 10px; padding: 12px 18px; border-radius: 8px; background: var(--cream); color: var(--ink); }
.puppy-button { display: block; border-radius: 100px; text-align: center; background: var(--blue); color: #fff !important; text-decoration: none; padding: 7px 10px; }
.puppy-button[aria-disabled="true"] { cursor: default; }
.catalog-hero { min-height: 106px; position: relative; padding: 2px 7px 8px 33%; text-align: center; }
.catalog-hero img { position: absolute; left: -3px; bottom: -5px; width: 34%; pointer-events: none; }
.catalog-hero h1 { font-size: clamp(39px, 14vw, 57px); line-height: 1.05; }
.catalog-hero p { display: inline-block; padding: 3px 12px; border-radius: 80px; background: var(--cream); color: var(--ink); font-family: "PUFS New", sans-serif; margin: 8px 0 0; }
.puppy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.puppy-tile { display: flex; flex-direction: column; min-width: 0; padding: 5px; border-radius: 9px; background: linear-gradient(var(--cream), var(--paper)); color: var(--ink); }
.puppy-tile-photo { display: block; aspect-ratio: 1.36; border-radius: 6px; overflow: hidden; background: #e6d8bf; }
.puppy-tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 64%; }
.puppy-tile-copy { flex: 1; display: flex; flex-direction: column; padding: 4px 7px 1px; }
.puppy-tile h2 { font-size: 18px; overflow-wrap: anywhere; }
.puppy-tile-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px; font-size: 10px; margin-bottom: 5px; }
.puppy-status { border: 1px solid currentColor; border-radius: 20px; padding: 0 5px; }
.puppy-tile .puppy-button { padding: 3px 6px; margin: auto 3px 0; font-size: 12px; }
.puppy-contact { padding: 12px; margin-top: 6px; }
.puppy-contact h2 { font-size: 26px; }
.puppy-contact p { margin: 4px 0 8px; }
.puppy-contact small { display: block; margin-top: 8px; font-size: 10px; }
.puppy-profile { background-image: linear-gradient(#efe2c9 0 142px, transparent 142px), url("assets/catalog-background.png"); background-repeat: no-repeat, repeat-y; }
.puppy-profile .puppy-nav { color: var(--ink); }
.puppy-profile-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); grid-template-rows: auto 1fr; gap: 12px 7px; padding: 6px 4px 0 9px; }
.puppy-profile-name { min-height: 95px; align-self: start; }
.puppy-profile-name h1 { font-size: clamp(23px, 8.4vw, 34px); line-height: 1.1; margin: 7px 0 12px; overflow-wrap: anywhere; color: var(--cream); -webkit-text-stroke-color: var(--ink); }
.puppy-profile-name span { border-radius: 32px; background: #7c5534; padding: 4px 12px; font-family: "PUFS New", sans-serif; }
.puppy-portrait { grid-column: 2; grid-row: 1 / 3; width: 100%; height: auto; aspect-ratio: 0.98; object-fit: cover; object-position: center 43%; border: 1px solid #9b754f; border-radius: 9px; }
.puppy-profile-hero p { font-size: 12px; margin: 10px 3px; }
.puppy-profile-action { padding: 10px 20px 14px; }
.puppy-photo-panel, .puppy-about { background: linear-gradient(var(--cream), var(--paper)); color: var(--ink); border-radius: 9px; padding: 7px; }
.puppy-facts { display: flex; justify-content: space-around; gap: 7px; padding: 9px; background: var(--cream); border-radius: 8px; margin: 7px 0 0; }
.puppy-facts:empty { display: none; }
.puppy-facts dt { font-size: 17px; }
.puppy-facts dd { font-size: 11px; margin: 1px 0 0; }
.puppy-traits { padding: 12px 8px; }
.puppy-traits h2 { font-size: 20px; text-align: center; }
.puppy-traits ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.puppy-traits li { display: flex; align-items: center; gap: 7px; background: var(--cream); color: var(--ink); border-radius: 24px; padding: 6px 9px; font: 13px/1.1 "PUFS New", sans-serif; }
.puppy-traits li span { flex: none; border-radius: 50%; padding: 5px; background: #795639; color: var(--cream); }
.puppy-about { padding: 12px 16px; }
.puppy-about p { margin: 6px 0 0; }
.puppy-profile .puppy-contact { border: 1px solid var(--cream); border-radius: 10px; margin-top: 10px; }
.puppy-profile .puppy-contact h2 { margin-bottom: 12px; }

.puppy-nav { padding-inline: 15px 8px; gap: 14px; }
.puppy-nav > a:first-child { font-size: 16px; }
.catalog-hero { min-height: 106px; padding-left: 32%; padding-right: 3px; }
.catalog-hero h1 { font-size: clamp(39px, 15.7vw, 62px); }
.catalog-hero p { margin-top: 5px; }
.catalog-hero::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 28%;
  width: 22px;
  height: 22px;
  background: url("assets/puppy-paw.svg") center / contain no-repeat;
}
.catalog-hero img { width: 34%; bottom: -5px; z-index: 1; }
.puppy-tile-meta { font-size: 9px; }
.puppy-tile-meta > span:nth-child(2) { border-inline-start: 1px solid currentColor; padding-inline-start: 5px; margin-inline-end: auto; }
.puppy-tile-photo img { object-position: center 68%; }
.puppy-catalog .puppy-contact { position: relative; padding: 8px 7px; }
.puppy-contact-logo { float: right; width: 57px; margin: 2px 0 5px 8px; }
.puppy-contact-links { clear: both; display: grid; grid-template-columns: minmax(116px, .9fr) minmax(0, 1.6fr); align-items: center; gap: 12px; }
.puppy-contact-links small { margin: 0; }
.puppy-catalog .puppy-contact > p:last-child { margin: 7px 0 0; font-size: 11px; }

.puppy-profile-hero { isolation: isolate; position: relative; }
.puppy-profile-name h1 { font-size: clamp(25px, 8.5vw, 34px); }
.puppy-profile-watermark { width: 92px; position: absolute; top: -24px; left: 18%; z-index: -1; opacity: .12; pointer-events: none; }
.puppy-portrait { object-position: center 43%; }
.puppy-profile .puppy-contact { padding: 9px 18px 12px; }
.puppy-profile .puppy-contact h2 { line-height: 1.1; max-width: 260px; }
.puppy-visit-address { margin: 9px -6px -12px; padding: 8px 12px; background: var(--cream); color: var(--ink); font-size: 10px; text-align: center; }

.puppy-catalog { background-size: 100% auto; background-repeat: no-repeat; }
.catalog-hero h1 { font-size: clamp(42px, 17.5vw, 69px); margin-top: -5px; }
.catalog-hero p { margin-top: 1px; }
.puppy-tile .puppy-button { margin-inline: 12px; }
.puppy-contact-links { grid-template-columns: minmax(125px, 1fr) minmax(0, 1.7fr); }
.puppy-contact-links .puppy-button { font-size: 11px; padding-inline: 5px; }
.puppy-catalog .puppy-contact p { font-size: 12px; }
.puppy-profile-hero { padding-top: 12px; }
.puppy-profile-name h1 { font-size: clamp(30px, 10.8vw, 42px); }
.puppy-profile-action .puppy-button { padding-block: 10px; }
.puppy-traits h2 { font-size: clamp(16px, 6.1vw, 24px); }
.puppy-shop { padding-inline: 14px; }
.puppy-shop .woocommerce-loop-product__title, .puppy-shop .woocommerce-products-header__title { color: var(--cream); }
.puppy-shop .woocommerce-Price-amount { color: var(--cream); }
.puppy-shop img { max-width: 100%; height: auto; }

.puppy-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid #926943;
  border-radius: 8px;
  background: var(--paper);
  touch-action: pan-y;
}
.puppy-gallery [hidden] { display: none !important; }
.puppy-gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.puppy-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #926943;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font: 30px/1 "Puppy Jost", sans-serif;
}
.puppy-gallery-arrow[data-step="-1"] { left: 8px; }
.puppy-gallery-arrow[data-step="1"] { right: 8px; }
.puppy-gallery-arrow::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border: solid currentColor; border-width: 2px 2px 0 0;
  transform: translate(-65%, -50%) rotate(45deg);
}
.puppy-gallery-arrow[data-step="-1"]::before { transform: translate(-35%, -50%) rotate(-135deg); }
.puppy-profile .puppy-contact h2 { display: flex; gap: 12px; align-items: center; }
.puppy-profile .puppy-contact h2::before {
  content: ""; width: 34px; height: 34px; flex: none; transform: scaleY(-1);
  background: url("assets/puppy-visit-chat.png") center / contain no-repeat;
}
.puppy-profile .puppy-about { position: relative; }
.puppy-profile .puppy-about::after {
  content: ""; position: absolute; right: 0; top: 46%; width: 17%; aspect-ratio: 220/62; transform: scaleY(-1);
  background: url("assets/puppy-about-flourish.png") center / contain no-repeat; pointer-events: none;
}
.puppy-profile .puppy-about > :not(h2) { margin-right: 17%; }
.puppy-gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding: 3px;
  overflow-x: auto;
}
.puppy-gallery-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #926943;
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}
.puppy-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.puppy-gallery :focus-visible { outline: 2px solid #61839a; outline-offset: 2px; }

/* Shared home page interaction treatment for puppy cards and actions. */
.puppy-tile { transition:filter .25s ease; }
@media (hover:hover) { .puppy-tile:hover { filter:drop-shadow(0 5px 7px #38271644); } }
.puppy-tile:focus-within { filter:drop-shadow(0 5px 7px #38271644); }
.puppy-tile .puppy-button { transition:background-color .22s ease,color .22s ease; }
.puppy-tile .puppy-button:is(:hover,:active,:focus-visible) { background:#fff7ed !important; color:#554233 !important; outline:1px solid #554233; }

/* Match the home page photo and control states on puppy detail pages. */
.puppy-gallery-stage,.detail-portrait { transition:filter .25s ease; }
@media (hover:hover) { .puppy-gallery-stage:hover,.detail-portrait:hover { filter:drop-shadow(0 5px 7px #38271644); } }
.puppy-gallery-arrow { display:grid; place-items:center; border-color:#554233; background:transparent; color:#554233; font-size:0; transition:background-color .2s ease,color .2s ease; }
.puppy-gallery-arrow::before { left:50%; top:50%; width:9px; height:9px; border-width:1.5px 1.5px 0 0; transform:translate(-35%,-50%) rotate(45deg); }
.puppy-gallery-arrow[data-step="-1"]::before { transform:translate(-65%,-50%) rotate(-135deg); }
.puppy-gallery-arrow:is(:hover,:active,:focus-visible) { background:#554233; color:#fff7ed; outline:none; }
