:root {
  --header-coral: #f03350;
  --header-coral-deep: #b20f32;
  --header-coral-soft: rgba(240, 51, 80, 0.08);
  --header-coral-ring: rgba(240, 51, 80, 0.14);

  --header-ink: #151826;
  --header-ink-soft: #1c2133;
  --header-muted: #667085;
  --header-muted-2: #8a94a6;

  --header-border: #dde4eb;
  --header-border-strong: #cfd7e3;
  --header-surface: #ffffff;
  --header-surface-soft: #f6f8fb;
  --header-surface-softer: #fafbfd;

  --header-success: #0a8f63;
  --header-danger: #d92245;

  --header-shadow-xs: 0 4px 12px rgba(15, 23, 42, 0.04);
  --header-shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.08);
  --header-shadow-md: 0 16px 36px rgba(15, 23, 42, 0.1);
  --header-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

  --header-radius-sm: 10px;
  --header-radius-md: 14px;
  --header-radius-lg: 18px;
  --header-radius-xl: 22px;
  --header-radius-pill: 999px;

  --header-transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.store-header *,
.store-header *::before,
.store-header *::after,
.login-drawer *,
.login-drawer *::before,
.login-drawer *::after,
.top-banner *,
.top-banner *::before,
.top-banner *::after {
  box-sizing: border-box;
}

.top-banner a,
.store-header a,
.store-header button,
.login-drawer button {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   TOP BANNER
   ========================================== */
.top-banner {
  position: relative;
  z-index: 2001;
  background: linear-gradient(90deg, rgba(21, 24, 38, 0.98), rgba(28, 33, 51, 0.98));
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-banner-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.top-banner-row p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-banner-row strong {
  color: #fff;
  font-weight: 800;
}

.top-banner-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.top-banner-links a,
.top-banner-links button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--header-transition), opacity var(--header-transition);
}

.top-banner-links a:hover,
.top-banner-links button:hover {
  color: #fff;
}

/* ==========================================
   STORE HEADER
   ========================================== */
.store-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(215, 224, 236, 0.92);
  backdrop-filter: blur(16px);
  width: 100%;
}

.header-primary {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ==========================================
   BRAND
   ========================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

/* ==========================================
   SEARCH BAR COMPACT
   ========================================== */
.store-search {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--header-border-strong);
  border-radius: var(--header-radius-pill);
  box-shadow: var(--header-shadow-xs);
  transition:
    border-color var(--header-transition),
    box-shadow var(--header-transition),
    transform var(--header-transition);
}

.store-search:hover {
  border-color: #c4cfdd;
}

.store-search:focus-within {
  border-color: var(--header-coral);
  box-shadow: 0 0 0 4px var(--header-coral-ring), var(--header-shadow-sm);
}

.search-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 16px;
  border-right: 1px solid var(--header-border);
  background: linear-gradient(180deg, #f9fbfd, #f3f6f9);
  border-radius: var(--header-radius-pill) 0 0 var(--header-radius-pill);
  color: var(--header-ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.store-search input {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 16px;
  color: var(--header-ink);
  font-size: 0.94rem;
  font-weight: 500;
}

.store-search input::placeholder {
  color: var(--header-muted-2);
}

.search-submit-btn {
  appearance: none;
  border: 0;
  align-self: stretch;
  padding: 0 18px;
  border-radius: 0 var(--header-radius-pill) var(--header-radius-pill) 0;
  background: var(--header-ink);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--header-transition);
}

.search-submit-btn:hover {
  background: var(--header-coral);
}

/* ==========================================
   SEARCH SUGGESTIONS
   ========================================== */
.search-suggestions-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 2200;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid var(--header-border-strong);
  box-shadow: var(--header-shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.99);
  transform-origin: top center;
  transition:
    opacity var(--header-transition),
    transform var(--header-transition),
    visibility var(--header-transition);
}

.search-suggestions-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.search-suggestions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}

