/**
 * Two-row site header.
 * Updated to feature unified search, centered navigation, and a 2-column mega-menu.
 */

/* ==========================================================================
   GLOBAL CONTAINER WIDTH OVERRIDE (temporary location — move to base.css later)
   ========================================================================== */

.col-full {
  max-width: 100%;
 margin:0px;
  padding-left: 0px;
  padding-right: 0px;
  
}

#masthead.site-header {
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
  background-color: var(--color-primary);
}


.page .entry-header,
.page-title,
.entry-title {
  display: none;
}

/* ==========================================================================
   ROW 1 — logo / search / account + help + social
   ========================================================================== */
.site-header__row--primary {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-primary);
  padding: 9px var(--space-xs);
  border-bottom: 1px solid var(--color-primary-light);
}

.site-header__row--primary .site-header__row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 50px;
}

.site-header__logo,
.site-header__search,
.site-header__actions {
  display: flex;
  align-items: center;
}


#masthead.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo ------------------------------------------------------------------- */
.site-header__logo {
  flex: 0 0 auto;
}

.site-header__logo img,
.site-header__logo .custom-logo {
  height: 45px;
  width: 320px;
  display: block;
}

.site-header__logo a {
  font-family: var(--font-base);
  color: var(--color-white);
  text-decoration: none;
}

/* Search (centered, flexible) ------------------------------------------- */
.site-header__search {
  flex: 1 1 auto;
  justify-content: center;
}

.site-header__search .product-search-bar {
  width: 100%;
  max-width: 640px;
  height: 44px;
}

/* Account / Help / Social actions (Row 1) ------------------------------- */
.site-header__actions {
  flex: 0 0 auto;
  gap: var(--space-sm);
}

.site-header__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-base);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-header__action-label {
  font-size: 13px;
  font-weight: 500;
}

.site-header__icon {
  flex: 0 0 auto;
  display: block;
}

.site-header__action:hover,
.site-header__action:focus {
  color: var(--color-white);
}

.site-header__social {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-header__social a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  transition: color 0.2s ease;
}

.site-header__social a:hover,
.site-header__social a:focus {
  color: var(--color-white);
}

/* ==========================================================================
   PRODUCT SEARCH BAR — fully rounded, joined control
   Order: Left (Search Icon) -> Middle (Input) -> Right (Category Dropdown)
   ========================================================================== */

.product-search-bar {
  display: flex;
  align-items: center;
  align-self: center;
  border: none;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-white);
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* Submit button — LEFT, icon only, transparent */
.product-search-bar__submit {
  flex: 0 0 auto;
  border: 0;
  background: var(--color-bg);
  color: var(--color-text-muted);
  padding: 0 10px 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
}

.product-search-bar__submit:hover,
.product-search-bar__submit:focus {
  color: var(--color-text);
}

/* Text input — MIDDLE */
.product-search-bar__field {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-base);
  padding: 10px 15px;
  min-width: 0;
  order: 2;
}

.product-search-bar__field::placeholder {
  color: var(--color-text-muted);
}

.product-search-bar__field:focus {
  outline: none;
}

/* Category select — RIGHT, looks inside the bar */
.product-search-bar__category {
  display: flex;
  align-items: center;
  order: 3;
  flex-shrink: 0;
  
  border: 0;
}

.product-search-bar__select {
  display: block;
  border: 0;
  border-left: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text) !important;
  font-family: var(--font-base);
  font-size: 12px;
  padding: 10px 32px 10px 15px;
  width: 160px;
  height: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.product-search-bar__select:focus {
  outline: none;
}

/* ==========================================================================
   CATEGORIES DROPDOWN BUTTON (Row 2 toggle)
   ========================================================================== */

.categories-dropdown {
  position: relative;
  flex: 0 0 auto;
 width: 150px;
}

.categories-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-accent-dark);
  color: var(--color-white);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.categories-dropdown__toggle:hover,
.categories-dropdown__toggle:focus {
  background: transparent;
  color: var(--color-accent-light);
  border: 2px solid var(--color-accent-light);
  border-radius: var(--radius-full);
}

.categories-dropdown__toggle:focus,
.categories-dropdown__toggle:active {
  outline: none;
  box-shadow: none;
}

.categories-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  width: max-content;
  min-width: 500px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.categories-dropdown__panel[hidden] {
  display: none;
}

.categories-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.categories-dropdown__item {
  list-style: none;
}

.categories-dropdown__link {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-bg);
  padding: 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s ease;
}

.categories-dropdown__link:hover,
.categories-dropdown__link:focus {
  background: var(--color-border);
}

