/* =========================
   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 > .container.product-div {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* =========================
     MOBILE HEADER (FIXED)
     ========================= */
  .mobile-only nav.navbar {
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Center menu properly */
  .mobile-only .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-image-left,
  .mobile-only .nav-image-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-only .nav-image-left {
    left: 8px;
  }

  .mobile-only .nav-image-right {
    right: 8px;
  }

  .mobile-only .nav-image-left img,
  .mobile-only .nav-image-right img {
    height: 20px;
    width: auto;
    
  }

  .mobile-only .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 .mobile-nav-active {
    background-color: rgba(90, 171, 219, 0.18);
  }

  /* =========================
     MOBILE GRID CARDS
     ========================= */
  .mobile-only .card {
    border-radius: 15px;
    overflow: hidden;
  }

  .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;
  }

  /* =========================
     DETAILS VIEW — BLUE CARD
     ========================= */
  #mobileDetails {
    background-color: #5aabdb;
    color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0px 0px 15px #f3f3f3;
    margin-top: 10px;
    width: 90%;
  }

  #mobileDetails h4 {
    font-weight: 600;
    margin-bottom: 4px;
  }

  #mobileDetails p {
    font-size: 14px;
    line-height: 1.4;
  }

  #mobileDetails img {
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 10px auto;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
  }

  #mobileDetails #mPrices div {
    font-size: 14px;
    margin-bottom: 6px;
  }

  /* =========================
     IMAGE OVERLAY
     ========================= */
  .mobile-image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .mobile-full-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 15px #f3f3f3;
  }

  .mobile-image-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #f2f2f2;
    background: #ffffff;
    font-size: 22px;
    line-height: 34px;
  }
}

/* DESKTOP SAFETY */
@media (min-width: 576px) {
  .mobile-only {
    display: none !important;
  }
}
