/**
 * Footer 4 — Ceramide Cosmetics-style dark footer.
 */

.bsp-f4 {
  --bsp-container: 1600px;
  --bsp-f4-bg: #082126;
  --bsp-f4-title: #ffffff;
  --bsp-f4-text: #c8d2d4;
  --bsp-f4-muted: #9aabab;
  --bsp-f4-border: #1a3a40;
  --bsp-f4-input-bg: #0a2a30;
  --bsp-f4-btn-bg: #ffffff;
  --bsp-f4-btn-text: #082126;
  --bsp-f4-social-border: #5f7578;
  --bsp-f4-font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --bsp-f4-font-sans: "DM Sans", system-ui, sans-serif;

  background: var(--bsp-f4-bg);
  color: var(--bsp-f4-text);
  font-family: var(--bsp-f4-font-sans);
}

/* ============ Contact strip ============ */

.bsp-f4__contact {
  border-bottom: 1px solid var(--bsp-f4-border);
}

.bsp-f4__contact-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  padding: 36px 0;
}

.bsp-f4__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.bsp-f4__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--bsp-f4-title);
  font-size: 18px;
  line-height: 1;
}

.bsp-f4__contact-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bsp-f4__contact-title {
  color: var(--bsp-f4-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.bsp-f4__contact-text {
  color: var(--bsp-f4-text);
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

/* ============ Main: newsletter + columns ============ */

.bsp-f4__main {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--bsp-f4-border);
}

.bsp-f4__main-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.45fr);
  gap: 48px 56px;
  align-items: start;
}

.bsp-f4__newsletter-title {
  margin: 0 0 12px;
  color: var(--bsp-f4-title);
  font-family: var(--bsp-f4-font-serif);
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.bsp-f4__newsletter-text {
  margin: 0 0 22px;
  max-width: 34ch;
  color: var(--bsp-f4-text);
  font-size: 15px;
  line-height: 1.55;
}

.bsp-f4__newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bsp-f4__newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--bsp-f4-input-bg);
  color: var(--bsp-f4-title);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.bsp-f4__newsletter-form input[type="email"]::placeholder {
  color: var(--bsp-f4-muted);
}

.bsp-f4__newsletter-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.bsp-f4__newsletter-form button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bsp-f4-btn-bg);
  color: var(--bsp-f4-btn-text);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.bsp-f4__newsletter-form button:hover,
.bsp-f4__newsletter-form button:focus-visible {
  filter: brightness(0.96);
}

.bsp-f4__newsletter-consent {
  margin: 14px 0 0;
  color: var(--bsp-f4-muted);
  font-size: 12px;
  line-height: 1.5;
}

.bsp-f4__consent-link {
  color: var(--bsp-f4-title);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bsp-f4__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.bsp-f4__widget-title,
.bsp-f4__widget .widget-title,
.bsp-f4__widget .bsp-footer__widget-title {
  margin: 0 0 16px;
  color: var(--bsp-f4-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.bsp-f4__menu,
.bsp-f4__widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsp-f4__menu li + li,
.bsp-f4__widget ul li + li {
  margin-top: 10px;
}

.bsp-f4__menu a,
.bsp-f4__widget a {
  color: var(--bsp-f4-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.bsp-f4__menu a:hover,
.bsp-f4__menu a:focus-visible,
.bsp-f4__widget a:hover,
.bsp-f4__widget a:focus-visible {
  color: var(--bsp-f4-title);
}

.bsp-f4__widget .bsp-footer__widget {
  margin: 0;
}

.bsp-f4__placeholder {
  margin: 0;
  color: var(--bsp-f4-muted);
  font-size: 13px;
}

/* ============ Bottom bar ============ */

.bsp-f4__bottom {
  padding: 28px 0 34px;
}

.bsp-f4__bottom-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.bsp-f4__bottom-left,
.bsp-f4__bottom-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bsp-f4__bottom-right {
  align-items: flex-end;
}

.bsp-f4__currency .bsp-mcx__trigger,
.bsp-f4__currency .bsp-mcx__current,
.bsp-f4__currency .bsp-currency-switcher,
.bsp-f4__currency .storecraft-currency-switcher,
.bsp-f4__currency select,
.bsp-f4__currency button {
  color: var(--bsp-f4-title);
  font-size: 13px;
  background: transparent;
  border: 0;
}

.bsp-f4__currency .bsp-mcx__menu {
  top: auto;
  bottom: calc(100% + 10px);
  z-index: 40;
}

.bsp-f4__payments .bsp-footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bsp-f4__payments .bsp-footer__payment,
.bsp-f4__payments .bsp-footer__payment-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 6px;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.bsp-f4__payments .bsp-footer__payment-image img {
  display: block;
  max-height: 20px;
  width: auto;
}

.bsp-f4__copyright {
  margin: 0;
  color: var(--bsp-f4-muted);
  font-size: 12px;
  line-height: 1.5;
}

.bsp-f4__socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bsp-f4__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--bsp-f4-social-border);
  border-radius: 999px;
  color: var(--bsp-f4-title);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bsp-f4__social:hover,
.bsp-f4__social:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--bsp-f4-title);
}

.bsp-f4__policies {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.bsp-f4__policies a {
  color: var(--bsp-f4-muted);
  text-decoration: none;
  font-size: 12px;
}

.bsp-f4__policies a:hover,
.bsp-f4__policies a:focus-visible {
  color: var(--bsp-f4-title);
}

/* ============ Responsive ============ */

@media (max-width: 1100px) {
  .bsp-f4__main-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bsp-f4__newsletter-text {
    max-width: none;
  }

  .bsp-f4__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bsp-f4__contact-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 0;
  }
}

@media (max-width: 640px) {
  .bsp-f4__contact-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bsp-f4__main {
    padding: 40px 0 36px;
  }

  .bsp-f4__columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bsp-f4__newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .bsp-f4__newsletter-form button {
    width: 100%;
  }

  .bsp-f4__bottom-inner {
    flex-direction: column;
    gap: 24px;
  }

  .bsp-f4__bottom-right {
    align-items: flex-start;
  }

  .bsp-f4__policies {
    justify-content: flex-start;
  }
}