.categories-dropdown__media {
  flex-shrink: 0;
  display: flex;
}

.categories-dropdown__img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.categories-dropdown__img--placeholder {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.categories-dropdown__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.categories-dropdown__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.categories-dropdown__count {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   ROW 2 — categories button + primary nav + Support Widget
   ========================================================================== */

.site-header__row--secondary {
  background: var(--color-white);
  padding: 8px var(--space-xs);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__row--secondary .site-header__row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  height: 40px;
}

/* Center Navigation */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.primary-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav__menu a {
  font-family: var(--font-base);
  color: var(--color-accent-dark);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s ease;
}

.primary-nav__menu a:hover,
.primary-nav__menu a:focus {
  color: var(--color-accent-light);
}

.primary-nav__menu a:focus,
.primary-nav__menu a:active {
  outline: none;
  box-shadow: none;
}

.primary-nav__menu .current-menu-item > a,
.primary-nav__menu .current_page_item > a {
  color: var(--color-accent-light);
}

/* Far Right — social icons (replaces the old 24/7 phone widget) */
.header-social {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(65, 1, 76, 0.14);
  color: var(--color-accent-dark);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.header-social a:hover,
.header-social a:focus {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.header-social svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* ==========================================================================
   MOBILE TOGGLE BUTTONS (hidden on desktop)
   ========================================================================== */

.site-header__mobile-toggle,
.site-header__mobile-search-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-white);
  padding: 8px;
  cursor: pointer;
}

/* ==========================================================================
   MOBILE DRAWER (hidden on desktop)
   ========================================================================== */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 85vw;
  background: var(--color-white);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 46px);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer[hidden] {
  display: block;
}

.mobile-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer__title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 16px;
}

.mobile-drawer__close {
  border: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px;
}

.mobile-drawer__search {
  margin-bottom: var(--space-md);
}

.mobile-drawer__search .product-search-bar {
  width: 100%;
}

.mobile-drawer__search .product-search-bar__select {
  min-width: 0;
  width: auto;
  max-width: 90px;
  padding: 0 24px 0 10px;
  font-size: 13px;
}

.mobile-drawer__search .product-search-bar__field {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-drawer .categories-dropdown {
  margin-bottom: var(--space-md);
  width: 100%;
}

.mobile-drawer .categories-dropdown__toggle {
  width: 100%;
  justify-content: center;
}

.mobile-drawer .categories-dropdown__panel {
  position: static;
  min-width: 0;
  width: 100%;
  box-shadow: none;
  margin-top: var(--space-sm);
}

.mobile-drawer .categories-dropdown__list {
  grid-template-columns: 1fr;
}

.mobile-drawer__nav {
  margin-bottom: var(--space-md);
}

.mobile-drawer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-drawer__menu a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-base);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer__menu .current-menu-item > a {
  color: var(--color-accent);
}

.mobile-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.mobile-drawer__social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.mobile-drawer__support {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   MOBILE CUSTOM CATEGORY PICKER
   ========================================================================== */

.product-search-bar__category-trigger {
  display: flex;
  align-items: center;
  border: 0;
  border-left: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 13px;
  padding: 0 10px;
  height: 100%;
  cursor: pointer;
  white-space: nowrap;
  max-width: 80px;
}

.product-search-bar__category-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}

.category-picker {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding-top: 140px;
}

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

.category-picker__panel {
  background: var(--color-white);
  border-radius: var(--radius);
  width: 85%;
  max-width: 300px;
  max-height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.category-picker__title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 14px;
}

.category-picker__close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}

.category-picker__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg);
}

.category-picker__list::-webkit-scrollbar {
  width: 6px;
}

.category-picker__list::-webkit-scrollbar-track {
  background: var(--color-bg);
}

