/* ═══════════════════════════════════════════════════════
   SAQUAFUNGI — Shared Stylesheet
   Tokens · Layout · Components · Utilities
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Cinzel+Decorative:wght@700;900&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
  /* ── Paleta oficial ─────────────────────────── */
  --blue:        #0d6ab1;
  --blue-light:  #1a82d4;
  --blue-dark:   #0a5491;
  --blue-muted:  #e3eef8;
  --beige:       #c8e8f8;
  --beige-light: #a8d8f0;
  --beige-muted: #f0f7fc;
  --brown:       #1a82d4;
  --brown-light: #3fa3e8;
  --brown-dark:  #0a5491;
  --brown-muted: #e3eef8;
  --red:         #b62929;
  --red-dark:    #8c1f1f;
  --red-muted:   #fbeaea;
  --black:       #061a2e;
  --gray-900:    #0d2540;
  --gray-700:    #1e4a6e;
  --gray-500:    #4a7a9b;
  --gray-300:    #90c0dc;
  --gray-100:    #e8f4fb;
  --cream:       #f5fafd;
  --success:     #2e7d32;
  --success-bg:  #e8f5e9;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-full: 9999px;
  --shadow-sm:  0 1px 4px rgba(6,26,46,.07);
  --shadow-md:  0 4px 16px rgba(6,26,46,.10), 0 1px 4px rgba(6,26,46,.06);
  --shadow-lg:  0 12px 40px rgba(6,26,46,.14), 0 4px 12px rgba(6,26,46,.08);
  --shadow-xl:  0 24px 64px rgba(6,26,46,.18);
  --header-h: 80px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */

/* ─── Variáveis do header ─── */
:root { --header-h: 72px; }

/* ─── Shell ─── */
.sf-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 900;
  background: linear-gradient(135deg,
    rgba(6,26,46,.92) 0%,
    rgba(10,42,88,.88) 50%,
    rgba(13,106,177,.35) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(63,163,232,.18);
  box-shadow: 0 4px 24px rgba(6,26,46,.5), inset 0 1px 0 rgba(255,255,255,.06);
  transition: background .35s, box-shadow .35s;
}
.sf-header.scrolled {
  background: linear-gradient(135deg,
    rgba(4,18,34,.97) 0%,
    rgba(7,30,58,.96) 50%,
    rgba(10,65,110,.45) 100%
  );
  box-shadow: 0 8px 40px rgba(4,18,34,.8), inset 0 1px 0 rgba(255,255,255,.04);
}

/* Ondas decorativas — isoladas com overflow */
.sf-header__waves {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.sf-header__waves svg {
  position: absolute; bottom: 0; left: 0;
  width: 200%; height: 100%;
}
.sf-header__waves .w1 { animation: hWave 10s linear infinite;         opacity: .07; }
.sf-header__waves .w2 { animation: hWave 7s  linear infinite reverse;  opacity: .05; }
.sf-header__waves .w3 { animation: hWave 14s linear infinite;          opacity: .04; }
@keyframes hWave { from { transform:translateX(0) } to { transform:translateX(-50%) } }

/* Linha shimmer no rodapé */
.sf-header::after {
  content: ''; position: absolute; bottom: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(63,163,232,.6) 40%,
    rgba(63,163,232,.6) 60%,
    transparent
  );
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { opacity:.4; transform:scaleX(.7); }
  50%      { opacity:1;  transform:scaleX(1); }
}

/* ─────────────────────────────────────────
   INNER — grid 3 colunas simétricas
   [logo 200px] [nav auto] [actions 200px]
───────────────────────────────────────── */
.sf-header__inner {
  position: relative; z-index: 2;
  height: 100%; width: 100%;
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* ─── LOGO — coluna 1 ─── */
.sf-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; width: fit-content;
  transition: opacity .2s, transform .2s;
}
.sf-logo:hover { opacity: .88; transform: translateY(-1px); }

.sf-logo__img {
  width: 48px; height: 48px; flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(13,106,177,.55));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.sf-logo:hover .sf-logo__img { transform: rotate(-8deg) scale(1.08); }

.sf-logo__text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: .04em; white-space: nowrap; color: #fff;
  text-shadow: 0 0 24px rgba(63,163,232,.45), 0 2px 12px rgba(6,26,46,.9);
}

/* ─── NAV — coluna 2, centralizado ─── */
.sf-header__nav {
  display: flex; justify-content: center; align-items: center;
}

.sf-nav {
  display: flex; align-items: center; gap: 2px;
  list-style: none; position: relative;
  padding: 5px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 100px;
}

/* Indicador deslizante */
.sf-nav__indicator {
  position: absolute; top: 5px; bottom: 5px;
  background: linear-gradient(135deg, rgba(13,106,177,.6), rgba(26,130,212,.5));
  border-radius: 100px;
  border: 1px solid rgba(63,163,232,.3);
  box-shadow: 0 0 12px rgba(13,106,177,.4);
  transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none; z-index: 0;
}

