.frawla-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  direction: ltr;
}

.frawla-header-actions .language-switcher {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 116px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 116px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #edcbd5;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf9, #fff0f4);
  color: #532b38;
  box-shadow: 0 4px 14px rgba(111, 45, 68, .08);
  font: inherit;
  cursor: pointer;
  direction: ltr;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.language-switcher:hover,
.header-action:hover .header-action-icon {
  box-shadow: 0 7px 18px rgba(111, 45, 68, .14);
  transform: translateY(-1px);
}

.language-switcher:focus-visible,
.header-action:focus-visible {
  outline: 2px solid #d55a77;
  outline-offset: 3px;
}

.language-switcher-icon,
.language-switcher-arrow {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-switcher-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  color: #b53e5d;
}

.language-codes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .2px;
}

.language-code-ar,
.language-code-en {
  color: #92747c;
}

.language-code-ar.active,
.language-code-en.active {
  color: #b53e5d;
  font-weight: 800;
}

.language-separator {
  color: #c7a4ad;
}

.language-switcher-arrow {
  width: 11px;
  height: 11px;
  stroke-width: 1.8;
  color: #b53e5d;
}

.frawla-header-actions .header-action {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 62px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 62px;
  min-width: 0;
  height: 68px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #492b35;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  direction: ltr;
}

.header-action-icon {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #edcbd5;
  border-radius: 50%;
  background: #fffafb;
  color: #56303c;
  box-shadow: 0 4px 14px rgba(111, 45, 68, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.header-action-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-action-label {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #492b35;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.header-action:active .header-action-icon,
.language-switcher:active {
  transform: scale(.97);
}

.cart-control .header-action-icon {
  overflow: visible;
}

#cartCount {
  position: absolute;
  top: -3px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border: 2px solid #fffafb;
  border-radius: 999px;
  background: #d94c70;
  color: #fff;
  font: 800 9px/1 Arial, sans-serif;
}

@media (max-width: 450px) {
  header {
    padding-inline: 4%;
  }

  header .logo,
  header .brand-logo {
    flex: 0 1 44px;
    width: 44px;
    height: 44px;
  }

  header .menu-btn {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .frawla-header-actions {
    gap: 4px;
  }

  .frawla-header-actions .language-switcher {
    flex-basis: 90px;
    width: 90px;
    height: 38px;
    gap: 5px;
    padding: 0 7px;
  }

  .language-switcher-icon {
    width: 16px;
    height: 16px;
  }

  .language-codes {
    gap: 3px;
    font-size: 11px;
  }

  .frawla-header-actions .header-action {
    flex-basis: 42px;
    width: 42px;
    height: 64px;
    gap: 4px;
  }

  .frawla-header-actions .header-action-icon {
    flex-basis: 40px;
    width: 38px;
    height: 38px;
  }

  .frawla-header-actions .header-action-icon svg {
    width: 19px;
    height: 19px;
  }

  .frawla-header-actions .header-action-label {
    font-size: 9px;
  }
}

@media (max-width: 340px) {
  header .logo,
  header .brand-logo {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  header .menu-btn {
    flex-basis: 28px;
    width: 28px;
    height: 30px;
  }

  .frawla-header-actions {
    gap: 3px;
  }

  .frawla-header-actions .language-switcher {
    flex-basis: 80px;
    width: 80px;
    gap: 4px;
    padding: 0 5px;
  }

  .frawla-header-actions .header-action {
    flex-basis: 36px;
    width: 36px;
  }

  .frawla-header-actions .header-action:first-of-type {
    flex-basis: 48px;
    width: 48px;
  }

  .frawla-header-actions .header-action-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .frawla-header-actions .header-action-icon svg {
    width: 18px;
    height: 18px;
  }

  .frawla-header-actions .header-action-label {
    font-size: 8.5px;
  }
}
