/**
 * Ember Loom — global footer (asymmetric desk)
 * Tokens match a78-ember.css
 */
.em-foot .em-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 10px;
  font-family: var(--em-display, "Outfit", system-ui, sans-serif);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s, background 0.25s;
}
.em-foot .em-btn--ember {
  background: var(--em-ember, #e85d04);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.28);
}
.em-foot .em-btn--ember:hover {
  background: var(--em-ember-deep, #c24b00);
  transform: translateY(-2px);
}
.em-foot .em-btn--sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
}
.em-foot {
  position: relative;
  margin-top: 2.5rem;
  padding: 2.25rem 1.25rem 1.5rem;
  background:
    linear-gradient(160deg, #10141c 0%, #1a2230 55%, #142032 100%);
  color: #fff;
  font-family: var(--em-body, "Karla", system-ui, sans-serif);
  width: 100%;
  clear: both;
  z-index: 5;
}
body.em-home .em-foot,
body.em-account .em-foot,
body.em-help .em-foot,
body.em-shop .em-foot,
body.em-track .em-foot,
body.em-cart .em-foot,
body.em-orders .em-foot,
body.em-checkout .em-foot,
body.em-status .em-foot,
body.em-product .em-foot,
body.em-contact .em-foot,
body.em-success .em-foot,
body.em-about .em-foot,
body.em-catalog .em-foot {
  margin-top: 0;
}
.em-bare-main {
  display: block;
  min-height: auto;
}
.em-foot a { color: inherit; text-decoration: none; }
.em-foot-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.em-foot-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: end;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.em-foot-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.em-foot-brand:hover { transform: translateX(3px); }
.em-foot-brand .em-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  font-family: var(--em-display, "Outfit", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--em-ember, #e85d04);
  border-radius: 8px;
}
.em-foot-brand strong {
  display: block;
  font-family: var(--em-display, "Outfit", system-ui, sans-serif);
  font-size: 1.15rem;
}
.em-foot-brand em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.15rem;
}

.em-foot-news label {
  display: block;
  font-family: var(--em-display, "Outfit", system-ui, sans-serif);
  font-size: 1rem;
  margin-bottom: 0.55rem;
}
.em-foot-news-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}
.em-foot-news input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.em-foot-news input::placeholder { color: rgba(255, 255, 255, 0.75); opacity: 1; }
.em-foot-news input:focus {
  border-color: var(--em-ember, #e85d04);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.25);
}
.em-foot-news p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.em-foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.em-foot-col h4 {
  margin: 0 0 0.75rem;
  font-family: var(--em-display, "Outfit", system-ui, sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb088;
}
.em-foot-col a {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.45rem;
  transition: color 0.2s, transform 0.2s;
}
.em-foot-col a:hover {
  color: #fff;
  transform: translateX(3px);
}
.em-foot-reach p {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}
.em-foot-reach a:hover { color: #ffb088; }

.em-foot-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

.em-foot-top {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 10px;
  background: var(--em-ember, #e85d04);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);
  transition: transform 0.25s, background 0.25s;
  z-index: 2;
}
.em-foot-top:hover {
  transform: translateY(-3px);
  background: var(--em-ember-deep, #c24b00);
}

/* Compact branch */
.em-foot--compact {
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--em-ink, #10141c);
}
.em-foot-compact-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.em-foot-brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.em-foot-brand-mini .em-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--em-display, "Outfit", system-ui, sans-serif);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--em-ember, #e85d04);
  color: #fff;
  border-radius: 6px;
}
.em-foot-brand-mini strong {
  font-family: var(--em-display, "Outfit", system-ui, sans-serif);
}
.em-foot--compact nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.em-foot--compact nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  transition: color 0.2s;
}
.em-foot--compact nav a:hover { color: #ffb088; }
.em-foot--compact p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}
.em-foot--compact .em-foot-top {
  position: static;
  margin-top: 0.75rem;
}

@media (max-width: 860px) {
  .em-foot-hero,
  .em-foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .em-foot-hero,
  .em-foot-cols {
    grid-template-columns: 1fr;
  }
  .em-foot-news-row {
    flex-direction: column;
  }
  .em-foot-top {
    right: 1rem;
    bottom: 1rem;
  }
}
