/* HiHorse storefront refinements. Kept separate from generated Avanam CSS. */
:root {
  --hihorse-accent: #e3147c;
  --hihorse-accent-dark: #bd0f66;
  --hihorse-ink: #17131a;
  --hihorse-border: #ece7eb;
  --hihorse-soft: #faf7f9;
  --hihorse-shadow: 0 10px 28px rgba(37, 20, 30, 0.08);
}

/* Header */
#header.site-header {
  background: #fff;
}

#header .home-header {
  border-bottom: 1px solid var(--hihorse-border);
}

#header .home-header-bottom {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--hihorse-border);
  box-shadow: 0 5px 18px rgba(37, 20, 30, 0.06);
}

#header .ava-search-bar #searchbox {
  overflow: hidden;
  border-color: #ded7dc !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(37, 20, 30, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#header .ava-search-bar #searchbox:focus-within {
  border-color: var(--hihorse-accent) !important;
  box-shadow: 0 0 0 3px rgba(227, 20, 124, 0.1);
}

#_desktop_megamenu .menu-content > .menu-item > a::after {
  position: absolute;
  right: 20px;
  bottom: 10px;
  left: 20px;
  height: 2px;
  content: "";
  background: var(--hihorse-accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

#_desktop_megamenu .menu-content > .menu-item:hover > a::after,
#_desktop_megamenu .menu-content > .menu-item.active > a::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Homepage product sections */
.elementor-3 .elementor-widget-ava-products-tabs .widget-tabs-wrapper {
  margin-bottom: 20px !important;
}

.elementor-3 .elementor-widget-heading .elementor-heading-title {
  color: var(--hihorse-ink);
  letter-spacing: -0.02em;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .thumbnail-container {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .thumbnail-container:hover,
.page-index .products.product-loop:not(.list, .product-list) .product-miniature .thumbnail-container:focus-within {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .thumbnail-top {
  overflow: hidden;
  border-bottom: 1px solid var(--hihorse-border);
  background: #fff;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .product-thumbnail img {
  transition: transform 260ms ease;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .thumbnail-container:hover .product-thumbnail img {
  transform: scale(1.025);
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .product-description {
  display: flex;
  min-height: 154px;
  padding: 14px 14px 16px;
  flex-direction: column;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .brand-title {
  overflow: hidden;
  margin-bottom: 6px;
  color: #766d73;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .product-title {
  display: -webkit-box;
  min-height: 42px;
  margin-bottom: 8px;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .product-price-and-shipping {
  margin-top: auto;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .price-sale {
  color: var(--hihorse-accent);
  font-weight: 700;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .regular-price {
  color: #8c858a;
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .mini-actions .btn-action {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hihorse-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 10px rgba(37, 20, 30, 0.08);
}

.page-index .products.product-loop:not(.list, .product-list) .product-miniature .mini-actions .btn-action:hover {
  border-color: var(--hihorse-accent);
  background: var(--hihorse-accent);
  color: #fff;
}

@media (max-width: 991.98px) {
  #header .elementor-element-4beb179a {
    min-height: 72px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--hihorse-border);
    box-shadow: 0 5px 18px rgba(37, 20, 30, 0.07);
  }

  #mobile-menu-icon,
  #header .ava-search-bar .search-button,
  #header .ava-dropdown-account,
  #header .btn-canvas {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  #mobile-menu-icon {
    margin-left: -10px;
  }

  .page-index .products.product-loop:not(.list, .product-list) .product-miniature .product-description {
    min-height: 166px;
    padding: 12px;
  }
}

@media (max-width: 575.98px) {
  .elementor-3 .elementor-widget-ava-products-tabs .widget-tabs-wrapper {
    margin-bottom: 12px !important;
  }

  .page-index .products.product-loop:not(.list, .product-list) .product-miniature .product-description {
    min-height: 174px;
    padding: 10px;
  }

  .page-index .products.product-loop:not(.list, .product-list) .product-miniature .brand-title {
    font-size: 13px;
  }

  .page-index .products.product-loop:not(.list, .product-list) .product-miniature .product-title {
    min-height: 40px;
    font-size: 14px;
  }

  .page-index .products.product-loop:not(.list, .product-list) .product-miniature .mini-actions .btn-action {
    width: 38px;
    height: 38px;
  }
}

/* Checkout uses a calm, compact header without the full storefront navigation. */
body#checkout #header .hihorse-checkout-header {
  min-height: 84px;
  padding: 14px 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--hihorse-border, #eadfe5);
  box-shadow: 0 4px 18px rgba(37, 20, 30, 0.06);
}

body#checkout #hero_section,
body#checkout .page-header {
  display: none;
}

body#checkout #header .hihorse-checkout-header__inner {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

body#checkout #header .hihorse-checkout-header__logo a {
  display: inline-flex;
  align-items: center;
}

body#checkout #header .hihorse-checkout-header__logo .logo {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 56px;
  object-fit: contain;
}

body#checkout #header .hihorse-checkout-header__contact {
  margin-left: auto;
  color: #272126;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

body#checkout #header .hihorse-checkout-header__contact #contact-link,
body#checkout #header .hihorse-checkout-header__contact #_desktop_contact_link {
  color: #272126;
}

/* The contact module sets white text for the regular pink shop bar. */
#header .hihorse-checkout-header #_desktop_contact_link,
#header .hihorse-checkout-header #_mobile_contact_link,
#header .hihorse-checkout-header #contact-link {
  color: #272126 !important;
}

#header .hihorse-checkout-header #contact-link a,
#header .hihorse-checkout-header #contact-link span {
  color: var(--hihorse-accent, #e5007d) !important;
}

body#checkout #header .hihorse-checkout-header__mobile {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 991.98px) {
  body#checkout #header .hihorse-checkout-header__mobile {
    display: flex !important;
  }
}

body#checkout #header .hihorse-checkout-header__contact a {
  color: var(--hihorse-accent, #e5007d);
  text-decoration: none;
  transition: color 0.2s ease;
}

body#checkout #header .hihorse-checkout-header__contact a:hover,
body#checkout #header .hihorse-checkout-header__contact a:focus-visible {
  color: var(--hihorse-accent, #e5007d);
}

@media (max-width: 575.98px) {
  body#checkout #header .hihorse-checkout-header {
    min-height: 72px;
    padding: 10px 0;
  }

  body#checkout #header .hihorse-checkout-header__inner {
    min-height: 52px;
    gap: 14px;
  }

  body#checkout #header .hihorse-checkout-header__logo .logo {
    max-width: 150px;
    max-height: 48px;
  }

  body#checkout #header .hihorse-checkout-header__contact {
    max-width: 170px;
    font-size: 12px;
    line-height: 1.35;
  }
}
