/* 3M AnDong — restored stylesheet */

:root {
  --red: #e60012;
  --red-dark: #b3000e;
  --ink: #333;
  --heading: #1d1d1d;
  --muted: #777;
  --line: #e3e3e3;
  --tint: #f7f7f7;
  --dark: #1f1f1f;
  --wrap: 1160px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3 { margin: 0; line-height: 1.3; color: var(--heading); }
p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

:where(a, button):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  border-radius: 5px;
}
.btn:hover { background: var(--red-dark); color: #fff; text-decoration: none; }

/* ---------- header ---------- */

.site-header { border-bottom: 4px solid var(--red); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 88px; }

.brand { display: flex; align-items: center; gap: 14px; flex: none; color: var(--heading); }
.brand:hover { text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand__text { display: block; }
.brand__text strong { display: block; font-size: 22px; }
.brand__text small { display: block; font-size: 12px; color: var(--muted); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; }
.primary-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}
.primary-nav a:hover { color: var(--red); text-decoration: none; }

.nav-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 44px; height: 40px;
  padding: 0;
  background: var(--red);
  border: 0; border-radius: 5px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute; left: 50%;
  width: 21px; height: 2px; margin-left: -10px;
  background: #fff; content: "";
}
.nav-toggle__bars { top: 19px; }
.nav-toggle__bars::before { top: -7px; left: 0; margin-left: 0; }
.nav-toggle__bars::after { top: 7px; left: 0; margin-left: 0; }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 40px;
}

.page-intro { margin-bottom: 26px; }
.page-intro h1 { font-size: 26px; margin-bottom: 8px; }
.page-intro p { color: var(--muted); }

/* ---------- block ---------- */

.block { margin-bottom: 30px; }
.block__head {
  padding: 9px 14px;
  margin-bottom: 16px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 4px;
}

.note {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--tint);
  border-left: 4px solid var(--red);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.products > * { min-width: 0; }
.product {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .3s ease;
}
.product:hover { border-color: var(--red); }
.product h3 { font-size: 16px; font-weight: 700; }
.product--img img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 10px; }

.price { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--red); }
.price s { color: var(--muted); font-weight: 400; font-size: 15px; margin-right: 6px; }
.rating { font-size: 13px; color: var(--muted); }
.tag {
  display: inline-block;
  padding: 1px 9px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  vertical-align: middle;
}
.tag--out { background: var(--muted); margin-top: 6px; }

/* ---------- news ---------- */

.news li {
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.news li:last-child { border-bottom: 0; }
.news li::before {
  position: absolute; left: 0; top: 17px;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  content: "";
}

/* ---------- sidebar ---------- */

.cats > li { margin-bottom: 6px; }
.cats > li > strong {
  display: block;
  padding: 7px 10px;
  background: var(--tint);
  border-left: 3px solid var(--red);
  font-size: 14px;
  text-transform: uppercase;
}
.cats ul { padding: 5px 0 6px 12px; }
.cats ul li { padding: 3px 0 3px 14px; font-size: 14px; position: relative; }
.cats ul li::before {
  position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px;
  background: var(--muted);
  border-radius: 50%;
  content: "";
}

.picks li, .comments li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.picks li:last-child, .comments li:last-child { border-bottom: 0; }
.picks h3 { font-size: 15px; }
.picks .price { font-size: 16px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 42px 0 18px;
  background: var(--dark);
  color: #bfbfbf;
  font-size: 15px;
}
.site-footer h2 { margin-bottom: 12px; font-size: 17px; color: #fff; text-transform: uppercase; }
.site-footer a { color: #ff8a8a; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 34px;
}
.footer__grid > * { min-width: 0; }
.footer__col li { padding: 5px 0; }
.footer__logo { width: 74px; margin-top: 14px; background: #fff; padding: 6px; border-radius: 5px; }

.social { display: flex; gap: 14px; margin-top: 16px; }
.social img { width: 44px; height: 44px; border-radius: 6px; }

.copyright {
  max-width: var(--wrap);
  margin: 30px auto 0;
  padding: 15px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- scroll top ---------- */

.scroll-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--red);
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.scroll-top svg { width: 26px; height: 26px; margin: 0 auto; fill: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; order: 3; width: 100%; margin-left: 0; padding-bottom: 8px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li + li { border-top: 1px solid var(--line); }
  .site-header__inner { flex-wrap: wrap; }
  .brand__text small { display: none; }

  .products { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
