:root {
  --navy: #20232b;
  --teal: #c81f5d;
  --teal-dark: #a9144b;
  --orange: #c81f5d;
  --blue: #fff0f5;
  --bg: #f8f5f6;
  --white: #fff;
  --text: #20232b;
  --muted: #636875;
  --line: #e7e0e3;
  --raspberry: #c81f5d;
  --raspberry-dark: #9d1245;
  --raspberry-soft: #fff0f5;
  --surface-warm: #f8f5f6;
  --shadow: 0 18px 44px rgba(81, 37, 54, .12);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  color: var(--text);
  background: var(--white);
}

html {
  scroll-padding-top: 104px;
}

body {
  background: var(--white);
  color: var(--text);
}

::selection {
  color: #fff;
  background: var(--raspberry);
}

:focus-visible {
  outline: 3px solid rgba(200, 31, 93, .38);
  outline-offset: 3px;
}

.shell {
  width: min(1420px, calc(100% - 72px));
}

.header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 0 rgba(32, 35, 43, .08);
  backdrop-filter: blur(18px);
}

.header-top,
.category-nav {
  display: none;
}

.header-main {
  display: grid;
  min-height: 92px;
  grid-template-columns: 230px minmax(320px, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.logo {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.brand-logo-image {
  width: 210px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.search {
  height: 54px;
  padding-left: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ded7da;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(49, 32, 39, .06);
}

.search svg {
  width: 22px;
  stroke: #68707d;
}

.search input {
  padding-inline: 13px;
  color: var(--text);
  font-size: 15px;
}

.search input::placeholder {
  color: #737884;
}

.search button {
  align-self: stretch;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding-inline: 24px;
  color: #fff;
  background: var(--raspberry);
  border: 0;
  border-radius: 0 13px 13px 0;
  font-size: 13px;
}

.search button:hover {
  background: var(--raspberry-dark);
}

.header-actions {
  display: flex;
  gap: 6px;
}

.action-link,
.cart-button {
  min-height: 54px;
  padding-inline: 12px;
  border-radius: 12px;
}

.action-link:hover,
.cart-button:hover {
  background: var(--raspberry-soft);
}

.action-link svg,
.cart-button svg {
  stroke: var(--raspberry);
}

.action-link small,
.cart-button small {
  color: #6c707b;
  font-size: 11px;
}

.action-link strong,
.cart-button strong {
  color: var(--text);
  font-size: 12px;
}

.cart-button {
  background: transparent;
}

.cart-button b {
  top: 3px;
  right: 2px;
  background: var(--raspberry);
}

.hero.shell {
  width: 100%;
  max-width: none;
  height: clamp(450px, 53vw, 560px);
  min-height: 450px;
  margin: 0;
  overflow: hidden;
  background: #f8f5f4;
  border-radius: 0;
}

.hero-tv-pets > img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}

.hero-tv-pets::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, #fff 0%, #fff 29%, rgba(255, 255, 255, .96) 33%, rgba(255, 255, 255, .38) 38%, transparent 43%);
  content: "";
}

.hero-tv-pets .hero-content {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: max(36px, calc((100vw - 1420px) / 2));
  display: flex;
  width: min(550px, 42vw);
  padding: 48px 0 38px;
  justify-content: center;
}

.hero h1 {
  max-width: 540px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(48px, 4.2vw, 66px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
}

.hero-content p {
  max-width: 430px;
  margin: 0 0 25px;
  color: #656b77;
  font-size: 18px;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.add-button {
  color: #fff;
  background: var(--raspberry);
  border-radius: 12px;
}

.primary-button:hover,
.secondary-button:hover,
.add-button:hover {
  background: var(--raspberry-dark);
}

.hero .primary-button {
  min-height: 58px;
  gap: 28px;
  padding-inline: 34px 26px;
  box-shadow: 0 14px 32px rgba(200, 31, 93, .25);
  font-size: 16px;
}

.hero .primary-button span {
  font-size: 25px;
  font-weight: 400;
}

.hero-promises {
  display: flex;
  gap: 28px;
  margin-top: 26px;
}

.hero-promises span {
  display: grid;
  max-width: 130px;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  color: #555b67;
  font-size: 11px;
  line-height: 1.3;
}

.hero-promises b {
  color: var(--raspberry);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.hero-delivery,
.benefits {
  display: none;
}

#catalog {
  padding-top: 18px;
  padding-bottom: 86px;
  scroll-margin-top: 106px;
}

#catalog .catalog-layout {
  display: block;
}

#catalog .catalog-navigation-header:not(.compact) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pet-departments {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.catalog-root-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#catalog .catalog-root-card {
  min-height: 88px;
  grid-column: auto;
  grid-template-columns: 68px minmax(0, 1fr) 22px;
  column-gap: 13px;
  padding: 9px 14px 9px 9px;
  background: #fff;
  border: 1px solid #e6dfe2;
  border-radius: 14px;
  box-shadow: none;
}

.catalog-root-card .catalog-card-animal,
.catalog-root-card .catalog-card-product,
.catalog-root-card .catalog-card-symbol {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  background-color: #f8f5f4;
  border-radius: 11px;
}

.catalog-root-card .catalog-card-animal {
  background-color: #fff;
  background-size: 300% 200%;
}

.catalog-root-card .catalog-card-product img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.catalog-root-card .catalog-card-editorial {
  background-color: #fff;
}

.catalog-root-card .catalog-card-editorial img {
  padding: 0;
  object-fit: cover;
}

.catalog-root-card .catalog-card-symbol {
  color: var(--raspberry);
  font-size: 27px;
  font-weight: 800;
}

.catalog-root-card .catalog-drill-copy {
  min-width: 0;
  align-self: center;
}

.catalog-root-card .catalog-drill-copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.catalog-root-card .catalog-drill-copy small {
  margin-top: 6px;
  color: #727782;
  font-size: 11px;
}

.catalog-root-card > i {
  align-self: center;
  color: var(--raspberry);
  font-size: 24px;
}

.catalog-root-card:hover {
  border-color: rgba(200, 31, 93, .42);
  box-shadow: 0 14px 30px rgba(91, 49, 65, .1);
  transform: translateY(-2px);
}

.pet-department {
  position: relative;
  display: grid;
  min-height: 96px;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 10px;
  align-items: center;
  padding: 0 16px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e6dfe2;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s cubic-bezier(.16, 1, .3, 1), transform .18s cubic-bezier(.16, 1, .3, 1);
}

.pet-department:hover {
  border-color: rgba(200, 31, 93, .45);
  box-shadow: 0 14px 30px rgba(91, 49, 65, .11);
  transform: translateY(-3px);
}

.pet-portrait {
  width: 84px;
  height: 94px;
  grid-row: 1 / 3;
  margin: 0;
  background-color: #fff;
  background-size: 300% 200%;
}

.pet-pharmacy {
  display: grid;
  width: 68px;
  height: 68px;
  grid-row: 1 / 3;
  margin-left: 10px;
  place-items: center;
  color: #fff;
  background: var(--raspberry);
  border-radius: 18px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.pet-department strong {
  align-self: end;
  min-height: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.pet-department small {
  align-self: start;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 6px;
  color: #737783;
  font-size: 10px;
}

.pet-department small span {
  color: var(--raspberry);
  font-size: 16px;
}

.shared-departments {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shared-departments::-webkit-scrollbar {
  display: none;
}

.shared-departments button {
  display: grid;
  min-width: 210px;
  grid-template-columns: 1fr auto;
  padding: 14px 16px;
  background: var(--raspberry-soft);
  border: 0;
  border-radius: 12px;
}

.shared-departments button:hover {
  background: #ffe1eb;
}

.shared-departments strong {
  font-size: 13px;
}

.shared-departments span {
  color: var(--raspberry);
}

#catalog .catalog-products-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 30px 0 15px;
  padding-top: 0;
  border: 0;
}

#catalog .catalog-products-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -.025em;
}

#catalog .catalog-products-heading > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--raspberry);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

#catalog .catalog-products-heading > span,
#catalog .catalog-products-heading > p {
  grid-column: auto;
}

#catalogTools select {
  border-color: #ded7da;
  border-radius: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

#productGrid.has-bestseller-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.bestseller-row {
  min-width: 0;
}

.product-card {
  height: 395px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3dce0;
  border-radius: 14px;
  box-shadow: none;
  transition: border-color .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s cubic-bezier(.16, 1, .3, 1), transform .18s cubic-bezier(.16, 1, .3, 1);
}

.product-card:hover {
  border-color: rgba(200, 31, 93, .38);
  box-shadow: 0 18px 34px rgba(92, 47, 64, .11);
  transform: translateY(-3px);
}

.product-image {
  height: 188px;
  min-height: 188px;
  padding: 12px;
  background: #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-coming-soon {
  color: #77727a;
  background: #f7f3f5;
}

.product-info {
  padding: 12px 13px 13px;
}

.product-category {
  color: var(--raspberry);
}

#productGrid .product-volume {
  margin: 2px 0 5px;
  overflow: hidden;
  color: #7b7f89;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#productGrid .product-info h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.details-button,
.stock {
  font-size: 9px;
}

.details-button {
  color: var(--raspberry);
}

.product-footer {
  padding-top: 9px;
  border-top: 1px solid #eee8ea;
}

.product-price strong {
  color: var(--text);
  font-size: 18px;
}

.add-button {
  min-width: 42px;
  height: 38px;
  padding-inline: 12px;
}

.catalog-pagination button.active,
#catalog .catalog-subcategory-chips button.active {
  color: #fff;
  background: var(--raspberry);
  border-color: var(--raspberry);
}

