:root {
  --bg: #f7f7f8;
  --surface: #fff;
  --surface-2: #f0f1f3;
  --text: #17181b;
  --muted: #6b6f76;
  --line: #e4e5e8;
  --accent: #D4A300;
  --accent-dark: #9A7200;
  --danger: #b42318;
  --shadow: 0 12px 35px rgba(15,18,22,.08);
  --radius: 18px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

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

button,input,select,textarea {
  font: inherit;
}

.container {
  width: min(var(--max),calc(100% - 32px));
  margin: auto;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #101113;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,180,16,.52);
  box-shadow: 0 6px 24px rgba(10,11,13,.18);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -1.2px;
}

.logo .brand-accent {
  color: var(--accent);
}

.site-header .logo {
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: auto;
}

.main-nav a {
  position: relative;
  padding: 27px 0 25px;
  font-size: 14px;
  font-weight: 700;
  color: #d9dade;
  transition: color .18s ease;
}

.main-nav a:hover,.main-nav a.current {
  color: #f0c31b;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.main-nav a:hover::after,
.main-nav a.current::after {
  transform: scaleX(1);
}

.header-actions {
  width: 180px;
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Não exibe "Entrar" antes de descobrir se a pessoa já está conectada. */
html:not(.auth-ui-ready) .header-actions > .pill-link {
  visibility: hidden;
}

/* Mantém o avatar visível desde o primeiro desenho da página. */
html.auth-cache-present:not(.auth-ui-ready) .header-actions > .pill-link {
  display: none;
}

html.auth-cache-present:not(.auth-dom-preloaded):not(.auth-ui-ready) .header-actions::before {
  content: var(--cached-user-initials, "U");
  width: 62px;
  height: 44px;
  flex: 0 0 62px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding-right: 20px;
  border: 1px solid #e2e3e0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 21px 50%, var(--accent) 0 16px, transparent 17px),
    #fff;
  color: #2a2100;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.header-actions a {
  font-size: 13px;
  font-weight: 800;
}

.pill-link {
  width: 62px;
  flex: 0 0 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid #e2e3e0;
  border-radius: 999px;
  background: #fff;
  color: #202226;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.pill-link:hover {
  border-color: #d8bd58;
  background: #fff8dc;
  box-shadow: 0 7px 24px rgba(18,20,24,.055);
}

.cart-link {
  width: 108px;
  flex: 0 0 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--accent);
  color: #2a2100 !important;
  box-shadow: 0 7px 18px rgba(226,180,16,.2);
  transition: background .18s ease, box-shadow .18s ease;
}

.cart-link:hover {
  background: #f0c31b;
  box-shadow: 0 10px 24px rgba(226,180,16,.3);
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-form input {
  width: 190px;
  border: 1px solid #d9dad7;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: #202226;
  outline: none;
  transition: width .2s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.search-form input::placeholder {
  color: #777a80;
}

.search-form input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(226,180,16,.18);
}

.search-form button {
  padding: 8px 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  color: #f0c31b;
  transition: color .18s ease, transform .18s ease;
}

.search-form button:hover {
  color: #ffe06b;
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s transform,.2s background;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .5;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--accent);
  color: #2A2100;
}

.btn-primary:hover {
  background: #E0B21A;
}

.btn-dark {
  background: #17181b;
  color: #fff;
}

.btn-outline {
  border: 1px solid #cfd1d5;
  background: #fff;
  color: #202226;
}

.btn-danger {
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.btn-block {
  width: 100%;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #FFF7D6;
  color: #735700;
  font-size: 12px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.6px;
}

.section-head a {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-dark);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(20,22,25,.04);
  display: flex;
  flex-direction: column;
}

.product-media {
  aspect-ratio: 1/1;
  background: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-card h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
  min-height: 40px;
}

.stars {
  font-size: 13px;
  color: #e0a800;
  letter-spacing: .5px;
}

.stars small {
  color: var(--muted);
  letter-spacing: 0;
}

.price-old {
  font-size: 12px;
  color: #8a8e95;
  text-decoration: line-through;
}

.price {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.5px;
}

.installments {
  font-size: 12px;
  color: var(--muted);
}

.badge-off {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #17181b;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  border-radius: 999px;
}

.site-footer {
  margin-top: 52px;
  background: #111214;
  color: #e8e9eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3,1fr);
  gap: 38px;
  padding: 48px 0;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.footer-grid p,.footer-grid a,.footer-grid span {
  display: block;
  color: #aeb1b7;
  font-size: 13px;
  margin: 7px 0;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #2b2d31;
  padding: 18px 0;
  color: #858990;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.notice {
  padding: 12px 15px;
  border-radius: 12px;
  background: #FFF7D6;
  color: #6B5100;
  font-weight: 750;
}

.notice.error {
  background: #fff0ef;
  color: #9f1b12;
}

.empty-state {
  background: #fff;
  border: 1px dashed #cfd2d7;
  border-radius: 18px;
  padding: 42px;
  text-align: center;
  color: var(--muted);
}

@media (max-width:1050px) {
  .main-nav {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(3,1fr);
  }

  .search-form {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:760px) {
  .header-inner {
    min-height: 64px;
  }

  .header-actions .pill-link {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(2,1fr);
  }

  .section {
    padding: 34px 0;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .product-body {
    padding: 13px;
  }

  .product-card h3 {
    min-height: auto;
  }
}

@media (max-width:480px) {
  .container {
    width: min(100% - 22px,var(--max));
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .header-actions {
    margin-left: auto;
  }
}

.server-note {
  background: #fff7d6;
  border-bottom: 1px solid #eadb9a;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  color: #5f531d;
}

.user-chip {
  font-size: 13px;
  font-weight: 700;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice.success {
  background: #FFF7D6;
  border: 1px solid #EAD689;
  color: #6A5200;
}

/* Componentes JavaScript */
.js-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #332A0A;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
}

.js-toast.error {
  background: #8f1e17;
}

.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;
}

/* Conta do usuário: menu compacto no cabeçalho */
.header-actions {
  position: relative;
}

.account-menu {
  position: relative;
  width: 62px;
  flex: 0 0 62px;
  z-index: 45;
}

.account-menu-trigger {
  width: 62px;
  min-width: 62px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 8px 4px 4px;
  border: 1px solid #e2e3e0;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.account-menu-trigger:hover,
.account-menu.is-open .account-menu-trigger {
  border-color: var(--accent);
  background: #fff8dc;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #2a2100;
  font-weight: 900;
  letter-spacing: -.03em;
  user-select: none;
}

.user-avatar-small {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.user-avatar-large {
  width: 46px;
  height: 46px;
  font-size: 13px;
}

.account-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #61656b;
  border-bottom: 1.5px solid #61656b;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.account-menu.is-open .account-chevron {
  transform: rotate(225deg) translate(-1px,-1px);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(18,20,24,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.985);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.account-menu.is-open .account-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.account-menu-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px 11px;
}

.account-menu-profile-copy {
  min-width: 0;
}

.account-menu-profile-copy strong,
.account-menu-profile-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-profile-copy strong {
  font-size: 14px;
}

.account-menu-profile-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.account-menu-divider {
  height: 1px;
  margin: 6px -10px;
  background: var(--line);
}

.account-menu-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #34373c;
  text-align: left;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.account-menu-item:hover {
  background: #f6f6f7;
}

.account-menu-logout {
  color: #8d251d;
}

.account-item-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #62666d;
}

.account-item-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .header-inner {
    gap: 12px;
  }

  .account-menu-panel {
    position: fixed;
    top: 72px;
    right: 12px;
  }
}


/* NUTRIUP reviews4 — avaliações de catálogo somente quando confirmadas pelo MySQL */
.product-card .stars:not(.has-real-reviews),
[data-product-rating] .stars:not(.has-real-reviews) {
  color: var(--muted);
  font-size: 0;
  letter-spacing: 0;
}

.product-card .stars:not(.has-real-reviews)::before,
[data-product-rating] .stars:not(.has-real-reviews)::before {
  content: "Sem avaliações";
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.product-card .stars.has-real-reviews,
[data-product-rating] .stars.has-real-reviews {
  color: #e0a800;
  font-size: 13px;
  letter-spacing: .5px;
}

/* NUTRIUP Support Chat */
.footer-grid .logo {
  display: inline-flex !important;
  align-items: baseline;
  white-space: nowrap;
  width: auto;
  line-height: 1;
  margin: 0 0 12px;
  color: #f4f4f5;
  font-size: 25px !important;
  font-weight: 950;
  letter-spacing: -1.2px;
}

.footer-grid .logo .brand-accent {
  display: inline !important;
  margin: 0;
  color: var(--accent);
  font-size: inherit;
}

.footer-grid .footer-support-chat span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.footer-support-chat {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(212,163,0,.5);
  border-radius: 11px;
  background: rgba(212,163,0,.08);
  color: #f0c532;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.footer-support-chat:hover {
  transform: translateY(-1px);
  background: rgba(212,163,0,.15);
  border-color: var(--accent);
}

.footer-support-chat svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nutriup-support-chat[hidden] {
  display: none !important;
}

.nutriup-support-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: min(390px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 34px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #292b30;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.support-chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  background: #111214;
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.support-chat-brand {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #111214;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -.4px;
}

.support-chat-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.support-chat-heading strong {
  font-size: 14px;
}

.support-chat-heading span {
  margin-top: 3px;
  color: #aeb1b7;
  font-size: 11px;
}

.support-chat-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #202227;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.support-chat-close:hover {
  background: #2d3036;
}

.support-chat-messages {
  min-height: 255px;
  max-height: 380px;
  overflow-y: auto;
  padding: 16px;
  background: #f6f6f7;
  scrollbar-width: thin;
}

.support-chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}

.support-chat-message.is-user {
  align-items: flex-end;
}

.support-chat-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid #e0e1e4;
  border-radius: 14px 14px 14px 5px;
  background: #fff;
  color: #292b30;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(15,18,22,.04);
}

.support-chat-message.is-user .support-chat-bubble {
  border-color: var(--accent);
  border-radius: 14px 14px 5px 14px;
  background: var(--accent);
  color: #111214;
  font-weight: 700;
}

.support-chat-message.is-typing {
  margin-bottom: 12px;
}

.support-chat-typing-bubble {
  min-width: 60px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 13px;
}

.support-chat-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a8d92;
  animation: nutriupTypingDot 1.15s infinite ease-in-out;
}

.support-chat-typing-dot:nth-child(2) {
  animation-delay: .16s;
}

.support-chat-typing-dot:nth-child(3) {
  animation-delay: .32s;
}

@keyframes nutriupTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.support-chat-actions {
  width: min(88%, 310px);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.support-chat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #d9dadd;
  border-radius: 9px;
  background: #fff;
  color: #1b1c20;
  font-size: 11px;
  font-weight: 850;
}

.support-chat-action:hover {
  border-color: var(--accent);
  background: #fff9e7;
}

.support-chat-action.is-email {
  border-color: #111214;
  background: #111214;
  color: #fff;
}

.support-chat-action.is-email:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #111214;
}

.support-chat-quick {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 12px 4px;
  background: #fff;
  scrollbar-width: none;
}

.support-chat-quick::-webkit-scrollbar {
  display: none;
}

.support-chat-quick button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #dedfe2;
  border-radius: 999px;
  background: #fff;
  color: #4d5056;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.support-chat-quick button:hover {
  border-color: var(--accent);
  color: #765800;
  background: #fff9e7;
}

