:root {
  --blue: #2949e8;
  --ink: #10194a;
  --muted: #69728d;
  --line: #e5e8ef;
  --cream: #f7f8fc;
}

html,
.nav,
.search-suggestions {
  scrollbar-color: #d3d8e2 transparent;
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
.nav::-webkit-scrollbar,
.search-suggestions::-webkit-scrollbar {
  width: 6px;
  height: 4px;
}

html::-webkit-scrollbar-track,
.nav::-webkit-scrollbar-track,
.search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
.nav::-webkit-scrollbar-thumb,
.search-suggestions::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d3d8e2;
}

html::-webkit-scrollbar-thumb:hover,
.nav::-webkit-scrollbar-thumb:hover,
.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: #bfc6d3;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-strip {
  height: 32px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
}

.strip-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strip-inner div {
  display: flex;
  gap: 24px;
}

.top-strip a:hover {
  text-decoration: underline;
}

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.header-main {
  height: 69px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--blue);
  font-size: 23px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
}

.search {
  position: relative;
  z-index: 10;
  width: 370px;
  height: 36px;
  margin-left: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #dfe3ec;
  border-radius: 20px;
}

.search svg {
  width: 15px;
  fill: none;
  stroke: #8a92a7;
  stroke-width: 1.7;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
}

.search-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  left: 0;
  width: max(100%, 350px);
  max-height: 390px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 25, 74, 0.16);
}

.search-suggestions[hidden],
.search-suggestions-more[hidden] {
  display: none;
}

.search-suggestions-status {
  margin: 4px 7px 7px;
  color: var(--muted);
  font-size: 11px;
}

.search-suggestions-list {
  display: grid;
}

.search-suggestion {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 7px;
  border-radius: 8px;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  outline: 0;
  background: var(--cream);
}

.search-suggestion img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--cream);
  object-fit: cover;
}

.search-suggestion-details {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-suggestion-details strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-details small {
  color: var(--muted);
  font-size: 9px;
}

.search-suggestion-price {
  color: var(--blue);
  font-size: 10px;
  white-space: nowrap;
}

.search-suggestions-more {
  display: block;
  margin-top: 5px;
  padding: 10px 7px 5px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-actions a,
.header-actions .auth-logout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.header-actions .auth-logout {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.header-actions [hidden] {
  display: none !important;
}

.header-actions a:hover,
.header-actions .auth-logout:hover,
.header-actions a[aria-pressed="true"],
.nav a:hover,
.nav-highlight {
  color: var(--blue);
}

.header-actions a:hover,
.header-actions .auth-logout:hover {
  transform: translateY(-2px);
}

.action-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions b {
  position: absolute;
  right: -7px;
  top: -5px;
  min-width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f14d58;
  color: #fff;
  font-size: 8px;
}

.nav {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 10px;
}

.nav-highlight {
  margin-left: auto;
  font-weight: 700;
}

body.has-site-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.has-site-footer > #site-header,
body.has-site-footer > #site-footer {
  flex: 0 0 auto;
  width: 100%;
}

body.has-site-footer > main {
  flex: 1 0 auto;
}

body.has-site-footer > #site-footer {
  margin-top: auto;
}

.site-footer {
  background: linear-gradient(110deg, #1748ef, #2449ed);
  color: #fff;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.footer-grid {
  min-height: 176px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 0;
  padding-top: 24px;
  padding-bottom: 20px;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.footer-about {
  padding-right: 36px;
}

.footer-links,
.footer-contact {
  padding-left: 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.footer-brand .brand-mark {
  width: 35px;
  height: 35px;
  margin-right: 8px;
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-size: 18px;
}

.footer-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer-grid p {
  margin: 6px 0 10px;
  color: #eef1ff;
  font-size: 12px;
  line-height: 1.55;
}

.footer-grid a {
  color: inherit;
}

.footer-links > a,
.footer-contact > a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 8px 0;
  color: #eef1ff;
  font-size: 12px;
  line-height: 1.5;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.copyright {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #dce3ff;
  font-size: clamp(10px, 0.85vw, 12px);
}

@media (min-width: 801px) {
  .top-strip {
    height: 36px;
    font-size: 11px;
  }

  .header-main {
    height: 78px;
    gap: 22px;
  }

  .brand {
    font-size: 27px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .search {
    width: min(390px, 34vw);
    height: 42px;
    margin-left: 18px;
  }

  .search input {
    font-size: 13px;
  }

  .search svg {
    width: 18px;
  }

  .header-actions {
    gap: 28px;
  }

  .header-actions a {
    font-size: 11px;
  }

  .nav {
    height: 44px;
    gap: 38px;
    font-size: 12px;
  }

  .footer-grid {
    min-height: 176px;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .footer-brand {
    font-size: 24px;
  }

  .footer-brand .brand-mark {
    width: 35px;
    height: 35px;
  }

  .footer-grid h3 {
    margin-bottom: 12px;
  }

  .footer-grid p {
    margin: 6px 0 10px;
  }
}

@media (max-width: 800px) {
  .strip-inner > span {
    display: none;
  }

  .header-main {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    gap: 0 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .search {
    order: 2;
    width: 100%;
    height: 38px;
    margin: 10px 0 0;
  }

  .search-suggestions {
    width: 100%;
  }

  .header-actions {
    order: 1;
    gap: 12px;
  }

  .header-actions #admin-action {
    font-size: 8px;
  }

  .header-actions #orders-action span:last-child {
    display: none;
  }

  .header-actions #login-action span:last-child,
  .header-actions .auth-logout span:last-child {
    display: none;
  }

  .nav {
    height: 39px;
    overflow-x: auto;
    gap: 20px;
    white-space: nowrap;
  }

  .nav-highlight {
    margin-left: 0;
  }

  .footer-grid {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .footer-about {
    grid-column: 1 / -1;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .footer-links {
    padding-left: 0;
    border-left: 0;
  }

  .footer-contact {
    padding-left: 20px;
  }

  .copyright {
    min-height: 60px;
  }
}

@media (max-width: 480px) {
  .top-strip {
    display: none;
  }

  .header-main {
    column-gap: 8px;
  }

  .brand {
    font-size: 20px;
  }

  .header-actions a {
    display: flex;
  }

  .header-actions .auth-logout {
    display: flex;
  }

  .header-actions {
    gap: 4px;
  }

  .header-actions a,
  .header-actions .auth-logout {
    min-width: 32px;
    min-height: 36px;
    justify-content: center;
  }

  .header-actions a > span:not(.action-icon),
  .header-actions .auth-logout > span:not(.action-icon) {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-links,
  .footer-contact {
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 0;
  }

  .footer-brand {
    font-size: 21px;
  }

  .footer-brand .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .footer-grid p,
  .footer-links > a,
  .footer-contact > a {
    font-size: 12px;
  }

  .copyright {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.auth-required-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(16, 25, 74, 0.28);
}

.auth-required-dialog::backdrop {
  background: rgba(16, 25, 74, 0.52);
  backdrop-filter: blur(2px);
}

.auth-required-content {
  display: grid;
  justify-items: center;
  padding: 28px 30px;
  text-align: center;
}

.auth-required-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #edf1ff;
  color: var(--blue);
  font-size: 30px;
}

.auth-required-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.auth-required-content p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-required-login,
.auth-required-close {
  width: 100%;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.auth-required-login {
  background: var(--blue);
  color: #fff;
}

.auth-required-login:hover {
  background: #2039bd;
}

.auth-required-close {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-required-close:hover {
  background: #f5f6fa;
  color: var(--ink);
}