#catalog .catalog-subcategory-chips button:hover:not(.active) {
  border-color: var(--raspberry);
}

.delivery-section {
  background: #2a1e25;
}

.delivery-inner .section-kicker,
.about .section-kicker,
#catalog .catalog-products-heading > span {
  display: none;
}

.delivery-inner .section-kicker,
.footer-main > div > small {
  color: #ff9cbd;
}

.delivery-cards b,
.section-kicker {
  color: var(--raspberry);
}

.delivery-cards b {
  padding: 5px 8px;
  background: var(--raspberry-soft);
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: .01em;
}

.secondary-button {
  color: #fff;
}

.footer {
  padding: 54px 0 24px;
  background: #21191e;
}

.footer-main {
  grid-template-columns: 1.15fr 1.35fr .8fr 1fr;
  gap: clamp(28px, 4vw, 64px);
}

.footer-brand {
  gap: 16px !important;
}

.footer-logo {
  display: inline-flex;
  width: 156px;
  height: 118px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
}

.footer-logo .brand-logo-image {
  width: 126px;
  height: 98px;
  filter: none;
  opacity: 1;
  object-position: center;
}

.footer-main p,
.footer-main span,
.footer-main a:not(.logo) {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.55;
}

.footer-main > div > small {
  margin-bottom: 9px;
  color: #f4a6c2;
  font-size: 12px;
  letter-spacing: .06em;
}

