/* ─── DESIGN SYSTEM ─── */
:root {
  --red:       #e63946;
  --red-dark:  #c1121f;
  --red-light: #ff6b6b;
  --navy:      #0d1b2a;
  --navy-mid:  #1b2838;
  --navy-light:#253545;
  --slate:     #415a77;
  --silver:    #778da9;
  --off-white: #f0f4f8;
  --white:     #ffffff;
  --text-muted:#8899aa;
  --border:    #e2e8f0;
  --card-shadow: 0 4px 24px rgba(0,0,0,.08);
  --card-shadow-hover: 0 12px 40px rgba(0,0,0,.16);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--cz-font-sans); font-size: 1rem; line-height: 1.5; background: #f7f9fc; color: var(--navy); }

/* ─── TOPBAR ─── */
.s-topbar {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  letter-spacing: .02em;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.s-topbar a { color: rgba(255,255,255,.65); text-decoration: none; transition: color var(--transition); }
.s-topbar a:hover { color: var(--red-light); }
.s-topbar .divider { color: rgba(255,255,255,.2); margin: 0 10px; }

/* ─── MAIN NAVBAR ─── */
.s-navbar {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.s-navbar .container { padding: 10px 1rem; display: flex; align-items: center; gap: 1rem; }
.s-brand {
  display: inline-grid;
  grid-template-columns: auto;
  align-items: center;
  justify-items: start;
  gap: .08rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.s-brand img { width: 36px; height: 36px; flex-shrink: 0; }
.s-brand .wordmark { font-size: 1.5rem; font-weight: bold; color: var(--navy); letter-spacing: normal; line-height: 1; font-family: "Indie Flower", cursive; }
.s-brand .accent { color: orange; }
.s-brand .store-tag {
  display: inline-flex; align-items: center; gap: .38rem;
  margin-left: 1.45rem; color: var(--red);
  font-size: .56rem; font-weight: 900; letter-spacing: .24em; line-height: 1;
  text-transform: uppercase;
}
.s-brand .store-tag::before {
  content: ""; width: 16px; height: 2px; border-radius: 999px; background: var(--red);
}

.s-search { flex: 1 1 320px; display: flex; max-width: 560px; }
.s-search input {
  flex: 1;
}
.s-search .btn { border-radius: 0 10px 10px 0 !important; box-shadow: none !important; }

.s-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.s-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--border);
  background: #fff; color: var(--navy); text-decoration: none;
  font-size: 1.15rem; transition: all var(--transition);
}
.s-icon-btn:hover { border-color: var(--red); color: var(--red); }
.s-icon-btn .dot {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
  background: var(--red); border-radius: 50%; font-size: .6rem;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid #fff;
}
.s-icon-btn .account-status {
  position: absolute; right: -2px; bottom: -2px;
  width: 12px; height: 12px; border: 2px solid #fff;
  border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 1px rgba(21,128,61,.18);
}

/* ─── MAIN ─── */
main { min-height: 60vh; }

/* ─── FOOTER ─── */
.s-footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 56px 0 0; margin-top: 80px; }
.s-footer h6 { color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.25rem; }
.s-footer a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .875rem; transition: color var(--transition); display: block; margin-bottom: .45rem; }
.s-footer a:hover { color: var(--red-light); }
.s-footer .brand { font-size: 1.5rem; font-weight: bold; color: #fff; letter-spacing: normal; font-family: "Indie Flower", cursive; }
.s-footer .brand span { color: orange; }
.footer-brand-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .12rem; }
.footer-store-tag { display: inline-flex; align-items: center; gap: .4rem; margin-left: 1.5rem; color: var(--red-light); font-size: .56rem; font-weight: 900; letter-spacing: .24em; line-height: 1; text-transform: uppercase; }
.footer-store-tag::before { content:""; width:16px; height:2px; border-radius:999px; background:var(--red-light); }
.s-footer .tagline { font-size: .85rem; color: rgba(255,255,255,.45); margin-top: .35rem; line-height: 1.6; }
.s-footer .social-row { display: flex; gap: .75rem; margin-top: 1.25rem; }
.s-footer .social-row a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.6);
  font-size: 1rem; margin-bottom: 0;
  transition: background var(--transition), color var(--transition);
}
.s-footer .social-row a:hover { background: var(--red); color: #fff; }
.s-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 48px; padding: 20px 0;
  font-size: .78rem; color: rgba(255,255,255,.3);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}
.s-footer-bottom a { color: rgba(255,255,255,.35); display: inline; margin-bottom: 0; }
.s-footer-bottom a:hover { color: var(--red-light); }
.s-footer-links { display: flex; gap: 1.5rem; }

.s-footer-newsletter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-bottom: 40px; margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.s-footer-newsletter h6 {
  color: #fff; font-weight: 700; font-size: 1.05rem;
  margin-bottom: .35rem; text-transform: none; letter-spacing: normal;
}
.s-footer-newsletter p { color: rgba(255,255,255,.5); font-size: .85rem; margin: 0; max-width: 340px; }
.s-footer-newsletter-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
.s-footer-newsletter-input-row { display: flex; gap: 8px; }
.s-footer-newsletter-input-row input[type="email"] { flex: 1; min-width: 0; }
.s-footer-newsletter-input-row button { white-space: nowrap; }

@media (max-width: 768px) {
  .s-topbar .hide-sm { display: none; }
  .s-footer-newsletter { flex-direction: column; align-items: flex-start; }
  .s-footer-newsletter-form { max-width: 100%; }
  .s-footer-bottom { flex-direction: column; text-align: center; }
  .s-footer-links { justify-content: center; }

  /* navbar: stack search below brand row */
  .s-navbar .container {
    flex-wrap: wrap;
    padding: 8px 1rem;
    gap: .5rem;
  }
  .s-brand { flex: 1; }
  .s-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .s-actions { margin-left: 0; }
}

@media (max-width: 576px) {
  .s-brand .wordmark { font-size: 1.25rem; }
  .s-brand { gap: .05rem; }
  .s-brand .store-tag { gap: .3rem; margin-left: 1rem; font-size: .5rem; }
  .s-brand .store-tag::before { width: 12px; }
  .s-icon-btn { width: 38px; height: 38px; font-size: 1rem; }
  .s-footer { padding: 40px 0 0; }
}
