/* Flowersstore footer */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--theme-coffee);
    color: var(--cream-2);
    box-shadow: 0 10px 26px -8px rgba(74, 58, 48, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    /* visibility delay matches fade duration so element hides only after fade-out */
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s, background 0.3s var(--ease);
}
.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* visibility becomes visible instantly when showing */
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0s, background 0.3s var(--ease);
}
.to-top:hover {
    background: var(--theme-footer-bg);
    transform: translateY(-3px);
}
.flr-footer {
  background: var(--theme-footer-bg);
  color: var(--theme-footer-text);
  font-family: var(--theme-font-family);
}

/* ── Main grid ── */
.flr-footer__main {
  padding: 72px 0 56px;
}

.flr-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 640px) {
  .flr-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

@media (min-width: 900px) {
  .flr-footer__grid {
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ── Col 1: Brand ── */
.flr-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.flr-footer__logo {
  height: 52px;
  width: auto;
}

.flr-footer__brand-name {
  font-family: var(--theme-font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--theme-footer-text);
  letter-spacing: -0.01em;
  line-height: 1;
  display: none;
}

[data-footer-logo][data-no-logo] { display: none; }
[data-footer-logo][data-no-logo] ~ .flr-footer__brand-name { display: inline; }

.flr-footer__tagline {
  color: var(--theme-footer-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.75rem;
}

/* Social icons — live inside brand col */
.flr-footer__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.flr-footer[data-renderer="store-footer"] [data-footer-social] a.t-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--theme-footer-surface);
  color: var(--theme-footer-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.flr-footer[data-renderer="store-footer"] [data-footer-social] a.t-footer-social-link:hover {
  background: var(--theme-primary);
  color: var(--theme-text-light);
  transform: translateY(-2px);
}

.flr-footer[data-renderer="store-footer"] [data-footer-social] .t-footer-social-link::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  font-style: normal;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}
.flr-footer[data-renderer="store-footer"] .t-footer-social-facebook::before  { content: "\f39e"; }
.flr-footer[data-renderer="store-footer"] .t-footer-social-instagram::before { content: "\f16d"; }
.flr-footer[data-renderer="store-footer"] .t-footer-social-tiktok::before    { content: "\e07b"; }
.flr-footer[data-renderer="store-footer"] .t-footer-social-x::before,
.flr-footer[data-renderer="store-footer"] .t-footer-social-twitter::before   { content: "\e61b"; }
.flr-footer[data-renderer="store-footer"] .t-footer-social-youtube::before   { content: "\f167"; }
.flr-footer[data-renderer="store-footer"] .t-footer-social-linkedin::before  { content: "\f08c"; }
.flr-footer[data-renderer="store-footer"] .t-footer-social-whatsapp::before  { content: "\f232"; }
.flr-footer[data-renderer="store-footer"] .t-footer-social-pinterest::before { content: "\f0d2"; }

/* ── Column headings ── */
.flr-footer__heading {
  font-family: var(--theme-font-family);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--theme-accent);
  margin: 0 0 1.5rem;
}

/* ── Shop / Services link lists ── */
.flr-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.flr-footer__links a {
  color: var(--theme-footer-link);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s;
}

.flr-footer__links a:hover {
  color: var(--theme-footer-link-hover);
}

/* ── Visit column ── */
.flr-footer__visit {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.flr-footer__visit a {
  color: var(--theme-footer-link);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s;
}

.flr-footer__visit a:hover {
  color: var(--theme-footer-link-hover);
}

/* ── Payment / trust bar ── */
.flr-footer__trust {
  border-top: 1px solid var(--theme-footer-border);
  padding: 1.125rem 0;
}

.flr-footer__trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.flr-footer__payments {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.flr-footer__payments li {
  display: flex;
  align-items: center;
}

.flr-footer__payments svg {
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.flr-footer__payments svg:hover { opacity: 1; }

.flr-footer__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--theme-footer-muted);
  margin: 0;
}

.flr-footer__secure svg {
  flex-shrink: 0;
  color: var(--theme-footer-muted);
}

/* ── Bottom bar ── */
.flr-footer__bottom {
  padding-bottom: 1.25rem;
}

.flr-footer__bottom-inner {
  /* divider lives on the inner container so it's content-width only */
  border-top: 1px solid var(--theme-footer-border);
  padding-top: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.82rem;
}

.flr-footer__copy {
  margin: 0;
  color: var(--theme-footer-muted);
}

/* Center legal links */
.flr-footer__legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.flr-footer__legal a {
  color: var(--theme-footer-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s;
}

.flr-footer__legal a:hover {
  color: var(--theme-footer-link-hover);
}

.flr-footer__designed-by {
  margin: 0;
  color: var(--theme-footer-muted);
  white-space: nowrap;
}

.flr-footer__designed-by a {
  color: var(--theme-primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.flr-footer__designed-by a:hover { opacity: 0.8; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .flr-footer__main { padding: 56px 0 48px; }
  .flr-footer__trust-inner,
  .flr-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .flr-footer__legal { justify-content: center; }
}
