/* =========================
   MOBILE ONLY — FINAL POLISH
   ========================= */
@media (max-width: 575px) {

  /* -------------------------
     BACKGROUND FIX
     ------------------------- */
  .bg-product-page::before {
    position: absolute !important;
    background-attachment: scroll !important;
  }

  /* -------------------------
     VISIBILITY
     ------------------------- */
  .bg-product-page > nav.navbar,
  .bg-product-page > #desktopGrid {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-only-nav {
    display: block !important;
  }

  /* =========================
     MOBILE HEADER (FIXED)
     ========================= */
  .mobile-only-nav nav.navbar {
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Center menu properly */
  .mobile-only-nav .custom-nav {
    margin: 0 auto;
    border: 1px solid #f2f2f2;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 2px 2px 22px #f3f3f3;
    background-color: #ffffff;
    width: 70%;
  }

  /* Smaller flags */
  .mobile-only-nav .nav-image-left,
  .mobile-only-nav .nav-image-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-only-nav .nav-image-left {
    left: 8px;
  }

  .mobile-only-nav .nav-image-right {
    right: 8px;
  }

  .mobile-only-nav .nav-image-left img,
  .mobile-only-nav .nav-image-right img {
    width: 35px;
    height: auto;
    max-height: none;
  }

  .mobile-only-nav .mobile-nav-link {
    font-size: 8px;
    font-weight: 800;
    padding: 4px 8px;
    text-decoration: none;
    color: #000;
    border-radius: 18px;
    white-space: nowrap;
  }

  .mobile-only-nav .mobile-nav-active {
    background-color: rgba(90, 171, 219, 0.18);
  }

  /* =========================
     MOBILE GRID CARDS
     ========================= */
  .mobile-only .card {
    border-radius: 15px;
    overflow: hidden;
  }

  .mobile-only .product-pickable {
    cursor: pointer;
  }

  .mobile-only .card-img-top {
    height: 90px;
    object-fit: contain;
    background: #fff;
  }

  .mobile-only .card-body {
    background-color: #5aabdb;
    color: white;
    padding: 8px 6px;
    font-size: 12px;
  }

  .product-details-panel {
    width: 90%;
    padding: 15px;
  }

  .product-details-image {
    max-height: 220px;
  }
}

/* DESKTOP SAFETY */
.mobile-only,
.mobile-only-nav {
  display: none;
}

@media (min-width: 576px) {
  .mobile-only,
  .mobile-only-nav {
    display: none !important;
  }
}