.category-picker__list::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.category-picker__item {
  padding: 10px 16px;
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.category-picker__item:hover,
.category-picker__item.is-active {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Replace your existing @media (max-width: 991px) block with this updated version */

@media (max-width: 991px) {
  .site-header__row--primary {
    padding: 8px 0px; /* Reduced outer left/right padding */
  }

  .site-header__row--primary .site-header__row-inner {
    justify-content: space-between;
    gap: 8px; /* Tighter gap */
    padding-left: 12px; /* Add some padding to the left */
    padding-right: 12px; /* Add some padding to the right */
    flex-wrap: nowrap;
  }

  .site-header__mobile-toggle,
  .site-header__mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto; 
    padding: 4px; /* Reduced padding on the icons to save space */
  }

  .site-header__logo {
    flex: 1 1 auto; /* Allows the logo container to shrink and take middle space */
    display: flex;
    justify-content: center; /* Center the logo */
    min-width: 0; /* Prevents flexbox blowout */
  }

  .site-header__logo img,
  .site-header__logo .custom-logo {
    max-height: 32px;
    height: auto;
    width: auto;
    max-width: 100%; /* Ensures it scales down dynamically to prevent overlap */
    object-fit: contain;
  }

  .site-header__search,
  .site-header__actions,
  .site-header__row--secondary {
    display: none;
  }

  .site-header__row--primary.is-mobile-search-open .site-header__logo,
  .site-header__row--primary.is-mobile-search-open .site-header__mobile-search-toggle {
    display: none;
  }

  .site-header__row--primary.is-mobile-search-open .site-header__search {
    display: flex;
    flex: 1 1 auto;
  }

  .categories-dropdown__panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    min-width: 0;
    padding: 16px;
  }

  .categories-dropdown__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .categories-dropdown__name {
    font-size: 13px;
  }

  .categories-dropdown__count {
    font-size: 11px;
  }

  .categories-dropdown__img,
  .categories-dropdown__img--placeholder {
    width: 32px;
    height: 32px;
  }
  .product-search-bar__field {
    width: 100px;
  }
}

/* Small Desktop Tier (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .site-header__search .product-search-bar {
    max-width: 420px;
  }

  .site-header__action-label {
    display: none;
  }

  .site-header__action {
    gap: 0;
  }

  .primary-nav__menu li:nth-child(n + 4) {
    display: none;
  }

  .primary-nav__more-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    margin-left: 8px;
    padding: 4px;
  }

  .primary-nav {
    position: relative;
  }

  .primary-nav__more-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 160px;
    z-index: 100;
  }

  .primary-nav__more-panel[hidden] {
    display: none;
  }

  .primary-nav__more-panel a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-base);
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
  }

  .primary-nav__more-panel a:hover {
    background: var(--color-bg);
    color: var(--color-accent);
  }
}

/* Hide the "more" toggle outside the small desktop tier */
@media (min-width: 1200px), (max-width: 991px) {
  .primary-nav__more-toggle {
    display: none;
  }
} 

/* ========================================================================
   HEADER CART
   ======================================================================== */

.site-header__cart {
    position: relative;
}


.site-header__cart-icon-wrap {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;
}


.site-header__cart-icon {
    display: block;

    width: 19px;
    height: 19px;
}


/* Cart quantity badge */
.site-header__cart-count {
    position: absolute;

    top: -8px;
    right: -9px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 15px;
    height: 15px;

    padding: 0 4px;

    border-radius: 999px;

    background: var(--color-accent);
    color: #ffffff;

    font-size: 9px;
    line-height: 1;

    font-weight: 700;

    box-sizing: border-box;

    transform: scale(0);

    opacity: 0;

    transition:
        transform .15s ease,
        opacity .15s ease;
}


/* Show badge only when the cart contains items */
.site-header__cart-count.has-items {
    transform: scale(1);
    opacity: 1;
}


/* Hover */
.site-header__cart:hover .site-header__cart-icon {
    transform: translateY(-1px);
}

.site-header__cart-icon {
    transition: transform .15s ease;
}


/* ========================================================================
   MOBILE HEADER — CART NEXT TO SEARCH
   ======================================================================== */

@media (max-width: 991px) {

    /* Keep the main actions container from affecting the mobile layout */
    .site-header__actions {
        display: contents;
    }

    /* Only show the cart on mobile */
    .site-header__actions > .site-header__cart {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        color: var(--color-white);
        text-decoration: none;
        padding: 4px;
        margin: 0;
    }

    /* Hide account and help on mobile */
    .site-header__actions > .site-header__account,
    .site-header__actions > .site-header__help,
    .site-header__actions > .site-header__social {
        display: none;
    }

    /* Hide "Cart" text — keep icon only */
    .site-header__cart .site-header__action-label {
        display: none;
    }

    /* Cart icon */
    .site-header__cart-icon {
        width: 20px;
        height: 20px;
        color: var(--color-white);
    }

    /* Cart badge */
    .site-header__cart-count {
        top: -7px;
        right: -8px;
        min-width: 14px;
        height: 14px;
        padding: 0 3px;
        font-size: 8px;
    }

    /* Keep cart icon visually aligned with search */
    .site-header__cart-icon-wrap {
        width: 24px;
        height: 24px;
    }
}