.sf-nav li { position: relative; z-index: 1; }

.sf-nav a {
  display: flex; align-items: center; gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: .76rem; font-weight: 400;
  color: rgba(255,255,255,.62);
  padding: 6px 11px; border-radius: 100px;
  white-space: nowrap; text-decoration: none;
  transition: color .15s;
  position: relative;
}
.sf-nav a svg      { opacity: .55; flex-shrink: 0; transition: opacity .15s; }
.sf-nav a:hover    { color: #fff; }
.sf-nav a:hover svg, .sf-nav a.active svg { opacity: 1; }
.sf-nav a.active   { color: #fff; font-weight: 600; }

/* Loja em destaque */
.sf-nav a[href="/loja"] {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, rgba(13,106,177,.55), rgba(26,130,212,.45));
  border: 1px solid rgba(63,163,232,.4);
  padding: 6px 14px;
  box-shadow: 0 0 14px rgba(13,106,177,.25);
}
.sf-nav a[href="/loja"]:hover {
  background: linear-gradient(135deg, rgba(13,106,177,.75), rgba(26,130,212,.65));
  box-shadow: 0 0 22px rgba(13,106,177,.45);
}

/* ─── ACTIONS — coluna 3, alinhado à direita ─── */
.sf-header__actions {
  display: flex; align-items: center; gap: 8px;
  justify-content: flex-end;
}

/* Botão carrinho */
.sf-cart-btn {
  display: flex; align-items: center; gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem; font-weight: 500;
  color: rgba(255,255,255,.9);
  background: rgba(13,106,177,.22);
  border: 1px solid rgba(63,163,232,.28);
  padding: 7px 16px; border-radius: 100px;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
  white-space: nowrap;
}
.sf-cart-btn:hover {
  background: rgba(13,106,177,.42);
  border-color: rgba(63,163,232,.55);
  box-shadow: 0 0 18px rgba(13,106,177,.38);
  transform: translateY(-1px);
}
.sf-cart-btn:active { transform: none; }

.sf-cart-count {
  background: linear-gradient(135deg, #b62929, #e03535);
  color: #fff; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 8px rgba(182,41,41,.5);
  animation: countPop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes countPop { from { transform:scale(0) } to { transform:scale(1) } }

/* Hamburger — hidden no desktop */
.sf-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; cursor: pointer;
  flex-shrink: 0;
}
.sf-hamburger span {
  display: block; width: 18px; height: 2px;
  background: rgba(255,255,255,.85); border-radius: 2px;
  transition: transform .25s, opacity .2s, width .2s;
  transform-origin: center;
}

/* ═══════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════ */

/* ── 1200px ── */
@media (max-width: 1200px) {
  .sf-header__inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 24px;
  }
  .sf-nav a         { padding: 6px 9px;  font-size: .73rem; }
  .sf-nav a[href="/loja"] { padding: 6px 12px; }
  .sf-logo__text    { font-size: 1rem; }
}

/* ── 960px — tablet ── */
@media (max-width: 960px) {
  .sf-header__inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 16px;
  }
  .sf-nav a         { padding: 5px 7px;  font-size: .69rem; gap: 3px; }
  .sf-nav a svg     { display: none; }  /* esconde ícones p/ economizar espaço */
  .sf-nav a[href="/loja"] svg { display: inline; } /* mas mantém na loja */
  .sf-nav a[href="/loja"] { padding: 5px 10px; }
  .sf-logo__img     { width: 70px; height: 70px; }
  .sf-logo__text    { font-size: .9rem; }
  .sf-cart-btn .cart-label { display: none; }
  .sf-cart-btn      { padding: 7px 12px; }
}

/* ── 768px — mobile ── */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .sf-header__inner {
    grid-template-columns: 1fr auto auto;
    padding: 0 16px; gap: 8px;
  }

  /* Esconde nav no mobile */
  .sf-header__nav   { display: none; }

  /* Mostra hamburger */
  .sf-hamburger     { display: flex; }

  .sf-logo__img     { width: 70px; height: 70px; }
  .sf-logo__text    { font-size: .88rem; }

  .sf-cart-btn .cart-label { display: none; }
  .sf-cart-btn      { padding: 7px 11px; }
}

/* ── 400px ── */
@media (max-width: 400px) {
  .sf-header__inner { padding: 0 12px; gap: 6px; }
  .sf-logo__text    { display: none; }  /* só ícone no mobile pequeno */
  .sf-logo__img     { width: 70px; height: 70px; }
}

