/* REWAA PDP-09: header navigation layout only.
   Scoped to the white header. The moving announcement strip, product grids,
   footer and commerce logic are intentionally not modified. */

.ref33-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e1e9f1;
  box-shadow: 0 5px 22px rgba(15,37,68,.045);
}
.ref33-header .header-row {
  max-width: 1580px;
  padding-inline: clamp(16px,2vw,32px);
}
.ref33-header .header-actions .icon-btn:not(.menu-toggle),
.ref33-header .menu-toggle {
  border: 1px solid #dce6f0;
  background: #fff;
  color: #204361;
  border-radius: 11px;
}
.ref33-header .header-actions .icon-btn:not(.menu-toggle):hover,
.ref33-header .menu-toggle:hover {
  background: #eef7fc;
  border-color: #b8d6e7;
  color: #0d6587;
}
.ref33-header .cart-btn {
  border-radius: 11px;
  background: #102c50;
  box-shadow: 0 4px 11px rgba(16,44,80,.1);
}
.ref33-header .cart-btn:hover { background: #16416e; }
.ref33-header .tech-btn { border-radius: 11px; }
.ref33-header .ref33-search-trigger {
  border-radius: 11px;
  background: #f7fafd;
  border-color: #d5e2ee;
}
.ref33-header .action-count,
.ref33-header .cart-count { z-index: 2; }

@media (min-width: 1101px) {
  .ref33-header .header-row {
    height: 76px;
    min-height: 76px;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(10px,1.1vw,20px);
    align-items: center;
    padding-block: 0;
  }
  .ref33-header .brand {
    flex: 0 0 auto;
    min-width: max-content;
    order: 0;
    margin: 0;
    gap: 8px;
  }
  .ref33-header .logo-mark { width: 42px; height: 42px; }
  .ref33-header .brand-words strong { font-size: 17px; }
  .ref33-header .brand-words small { font-size: 8px; letter-spacing: .17em; }
  /* A single, consistent navigation group—not separated icon boxes. */
  .ref33-header .desktop-nav.rw8-main-nav {
    order: 1;
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0 auto;
    padding: 4px;
    border: 1px solid #e3ebf3;
    border-radius: 13px;
    background: #f5f8fc;
    box-shadow: none;
    overflow: visible;
  }
  .ref33-header .desktop-nav.rw8-main-nav > a,
  .ref33-header .desktop-nav.rw8-main-nav > .rw8-categories > summary,
  .ref33-header .desktop-nav.rw8-main-nav > .rw3-more > summary {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto !important;
    height: 38px;
    min-height: 38px;
    min-width: 0;
    margin: 0;
    padding: 0 12px !important;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #2a4667;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
  }
  .ref33-header .rw8-main-nav > .rw8-categories,
  .ref33-header .rw8-main-nav > .rw3-more {
    position: relative;
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    align-self: center;
  }
  .ref33-header .rw8-main-nav > .rw3-more > summary { gap: 6px !important; }
  .ref33-header .rw8-main-nav .rw8-more-text { display: inline !important; font-size: 12px; line-height: 1.2; }
  .ref33-header .rw8-main-nav > .rw3-more > summary svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    transform: none !important;
  }
  .ref33-header .rw8-main-nav > .rw8-categories > summary svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
  }
  .ref33-header .rw8-main-nav > a:hover,
  .ref33-header .rw8-main-nav > .rw8-categories > summary:hover,
  .ref33-header .rw8-main-nav > .rw3-more > summary:hover,
  .ref33-header .rw8-main-nav > .rw8-categories[open] > summary,
  .ref33-header .rw8-main-nav > .rw3-more[open] > summary {
    color: #0d5d83;
    background: #e5f2f9;
    border-color: #d0e5f0;
  }
  .ref33-header .rw8-main-nav > a.rw8-nav-current,
  .ref33-header .rw8-main-nav > .rw8-categories.rw8-nav-current > summary {
    color: #105e83;
    background: #fff;
    border-color: #d7e7f2;
    box-shadow: 0 1px 5px rgba(16,62,99,.075);
  }
  .ref33-header .rw8-main-nav .rw8-category-popover,
  .ref33-header .rw8-main-nav .rw1-more-list { z-index: 150; }
  .ref33-header .header-actions {
    display: flex;
    order: 2;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(4px,.43vw,8px);
    margin: 0;
    min-width: 0;
  }
  .ref33-header .header-actions > * { flex: 0 0 auto; }
  .ref33-header .ref33-search-trigger {
    display: inline-flex;
    justify-content: flex-start;
    width: clamp(145px,11vw,194px);
    min-width: 0;
    max-width: 194px;
    height: 42px;
    padding-inline: 11px;
    gap: 8px;
  }
  .ref33-header .ref33-search-placeholder {
    display: inline-block !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ref33-header .ref33-search-trigger kbd { display: none !important; }
  .ref33-header .tech-btn {
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 11px !important;
    gap: 6px !important;
    font-size: 11.5px !important;
    line-height: 1.3;
  }
  .ref33-header .header-actions > .icon-btn {
    width: 40px;
    height: 42px;
  }
  .ref33-header .cart-btn {
    min-height: 42px;
    padding-inline: 12px;
    gap: 7px;
    font-size: 11.5px;
  }
}

