/**
 * DART3D footer v2 (Direction B — light minimal).
 * All rules are scoped to #dart3d-footer so theme styles are not changed.
 * Fonts (Poppins, IBM Plex Mono) are already loaded by Elementor / Blocksy;
 * this file does not add @font-face or font stylesheets.
 */

/* Hide the Blocksy footer visually. It stays in the DOM so the
   custom_html-2 promo-bar / currency helper keeps running. */
body.dart3d-fv2-on footer#footer.ct-footer {
  display: none !important;
}

#dart3d-footer,
#dart3d-footer * {
  box-sizing: border-box;
}

#dart3d-footer {
  --d3f-coral: #E23D28;
  --d3f-ink: #131117;
  --d3f-muted: #687279;
  --d3f-muted-3: #989898;
  --d3f-warm: #F7F6F4;
  --d3f-line: #E6E4E8;
  --d3f-line-2: #d9dadc;
  --d3f-sans: "Poppins", "Roboto", system-ui, -apple-system, sans-serif;
  --d3f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --d3f-container: 1180px;

  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--d3f-warm);
  color: var(--d3f-muted);
  border-top: 1px solid var(--d3f-line);
  font-family: var(--d3f-sans);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#dart3d-footer a {
  color: inherit;
  text-decoration: none;
  background: none;
  box-shadow: none;
}
#dart3d-footer a:hover,
#dart3d-footer a:focus-visible {
  color: var(--d3f-coral);
  text-decoration: none;
}
#dart3d-footer a:focus-visible {
  outline: 2px solid var(--d3f-coral);
  outline-offset: 2px;
}

#dart3d-footer .d3f-inner {
  width: min(var(--d3f-container), calc(100% - 64px));
  margin: 0 auto;
}

/* ---- Trust row ---- */
#dart3d-footer .d3f-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--d3f-line);
  font-size: 12px;
  line-height: 18px;
  color: var(--d3f-muted);
  letter-spacing: 0.01em;
}
#dart3d-footer .d3f-trust .d3f-dot {
  color: var(--d3f-line-2);
  padding: 0 10px;
}

/* ---- Desktop grid ---- */
#dart3d-footer .d3f-main {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.95fr 1fr;
  gap: 40px 32px;
  padding: 40px 0 32px;
}

#dart3d-footer .d3f-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--d3f-ink);
  text-decoration: none;
}
#dart3d-footer .d3f-brand-lockup:hover,
#dart3d-footer .d3f-brand-lockup:focus-visible {
  color: var(--d3f-ink);
}
#dart3d-footer .d3f-brand-lockup img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  border: 0;
}
#dart3d-footer .d3f-wordmark {
  font-family: var(--d3f-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d3f-ink);
  line-height: 1.2;
}
#dart3d-footer .d3f-tagline {
  margin: 14px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  max-width: 26em;
  color: var(--d3f-muted);
  font-weight: 400;
}

#dart3d-footer h2.d3f-eyebrow {
  font-family: var(--d3f-mono);
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--d3f-ink);
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: 0;
  text-decoration: none;
}

#dart3d-footer .d3f-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#dart3d-footer .d3f-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}
#dart3d-footer .d3f-links a {
  font-family: var(--d3f-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--d3f-muted);
}
#dart3d-footer .d3f-links a:hover,
#dart3d-footer .d3f-links a:focus-visible {
  color: var(--d3f-coral);
}

#dart3d-footer .d3f-contact {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--d3f-muted);
}
#dart3d-footer .d3f-contact p {
  margin: 0 0 6px;
  padding: 0;
}
#dart3d-footer .d3f-contact a {
  color: var(--d3f-ink);
  display: inline;
}
#dart3d-footer .d3f-contact a:hover,
#dart3d-footer .d3f-contact a:focus-visible {
  color: var(--d3f-coral);
}
#dart3d-footer .d3f-hours {
  margin-top: 10px;
  font-size: 12px;
  color: var(--d3f-muted-3);
}

/* ---- Bottom bar ---- */
#dart3d-footer .d3f-bar {
  border-top: 1px solid var(--d3f-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
  font-size: 12px;
  color: var(--d3f-muted-3);
}
#dart3d-footer .d3f-legal {
  display: flex;
  flex-wrap: wrap;
}
#dart3d-footer .d3f-legal span + span::before {
  content: "·";
  margin: 0 8px;
  color: var(--d3f-line-2);
}