.search-suggestions-head strong {
  margin: 0;
  color: var(--header-ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.search-suggestions-head span {
  color: var(--header-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: right;
}

.search-suggestions-list {
  display: grid;
  gap: 6px;
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition:
    background var(--header-transition),
    transform var(--header-transition);
}

.search-suggestion-item:hover {
  background: var(--header-surface-softer);
}

.search-suggestion-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2f7;
}

.search-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.search-suggestion-copy strong {
  display: block;
  color: var(--header-ink);
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-copy span {
  display: block;
  color: var(--header-muted);
  font-size: 0.76rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-item em {
  color: var(--header-ink);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.search-suggestions-action {
  appearance: none;
  width: 100%;
  margin-top: 10px;
  min-height: 42px;
  border: 1px solid var(--header-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fafbfd, #f2f5fa);
  color: var(--header-ink);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background var(--header-transition),
    border-color var(--header-transition);
}

.search-suggestions-action:hover {
  border-color: var(--header-coral);
  background: #fff;
}

/* ==========================================
   ACTIONS
   ========================================== */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.action-btn {
  appearance: none;
  border: 0;
  min-width: 66px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 14px;
  background: transparent;
  color: var(--header-ink);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--header-transition),
    color var(--header-transition);
}

.action-btn span {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.action-btn:hover {
  color: var(--header-coral);
  background: var(--header-coral-soft);
}

.cta-cart {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(180deg, var(--header-ink), var(--header-ink-soft));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  transition: transform var(--header-transition), box-shadow var(--header-transition);
}

.cta-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--header-coral);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  border: 2px solid var(--header-ink);
  z-index: 5;
}

.cart-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ==========================================
   MOBILE MENU TOGGLE (MODERN HAMBURGER)
   ========================================== */
.mobile-menu-toggle {
  display: none;
  position: relative;
  appearance: none;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--header-surface-soft);
  color: var(--header-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--header-transition);
}

.mobile-menu-toggle:hover {
  background: var(--header-border);
}

.hamburger-icon {
  width: 22px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon .line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: currentColor;
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.hamburger-icon .line-2 {
  width: 65%;
  align-self: flex-end;
}

/* Animación al estar abierto */
.store-header.is-menu-open .line-1 {
  transform: translateY(6px) rotate(45deg);
}

.store-header.is-menu-open .line-2 {
  width: 100%;
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Badge móvil específico */
.mobile-badge {
  top: -4px;
  right: -4px;
  border-color: #fff;
  box-shadow: 0 4px 10px rgba(240, 51, 80, 0.3);
}

/* ==========================================
   SECONDARY NAV COMPACT
   ========================================== */
.header-secondary {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(221, 228, 235, 0.75);
  border-bottom: 1px solid var(--header-border);
}

.header-secondary-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.department-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.department-nav a,
.category-trigger {
  appearance: none;
  border: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: transparent;
  color: #5f6878;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--header-transition),
    color var(--header-transition);
}

.department-nav a:hover,
.category-trigger:hover {
  color: var(--header-coral);
  background: var(--header-coral-soft);
}

.department-nav a.is-active,
.category-trigger.is-open {
  color: var(--header-coral);
  background: rgba(240, 51, 80, 0.1);
}

.service-notes {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.service-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--header-muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.service-notes span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--header-border-strong);
}

.service-notes span:first-child::before {
  display: none;
}

/* ==========================================
   CATEGORIES DESKTOP
   ========================================== */
.categories-menu {
  position: relative;
  display: inline-block;
}

.category-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.category-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.categories-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 2150;
  width: min(1080px, calc(100vw - 32px));
  min-height: 460px;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid var(--header-border-strong);
  box-shadow: var(--header-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--header-transition),
    visibility var(--header-transition),
    transform var(--header-transition);
}

.categories-dropdown.is-active {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.categories-dropdown-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.categories-desktop-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 460px;
}

.categories-sidebar {
  padding: 16px 10px;
  border-right: 1px solid var(--header-border);
  background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
  overflow: auto;
}

.categories-panel {
  padding: 28px 28px 24px;
  background: #ffffff;
  overflow: auto;
}

.category-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--header-ink);
  cursor: pointer;
  text-align: left;
  transition:
    background var(--header-transition),
    color var(--header-transition),
    transform var(--header-transition);
}

.category-nav-item:hover,
.category-nav-item.is-active {
  background: rgba(240, 51, 80, 0.08);
  color: var(--header-coral);
}

.category-nav-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.categories-panel-header {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--header-border);
}

.categories-panel-kicker {
  color: var(--header-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.categories-panel-title {
  color: var(--header-ink);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.categories-panel-title:hover {
  color: var(--header-coral);
}

.categories-panel-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  color: var(--header-ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition:
    background var(--header-transition),
    color var(--header-transition);
}

.category-item:hover {
  color: var(--header-coral);
  background: transparent;
}

.category-item.is-active {
  color: var(--header-coral);
  background: transparent;
}

.category-subitems {
  display: grid;
  gap: 8px;
}

.categories-panel-link,
.category-subitem {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid var(--header-border);
  color: var(--header-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background var(--header-transition),
    color var(--header-transition),
    border-color var(--header-transition),
    transform var(--header-transition);
}

.categories-panel-link:hover,
.category-subitem:hover {
  color: var(--header-coral);
  border-color: rgba(240, 51, 80, 0.22);
  background: rgba(240, 51, 80, 0.06);
  transform: translateX(2px);
}

/* ==========================================
   MOBILE DRAWER
   ========================================== */
.mobile-drawer {
  display: none !important;
}

.mobile-drawer.is-open {
  display: block !important;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--header-border);
}

.close-drawer-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--header-surface-soft);
  color: var(--header-ink);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
}

.mobile-drawer-content {
  display: none;
}

.drawer-profile-section,
.drawer-categories-section,
.drawer-nav {
  width: 100%;
}

.drawer-label {
  margin: 0 0 10px;
  color: var(--header-muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--header-border);
  box-shadow: var(--header-shadow-xs);
  cursor: pointer;
}

.drawer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--header-coral), var(--header-coral-deep));
  color: #fff;
  flex-shrink: 0;
}

