/* ===== KAFELEK PRODUKTOWY ===== */
  .drug-item-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
  }
  .drug-item-grid .tp {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    color: #ffffff;
    text-transform: inherit;
  }
  .drug-item-grid .rx .tp               { background-color: #00c3c8; }
  .drug-item-grid .otc .tp              { background-color: #4961dc; }
  .drug-item-grid .suplement .tp        { background-color: #2da85b; }
  .drug-item-grid .wyrob-medyczny .tp   { background-color: #ff980e; }
  .drug-item-grid .srodki_spozywcze .tp { background-color: #c055af; }
  .drug-item-grid .dermokosmetyki .tp   { background-color: #9B51E0; }

  .drug-item-grid figure { margin-bottom: 8px; }
  .drug-item-grid .post-title { color: #58738d; font-size: 12px; font-weight:
  600; }
  .drug-item-grid .form-dose { display: block; font-weight: 100; letter-spacing:
  .2px; font-size: 9px; }

  .drug-item-grid .lowest-price-section { display: flex; align-items: center;
  justify-content: space-between; width: 100%; }
  .drug-item-grid .ppav2-lowest-price { font-size: 10px; font-weight: 600; }
  .drug-item-grid .ppav2-lowest-price .price-value { color: #117dff; font-size:
  12px; }
  .drug-item-grid .ppav2-lowest-price.ppav2-discontinued,
  .drug-item-grid .ppav2-lowest-price.ppav2-no-offers { text-align: center;
  color: #58738d; font-weight: 100; }

  .drug-item-grid .goto {
    text-align: center;
    background-color: #117dff;
    border-radius: 50px;
    width: 30px; height: 30px;
    color: #ffffff;
    line-height: 30px;
    font-size: 16px;
    font-weight: 800;
  }
  .drug-item-grid .ppav2-lowest-price.ppav2-discontinued ~ .goto,
  .drug-item-grid .ppav2-lowest-price.ppav2-no-offers ~ .goto { display: none; }

  /* ===== DROPDOWNY ===== */
  .dropdown {
    position: relative;
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .dropdown .btn {
    border: 1px solid #117dff;
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    color: #194d4d;
    background: #fff;
  }
  .dropdown .btn:hover { background: #DAF3F3; }
  .dropdown .caret {
    margin-left: 6px;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #117dff;
  }

  /* Menu: pozycję (fixed + top/left) ustawia JS, a popover renderuje je w top 
  layer
     — dlatego nie potrzeba position:absolute ani z-index i nie przycina go 
  slider. */
  .dropdown .dropdown-menu {
    display: none;
    min-width: 160px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    list-style: none;
    padding: 5px 0;
    margin: 0 !important;
    font-size: 12px;
  }
  .dropdown .dropdown-menu[popover] { inset: auto; margin: 0; }   /* kasuje 
  domyślne centrowanie popovera */
  .dropdown .dropdown-menu[popover]:popover-open {
    display: block;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .2);
  }
  .dropdown .dropdown-menu li a {
    display: -webkit-box;
    padding: 5px 10px;
    color: #194d4d;
    text-decoration: none;
    overflow: hidden;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .dropdown .dropdown-menu li a:hover { background: #9cc7c74a; }