#dart3d-footer .d3f-pay {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#dart3d-footer .d3f-pay .pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid var(--d3f-line-2);
  background: #fff;
  color: var(--d3f-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1;
  min-width: 0;
}
#dart3d-footer .pay-visa {
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0 7px;
}
#dart3d-footer .pay-amex {
  letter-spacing: 0.08em;
  font-size: 8.5px;
}
#dart3d-footer .pay-klarna,
#dart3d-footer .pay-gpay {
  font-size: 9px;
}
#dart3d-footer .pay-mc { padding: 0 5px; }
#dart3d-footer .pay-mc svg {
  width: 22px;
  height: 14px;
  display: block;
}

/* Mobile accordion markup is in the HTML always (no CLS); hidden on desktop. */
#dart3d-footer .d3f-mobile { display: none; }

/* ===================== MOBILE / stacked (same breakpoint as Blocksy) ===================== */
@media (max-width: 999px) {
  #dart3d-footer .d3f-inner {
    width: calc(100% - 40px);
  }

  #dart3d-footer .d3f-desktop-grid {
    display: none !important;
  }
  #dart3d-footer .d3f-mobile {
    display: block;
    padding: 0;
  }

  #dart3d-footer .d3f-trust {
    padding: 11px 0;
  }

  #dart3d-footer details.d3f-acc {
    border-bottom: 1px solid var(--d3f-line-2);
    margin: 0;
    padding: 0;
  }
  #dart3d-footer summary.d3f-acc__btn {
    appearance: none;
    -webkit-appearance: none;
    list-style: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--d3f-ink);
    font-family: var(--d3f-mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
  }
  #dart3d-footer summary.d3f-acc__btn::-webkit-details-marker { display: none; }
  #dart3d-footer summary.d3f-acc__btn::marker { content: ""; display: none; }
  #dart3d-footer summary.d3f-acc__btn:focus-visible {
    outline: 2px solid var(--d3f-coral);
    outline-offset: 2px;
  }

  #dart3d-footer .d3f-chev {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    position: relative;
  }
  #dart3d-footer .d3f-chev::before,
  #dart3d-footer .d3f-chev::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  #dart3d-footer .d3f-chev::before {
    width: 12px;
    height: 1.5px;
    left: 1px;
    top: 6.25px;
  }
  #dart3d-footer .d3f-chev::after {
    width: 1.5px;
    height: 12px;
    left: 6.25px;
    top: 1px;
  }
  #dart3d-footer details.d3f-acc[open] .d3f-chev::after {
    opacity: 0;
    transform: scaleY(0);
  }

  /* display is set explicitly so a leftover dart3d-mobile-footer
     stylesheet (.d3f-panel { display: none }) cannot hide open panels. */
  #dart3d-footer details.d3f-acc .d3f-panel {
    display: none;
    padding: 0 0 12px;
  }
  #dart3d-footer details.d3f-acc[open] .d3f-panel,
  #dart3d-footer details.d3f-acc.is-open .d3f-panel {
    display: block;
  }
  #dart3d-footer .d3f-panel a,
  #dart3d-footer .d3f-panel .d3f-meta {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    line-height: 20px;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--d3f-sans);
    font-weight: 400;
    color: var(--d3f-muted);
  }
  #dart3d-footer .d3f-panel a:hover,
  #dart3d-footer .d3f-panel a:focus-visible {
    color: var(--d3f-coral);
  }
  #dart3d-footer .d3f-panel .d3f-meta {
    padding: 6px 0 0;
    font-size: 12px;
    line-height: 18px;
    white-space: pre-line;
    color: var(--d3f-muted-3);
  }

  #dart3d-footer .d3f-m-contact {
    padding: 10px 0 6px;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
  }
  #dart3d-footer .d3f-m-contact a {
    display: block;
    padding: 3px 0;
    color: var(--d3f-ink);
  }
  #dart3d-footer .d3f-m-contact a:hover,
  #dart3d-footer .d3f-m-contact a:focus-visible {
    color: var(--d3f-coral);
  }

  #dart3d-footer .d3f-bar {
    flex-direction: column;
    text-align: center;
    padding: 8px 0 14px;
    gap: 8px;
  }
  #dart3d-footer .d3f-legal {
    justify-content: center;
  }
  #dart3d-footer .d3f-pay {
    justify-content: center;
  }

  /* Product sticky add-to-cart bar (dart3d-v3-sticky, ~73px + gap). */
  body.single-product #dart3d-footer {
    padding-bottom: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dart3d-footer .d3f-chev::before,
  #dart3d-footer .d3f-chev::after {
    transition: none;
  }
}
