/* Souci Mall — footer */

.sm-footer {
  margin-top: 60px;
  border-top: 1px solid var(--sm-line);
  padding-block: 50px 0;
}
.sm-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.sm-footer__brand .sm-logo { margin-bottom: 12px; }
.sm-footer__blurb {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--sm-ink-soft);
  line-height: 1.6;
  max-width: 300px;
}
.sm-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sm-footer__social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--sm-line);
  background: var(--sm-surface);
  align-items: center;
  justify-content: center;
  color: var(--sm-ink);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .15s ease;
}
.sm-footer__social a svg {
  width: 16px;
  height: 16px;
  display: block;
}
.sm-footer__social a:hover,
.sm-footer__social a:focus-visible {
  border-color: var(--sm-accent);
  background: var(--sm-accent);
  color: var(--sm-accent-ink);
  transform: translateY(-1px);
}
.sm-footer__social a:focus-visible { outline: 2px solid var(--sm-accent); outline-offset: 2px; }

/* ============================================================
 * Payment-method marks — appears in footer + product page
 * (also hooked into product summary via souci_render_payment_marks)
 * ============================================================ */
.sm-footer__pay {
  padding-block: 24px 14px;
  border-top: 1px solid var(--sm-line);
}
.sm-pay-marks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.sm-pay-marks__label {
  font-family: var(--sm-mono-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sm-ink-muted);
  margin-right: 4px;
  flex-shrink: 0;
}
.sm-pay-marks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
/* Default to monochrome — keeps the row visually quiet against the
 * Bourbon palette and matches the "we accept" treatment used by Stripe,
 * Shopify, Square. Hovering any tile fires the brand's official colors
 * back in (Visa-blue, Mastercard-red, Klarna-pink, etc.) so the badge
 * still feels alive and recognizable on intent. */
.sm-pay-marks__item {
  display: inline-flex;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.78;
  transition: filter .25s ease, opacity .2s ease, transform .15s ease;
  will-change: filter, transform;
}
.sm-pay-marks__item:hover,
.sm-pay-marks__item:focus-within {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: translateY(-1px);
}
.sm-pay-marks__item:hover .sm-pay-marks__img,
.sm-pay-marks__item:focus-within .sm-pay-marks__img {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.sm-pay-marks__item svg,
.sm-pay-marks__img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;            /* most official marks are designed for white bg */
  padding: 2px 4px;
  border: 1px solid var(--sm-line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
/* Inline SVG variant — official Simple Icons / aaronfagan asset, sourced
 * from /assets/payment-icons/. Container reuses the same white-pill
 * styling above so the row feels consistent regardless of whether the
 * mark is uploaded by the merchant or pulled from the bundled library.
 *
 * Single-path Simple Icons SVGs use `currentColor`, and the wrapper
 * span carries an inline `color: <brand-hex>` style set in payments.php
 * — that's how Visa shows up in Visa-blue, Mastercard in Mastercard-red,
 * etc. without us baking the colors into the SVG file. Multi-fill SVGs
 * (UnionPay, Amazon Pay) ignore `color` and render their own palette. */
.sm-pay-marks__img--svg {
  width: 44px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sm-pay-marks__img--svg svg {
  display: block;
  width: 100%;
  height: 100%;
  /* `width:auto` would honor each viewBox's intrinsic ratio; we force
   * full-width fit so the row of pills lines up to the same 28px height. */
}

/* Variant styling — product page version sits inline with the trust strip
 * and gets a slightly different layout (tighter, top border) */
.sm-pay-marks--product {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sm-line);
}

/* Mobile — slightly tighter, label drops to its own row */
@media (max-width: 600px) {
  .sm-pay-marks { gap: 8px; }
  .sm-pay-marks__label { width: 100%; margin: 0; font-size: 10px; }
  .sm-pay-marks__list { gap: 5px; }
  .sm-pay-marks__item svg { width: 44px; height: 24px; }
}

.sm-footer__col h4 {
  margin: 0 0 16px;
  font-family: var(--sm-mono-font);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sm-ink-muted);
  font-weight: 500;
}
.sm-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.sm-footer__links a { color: var(--sm-ink); }
.sm-footer__links a:hover { color: var(--sm-accent); }

.sm-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px 40px;
  border-top: 1px solid var(--sm-line);
  margin-top: 24px;
  font-family: var(--sm-mono-font);
  font-size: 11px;
  color: var(--sm-ink-muted);
  letter-spacing: 0.3px;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .sm-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .sm-footer__brand { grid-column: span 3; }
}
@media (max-width: 700px) {
  .sm-footer { margin-top: 40px; padding-block: 30px 0; padding-bottom: 100px; }
  .sm-footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .sm-footer__brand { grid-column: span 2; }
}