.footer-main > div > strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.footer-main a:not(.logo):hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
}

.about {
  gap: clamp(36px, 7vw, 100px);
  padding-block: 58px;
}

.about > p {
  max-width: 620px;
  color: #555b67;
  font-size: 15px;
}

.form-field,
.address-field > small,
.delivery-partner-copy small,
.legal-consent,
.test-notice,
.cart-summary > div,
.cart-summary > small {
  font-size: 12px;
}

.form-field input,
.form-field textarea,
.delivery-partner-copy strong {
  font-size: 14px;
}

@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand,
  .footer-main > div:nth-child(2) {
    grid-column: 1 / -1;
  }

  .footer-main p,
  .footer-main span,
  .footer-main a:not(.logo) {
    font-size: 13px;
  }
}

.cart-drawer,
.checkout-dialog,
.product-dialog {
  color: var(--text);
}

.receive-toggle input:checked + span,
.success-icon {
  background: var(--raspberry);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--raspberry);
}

.mobile-store-link {
  border-color: #eadce2;
  background: var(--raspberry-soft);
}

.mobile-store-icon {
  color: var(--raspberry);
}

@media (max-width: 1180px) {
  .shell {
    width: min(100% - 40px, 1100px);
  }

  .header-main {
    grid-template-columns: 190px minmax(280px, 1fr) auto;
    gap: 18px;
  }

  .brand-logo-image {
    width: 180px;
  }

  .delivery-header-link {
    display: none;
  }

  .hero-tv-pets .hero-content {
    left: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-root-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) and (min-width: 761px) {
  .action-link {
    display: none;
  }

  .pet-departments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-gutter: 14px;
  }

  html {
    scroll-padding-top: 92px;
  }

  .shell {
    width: calc(100% - 28px);
  }

  .header-main {
    min-height: 92px;
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: 92px;
  }

  .header-actions {
    display: none;
  }

  .brand-logo-image {
    width: 96px;
    height: 82px;
  }

  .mobile-store-link {
    width: 46px;
    height: 46px;
    padding: 7px;
    justify-content: center;
    border-radius: 14px;
  }

  .mobile-store-link > span:last-child {
    display: none;
  }

  .hero.shell,
  .hero-tv-pets {
    position: relative;
    display: block;
    width: 100%;
    height: 510px;
    min-height: 510px;
    margin: 0;
  }

  .hero-tv-pets > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 63% center;
  }

  .hero-tv-pets::before {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 32%, rgba(255, 255, 255, .18) 68%, rgba(255, 255, 255, .02) 100%);
  }

  .hero-tv-pets .hero-content {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    width: auto;
    padding: 26px 20px;
    justify-content: flex-start;
  }

  .hero h1 {
    max-width: 360px;
    margin-bottom: 12px;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1;
  }

  .hero-content p {
    max-width: 310px;
    margin-bottom: 17px;
    font-size: 14px;
    line-height: 1.4;
  }

  .hero .primary-button {
    min-height: 50px;
    gap: 18px;
    padding-inline: 22px 17px;
    font-size: 14px;
  }

  .hero-promises {
    display: none;
  }

  #catalog {
    padding-top: 20px;
    padding-bottom: 52px;
    scroll-margin-top: 12px;
  }

  #catalog .catalog-navigation-header:not(.compact) {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 14px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  #catalog .catalog-navigation-header h2 {
    margin-bottom: 2px;
    color: var(--text);
    font-size: 28px;
  }

  #catalog .catalog-navigation-header p {
    color: #6b707b;
    font-size: 12px;
  }

  #catalog .catalog-level-grid {
    gap: 9px;
  }

  .catalog-root-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  #catalog .catalog-root-card {
    min-height: 92px;
    grid-column: auto;
    grid-template-columns: 64px minmax(0, 1fr) 14px;
    padding: 8px;
  }


  .catalog-root-card .catalog-card-animal,
  .catalog-root-card .catalog-card-product,
  .catalog-root-card .catalog-card-symbol {
    width: 64px;
    height: 72px;
  }

  .catalog-root-card .catalog-drill-copy strong {
    font-size: 13px;
  }

  .catalog-root-card .catalog-drill-copy small {
    font-size: 9px;
  }

  #catalog .catalog-drill-card {
    min-height: 76px;
    border-color: #e4dde0;
    border-radius: 14px;
  }

  #catalog .catalog-card-animal,
  #catalog .catalog-card-symbol {
    background-color: #fff;
    border-radius: 12px;
  }

  #catalog .catalog-drill-card > i,
  #catalog .catalog-card-symbol {
    color: var(--raspberry);
  }

  .shared-departments {
    margin-top: 9px;
  }

  #catalog .catalog-products-heading {
    display: grid;
    margin: 24px 0 12px;
    padding: 0;
  }

  #catalog .catalog-products-heading h3 {
    font-size: 22px;
  }

  #catalog .catalog-products-heading > button {
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card {
    height: 344px;
    border-radius: 13px;
  }

  .product-image {
    height: 160px;
    min-height: 160px;
    padding: 9px;
  }

  .product-info {
    padding: 10px;
  }

  #productGrid .product-info h3 {
    min-height: 42px;
    font-size: 11px;
  }

  .product-footer {
    padding-top: 8px;
  }

  .product-price strong {
    font-size: 16px;
  }

  .add-button {
    height: 36px;
    padding-inline: 10px;
  }

  .mobile-tabbar {
    border-color: #eadfe3;
  }

  .mobile-tabbar-item.active,
  .mobile-tabbar-cart b {
    color: var(--raspberry);
  }

  .mobile-tabbar-item {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .header-main {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .brand-logo-image {
    width: 90px;
  }

  .mobile-store-link strong {
    max-width: 115px;
  }

  .hero.shell,
  .hero-tv-pets {
    height: 480px;
    min-height: 480px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .product-card {
    height: 336px;
  }

  .product-image {
    height: 152px;
    min-height: 152px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared production polish: one typographic and interaction system on every public page. */
body {
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.primary-button,
.secondary-button,
.add-button,
.search button,
.legal-back {
  min-height: 46px;
  padding: 11px 20px;
  color: #fff;
  background: var(--raspberry);
  border: 1px solid var(--raspberry);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms cubic-bezier(.16, 1, .3, 1);
}

.primary-button:hover,
.secondary-button:hover,
.add-button:hover,
.search button:hover,
.legal-back:hover {
  color: #fff;
  background: var(--raspberry-dark);
  border-color: var(--raspberry-dark);
}

.primary-button:active,
.secondary-button:active,
.add-button:active,
.search button:active,
.legal-back:active {
  transform: scale(.97);
}

.search button {
  min-height: 0;
  border: 0;
  border-radius: 0 13px 13px 0;
}

.hero-promises svg {
  width: 28px;
  height: 28px;
  color: var(--raspberry);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.pet-department,
.shared-departments button,
.catalog-drill-card,
.catalog-section-card,
.catalog-tile,
.mega-subcategory-card,
.mega-all-link,
#catalog .catalog-subcategory-chips button,
.catalog-pagination button {
  color: var(--text);
}

.pet-department:hover strong,
.pet-department:hover small,
.shared-departments button:hover strong,
.catalog-drill-card:hover,
.catalog-section-card:hover,
.catalog-tile:hover,
.mega-subcategory-card:hover,
.mega-all-link:hover {
  color: var(--text);
}

.shared-departments button:hover,
.catalog-drill-card:hover,
.catalog-section-card:hover,
.catalog-tile:hover,
.mega-subcategory-card:hover,
.mega-all-link:hover {
  background: var(--raspberry-soft);
}

#catalog .catalog-products-heading > button:hover,
.details-button:hover,
.footer-main a:hover,
.legal-content a:hover {
  color: var(--raspberry-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-card {
  height: 398px;
}

.product-info {
  min-height: 0;
}

.details-button {
  display: none;
}

.product-card-open {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}

.product-card-open:focus-visible {
  outline: 3px solid rgba(200, 31, 93, .35);
  outline-offset: -3px;
}

.product-card .add-button {
  position: relative;
  z-index: 3;
}

.product-card .stock {
  margin-top: auto;
  min-height: 18px;
  color: #557061;
  line-height: 18px;
}

.product-card .stock.unavailable {
  color: #8a5867;
}

.add-button {
  min-width: 84px;
  height: auto;
  padding: 10px 12px;
}

.add-button:disabled {
  color: #78737a;
  background: #eee9eb;
  border-color: #eee9eb;
  cursor: default;
}

@media (max-width: 1400px) and (min-width: 761px) {
  .pet-departments {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Delivery page */
.delivery-page {
  background: var(--surface-warm);
}

.delivery-page .delivery-header {
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(32, 35, 43, .07);
}

.delivery-page .delivery-header-inner {
  min-height: 92px;
  grid-template-columns: 230px 1fr auto;
}

.delivery-page .delivery-header img {
  width: 210px;
  height: 76px;
  object-position: left center;
}

.delivery-page .delivery-header nav {
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
}

.delivery-page .delivery-header nav a {
  color: var(--text);
  border-color: transparent;
}

.delivery-page .delivery-header nav a:hover,
.delivery-page .delivery-header nav a[aria-current="page"] {
  color: var(--raspberry);
  border-color: var(--raspberry);
}

.delivery-page .delivery-header-phone {
  color: var(--raspberry);
  font-size: 14px;
}

.delivery-page .delivery-hero {
  padding-block: 38px 28px;
}

.delivery-page .delivery-hero > div {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.delivery-page .delivery-hero h1 {
  max-width: 780px;
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.delivery-page .delivery-hero > div > p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.delivery-page .delivery-content {
  padding: 0 0 62px;
}

.delivery-page .delivery-method-name h2 {
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 28px);
}

.delivery-page .delivery-facts a {
  color: var(--raspberry);
}

.delivery-page .delivery-footer,
.legal-page .legal-footer {
  color: rgba(255, 255, 255, .72);
  background: #21191e;
  font-size: 13px;
}

/* Legal and buyer information */
.legal-page {
  background: var(--surface-warm);
}

.legal-page .legal-header {
  z-index: 40;
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(32, 35, 43, .07);
}

.quantity-control button {
  line-height: 1;
}

.legal-page .legal-header-inner {
  min-height: 92px;
}

.legal-page .legal-logo {
  width: 210px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-page .legal-layout {
  grid-template-columns: 260px minmax(0, 820px);
  justify-content: center;
  gap: 34px;
  padding-block: 42px 82px;
}

.legal-page .legal-nav {
  top: 120px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
}

.legal-page .legal-nav strong {
  color: var(--text);
  font-size: 17px;
}

.legal-page .legal-nav a {
  min-height: 44px;
  padding: 11px 8px;
  color: var(--muted);
  border-color: var(--line);
  font-size: 13px;
  line-height: 1.3;
}

.legal-page .legal-nav a:hover {
  color: var(--raspberry);
}

.legal-page .legal-content {
  padding: clamp(28px, 5vw, 64px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.legal-page .legal-title h1 {
  display: block;
  opacity: 1;
  transform: none;
  max-width: 680px;
  margin-top: 0;
  color: var(--text);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.04em;
}

.legal-page .legal-title::before,
.legal-page .legal-title::after,
.legal-page .legal-title h1::before,
.legal-page .legal-title h1::after {
  display: none !important;
  content: none !important;
}

.legal-page .legal-title p,
.legal-page .legal-content p,
.legal-page .requisites-list {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-page .legal-content h2 {
  color: var(--text);
  font-size: 32px;
  line-height: 1.15;
}

.legal-page .legal-content h3 {
  color: var(--text);
  font-size: 18px;
}

.legal-page .legal-content a {
  color: var(--raspberry);
}

.legal-page .requisites-list > div {
  gap: 22px;
  padding: 16px 0;
  border-color: var(--line);
}

.legal-page .requisites-list dt {
  color: var(--text);
  font-weight: 750;
}

@media (max-width: 760px) {
  .product-card {
    height: 340px;
  }

  .product-card .stock {
    display: none;
  }

  .add-button {
    min-width: 40px;
    padding: 9px 10px;
    font-size: 0;
  }

  .add-button::before {
    content: "+";
    font-size: 20px;
    line-height: 1;
  }

  .add-button:disabled::before {
    content: "✓";
    font-size: 16px;
  }

  .delivery-page .delivery-header-inner {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .delivery-page .delivery-header img,
  .legal-page .legal-logo {
    width: 100px;
    height: 72px;
  }

  .delivery-page .delivery-header nav {
    justify-content: flex-end;
    gap: 12px;
    font-size: 12px;
  }

  .delivery-page .delivery-header nav a {
    display: none;
  }

  .delivery-page .delivery-header nav a:first-child {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 13px;
    color: #fff;
    background: var(--raspberry);
    border: 0;
    border-radius: 12px;
  }

  .delivery-page .delivery-hero {
    display: block;
    padding-block: 28px 24px;
  }

  .delivery-page .delivery-hero h1 {
    font-size: 36px;
    overflow-wrap: anywhere;
  }

  .delivery-page .delivery-hero > div > p {
    font-size: 15px;
  }

  .delivery-page .delivery-content {
    padding: 0 0 54px;
  }

  .legal-page .legal-header-inner {
    min-height: 82px;
  }

  .legal-page .legal-back {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 12px;
  }

  .legal-page .legal-layout {
    display: block;
    gap: 12px;
    padding-block: 16px 58px;
  }

  .legal-page .legal-nav {
    position: static;
    display: flex;
    width: 100%;
    margin-bottom: 12px;
    overflow-x: auto;
    flex-direction: row;
    padding: 8px;
    border-radius: 12px;
  }

  .legal-page .legal-nav strong {
    display: none;
  }

  .legal-page .legal-nav a {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 12px;
  }

  .legal-page .legal-content {
    width: 100%;
    min-width: 0;
    padding: 26px 20px;
    border-radius: 14px;
  }

  .legal-page .legal-title h1 {
    font-size: 36px;
  }

  .legal-page .legal-content h2 {
    font-size: 27px;
  }

  .legal-page .legal-content h3 {
    font-size: 17px;
  }

  .legal-page .legal-title p,
  .legal-page .legal-content p,
  .legal-page .requisites-list {
    font-size: 14px;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .delivery-page .delivery-header-inner {
    grid-template-columns: 180px 1fr;
  }

  .delivery-page .delivery-header-phone {
    display: none;
  }

  .delivery-page .delivery-hero {
    grid-template-columns: 1fr;
  }

  .legal-page .legal-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
  }
}