.support-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
}

.support-chat-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #d9dadd;
  border-radius: 11px;
  padding: 0 12px;
  outline: none;
  color: var(--text);
  background: #fff;
}

.support-chat-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,163,0,.13);
}

.support-chat-form button {
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #111214;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.support-chat-form button:hover {
  background: #e5b000;
}

.support-chat-footer {
  padding: 0 12px 11px;
  background: #fff;
  color: #7a7e85;
  font-size: 10px;
  line-height: 1.35;
}

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

@media (max-width: 560px) {
  .nutriup-support-chat {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 17px;
  }

  .support-chat-messages {
    min-height: 230px;
    max-height: 46vh;
  }
}

/* =========================================================
   Botão flutuante — Voltar ao topo
   Usado nas páginas Suplementos e Marcas.
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 990;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #111214;
  color: var(--accent);
  box-shadow: 0 10px 28px rgba(0,0,0,.22), 0 0 0 4px rgba(226,180,16,.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease,
              background .22s ease, color .22s ease, box-shadow .22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top:hover {
  background: var(--accent);
  color: #111214;
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 0 5px rgba(226,180,16,.14);
}

.back-to-top:active {
  transform: translateY(-1px) scale(.96);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(226,180,16,.38);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 14px;
    bottom: 82px;
    width: 46px;
    height: 46px;
  }
  .back-to-top svg {
    width: 21px;
    height: 21px;
  }
}