.drawer-user-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.drawer-welcome {
  color: var(--header-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.drawer-user-info strong {
  color: var(--header-ink);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--header-ink) !important;
  background: #fff;
  border: 1px solid var(--header-border);
  font-size: 0.94rem;
  font-weight: 800;
  transition: all var(--header-transition);
  position: relative;
}

.drawer-badge {
  position: static;
  margin-left: auto;
  border: 0;
  box-shadow: none;
}

.drawer-link svg {
  color: var(--header-muted);
  flex-shrink: 0;
}

.drawer-link:hover {
  color: var(--header-coral) !important;
  border-color: rgba(240, 51, 80, 0.26);
  background: rgba(240, 51, 80, 0.04);
}

.drawer-link:hover svg {
  color: var(--header-coral);
}

.drawer-link.highlighted {
  background: linear-gradient(180deg, rgba(240, 51, 80, 0.08), rgba(240, 51, 80, 0.04));
  border-color: rgba(240, 51, 80, 0.24);
  color: var(--header-coral) !important;
}

.drawer-link.highlighted svg {
  color: var(--header-coral);
}

.drawer-categories-list {
  display: grid;
  gap: 8px;
}

.drawer-categories-toggle {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--header-border);
  border-radius: 12px;
  background: #fff;
  color: var(--header-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.drawer-categories-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--header-transition);
}

.drawer-categories-toggle.is-open::after {
  transform: rotate(-135deg) translateY(2px);
}

.drawer-categories-panel {
  display: none;
  padding-top: 8px;
}

.drawer-categories-panel.is-open {
  display: grid;
  gap: 8px;
}

.drawer-categories-panel .category-item {
  min-height: 46px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--header-border);
  border-radius: 12px;
}

.drawer-categories-panel .category-item:hover {
  border-color: rgba(240, 51, 80, 0.26);
  background: rgba(240, 51, 80, 0.04);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1180px) {
  .header-primary {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  .service-notes {
    display: none;
  }

  .categories-dropdown {
    width: min(760px, calc(100vw - 32px));
  }

  .categories-desktop-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .categories-panel-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .action-btn span,
  .cart-label {
    display: none;
  }

  .action-btn {
    min-width: 48px;
    min-height: 46px;
  }

  .cta-cart {
    padding: 0 13px;
    min-height: 46px;
  }

  .department-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .department-nav::-webkit-scrollbar {
    display: none;
  }

  .categories-dropdown {
    width: min(620px, calc(100vw - 24px));
  }

  .categories-dropdown-grid {
    grid-template-columns: 1fr;
  }

  .categories-desktop-layout {
    grid-template-columns: 1fr;
  }

  .categories-sidebar {
    display: none;
  }

  .categories-panel {
    padding: 20px;
  }

  .categories-panel-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .top-banner-row {
    min-height: 32px;
  }

  .top-banner-row p {
    font-size: 0.74rem;
  }

  .top-banner-links a,
  .top-banner-links button {
    font-size: 0.73rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-primary {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand spacer toggle"
      "search search search";
    gap: 10px;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    grid-area: brand;
  }

  .mobile-menu-toggle {
    grid-area: toggle;
    justify-self: end;
  }

  .store-search {
    grid-area: search;
    grid-template-columns: 1fr auto;
    min-height: 44px;
  }

  .search-mode {
    display: none;
  }

  .store-search input {
    height: 42px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .search-submit-btn {
    min-width: 84px;
    padding: 0 14px;
    font-size: 0.73rem;
  }

  .header-actions,
  .header-secondary {
    display: none;
  }

  .search-suggestions-panel {
    border-radius: 16px;
    padding: 12px;
  }

  .store-header.is-menu-open {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    overflow-y: auto;
    display: block;
    z-index: 2000;
  }

  .store-header.is-menu-open .header-primary {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--header-border);
    padding-left: 16px;
    padding-right: 16px;
  }

  .store-header.is-menu-open .mobile-drawer {
    display: block !important;
    padding: 16px;
  }

  .store-header.is-menu-open .mobile-drawer-content {
    display: grid;
    gap: 16px;
    padding-bottom: 24px;
  }
}

@media (max-width: 520px) {
  .top-banner-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .top-banner-row p {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .top-banner-links {
    width: 100%;
    justify-content: center;
  }

  .header-primary {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 0.94rem;
  }

  .brand-copy small {
    font-size: 0.62rem;
  }

  .store-search input {
    font-size: 0.9rem;
  }

  .search-suggestion-item {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .search-suggestion-item em {
    grid-column: 2;
    padding-top: 2px;
    font-size: 0.84rem;
  }

  .search-suggestion-copy strong,
  .search-suggestion-copy span {
    white-space: normal;
  }

  .login-drawer {
    width: 100vw;
    padding: 16px 14px 18px;
  }

  .login-drawer-surface {
    padding: 14px;
    border-radius: 18px;
  }

  .drawer-title-group h2 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-search,
  .search-suggestions-panel,
  .action-btn,
  .cta-cart,
  .categories-dropdown,
  .mobile-menu-toggle,
  .login-drawer,
  .login-drawer-input-shell {
    transition: none !important;
  }
}

#shipping-text-rotator {
  display: inline-block;
  transition: opacity 0.3s ease-in-out;
}