/* ═══════════════════════════════════════
   MOBILE DRAWER
═══════════════════════════════════════ */
.sf-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: rgba(4,16,32,.97);
  backdrop-filter: blur(24px);
  z-index: 9990;
  overflow-y: auto;
  padding: 12px 16px 32px;
}
.sf-mobile-drawer.open {
  display: block;
  animation: drawerIn .22s cubic-bezier(.4,0,.2,1);
}
@keyframes drawerIn {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:none; }
}
.sf-mobile-drawer__nav {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  margin: 0; padding: 0;
}
.sf-mobile-drawer__nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.sf-mobile-drawer__nav a:hover,
.sf-mobile-drawer__nav a:active {
  background: rgba(13,106,177,.25);
  border-color: rgba(63,163,232,.3);
  color: #fff;
}
.sf-mobile-drawer__nav a.active {
  background: rgba(13,106,177,.35);
  border-color: rgba(63,163,232,.4);
  color: #fff; font-weight: 600;
}
.sf-mobile-drawer__nav a.nav-loja {
  background: linear-gradient(135deg, rgba(13,106,177,.5), rgba(26,130,212,.4));
  border-color: rgba(63,163,232,.45);
  color: #fff;
}
.sf-mobile-drawer__nav a svg {
  opacity: .65; flex-shrink: 0;
}

/* ── Cart Drawer — tema oceânico ───────────────────── */
.sf-cart-overlay {
  position: fixed; inset: 0;
  background: rgba(6,26,46,.65);
  backdrop-filter: blur(4px);
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sf-cart-overlay.open { opacity: 1; pointer-events: all; }

.sf-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 95vw;
  background: linear-gradient(180deg, #071e36 0%, #0a2d50 50%, #0d4278 100%);
  z-index: 1001;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 48px rgba(6,26,46,.8);
  border-left: 1px solid rgba(63,163,232,.15);
}
.sf-cart-drawer.open { transform: translateX(0); }

/* Cabeçalho */
.sf-cart-drawer__head {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,26,46,.4);
}
.sf-cart-drawer__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem; font-weight: 700;
  color: #fff;
  letter-spacing: .03em;
}

.sf-cart-drawer__close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 1rem;
  transition: background .15s, color .15s;
}
.sf-cart-drawer__close:hover {
  background: rgba(182,41,41,.25);
  border-color: rgba(182,41,41,.4);
  color: #fff;
}

/* Body */
.sf-cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.sf-cart-drawer__body::-webkit-scrollbar { width: 3px; }
.sf-cart-drawer__body::-webkit-scrollbar-thumb { background: rgba(63,163,232,.2); border-radius: 2px; }

/* Vazio */
.sf-cart-drawer__empty {
  text-align: center; padding: 56px 0;
  color: rgba(255,255,255,.3);
}
.sf-cart-drawer__empty .icon { font-size: 44px; margin-bottom: 12px; opacity: .4; }
.sf-cart-drawer__empty p { font-size: .85rem; line-height: 1.7; }

/* Item */
.sf-cart-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: flex-start;
}
.sf-cart-item:last-child { border-bottom: none; }

.sf-cart-item__img {
  width: 60px; height: 60px; border-radius: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; overflow: hidden;
}
.sf-cart-item__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.75) saturate(.7);
}

.sf-cart-item__info { flex: 1; min-width: 0; }
.sf-cart-item__name {
  font-weight: 600; font-size: .88rem; line-height: 1.35;
  color: rgba(255,255,255,.92);
}
.sf-cart-item__variant {
  font-size: .75rem; color: rgba(255,255,255,.4);
  margin-top: 3px; letter-spacing: .02em;
}