/* Category | search field | search icon */
.product-search-bar {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.product-search-bar__category {
  order: 1;
  height: 100%;
}

.product-search-bar__select,
.product-search-bar__category-trigger {
  border-left: 0;
  border-right: 1px solid var(--color-border, #e5e5e5);
  border-radius: 999px 0 0 999px;
  background-color: #f7f7f9;
  height: 100%;
}

.product-search-bar__select {
  background-position: right 12px center;
  max-width: 160px;
}

.product-search-bar__field {
  order: 2;
  width: 100%;
  box-shadow: none;
}

.product-search-bar__submit {
  order: 3;
  height: 100%;
  min-width: 48px;
  padding: 0 16px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.product-search-bar:focus-within {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .7),
    0 8px 25px rgba(0, 0, 0, .2);
}

/* Suggestions dropdown */
.product-search-results {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  z-index: 300;
  max-height: min(450px, 65vh);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #ece5f0;
  border-radius: 16px;
  background: #fff;
  color: #24202a;
  box-shadow: 0 18px 45px rgba(25, 10, 30, .22);
}

.product-search-results[hidden] {
  display: none !important;
}

.product-search-results__heading {
  padding: 8px 10px 7px;
  color: #746b79;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-search-results__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #24202a;
}

.product-search-results__item:hover,
.product-search-results__item:focus-visible {
  background: #f6eff8;
  color: #43044f;
  outline: none;
}

.product-search-results__image {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: contain;
  background: #f5f4f6;
}

.product-search-results__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.product-search-results__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.product-search-results__price {
  color: #670b78;
  font-size: 12px;
  font-weight: 700;
}

.product-search-results__message {
  margin: 0;
  padding: 15px 12px;
  color: #6e6872;
  font-size: 13px;
}

.product-search-results__all {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid #eee9f0;
  background: #fff;
  color: #670b78;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.product-search-results__all:hover {
  background: #f6eff8;
}

@media (max-width: 991px) {
  .site-header__row--primary {
    z-index: 1100;
  }

  .product-search-bar__category-trigger {
    max-width: 95px;
  }

  .product-search-results {
    max-height: min(55vh, 380px);
  }
}

@media (max-width: 480px) {
  .product-search-bar__category-trigger {
    max-width: 76px;
    font-size: 12px;
    padding: 0 8px;
  }

  .product-search-bar__field {
    padding: 9px 8px;
    font-size: 13px;
  }

  .product-search-bar__submit {
    min-width: 40px;
    padding: 0 10px;
  }

  .product-search-results__image {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
}




/* Mobile and tablet header search */
@media (max-width: 991px) {
  .site-header__row--primary .site-header__row-inner {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .site-header__row--primary.is-mobile-search-open .site-header__search {
    min-width: 0;
    width: 0;
    flex: 1 1 0;
  }

  .site-header__search .product-search-bar {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 46px;
    box-sizing: border-box;
    overflow: visible; /* Allow live-search results to extend below the bar. */
    border-radius: 999px;
  }

  .site-header__search .product-search-bar__category {
    order: 1;
    min-width: 0;
    max-width: 100px;
    height: 100%;
    overflow: hidden;
    border-radius: 999px 0 0 999px;
  }

  .site-header__search .product-search-bar__category-trigger,
  .site-header__search .product-search-bar__select {
    max-width: 100%;
    height: 100%;
    font-size: 16px !important;
    border-left: 0;
    border-right: 1px solid #e5e7eb;
    box-sizing: border-box;
  }

  .site-header__search .product-search-bar__field {
    order: 2;
    flex: 1 1 0;
    width: 0; /* Overrides the existing 100px mobile width. */
    min-width: 0;
    height: 100%;
    padding: 0 8px;
    font-size: 16px !important; /* Prevents iPhone focus zoom. */
    line-height: normal;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }

  .site-header__search .product-search-bar__field::placeholder {
    font-size: 16px;
  }

  .site-header__search .product-search-bar__submit {
    order: 3;
    flex: 0 0 42px;
    width: 42px;
    height: 100%;
    padding: 0;
    border-radius: 0 999px 999px 0;
    box-sizing: border-box;
  }

  .site-header__search .product-search-results:not([hidden]) {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(60vh, 440px);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 1100;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    -webkit-overflow-scrolling: touch;
  }
}

/* Give the text field more room on narrow phones. */
@media (max-width: 480px) {
  .site-header__row--primary.is-mobile-search-open .site-header__row-inner {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .site-header__search .product-search-bar__category {
    max-width: 76px;
  }

  .site-header__search .product-search-bar__category-trigger {
    padding-left: 8px;
    padding-right: 8px;
  }

  .site-header__search .product-search-bar__submit {
    flex-basis: 38px;
    width: 38px;
  }
}