:root {
  --red: #0066cc;
  --red-2: #0052a3;
  --green: #19a45b;
  --dark: #141414;
  --text: #1c1c1c;
  --muted: #6a6a6a;
  --bg: #f6f7f9;
  --line: #e7e7ea;
  --card: #ffffff;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-sm: 8px;
  --container: 1400px;
  --mobile-gutter: 16px;
  --touch-min: 44px;
}

/* Keep body from scrolling when menu is open */
body.no-scroll {
  overflow: hidden;
}

/* Container sizing for nav/header only (matches styles.css) */
.topbar .container,
.masthead .container,
.navline .container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Top bar */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}
.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}
.topbar__center {
  color: #111;
  font-weight: 700;
  text-align: center;
}
.topbar__link {
  color: #3a3a3a;
}
.topbar__link:hover {
  color: #000;
  text-decoration: underline;
}
.topbar__dot {
  opacity: 0.55;
}

/* Masthead */
.masthead {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
}
.masthead.is-scrolled {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.masthead__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 16px 0;
}
.masthead__burger {
  display: none;
}

.icon-btn {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}
.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.burger {
  width: 22px;
  height: 16px;
  position: relative;
  display: inline-block;
}
.burger::before,
.burger::after,
.burger span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #111;
  border-radius: 2px;
}
.burger::before {
  top: 0;
}
.burger span {
  top: 7px;
}
.burger::after {
  bottom: 0;
}

/* Masthead like screenshot (logo + phones + address + icons) */
.brand {
  display: grid;
  line-height: 1;
  user-select: none;
}
.brand__logo-img {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
  object-fit: contain;
}
.masthead__mid {
  display: flex;
  justify-content: center;
  gap: 26px;
  align-items: center;
}
.contact {
  display: grid;
  grid-template-columns: 44px auto;
  gap: 10px;
  align-items: center;
  min-width: 240px;
}
.contact__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
}
.contact__icon svg {
  width: 22px;
  height: 22px;
  fill: #111;
  opacity: 0.9;
}
.contact__label {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #4a4a4a;
  font-weight: 700;
}
.contact__value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #111;
  line-height: 1.05;
}
.masthead__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.location {
  display: grid;
  grid-template-columns: 44px auto;
  gap: 10px;
  align-items: center;
}
.location__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
}
.location__icon svg {
  width: 22px;
  height: 22px;
  fill: #111;
  opacity: 0.9;
}
.location__text {
  display: grid;
  gap: 2px;
}
.location__label {
  font-size: 12px;
  letter-spacing: 0.2px;
  font-weight: 800;
  color: #333;
  line-height: 1.1;
}
.headIcons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.headIcon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  background: #fff;
}
.headIcon:hover {
  background: rgba(0, 0, 0, 0.04);
}
.headIcon svg {
  width: 22px;
  height: 22px;
  fill: #111;
}
.headIcon__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
}

/* Nav line */
.navline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.navline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 14px;
}
.primary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.primary__link {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 15px;
  color: #111;
}
.primary__link:hover {
  color: var(--red);
}
.stock {
  font-size: 14px;
  color: #444;
  white-space: nowrap;
}
.stock__sep {
  opacity: 0.5;
  margin: 0 6px;
}

/* Off-canvas */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 70;
}
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(360px, 86vw);
  background: #fff;
  z-index: 80;
  transform: translateX(-105%);
  transition: transform 220ms ease;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer__top {
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--red);
  color: #fff;
  flex-shrink: 0;
}
.drawer__topLeft {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer__top .icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.drawer__top svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.drawer__body {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.drawer__primary {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.drawer__primaryLink {
  padding: 12px 0;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 15px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer__primaryLink:last-child {
  border-bottom: 0;
}
.drawer__primaryLink:hover {
  color: var(--red);
}
.drawer__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  background: #fff;
  min-width: 0;
  overflow: hidden;
}
.drawer__contact:active {
  background: rgba(0, 0, 0, 0.04);
}
.drawer__contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
}
.drawer__contact-icon svg {
  width: 20px;
  height: 20px;
  fill: #111;
  opacity: 0.9;
}
.drawer__contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drawer__contact-label {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #4a4a4a;
  font-weight: 700;
}
.drawer__contact-value {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #111;
  line-height: 1.2;
  word-break: break-all;
}
.drawer__stock {
  padding: 10px 14px;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.drawer__sidebar {
  flex: 1;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  background: #fff;
}
.drawer__sidebar .sidebar__nav {
  display: grid;
}
.drawer__sidebar .sidebarItem {
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Sidebar link style (used in mobile drawer categories) */
.sidebarItem {
  position: relative;
  border-top: 1px solid var(--line);
  background: #fff;
}
.sidebarLink {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #222;
}
.sidebarLink:hover {
  background: rgba(0, 0, 0, 0.03);
}
.sidebarLabel {
  font-weight: 500;
}
.sidebarChev {
  margin-left: auto;
  color: #222;
  opacity: 0.8;
  font-size: 18px;
  font-weight: 900;
  transform: translateY(-1px);
}

@media (max-width: 920px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .topbar__left,
  .topbar__right {
    justify-content: center;
    flex-wrap: wrap;
  }
  .masthead__inner {
    grid-template-columns: auto 1fr auto;
  }
  .masthead__mid {
    justify-content: flex-start;
    gap: 14px;
  }
  .contact {
    min-width: 0;
  }
  .contact__value {
    font-size: 18px;
  }
  .location {
    display: none;
  }
  .navline__inner {
    gap: 10px;
  }
  .primary {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar .container,
  .masthead .container,
  .navline .container {
    width: calc(100% - var(--mobile-gutter) * 2);
    max-width: 100%;
  }
  .topbar__inner {
    padding: 10px 0;
    gap: 8px;
  }
  .topbar__center {
    font-size: 13px;
    line-height: 1.3;
  }
  .masthead__inner {
    padding: 12px 0;
    gap: 12px;
  }
  .masthead__burger {
    display: inline-grid;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 10px;
  }
  .masthead__mid {
    display: none;
  }
  .brand__logo-img {
    max-height: 42px;
  }
  .headIcon,
  .headIcon--cart {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    width: 44px;
    height: 44px;
  }
  .navline__inner {
    padding: 8px 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stock {
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }
  .drawer {
    width: min(320px, calc(100vw - 24px));
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .drawer__primaryLink {
    padding: 14px 0;
    min-height: var(--touch-min);
  }
  .drawer__stock {
    padding: 12px 14px;
    font-size: 13px;
  }
  .drawer__sidebar .sidebarLink {
    padding: 14px 14px;
    min-height: var(--touch-min);
  }
}

@media (max-width: 440px) {
  .topbar .container,
  .masthead .container,
  .navline .container {
    width: calc(100% - 20px);
  }
  .topbar__inner {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }
  .topbar__left,
  .topbar__right {
    justify-content: center;
  }
  .topbar__center {
    font-size: 12px;
  }
  .brand__logo-img {
    max-height: 38px;
  }
  .drawer {
    width: calc(100vw - 16px);
  }
}

