/* Grouped footer: shared by Home, native product documents and tool tabs. */
body.storefront .site-footer.store-footer {
  background: #f5f8fc;
  border-top: 1px solid #e0e7f0;
  padding: 0;
}

.store-footer .store-footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 32px;
}

.store-footer .store-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.1fr;
  align-items: start;
  gap: 32px;
}

.store-footer .store-footer-grid > * { min-width: 0; }
.store-footer :is(h3, p, address) { margin: 0; }
.store-footer :is(a, button, summary, p, address) {
  font-family: YSTBody, "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.store-footer .store-footer-wordmark {
  display: block;
  color: #005bea;
  font-family: YSTWordmark, Orbitron, sans-serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

.store-footer .store-footer-brand p {
  max-width: 29ch;
  margin-block: 12px 8px;
  color: #526581;
}

body.storefront .store-footer .store-footer-grid h3 {
  margin-bottom: 10px;
  color: #172b46;
  font-family: YSTBody, "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

.store-footer .store-footer-links { display: grid; gap: 0; }
.store-footer :is(a, .store-footer-video, summary) {
  display: flex;
  align-items: center;
  min-height: 40px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 0;
  color: #526581;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.store-footer .store-footer-video {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-weight: 400;
  cursor: pointer;
}

.store-footer :is(a, .store-footer-video, summary):hover { color: #005bea; }
.store-footer :is(a, .store-footer-video):hover { text-decoration: underline; }
.store-footer :is(a, button, summary):focus-visible {
  outline: 2px solid #005bea;
  outline-offset: 3px;
  border-radius: 3px;
}

.store-footer details { min-width: 0; }
.store-footer summary {
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  list-style: none;
  cursor: pointer;
}
.store-footer summary::-webkit-details-marker { display: none; }
.store-footer summary svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.store-footer details[open] > summary { color: #005bea; }
.store-footer details[open] > summary svg { transform: rotate(180deg); }
.store-footer .store-footer-submenu {
  display: grid;
  padding: 0 0 8px 12px;
}
.store-footer .store-footer-submenu a { width: 100%; }
.store-footer .store-footer-contact .store-footer-zalo {
  color: #005bea;
  font-weight: 600;
  margin-block: 2px 8px;
}
.store-footer address {
  max-width: 32ch;
  color: #526581;
  font-style: normal;
}
.store-footer .store-footer-contact address span { display: block; margin-bottom: 4px; color: #172b46; }

@media (max-width: 980px) {
  .store-footer .store-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
  .store-footer .store-footer-brand p { max-width: 34ch; }
  .store-footer .store-footer-contact { padding-inline-end: 56px; }
}

@media (max-width: 560px) {
  .store-footer .store-footer-inner { width: calc(100% - 32px); padding-block: 24px; }
  .store-footer .store-footer-grid { gap: 24px 20px; }
  .store-footer .store-footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .store-footer .store-footer-contact { grid-column: 1 / -1; grid-row: auto; }
  .store-footer .store-footer-brand p { max-width: 38ch; margin-block: 10px 0; }
  .store-footer .store-footer-brand a { min-height: 44px; }
  .store-footer :is(a, .store-footer-video, summary) { min-height: 44px; }
  .store-footer h3 { margin-bottom: 6px; }
  .store-footer address { max-width: 46ch; }
  .store-footer .store-footer-contact .store-footer-zalo { margin-block: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .store-footer :is(a, button, summary, summary svg) { transition: none; }
}
