/* Shared brand tokens and components for the shop and the try-on app. */

:root {
  --logo: #012053;       /* DOS logo navy */
  --navy-900: #062a42;   /* hero, bands, footer */
  --navy: #1e4166;       /* primary buttons, logo */
  --navy-hover: #173452;
  --cyan: #019dbc;       /* accents, outlined buttons */
  --cyan-hover: #0189a4;
  --text: #434343;
  --heading: #111111;
  --muted: #777777;
  --line: #dddddd;
  --page: #f5f5f5;
  --surface: #ffffff;
  --tile: #fafafa;
  --font: Helvetica, Verdana, Arial, sans-serif;
  --radius-sm: 2px;
  --radius: 5px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.6 var(--font);
  color: var(--text);
  background: var(--surface);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ logo */

.logo { display: inline-flex; align-items: center; color: var(--logo); flex: none; }
.logo-dos { display: block; width: auto; height: 52px; stroke-linecap: butt; }
.logo-light { color: #fff; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-outline { border-color: var(--cyan); color: var(--cyan); background: transparent; }
.btn-outline:hover { background: var(--cyan); color: #fff; }
.btn-light { background: #fff; color: var(--heading); }
.btn-light:hover { background: #eef6f8; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* Outlined square icon button (menu). */
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  color: var(--cyan);
}
.menu-btn:hover { background: var(--cyan); color: #fff; }

/* Shopping bag with the count inside it. */
.bag { position: relative; display: inline-grid; place-items: center; width: 40px; height: 46px; color: var(--heading); }
.bag svg { position: absolute; inset: 0; width: 40px; height: 46px; stroke-width: 2.2; }
.bag span { position: relative; top: 5px; font-size: 15px; font-weight: 700; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------ language switch */

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--heading);
}
.lang-btn:hover, .lang-switch.open .lang-btn { border-color: var(--cyan); color: var(--cyan); }
.lang-btn svg { width: 14px; height: 14px; transition: transform 0.15s; }
.lang-switch.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(6, 42, 66, 0.14);
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.lang-menu li b { width: 34px; font-size: 12px; color: var(--muted); }
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--tile); outline: none; }
.lang-menu li[aria-selected="true"] { color: var(--cyan); font-weight: 700; }
.lang-menu li[aria-selected="true"] b { color: var(--cyan); }
