@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

/* =========================
   MichaelaStore – MOBILE UX
   ========================= */

@media (max-width: 768px) {

  /* Stredový plávajúci blok v hlavičke */
  .ms-fab-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    max-width: 76vw;
  }

  .ms-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    line-height: 1;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #fff;
    white-space: nowrap;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow .15s ease;
  }

  .ms-pill .ms-chev {
    font-size: 14px;
  }

  .ms-pill.ms-open {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  }

  .ms-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: none;
    z-index: 10000;
  }

  .ms-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
  }

  .ms-menu li a:hover {
    background: #f6f6f6;
  }

  .ms-flag {
    width: 1.2em;
    text-align: center;
  }

  /* Bezpečný priestor v mobilnej hlavičke */
  header,
  .site-header,
  .header,
  .header-top,
  .header__inner {
    position: relative;
    min-height: 56px;
  }

  @media (max-width: 360px) {
    .ms-pill {
      padding: 7px 10px;
      font-size: 14px;
    }

    .ms-menu {
      min-width: 160px;
    }
  }
}

/* Jazykové označenia / vlajky */
.flags .flag {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
}
