/* ============================================================
   Social-Fame — shared header + footer (homepage, platform and
   product pages). Markup is written by scripts/build-pages.mjs
   between the <!-- site-header --> / <!-- site-footer --> markers.
   Header: logo · menu (dropdowns per platform) · language · account · cart.
   Below 1100px the menu folds into a panel behind the hamburger.
   ============================================================ */

/* ---------- header ---------- */
.top {
  position: relative;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3svh, 30px) clamp(20px, 4vw, 56px);
}
.brand-logo { flex: none; min-width: 0; transition: opacity .2s; }
.brand-logo:hover { opacity: .8; }
.brand-logo img { display: block; height: clamp(34px, 6.5vw, 60px); width: auto; }
@media (max-width: 480px) {
  .brand-logo img { height: 28px; }
}
.top-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.top .cart-link,
.top .account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #D5006D;
  transition: color .2s, transform .2s;
}
.top .cart-link svg, .top .account-link svg { width: 22px; height: 22px; }
.top .cart-link:hover, .top .account-link:hover { color: #b00059; transform: scale(1.08); }
.top .cart-link:focus-visible, .top .account-link:focus-visible { outline: 2px solid #D5006D; outline-offset: 2px; border-radius: 8px; }
.top .cart-count:not([data-count="0"]):not([data-count=""]):not(:empty) {
  position: absolute;
  top: -3px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

/* ---------- menu ---------- */
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.site-nav a {
  display: block;
  font-family: 'Google Sans', 'Product Sans', 'Roboto', 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  padding: 8px 2px;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #D5006D; }
.site-nav a[aria-current="page"] { color: #D5006D; }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a::after { content: " \25BE"; font-size: 11px; color: rgba(0,0,0,.7); }
.nav-sub {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 220px;
  padding: 8px !important;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav .has-sub:hover .nav-sub,
.site-nav .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { font-family: 'Roboto', 'Segoe UI', sans-serif; font-size: 14px; font-weight: 400; padding: 9px 12px; border-radius: 9px; white-space: nowrap; }
.nav-sub a:hover { background: #FFF0F7; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle:focus-visible { outline: 2px solid #D5006D; outline-offset: 2px; border-radius: 8px; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    max-height: calc(100svh - 110px);
    overflow-y: auto;
    padding: 10px 16px 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(0,0,0,.18);
    text-align: left;
  }
  .top.nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid rgba(0,0,0,.07); }
  .site-nav > ul > li:last-child { border-bottom: 0; }
  .site-nav a { padding: 12px 4px; font-size: 16px; }
  .site-nav .has-sub > a::after { content: ""; }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 8px 12px !important;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .nav-sub a { padding: 7px 4px; color: rgba(0,0,0,.7); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-sub { transition: none; }
}

/* ---------- footer ---------- */
.footer { padding: clamp(16px, 3svh, 28px) clamp(20px, 4vw, 56px); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.footer-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.footer-left a { font-size: 13px; color: #000; text-decoration: none; transition: color .2s; }
.footer-left a:hover { color: #D5006D; }
.footer-copy { font-size: 12px; color: rgba(0,0,0,.7); }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: rgba(0,0,0,.7);
  transition: color .2s, transform .2s;
}
.footer-social a:hover { color: #D5006D; transform: scale(1.15); }
.footer-social svg { width: 1em; height: 1em; }
@media (max-width: 640px) {
  .footer { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .footer-inner { justify-content: center; gap: 10px 16px; }
  .footer-left { justify-content: center; gap: 6px 14px; }
  .footer-left a { font-size: 12px; }
  .footer-copy { width: 100%; text-align: center; font-size: 11px; }
  .footer-social { justify-content: center; gap: 15px; }
  .footer-social a { font-size: 17px; }
}
