/*
Theme Name: TAYLOME Store Child
Description: Дочерняя тема Blocksy для локального интернет-магазина зоотоваров TAYLOME.
Author: TAYLOME Project
Template: blocksy
Version: 0.7.5
Text Domain: hb-store
*/

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --hb-ink: #203638;
  --hb-muted: #526967;
  --hb-green: #166b68;
  --hb-green-dark: #0f5755;
  --hb-green-soft: #e8f5f0;
  --hb-sage: #d8eee7;
  --hb-blue-soft: #edf7f4;
  --hb-sand: #fff1eb;
  --hb-coral: #eb8669;
  --hb-coral-dark: #ab453e;
  --hb-cream: #f8fbfa;
  --hb-surface: #ffffff;
  --hb-line: #c8d7d3;
  --hb-radius-sm: 12px;
  --hb-radius: 20px;
  --hb-shadow: 0 18px 48px rgba(38, 57, 52, 0.08);
  --hb-font-heading: "Manrope", "Segoe UI", Arial, sans-serif;
  --hb-font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

body {
  background: var(--hb-cream);
  color: var(--hb-ink);
}

body,
input,
select,
textarea {
  font-family: var(--hb-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
.button,
[type="button"],
[type="submit"],
.wp-element-button,
.site-title,
.hb-d2-brand,
.hb-d2-footer__brand {
  font-family: var(--hb-font-heading);
}

a {
  text-underline-offset: 0.18em;
}

.ct-container-full,
.site-main {
  background: var(--hb-cream);
}

.site-main > article > .entry-content {
  margin-top: 0;
}

.home .hero-section,
.home article > .entry-header,
.page-hb-layout .hero-section,
.page-hb-layout article > .entry-header {
  display: none;
}

.hb-shell {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.hb-section {
  padding-block: clamp(42px, 7vw, 88px);
}

.hb-section + .hb-section {
  padding-top: 0;
}

.hb-eyebrow {
  margin: 0 0 12px;
  color: var(--hb-green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-title {
  color: var(--hb-ink);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.site-title a {
  color: inherit;
}

.hb-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.hb-heading-row h2,
.hb-hero h1,
.hb-info-main h1 {
  color: var(--hb-ink);
  letter-spacing: -0.035em;
}

.hb-heading-row h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.hb-heading-row a {
  color: var(--hb-green-dark);
  font-weight: 650;
  white-space: nowrap;
}

.hb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  padding-top: 30px;
}

.hb-hero__copy,
.hb-hero__visual {
  min-height: 470px;
  border-radius: 28px;
}

.hb-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 6vw, 72px);
  background: var(--hb-surface);
  box-shadow: var(--hb-shadow);
}

.hb-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.hb-hero__lead {
  max-width: 640px;
  margin: 24px 0 30px;
  color: var(--hb-muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hb-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--hb-green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.hb-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wp-element-button:hover {
  background: var(--hb-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.hb-button:focus-visible,
.hb-pet-card:focus-visible,
.hb-product-card a:focus-visible {
  outline: 3px solid rgba(65, 111, 101, 0.34);
  outline-offset: 4px;
}

.hb-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--hb-green-soft), var(--hb-sand));
}

.hb-hero__visual::before,
.hb-hero__visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hb-hero__visual::before {
  width: 260px;
  height: 260px;
  top: -90px;
  right: -70px;
  background: rgba(255, 255, 255, 0.58);
}

.hb-hero__visual::after {
  width: 190px;
  height: 190px;
  bottom: -55px;
  left: -40px;
  background: rgba(65, 111, 101, 0.12);
}

.hb-hero__logo {
  position: relative;
  z-index: 1;
  width: min(70%, 350px);
  height: auto;
  margin-bottom: 22px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(32, 54, 56, 0.08);
}

.hb-hero__caption {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  max-width: 190px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--hb-coral-dark);
  font-size: 0.9rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.hb-pet-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.hb-pet-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 12px;
  border: 1px solid transparent;
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
  color: var(--hb-ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(38, 57, 52, 0.045);
  transition: border-color 160ms ease, transform 160ms ease;
}

.hb-pet-card:nth-child(2n) {
  background: var(--hb-blue-soft);
}

.hb-pet-card:nth-child(3n) {
  background: var(--hb-sand);
}

.hb-pet-card:hover {
  border-color: var(--hb-green);
  color: var(--hb-ink);
  transform: translateY(-3px);
}

.hb-pet-card svg {
  width: 42px;
  height: 42px;
  color: var(--hb-green);
}

.hb-pet-card strong {
  font-size: 1rem;
}

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

.hb-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
}

.hb-product-card__image {
  display: grid;
  min-height: 215px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--hb-green-soft), var(--hb-blue-soft));
}

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

.hb-product-card__placeholder {
  width: 64px;
  color: var(--hb-green);
}

.hb-product-card__meta {
  margin: 16px 2px 0;
  color: var(--hb-muted);
  font-size: 0.82rem;
}

.hb-product-card h3 {
  margin: 6px 2px 14px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.hb-product-card h3 a {
  color: var(--hb-ink);
  text-decoration: none;
}

.hb-product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.hb-product-card__price {
  color: var(--hb-ink);
  font-size: 1.1rem;
  font-weight: 750;
}

.hb-product-card__link {
  color: var(--hb-green-dark);
  font-weight: 700;
}

.hb-expertise {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.hb-expertise__intro,
.hb-expertise__items {
  padding: clamp(26px, 4vw, 48px);
  border-radius: 24px;
}

.hb-expertise__intro {
  background: var(--hb-green);
  color: #fff;
}

.hb-expertise__intro h2 {
  margin-top: 0;
  color: #fff;
}

.hb-expertise__intro .hb-eyebrow {
  color: #dffaf3;
}

.hb-expertise__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--hb-surface);
}

.hb-expertise__item {
  padding: 18px;
  border-radius: 16px;
  background: var(--hb-cream);
}

.hb-expertise__item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.hb-expertise__item p {
  margin: 0;
  color: var(--hb-muted);
  font-size: 0.92rem;
}

.hb-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hb-service-strip > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--hb-line);
  border-radius: 16px;
  background: var(--hb-surface);
}