@media (min-width: 1101px) and (max-width: 1390px) {
  .ref33-header .header-row { gap: 9px; padding-inline: 16px; }
  .ref33-header .desktop-nav.rw8-main-nav > a,
  .ref33-header .desktop-nav.rw8-main-nav > .rw8-categories > summary,
  .ref33-header .desktop-nav.rw8-main-nav > .rw3-more > summary { padding-inline: 9px !important; font-size: 11.5px; }
  .ref33-header .rw8-main-nav .rw8-more-text { font-size: 11.5px; }
  .ref33-header .header-actions { gap: 4px; }
  .ref33-header .ref33-search-trigger { width: 42px !important; min-width: 42px !important; max-width: 42px !important; justify-content: center; padding: 0 !important; }
  .ref33-header .ref33-search-placeholder { display: none !important; }
  .ref33-header .tech-btn { width: 42px !important; min-width: 42px !important; padding: 0 !important; font-size: 0 !important; justify-content: center; }
  .ref33-header .tech-btn svg { flex: 0 0 18px; }
  .ref33-header .brand-words strong { font-size: 16px; }
  .ref33-header .logo-mark { width: 38px; height: 38px; }
}

@media (max-width: 1100px) {
  .ref33-header .header-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 66px;
    height: auto;
    gap: 7px;
    padding-block: 9px;
  }
  .ref33-header .brand { min-width: 0; margin: 0; }
  .ref33-header .header-actions { margin-right: auto; min-width: 0; gap: 4px; }
  .ref33-header .menu-toggle,
  .ref33-header .header-actions > .icon-btn { flex-shrink: 0; }
  .ref33-header .ref33-search-trigger { flex: 0 0 auto; }
  .ref33-header .mobile-menu { z-index: 151; }
  .ref33-header .ref33-mobile-menu nav { padding-block: 8px; }
  .ref33-header .ref33-mobile-menu nav a,
  .ref33-header .ref33-mobile-menu nav summary { border-radius: 9px; }
}
@media (max-width: 680px) {
  .ref33-header .header-row { min-height: 62px; gap: 4px; padding-inline: 12px; }
  .ref33-header .brand-words { max-width: 76px; }
  .ref33-header .header-actions { gap: 3px; }
  .ref33-header .cart-btn { box-shadow: none; }
}
@media (max-width: 390px) {
  .ref33-header .brand-words { display: none; }
  .ref33-header .header-row { gap: 3px; padding-inline: 9px; }
  .ref33-header .cart-btn { padding-inline: 7px; }
}

/* PDP-10: restore the service shortcut, and give the desktop action cluster
   balanced breathing room away from the viewport's left edge (RTL inline-end).
   No rules target the announcement ticker or page content. */
@media (min-width: 1101px) {
  .ref33-header .desktop-nav.rw8-main-nav > a.rw10-services-link {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 38px;
    min-height: 38px;
    padding: 0 12px !important;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #2a4667;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
  }
  .ref33-header .desktop-nav.rw8-main-nav > a.rw10-services-link:hover {
    background: #e5f2f9;
    color: #0d5d83;
    border-color: #d0e5f0;
  }
  .ref33-header .desktop-nav.rw8-main-nav > a.rw10-services-link.rw8-nav-current {
    background: #fff;
    color: #105e83;
    border-color: #d7e7f2;
  }
  .ref33-header .rw10-services-short { display: none; }
  .ref33-header .header-actions {
    margin-inline-end: clamp(28px, 3.5vw, 58px);
  }
}
@media (min-width: 1101px) and (max-width: 1390px) {
  .ref33-header .rw10-services-long { display: none; }
  .ref33-header .rw10-services-short { display: inline; }
  .ref33-header .desktop-nav.rw8-main-nav > a.rw10-services-link {
    padding-inline: 9px !important;
    font-size: 11.5px;
  }
  .ref33-header .header-actions { margin-inline-end: clamp(12px, 1.8vw, 25px); }
}