.sf-cart-item__qty {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
}
.sf-qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.8);
  transition: background .15s, border-color .15s;
  font-weight: 700;
}
.sf-qty-btn:hover {
  background: rgba(13,106,177,.35);
  border-color: rgba(63,163,232,.4);
  color: #fff;
}
.sf-cart-item__qty-n {
  font-size: .9rem; font-weight: 600;
  min-width: 20px; text-align: center;
  color: rgba(255,255,255,.85);
}
.sf-cart-item__remove {
  font-size: .95rem; color: rgba(255,255,255,.25);
  transition: color .15s; margin-left: 2px;
}
.sf-cart-item__remove:hover { color: #e57373; }

.sf-cart-item__price {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: #c8e8f8; white-space: nowrap;
  text-shadow: 0 0 12px rgba(63,163,232,.3);
}

/* Rodapé */
.sf-cart-drawer__foot {
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(6,26,46,.5);
}

.sf-cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.sf-cart-total__label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.sf-cart-total__val {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(63,163,232,.4);
}
.sf-cart-frete-info {
  font-size: .72rem; color: #4fd69c;
  margin-bottom: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}

/* Botão finalizar compra dentro do drawer */
.sf-cart-drawer__foot .btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px;
  background: linear-gradient(135deg, #0d6ab1, #1a82d4);
  border: 1px solid rgba(63,163,232,.4);
  color: #fff; text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(13,106,177,.4);
  transition: background .2s, box-shadow .2s, transform .15s;
}
.sf-cart-drawer__foot .btn-primary:hover {
  background: linear-gradient(135deg, #1a82d4, #3fa3e8);
  box-shadow: 0 6px 28px rgba(13,106,177,.55);
  transform: translateY(-1px);
}

/* Link explorar no estado vazio */
.sf-cart-drawer__empty a {
  display: inline-block; margin-top: 14px;
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(63,163,232,.7); text-decoration: none;
  border-bottom: 1px solid rgba(63,163,232,.25);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.sf-cart-drawer__empty a:hover { color: #3fa3e8; border-color: rgba(63,163,232,.6); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; white-space: nowrap;
  transition: all .2s var(--ease-out); position: relative; overflow: hidden;
  cursor: pointer; border: none; text-decoration: none;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12); opacity: 0; transition: opacity .15s;
}
.btn:hover::after { opacity: 1; }
.btn-sm  { font-size: .8rem;  padding: 7px 14px;  border-radius: var(--r-md); }
.btn-md  { font-size: .9rem;  padding: 11px 22px; border-radius: var(--r-md); }
.btn-lg  { font-size: 1rem;   padding: 14px 28px; border-radius: var(--r-lg); }
.btn-xl  { font-size: 1.05rem; padding: 16px 36px; border-radius: var(--r-lg); letter-spacing: .01em; }
.btn-primary   { background: var(--red);   color: #fff; box-shadow: 0 2px 10px rgba(182,41,41,.28); }
.btn-primary:hover   { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(182,41,41,.32); }
.btn-secondary { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-ghost  { background: transparent; color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-dark   { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--gray-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) !important; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-full { width: 100%; }
.btn-loading { pointer-events: none; }
.btn-loading .btn-text { opacity: 0; }
.btn-loading::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-full);
}
.badge-red    { background: var(--red);   color: #fff; }
.badge-green  { background: #dcf5dc; color: var(--success); }
.badge-brown  { background: var(--blue-muted); color: var(--blue-dark); }
.badge-blue   { background: var(--blue-muted); color: var(--blue); }
.badge-beige  { background: var(--blue-muted);  color: var(--blue-dark);  border: 1px solid var(--blue-light); }

/* ── Toast ───────────────────────────────────────────── */
#sf-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  z-index: 9999; background: var(--black); color: #fff;
  padding: 12px 24px; border-radius: var(--r-lg);
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  box-shadow: var(--shadow-xl); transition: transform .3s var(--ease-out), opacity .3s;
  opacity: 0; display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--blue-light);
  max-width: 90vw;
}
#sf-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#sf-toast.success { border-left-color: var(--success); }
#sf-toast.error   { border-left-color: var(--red); }

/* ── Page Wrapper ────────────────────────────────────── */
.sf-page { min-height: calc(100vh - var(--header-h)); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ── Footer ──────────────────────────────────────────── */
.sf-footer {
  background: var(--black); color: rgba(255,255,255,.45);
  padding: 64px 0 32px; margin-top: 80px;
}
.sf-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.sf-footer__logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-light); font-weight: 700; display: block; margin-bottom: 12px; }
.sf-footer__logo span { color: var(--blue); }
.sf-footer__desc { font-size: .875rem; line-height: 1.7; max-width: 240px; }
.sf-footer__col-title { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.sf-footer__links { list-style: none; }
.sf-footer__links li { margin-bottom: 8px; }
.sf-footer__links a { font-size: .875rem; color: rgba(255,255,255,.4); transition: color .15s; }
.sf-footer__links a:hover { color: var(--blue-light); }
.sf-footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; flex-wrap: wrap; gap: 8px; }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.anim-up   { animation: fadeInUp .55s var(--ease-out) both; }
.anim-fade { animation: fadeIn .4s ease both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }

/* ── Skeleton loader ─────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--blue-muted) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite; border-radius: var(--r-md);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Icons ───────────────────────────────────────────── */
.sf-icon { display:inline-block; vertical-align:middle; flex-shrink:0; pointer-events:none; }
.icon-sm  { width:16px; height:16px; }
.icon-md  { width:20px; height:20px; }
.icon-lg  { width:24px; height:24px; }
.icon-xl  { width:32px; height:32px; }
.icon-2xl { width:48px; height:48px; }
.btn .sf-icon { margin-top:-1px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .sf-nav { display: none; }
  .sf-mobile-menu-btn { display: flex; }
  .sf-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .container, .container-sm { padding: 0 16px; }
  .sf-footer__grid { grid-template-columns: 1fr; }
  .sf-footer__bottom { flex-direction: column; text-align: center; }
}