.hb-service-strip__icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--hb-green-soft);
  color: var(--hb-green-dark);
}

.hb-service-strip__icon svg {
  width: 25px;
  height: 25px;
}

.hb-service-strip strong {
  display: block;
  margin-bottom: 6px;
}

.hb-service-strip small {
  display: block;
  color: var(--hb-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.hb-info-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 28px;
  padding-block: 44px 80px;
}

.hb-info-nav,
.hb-info-main {
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
}

.hb-info-nav {
  align-self: start;
  position: sticky;
  top: 30px;
  padding: 18px;
}

.hb-info-nav strong {
  display: block;
  margin: 4px 8px 12px;
}

.hb-info-nav a {
  display: block;
  padding: 11px 8px;
  border-bottom: 1px solid var(--hb-line);
  color: var(--hb-ink);
  text-decoration: none;
}

.hb-info-nav a:last-child {
  border: 0;
}

.hb-info-main {
  padding: clamp(26px, 5vw, 60px);
}

.hb-info-main h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hb-info-main h2 {
  margin-top: 38px;
  color: var(--hb-ink);
}

.hb-info-main p,
.hb-info-main li {
  color: var(--hb-muted);
  line-height: 1.75;
}

.hb-callout {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--hb-green);
  border-radius: 0 var(--hb-radius-sm) var(--hb-radius-sm) 0;
  background: var(--hb-green-soft);
  color: var(--hb-ink);
}

.hb-step-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: hb-step;
}

.hb-step-list li {
  position: relative;
  min-height: 44px;
  padding-left: 54px;
  counter-increment: hb-step;
}

.hb-step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--hb-green);
  color: #fff;
  content: counter(hb-step);
  font-weight: 700;
}

.hb-delivery-list {
  display: grid;
  gap: 16px;
  margin: 22px 0 34px;
}

.hb-delivery-list section {
  padding: 22px;
  border: 1px solid var(--hb-line);
  border-radius: 16px;
  background: var(--hb-cream);
}

.hb-delivery-list h3 {
  margin: 0 0 10px;
  color: var(--hb-ink);
}

.hb-delivery-list p:last-child {
  margin-bottom: 0;
  color: var(--hb-coral-dark);
}

.hb-product-geo {
  margin-top: clamp(32px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--hb-line);
  border-radius: 24px;
  background: var(--hb-green-soft);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  padding: 14px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
}

.woocommerce ul.products li.product a img {
  border-radius: 15px;
  background: var(--hb-green-soft);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--hb-ink);
  font-size: 1rem;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--hb-green-dark);
  font-weight: 750;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  border-radius: var(--hb-radius);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-billing-fields,
.woocommerce-shipping-fields {
  padding: clamp(18px, 3vw, 30px);
  background: var(--hb-surface);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  min-height: 48px;
  border-color: var(--hb-line);
  border-radius: 10px;
  background: var(--hb-cream);
}

.hb-delivery-picker {
  position: relative;
  z-index: 20;
  margin-top: -2px;
  overflow: hidden;
  border: 1px solid var(--hb-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(32, 54, 56, 0.12);
}

.hb-delivery-picker[hidden] {
  display: none;
}

.hb-delivery-picker__status {
  padding: 12px 14px;
  color: var(--hb-muted);
  font-size: 0.9rem;
}

.hb-delivery-picker__results {
  max-height: 260px;
  margin: 0;
  overflow-y: auto;
  list-style: none;
}

.hb-delivery-picker__option {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid #edf2f0;
  background: #fff;
  color: var(--hb-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.hb-delivery-picker__option:hover,
.hb-delivery-picker__option:focus-visible {
  background: var(--hb-green-soft);
  color: var(--hb-green-dark);
}

.hb-order-summary-table .product-total,
.hb-order-summary-table .cart-subtotal,
.hb-order-summary-table .shipping,
.hb-order-summary-table .fee,
.hb-order-summary-table .tax-total {
  display: none;
}

.hb-order-summary-table .order-total th,
.hb-order-summary-table .order-total td {
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--hb-ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.hb-minimum-order-note {
  margin: 15px 0 0;
  color: var(--hb-coral-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.hb-empty-state {
  padding: 36px;
  border: 1px dashed var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
  color: var(--hb-muted);
  text-align: center;
}

.menu-item.hb-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
}

.menu-item.hb-language-switcher > a {
  min-width: auto;
  padding-inline: 2px;
}

@media (max-width: 1024px) {
  .hb-pet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .hb-hero,
  .hb-expertise,
  .hb-info-layout {
    grid-template-columns: 1fr;
  }

  .hb-hero__copy,
  .hb-hero__visual {
    min-height: 350px;
  }

  .hb-info-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-info-nav strong {
    grid-column: 1 / -1;
  }

  .hb-service-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hb-shell {
    width: min(100% - 22px, 1240px);
  }

  .hb-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hb-pet-grid,
  .hb-product-grid,
  .hb-expertise__items,
  .hb-info-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-product-card__image {
    min-height: 150px;
  }

  .hb-product-card__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hb-info-main {
    padding: 24px 18px;
  }
}
