/* Souci Mall — utility bar, main header, mega nav */

/* Utility bar */
.sm-utility {
  background: var(--sm-ink);
  color: var(--sm-bg);
  font-family: var(--sm-mono-font);
  font-size: 11px;
  letter-spacing: 0.4px;
}
.sm-utility__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 8px;
  white-space: nowrap;
  overflow: hidden;
}
.sm-utility__slogans,
.sm-utility__links {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sm-utility__links { gap: 14px; }
.sm-utility a { color: inherit; }
.sm-utility a:hover { color: var(--sm-accent); }

@media (max-width: 900px) {
  .sm-utility__inner { justify-content: flex-start; }
  .sm-utility__slogans { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
  .sm-utility__slogans::-webkit-scrollbar { display: none; }
  .sm-utility__links { display: none; }
}

/* Header */
.sm-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--sm-bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--sm-line);
}
.sm-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}

/* Logo */
.sm-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sm-display-font);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -1px;
  color: var(--sm-ink);
  flex-shrink: 0;
}
.sm-logo__dot { color: var(--sm-accent); }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo-link img { max-height: 40px; width: auto; }

/* Search */
.sm-search {
  flex: 1;
  max-width: 560px;
  background: var(--sm-surface);
  border-radius: 999px;
  border: 1.5px solid var(--sm-line);
  padding: 10px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: border-color .15s ease;
}
.sm-search:focus-within { border-color: var(--sm-accent); }
.sm-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  color: var(--sm-ink);
  min-width: 0;
}
.sm-search input::placeholder { color: var(--sm-ink-muted); }
.sm-search__kbd {
  font-family: var(--sm-mono-font);
  font-size: 10px;
  color: var(--sm-ink-muted);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Header actions row */
.sm-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.sm-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sm-ink);
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.sm-chip-btn:hover { background: var(--sm-surface); color: var(--sm-ink); }

.sm-region {
  border: 1px solid var(--sm-line);
}
.sm-region__flag {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(180deg, #DE2910 50%, #FFDE00 50%);
  flex-shrink: 0;
}

/* Wishlist */
.sm-wishlist__ico { position: relative; width: 20px; height: 18px; display: inline-flex; }
.sm-wishlist__ico .sm-ico { position: absolute; inset: 0; margin: auto; }
.sm-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--sm-accent-2);
  color: var(--sm-accent-ink);
  font-family: var(--sm-mono-font);
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--sm-bg);
  box-sizing: border-box;
  line-height: 1;
}

/* Account */
.sm-account {
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--sm-line);
  gap: 8px;
}
.sm-account__avatar {
  width: 26px; height: 26px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sm-accent-3) 0%, var(--sm-accent) 100%);
  font-family: var(--sm-display-font);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-account__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 12px;
  font-weight: 700;
}
.sm-account__text .sm-eyebrow {
  font-size: 10px;
  font-family: var(--sm-body-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--sm-ink-muted);
  font-weight: 400;
}

/* Bag */
.sm-bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--sm-accent);
  color: var(--sm-accent-ink);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: filter .2s ease, box-shadow .2s ease;
}
.sm-bag-btn:hover { color: var(--sm-accent-ink); filter: brightness(1.05); box-shadow: 0 6px 20px color-mix(in srgb, var(--sm-accent) 40%, transparent); }
.sm-bag-btn__count {
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  color: inherit;
  font-family: var(--sm-mono-font);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Theme toggle */
.sm-theme-toggle {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 18px;
  border: 1px solid var(--sm-line);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-theme-toggle__icon { position: absolute; transition: opacity .2s, transform .3s; }
.sm-theme-toggle__icon--sun { opacity: 0; transform: rotate(-90deg); }
.sm-theme-toggle__icon--moon { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .sm-theme-toggle__icon--sun { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .sm-theme-toggle__icon--moon { opacity: 0; transform: rotate(90deg); }

/* Mobile burger */
.sm-mobile-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 20px;
  border: 1px solid var(--sm-line);
  background: var(--sm-surface);
  align-items: center;
  justify-content: center;
}

/* Mega nav */
.sm-mega {
  border-top: 1px solid var(--sm-line);
}
.sm-mega__inner {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 48px;
}
.sm-mega__list {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  white-space: nowrap;
}
.sm-mega__item,
.sm-mega__list > li {
  position: relative;
  padding-block: 14px;
  font-size: 13px;
  font-weight: 600;
}
.sm-mega__list > li > a {
  color: var(--sm-ink);
  border-bottom: 2px solid transparent;
  padding-block: 14px;
  transition: color .15s, border-color .15s;
}
.sm-mega__list > li:hover > a,
.sm-mega__list > li:focus-within > a {
  color: var(--sm-accent);
  border-bottom-color: var(--sm-accent);
}
.sm-mega__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: 10px;
  padding: 16px;
  margin: 0;
  list-style: none;
  box-shadow: var(--sm-shadow-md);
  display: none;
  z-index: 40;
}
.sm-mega__list .sub-menu li {
  padding-block: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sm-ink-soft);
}
.sm-mega__list > li:hover .sub-menu,
.sm-mega__list > li:focus-within .sub-menu { display: block; }
.sm-mega__promo {
  font-size: 13px;
  font-weight: 700;
  color: var(--sm-accent-2);
  white-space: nowrap;
}

/* Responsive — collapse actions row on small screens */
@media (max-width: 1200px) {
  .sm-chip-btn span:nth-child(3),
  .sm-account__text,
  .sm-region .sm-muted { display: none; }
}
@media (max-width: 900px) {
  .sm-header__inner { gap: 10px; padding-block: 10px; }
  .sm-logo { font-size: 20px; }
  .sm-search { padding: 8px 14px; }
  .sm-search__kbd { display: none; }
  .sm-header__actions { display: none; }
  .sm-mobile-burger { display: inline-flex; }
  .sm-mega { display: none; }
  .sm-bag-btn { display: none; }
}
