/* Keep the reference site's dimensions, colors and typography intact. */
.replica-image-placeholder { background: #f3f2ef; }
.replica-logo-placeholder { background: #f3f2ef; border: 1px dashed #dad7d0; border-radius: 2px; }
img.replica-brand-logo { object-fit: contain; border: 0; background: transparent; }
.nav .logo img.replica-brand-logo { height: 68px !important; }
#mobile .hbyt-mobile-brand img.replica-brand-logo { height: 40px; object-fit: contain; }
#footer.hbytu-rich-footer .hbytu-footer-brand-link img.replica-brand-logo { width: 220px; height: auto; max-width: 100%; padding: 8px 12px; border-radius: 6px; background: #fff; filter: none !important; mix-blend-mode: normal !important; }
.replica-language { position: relative; display: inline-flex; align-items: center; margin-inline-start: 18px; font-family: Arial, sans-serif; flex-shrink: 0; }
.replica-language-trigger { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 12px; border: 1px solid #e7e2dc; border-radius: 999px; background: #fff; color: #343a40; font: 600 12px/18px Arial, sans-serif; white-space: nowrap; cursor: pointer; box-sizing: border-box; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.replica-language-trigger:hover { background: #fcf8f5; border-color: #e5c0ab; color: #D75F28; }
.replica-language.is-open .replica-language-trigger { background: #fff5ee; border-color: #D75F28; color: #D75F28; box-shadow: 0 0 0 3px #d75f2810; }
.replica-language-icon, .replica-language-chevron { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.replica-language-icon { color: #D75F28; }
.replica-language-trigger svg, .replica-language-panel svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.replica-language-current { display: block; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replica-language-chevron { color: #8d8882; transition: transform .18s ease, color .18s ease; }
.replica-language-chevron svg { width: 12px; height: 12px; }
.replica-language.is-open .replica-language-chevron { transform: rotate(180deg); color: #D75F28; }
.replica-language-backdrop { display: none; }
.replica-language-backdrop[hidden] { display: none !important; }
.replica-language-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); display: flex; flex-direction: column; padding: 0; border: 1px solid #e9e3dd; border-radius: 16px; background: #fff; color: #343a40; box-shadow: 0 16px 48px #29211816, 0 3px 12px #29211808; z-index: 100001; overflow: hidden; text-align: start; font: 400 14px/1.4 Arial, sans-serif; text-transform: none; letter-spacing: normal; }
.replica-language-panel, .replica-language-panel * { box-sizing: border-box; }
.replica-language-panel[hidden] { display: none !important; }
.replica-language-heading { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 18px 16px 16px; }
.replica-language-heading-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: #fff2e9; color: #D75F28; }
.replica-language-heading-icon svg { width: 19px; height: 19px; }
.replica-language-heading-copy { flex: 1 1 auto; min-width: 0; }
.replica-language-heading-title { display: block; margin: 0; color: #30353a; font-size: 15px; font-weight: 600; line-height: 1.35; }
.replica-language-heading-description { margin: 4px 0 0; color: #8a8580; font-size: 11px; line-height: 1.45; }
.replica-language-heading-count { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 28px; height: 24px; padding: 0 6px; border: 1px solid #eee8e2; border-radius: 7px; background: #faf8f5; color: #82786d; font-size: 11px; font-weight: 600; }
.replica-language-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8a8580; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.replica-language-close:hover { background: #f8f3ee; color: #D75F28; }
.replica-language-close svg { width: 16px; height: 16px; }
.replica-language-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; min-height: 0; margin: 0; padding: 0 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
.replica-language-option { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 64px; margin: 0; padding: 10px; border: 1px solid #eee9e3; border-radius: 10px; background: #fff; color: #343a40; font: 400 14px/1.4 Arial, sans-serif; cursor: pointer; text-align: start; text-transform: none; letter-spacing: normal; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.replica-language-option:hover { background: #faf7f3; border-color: #dfd5ca; }
.replica-language-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #eee8e1; border-radius: 9px; background: #f7f5f1; color: #7c756c; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.replica-language-option-copy { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.replica-language-name { display: block; overflow: hidden; color: inherit; font-size: 14px; font-weight: 500; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; }
.replica-language-secondary { display: block; overflow: hidden; color: #938a80; font-size: 11px; font-weight: 400; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.replica-language-check { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 14px; width: 14px; color: #D75F28; opacity: 0; }
.replica-language-check svg { width: 14px; height: 14px; stroke-width: 2; }
.replica-language-option.is-selected { background: #fff4ec; border-color: #e8b392; color: #bd4e1e; }
.replica-language-option.is-selected:hover { background: #ffefe3; border-color: #D75F28; }
.replica-language-option.is-selected .replica-language-badge { background: #D75F28; border-color: #D75F28; color: #fff; }
.replica-language-option.is-selected .replica-language-secondary { color: #b37e62; }
.replica-language-option.is-selected .replica-language-check { opacity: 1; }
.replica-language-trigger:focus-visible, .replica-language-option:focus-visible, .replica-language-close:focus-visible, #mobile .replica-language-trigger:focus-visible, #mobile .replica-language-option:focus-visible, #mobile .replica-language-close:focus-visible { outline: 2px solid #D75F28; outline-offset: 2px; }
.replica-language-footer { display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; margin: 0; padding: 12px 16px; border-top: 1px solid #f0ebe6; background: #fcfbf9; color: #8a8177; font-size: 11px; line-height: 1.4; }
.replica-language-footer-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #D75F28; opacity: .75; }
#header .menu-box { display: flex; align-items: center; }
/* Keep the reference's 18px navigation on one baseline after adding languages. */
@media (min-width: 1101px) {
  #header .nav .nav-box { width: min(1230px, calc(100% - 48px)); gap: 20px; }
  #header .nav .nav-box .logo { flex: 0 0 auto; }
  #header .nav .nav-box .menu-box { flex: 1 1 auto; min-width: 0; justify-content: flex-end; align-items: center; gap: clamp(12px, 1.25vw, 20px); }
  #header .nav .nav-box .menu-box .menu-menu-container { flex: 0 1 auto; min-width: 0; height: 100%; }
  #header .nav .nav-box .menu-box .menu { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(18px, 2.4vw, 36px); height: 100%; margin: 0; padding: 0; }
  #header .nav .nav-box .menu-box .menu > li { flex: 0 0 auto; height: 100%; margin: 0 !important; padding: 0; }
  #header .nav .nav-box .menu-box .menu > li > a { display: flex; align-items: center; height: 100%; font-family: 'Source-Han-Sans', Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
  #header .nav .nav-box .menu-box .h-search { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 42px; margin: 0; padding: 0; }
  #header .nav .nav-box .menu-box .hbyt-inquiry-nav--desktop { flex: 0 0 auto; }
  #header .nav .nav-box .menu-box .replica-language { flex: 0 0 auto; margin-inline-start: 0; }
}
@media (min-width: 1101px) and (max-width: 1230px) {
  #header .nav .nav-box .menu-box .menu { gap: 18px; }
}
.replica-notice { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); max-width: min(520px,90vw); padding: 16px 22px; background: #24303d; color: #fff; font: 14px/1.6 Arial, sans-serif; border-radius: 4px; z-index: 200000; box-shadow: 0 6px 22px #0002; }
.replica-notice[hidden] { display: none; }
.replica-captcha { padding: 8px 20px; background: #f3f2ef; color: #333; font: italic 25px monospace; letter-spacing: 5px; }
.replica-search-results { padding: 24px 0; }
.replica-search-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; width: 100%; padding: 0; }
.replica-search-grid > li { width: auto !important; margin: 0 !important; list-style: none; }
.replica-search-grid img { display: block; width: 100%; height: auto; }
.replica-search-grid h3 { font-size: 16px; margin-top: 16px; }
.replica-setup-link { font-size: 12px; color: #9f9c98; display: inline-block; margin-inline-start: 16px; }
.replica-contact-details { padding: 0; list-style: none; }
.hbytu-footer-contact a[href^="mailto:"],[data-config-contact] a[href^="mailto:"] { overflow-wrap: anywhere; word-break: break-word; direction: ltr; unicode-bidi: isolate; }
.replica-wechat-contact { width: 190px; max-width: 100%; margin: 20px 0 0; }
.replica-wechat-image-link { display: block; background: #fff; border: 1px solid #e5e2dc; border-radius: 4px; overflow: hidden; }
.replica-wechat-image-link img { display: block; width: 100%; height: auto; object-fit: contain; }
.replica-wechat-contact figcaption { margin-top: 8px; font-size: 12px; line-height: 1.6; text-align: center; color: inherit; }
[data-config-contact] .replica-wechat-contact { width: 260px; }
.replica-wechat-dialog { width: min(440px,calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px; border: 1px solid #e5e2dc; border-radius: 8px; background: #fff; color: #25303e; box-shadow: 0 12px 48px #0004; box-sizing: border-box; }
.replica-wechat-dialog::backdrop { background: #0009; }
.replica-wechat-dialog h2 { margin: 0 30px 18px 0; font: 600 17px/1.5 Arial,sans-serif; }
.replica-wechat-dialog > img { display: block; width: auto; height: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; object-fit: contain; }
.replica-wechat-dialog-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #25303e; font: 28px/1 Arial,sans-serif; cursor: pointer; }
.replica-wechat-dialog-close:hover { color: #D75F28; }
.social-sidebar .social-wechat { font-family: inherit; }
/* Contact and information pages must not hide the user's contact shortcuts. */
#hbytuSocialSidebar.social-sidebar { display: flex !important; opacity: 1 !important; visibility: visible !important; transform: translate(0,-50%); }
html[dir=rtl] body { direction: rtl; }
html[dir=rtl] .hbyt-home-hero-copy, html[dir=rtl] .hbyt-product-info, html[dir=rtl] .about-content, html[dir=rtl] .hbytu-footer-column { text-align: right; }
html[dir=rtl] .hbyt-product-card-model, html[dir=rtl] .hbyt-product-model { direction: ltr; unicode-bidi: isolate; }
html[dir=rtl] #header .menu { display: flex; }
html[dir=rtl] #header .menu > li { float: none; }
html[dir=rtl] .hbyt-spec-row { text-align: right; }
html[dir=rtl] .hbil-image-link { float: right; }
@media (max-width: 1100px) {
  #header .replica-language { display: none; }
  #mobile .hbyt-mobile-bar { gap: 8px; }
  #mobile .hbyt-mobile-brand { flex: 1 1 auto; min-width: 60px; margin-inline-end: auto; }
  #mobile .hbyt-mobile-brand img { max-width: 120px; width: 100%; }
  #mobile .hbyt-mobile-bar > .replica-language { position: relative; display: inline-flex; margin: 0; z-index: 100002; }
  #mobile .replica-language-trigger { z-index: 100002; gap: 5px; min-height: 34px; padding: 7px 8px; font: 600 12px/18px Arial, sans-serif; }
  #mobile .replica-language-current { max-width: 46px; }
  #mobile .replica-language-icon svg { width: 15px; height: 15px; }
  #mobile .replica-language-chevron svg { width: 10px; height: 10px; }
  #mobile .replica-language-backdrop { position: fixed; inset: 0; display: block; z-index: 100000; background: #24201b38; }
  #mobile .replica-language-panel { position: fixed; top: 76px; right: 16px; bottom: auto; left: auto; width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); z-index: 100001; }
  #mobile .replica-language-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  #mobile .replica-language-option { font: 400 14px/1.4 Arial, sans-serif; }
}
@media (max-width: 767px) {
  .social-sidebar { gap: 8px; }
  #hbytuSocialSidebar.social-sidebar { transform: translateY(0); }
  .social-sidebar .social-item.social-facebook,.social-sidebar .social-item.social-instagram,.social-sidebar .social-item.social-whatsapp,.social-sidebar .social-item.social-phone,.social-sidebar .social-item.social-wechat { display: flex; width: 46px; height: 46px; border: 0; border-radius: 50%; box-shadow: 0 4px 14px #0003; }
}
@media (max-width: 600px) {
  .replica-search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  #mobile .replica-language-panel { top: auto; right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); left: 12px; width: auto; max-width: none; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); border-radius: 18px; }
  #mobile .replica-language-heading { padding: 16px 12px 14px; gap: 8px; }
  #mobile .replica-language-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 12px 12px; }
  #mobile .replica-language-option { gap: 7px; padding: 10px 8px; }
  #mobile .replica-language-badge { flex-basis: 32px; width: 32px; height: 32px; }
  #mobile .replica-language-check { flex-basis: 12px; width: 12px; }
  #mobile .replica-language-check svg { width: 12px; height: 12px; }
  #mobile .replica-language-footer { padding: 12px; }
}
@media (max-width: 360px) {
  #mobile .replica-language-heading { gap: 7px; padding: 14px 10px 12px; }
  #mobile .replica-language-heading-title { font-size: 14px; }
  #mobile .replica-language-heading-description { font-size: 10px; }
  #mobile .replica-language-list { gap: 6px; padding: 0 10px 10px; }
  #mobile .replica-language-option { gap: 5px; padding: 10px 7px; }
  #mobile .replica-language-badge { flex-basis: 30px; width: 30px; height: 30px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001s !important; transition-duration: .001s !important; } }


/* Keep mobile hero copy clear of the existing right-side contact shortcuts. */
@media (max-width: 767px) {
  .hbyt-feature-hero .hbyt-home-hero-copy { padding-right: 76px; }
}

/* Existing source images use the reference sizing and ordering. */
.replica-search-grid img { aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.hbyt-contact-direct a[href^="mailto:"] { overflow-wrap: anywhere; word-break: break-word; }

/* Today's new-product cards stay still. Only detail-page main images zoom. */
a:is([href="/369.html"], [href="/370.html"], [href="/371.html"], [href="/372.html"],
     [href="/373.html"], [href="/374.html"], [href="/375.html"], [href="/376.html"],
     [href="/377.html"], [href^="/377.html?"]) img {
  transform: none !important;
  transition: none !important;
}

/* Six brush views in two consistent rows; keep original attachment order. */
body[data-petmio-photo-gallery="grooming-brush"] .petmio-stand-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  gap: 8px;
}
body[data-petmio-photo-gallery="grooming-brush"] .petmio-stand-color {
  width: 100%;
  min-width: 0;
  max-width: none;
}
