/* ===== TOP UTILITY BAR ===== */
.utility-bar {
  background: var(--blue-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.utility-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 32px;
}

.utility-bar__start,
.utility-bar__end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-bar__end {
  margin-left: auto;
}

.utility-bar__pages {
  display: none;
}

.utility-bar__pages-menu {
  left: 0;
  right: auto;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 24px));
}

.utility-bar__menu-heading {
  display: block;
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.utility-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.utility-bar a:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.utility-bar__dropdown-btn:hover {
  color: inherit;
}

.utility-bar__dropdown {
  position: relative;
  cursor: pointer;
}

.utility-bar__dropdown-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.utility-bar__dropdown-btn::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 3px;
}

.utility-bar__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  padding: 6px 0;
}

.utility-bar__menu.is-open {
  display: block;
}

.utility-bar__menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
}

.utility-bar__menu a:hover {
  background: var(--blue-light);
  color: var(--text);
  text-decoration: none;
}

.utility-bar__contact-menu {
  min-width: 200px;
}

.utility-bar__contact-menu a {
  font-weight: 600;
}

/* ===== MAIN HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-main {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0 12px;
}

/* Sticky zone: utility bar + logo/search/cart — full width, sticks on scroll */
.rk-header-sticky {
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
}

.rk-header-sticky .utility-bar {
  width: 100%;
}

.site-header--main {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

body.rk-page-category .rk-header-sticky.is-stuck {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo__img {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
}

.header-search {
  flex: 1;
  min-width: 0;
}

.search-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.search-row__input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.search-row__bom {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: none;
  border-left: 1px solid var(--border);
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.search-row__bom:hover {
  background: var(--blue-light);
}

.search-row__submit {
  width: 48px;
  border: none;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-row__submit:hover {
  background: var(--blue-dark);
}

.search-row__submit svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 12px;
}

.search-tags a {
  color: var(--blue);
}

.search-tags a.is-hot {
  color: var(--orange);
}

.header-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.header-tools__icons {
  display: flex;
  gap: 20px;
}

.header-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  min-width: 48px;
}

.header-tool:hover {
  color: var(--blue);
  text-decoration: none;
}

.header-tool__icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-tool__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}

.header-tool__badge--compare {
  background: var(--blue);
}

.header-tool__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
}

.header-tool:hover .header-tool__icon svg {
  fill: var(--blue);
}

.header-tools__promo {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
}

.header-tool--dropdown {
  position: relative;
}

.header-tool--dropdown .utility-bar__dropdown-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.header-tool--dropdown .utility-bar__menu {
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 72px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-tool--dropdown .utility-bar__menu a {
  color: var(--text);
}

.header-tool--dropdown .utility-bar__menu a:hover {
  color: var(--text);
  background: var(--blue-light);
}

.header-tool--dropdown .utility-bar__menu a.is-active {
  color: var(--blue);
  font-weight: 600;
}

.header-tool__count {
  display: none;
}

/* Bottom compare bar hidden — compare is in header */
#compare-leash {
  display: none !important;
}


/* ===== NAV BAR + CATALOG ===== */
.nav-bar {
  background: #f0f0f0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 150;
}

.nav-bar__inner {
  display: flex;
  align-items: stretch;
  min-height: 44px;
}

.catalog-wrap {
  position: relative;
}

.catalog-btn,
#catalogBtn.catalog-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  background: var(--blue);
  color: #fff !important;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  width: 240px;
  max-width: 100%;
}

.catalog-btn:hover,
.catalog-btn.is-active,
#catalogBtn.catalog-btn:hover,
#catalogBtn.catalog-btn.is-active {
  background: var(--blue-dark);
  color: #fff !important;
}

.catalog-btn__icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.catalog-btn__icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links--desktop {
  display: flex;
}

.nav-links a {
  padding: 0 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-links__dropdown {
  position: relative;
}

.nav-links__dropdown-btn {
  background: none;
  border: none;
  padding: 0 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links__dropdown-btn::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: var(--text-muted);
}

.nav-links__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 160;
}

.nav-links__dropdown-menu.is-open {
  display: block;
}

.nav-links__dropdown-btn:hover {
  color: var(--text);
}

.nav-links__dropdown-menu a {
  display: block;
  padding: 10px 16px;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}

.nav-links__dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--text);
  text-decoration: none;
}

/* Mega menu */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: auto;
  min-width: 240px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.mega-menu.is-open {
  display: flex;
}

.mega-menu__col {
  flex: 0 0 240px;
  width: 240px;
  min-width: 0;
  border-right: 1px solid var(--border);
  max-height: 420px;
  overflow-y: auto;
}

.mega-menu__col.is-hidden {
  display: none;
}

.mega-menu__col:not(.is-hidden):not(:has(~ .mega-menu__col:not(.is-hidden))) {
  border-right: none;
}

#megaCol1.mega-menu__col {
  overflow: visible;
  max-height: none;
}

.mega-menu__col--wide {
  flex: 0 0 280px;
  width: 280px;
}

.mega-menu__header {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-menu__header a {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-menu__header a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.mega-menu__row {
  display: flex;
  align-items: stretch;
  min-height: 44px;
}

.mega-menu__expand-btn {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
  flex-shrink: 0;
}

.mega-menu__expand-icon::before {
  content: "\203A";
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.mega-menu__label {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 9px 8px 9px 16px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  border-left: 3px solid transparent;
  min-width: 0;
}

.mega-menu__list li a.mega-menu__label:hover,
.mega-menu__list li.is-active .mega-menu__label {
  color: var(--blue);
  background: var(--blue-light);
  border-left-color: var(--blue);
  text-decoration: none;
}

.mega-menu__list li.is-active .mega-menu__expand-btn,
.mega-menu__list li:hover .mega-menu__expand-btn {
  color: var(--blue);
}

.mega-menu__footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.mega-menu__footer a {
  font-size: 13px;
  font-weight: 600;
}

.mega-menu__mobile-head,
.mega-menu__backdrop {
  display: none;
}

.mega-menu__mobile-head {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  flex-shrink: 0;
}

.mega-menu__back,
.mega-menu__close {
  background: none;
  border: none;
  font-size: 15px;
  color: var(--blue);
  cursor: pointer;
  padding: 6px 8px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

.mega-menu__back[hidden] {
  visibility: hidden;
}

.mega-menu__mobile-title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.mega-menu__close {
  font-size: 28px;
  color: var(--text-muted);
}

.mega-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 350;
}

.mega-menu__backdrop.is-visible {
  display: block;
}

@media (max-width: 768px) {
  .utility-bar {
    font-size: 11px;
  }

  .utility-bar__inner {
    min-height: 28px;
    gap: 10px;
  }

  .utility-bar__start,
  .utility-bar__end {
    gap: 12px;
  }

  .utility-bar__pages {
    display: block;
  }

  .utility-bar__help {
    display: none;
  }

  .header-main {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 8px 0 6px;
    align-items: center;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .logo__img {
    height: 40px;
    max-width: min(200px, 52vw);
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .search-row__input {
    padding: 8px 12px;
    font-size: 16px;
  }

  .search-row__submit {
    width: 44px;
  }

  .search-tags {
    display: none;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    align-items: center;
    gap: 0;
  }

  .header-tools__icons {
    gap: 6px;
  }

  .header-tools__promo {
    display: none;
  }

  .header-tool {
    position: relative;
    min-width: 40px;
    width: 40px;
    height: 40px;
    font-size: 0;
    gap: 0;
    overflow: hidden;
  }

  .header-tool__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
  }

  .nav-links,
  .nav-links--desktop,
  .nav-links__dropdown {
    display: none !important;
  }

  .nav-bar__inner {
    min-height: 40px;
    display: block;
  }

  .catalog-wrap {
    width: 100%;
  }

  .catalog-btn,
  #catalogBtn.catalog-btn {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
    padding: 0 16px;
  }

  body.rk-mega-open {
    overflow: hidden;
  }

  .mega-menu__backdrop.is-visible {
    display: block;
    z-index: 499;
  }

  .mega-menu__mobile-head {
    display: flex;
  }

  .mega-menu.is-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex-direction: column;
    z-index: 500 !important;
    display: flex !important;
    border: none;
    box-shadow: none;
    background: var(--white);
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mega-menu__col {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    border-right: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #megaCol1.mega-menu__col {
    max-height: none;
    overflow-y: auto;
  }

  .mega-menu.rk-mobile-level-0 #megaCol2,
  .mega-menu.rk-mobile-level-0 #megaCol3 {
    display: none !important;
  }

  .mega-menu.rk-mobile-level-1 #megaCol1 {
    display: none !important;
  }

  .mega-menu.rk-mobile-level-1 #megaCol2:not(.is-hidden) {
    display: block !important;
  }

  .mega-menu.rk-mobile-level-1 #megaCol3 {
    display: none !important;
  }

  .mega-menu.rk-mobile-level-2 #megaCol1,
  .mega-menu.rk-mobile-level-2 #megaCol2 {
    display: none !important;
  }

  .mega-menu.rk-mobile-level-2 #megaCol3:not(.is-hidden) {
    display: block !important;
  }

  .mega-menu__expand-btn {
    flex: 0 0 52px;
    border-left: 1px solid var(--border);
    border-right: none;
    background: #f5f8fc;
    color: var(--blue);
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .mega-menu__expand-btn:active {
    background: var(--blue-light);
  }

  .mega-menu__expand-icon::before {
    font-size: 34px;
    font-weight: 400;
  }

  .mega-menu__row {
    min-height: 48px;
  }

  .mega-menu__label {
    padding: 12px 16px;
    font-size: 15px;
    border-left: none;
  }

  .mega-menu__list li.is-active .mega-menu__expand-btn {
    background: var(--blue-light);
    color: var(--blue-dark);
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding-bottom: 32px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.footer-col h3 a {
  color: inherit;
  text-decoration: none;
}

.footer-col h3 a:hover {
  color: var(--blue);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-contact p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-contact__label {
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.footer-contact__label:first-of-type {
  margin-top: 0;
}

.footer-contact__phones {
  line-height: 1.6;
}

.footer-contact__email a {
  color: var(--blue);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
}

.footer-payments {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-payments__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.payment-badge {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.footer-copy {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-light);
  background: var(--white);
}

.footer-copy__note {
  display: block;
  margin-top: 6px;
}

.footer-contact a {
  color: var(--text-muted);
}

.footer-contact a:hover {
  color: var(--blue);
}

/* ===== FLOAT CHAT ===== */
.float-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  border: none;
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-chat svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ===== CATEGORY / PRODUCT PAGES ===== */
.breadcrumbs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs span {
  margin: 0 4px;
}

